/aosp_15_r20/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
H A D | DeviceInfo.java | 53 File jsonFile = null; in testCollectDeviceInfo() local 56 jsonFile = FileUtil.createTempFile(getClass().getSimpleName(), FILE_SUFFIX); in testCollectDeviceInfo() 58 collectDeviceInfo(jsonFile); in testCollectDeviceInfo() 61 if (jsonFile != null && jsonFile.exists() && in testCollectDeviceInfo() 62 jsonFile.length() == 0) { in testCollectDeviceInfo() 66 source = new FileInputStreamSource(jsonFile); in testCollectDeviceInfo() 73 FileUtil.deleteFile(jsonFile); in testCollectDeviceInfo() 87 protected void collectDeviceInfo(File jsonFile) throws Exception { in collectDeviceInfo() argument 88 try (HostInfoStore store = new HostInfoStore(jsonFile)) { in collectDeviceInfo()
|
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactoryTest.java | 213 // The hostname "hostname0" has multiple matches in jsonFile. in testLoadKeyStore_multipleHostNameMatches() 218 File jsonFile = FileUtil.createTempFile("json-keystore-4", ".json"); in testLoadKeyStore_multipleHostNameMatches() local 219 FileUtil.writeToFile(jsonData, jsonFile); in testLoadKeyStore_multipleHostNameMatches() 224 setter.setOptionValue("host-based-key-store-file", jsonFile.getAbsolutePath()); in testLoadKeyStore_multipleHostNameMatches() 234 hostname, jsonFile.toString()), in testLoadKeyStore_multipleHostNameMatches() 237 FileUtil.recursiveDelete(jsonFile); in testLoadKeyStore_multipleHostNameMatches() 245 File jsonFile = FileUtil.createTempFile("json-keystore-5", ".json"); in testLoadKeyStore_badKeyStoreFile() local 246 FileUtil.writeToFile(jsonData, jsonFile); in testLoadKeyStore_badKeyStoreFile() 251 setter.setOptionValue("host-based-key-store-file", jsonFile.getAbsolutePath()); in testLoadKeyStore_badKeyStoreFile() 257 String.format("Failed to parse JSON data from file %s", jsonFile.toString()), in testLoadKeyStore_badKeyStoreFile() [all …]
|
/aosp_15_r20/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
H A D | DeviceInfo.java | 89 File jsonFile; in testCollectDeviceInfo() local 91 jsonFile = new File(dir, getClass().getSimpleName() + DEVICE_INFO_SUFFIX); in testCollectDeviceInfo() 92 jsonFile.createNewFile(); in testCollectDeviceInfo() 93 mResultFilePath = jsonFile.getAbsolutePath(); in testCollectDeviceInfo() 94 try (DeviceInfoStore store = new DeviceInfoStore(jsonFile)) { in testCollectDeviceInfo() 98 if (jsonFile != null && jsonFile.exists() && in testCollectDeviceInfo() 99 jsonFile.length() == 0) { in testCollectDeviceInfo() 100 jsonFile.delete(); in testCollectDeviceInfo()
|
/aosp_15_r20/external/bazelbuild-rules_go/go/tools/gopackagesdriver/ |
H A D | bazel.go | 94 jsonFile, err := ioutil.TempFile("", "gopackagesdriver_bep_") 99 jsonFile.Close() 100 os.Remove(jsonFile.Name()) 105 "--build_event_json_file=" + jsonFile.Name(), 119 decoder := json.NewDecoder(jsonFile) 123 return nil, fmt.Errorf("unable to decode %s: %w", jsonFile.Name(), err)
|
/aosp_15_r20/external/flatbuffers/samples/ |
H A D | sample_text.cpp | 28 std::string jsonfile; in main() local 30 flatbuffers::LoadFile("samples/monsterdata.json", false, &jsonfile); in main() 40 parser.Parse(jsonfile.c_str(), include_directories); in main() 53 if (jsongen != jsonfile) { in main() 54 printf("%s----------------\n%s", jsongen.c_str(), jsonfile.c_str()); in main()
|
/aosp_15_r20/cts/hostsidetests/classpath/src/android/classpath/cts/ |
H A D | ClasspathDeviceInfo.java | 87 File jsonFile = null; in testCollectClasspathDeviceInfo() local 90 jsonFile = FileUtil.createTempFile(REPORT_NAME, REPORT_SUFFIX); in testCollectClasspathDeviceInfo() 91 HostInfoStore store = new HostInfoStore(jsonFile); in testCollectClasspathDeviceInfo() 103 FileUtil.copyFile(jsonFile, resultFile); in testCollectClasspathDeviceInfo() 107 source = new FileInputStreamSource(jsonFile); in testCollectClasspathDeviceInfo() 115 FileUtil.deleteFile(jsonFile); in testCollectClasspathDeviceInfo()
|
/aosp_15_r20/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/ |
H A D | IncrementalDeqpPreparer.java | 155 File jsonFile; in runIncrementalDeqp() local 159 jsonFile = new File(deviceInfoDir, INCREMENTAL_DEQP_REPORT_NAME); in runIncrementalDeqp() 160 if (jsonFile.exists()) { in runIncrementalDeqp() 181 try (HostInfoStore store = new HostInfoStore(jsonFile)) { in runIncrementalDeqp() 214 if (jsonFile.exists() && jsonFile.length() == 0) { in runIncrementalDeqp() 215 FileUtil.deleteFile(jsonFile); in runIncrementalDeqp()
|
/aosp_15_r20/external/perfetto/infra/perfetto.dev/src/ |
H A D | gen_sql_tables_reference.js | 73 const jsonFile = argv['j']; 74 if (!jsonFile) { 80 const jsonFiles = (jsonFile instanceof Array) ? jsonFile : [jsonFile];
|
/aosp_15_r20/prebuilts/cmake/linux-x86/share/cmake-3.22/Help/manual/ |
D | cmake-file-api.7.rst | 209 "jsonFile": "<file>" }, 215 "jsonFile": "<file>" }, 221 "jsonFile": "<file>" }, 229 "jsonFile": "<file>" }, 364 ``jsonFile`` 447 "jsonFile": "<file>" 458 "jsonFile": "<file>" 473 "jsonFile": "<file>" 479 "jsonFile": "<file>" 574 ``jsonFile`` [all …]
|
/aosp_15_r20/external/python/google-auth-library-python/tests_async/ |
D | test__default_async.py | 49 jsonfile = tmpdir.join("invalid.json") 50 jsonfile.write("{") 53 _default.load_credentials_from_file(str(jsonfile)) 59 jsonfile = tmpdir.join("invalid.json") 60 jsonfile.write(json.dumps({"type": "not-a-real-type"})) 63 _default.load_credentials_from_file(str(jsonfile))
|
/aosp_15_r20/external/timezone-boundary-builder/ |
H A D | index.js | 966 const jsonFile = distDir + '/combined.json' 967 exec('zip -j ' + zipFile + ' ' + jsonFile, cb) 976 const jsonFile = distDir + '/combined-with-oceans.json' 977 exec('zip -j ' + zipFile + ' ' + jsonFile, cb) 988 const jsonFile = distDir + '/combined.json' 990 'ogr2ogr -f "ESRI Shapefile" ' + shapeFile + ' ' + jsonFile, 1007 const jsonFile = distDir + '/combined-with-oceans.json' 1009 'ogr2ogr -f "ESRI Shapefile" ' + shapeFile + ' ' + jsonFile,
|
/aosp_15_r20/tools/tradefederation/core/global_configuration/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactory.java | 208 private JSONObject loadKeyStoreFromFile(File jsonFile) throws KeyStoreException { in loadKeyStoreFromFile() argument 211 String data = FileUtil.readStringFromFile(jsonFile); in loadKeyStoreFromFile() 215 String.format("Failed to read JSON key file %s: %s", jsonFile.toString(), e)); in loadKeyStoreFromFile() 218 String.format("Failed to parse JSON data from file %s", jsonFile.toString()), in loadKeyStoreFromFile()
|
/aosp_15_r20/external/kotlinx.serialization/gradle/ |
H A D | benchmark-parsing.gradle | 14 File jsonFile = project.file(fileName) 15 …if (!jsonFile.exists()) throw new TaskExecutionException(this, new FileNotFoundException("File $fi… 16 def parsedJson = new JsonSlurper().parseText(jsonFile.text)
|
/aosp_15_r20/external/python/google-auth-library-python/tests/ |
D | test__default.py | 162 jsonfile = tmpdir.join("invalid.json") 163 jsonfile.write("{") 166 _default.load_credentials_from_file(str(jsonfile)) 172 jsonfile = tmpdir.join("invalid.json") 173 jsonfile.write(json.dumps({"type": "not-a-real-type"})) 176 _default.load_credentials_from_file(str(jsonfile))
|
/aosp_15_r20/tools/metalava/buildSrc/src/main/kotlin/com/android/tools/metalava/buildinfo/ |
H A D | CreateAggregateLibraryBuildInfoFileTask.kt | 54 private fun jsonFileIsValid(jsonFile: File, artifactList: MutableList<String>): Boolean { in <lambda>() 55 if (!jsonFile.exists()) { in <lambda>() 59 val jsonString: String = jsonFile.readText(Charsets.UTF_8) in <lambda>()
|
/aosp_15_r20/cts/tools/cts-media/ |
H A D | get_achievable_rates.py | 334 jsonFile = zip.open(resultInfo) 335 jsonData = json.load(jsonFile) 340 jsonFile = zip.open(info) 342 jsonData = json.load(jsonFile, object_pairs_hook=lambda items: items)
|
/aosp_15_r20/external/AFLplusplus/benchmark/ |
H A D | benchmark.py | 185 with open("benchmark-results.jsonl", "a") as jsonfile: 186 json.dump(asdict(results), jsonfile, sort_keys=True) 187 jsonfile.write("\n") 188 print(blue(f" [*] Results have been written to the {jsonfile.name} file."))
|
/aosp_15_r20/external/lottie/lottie/src/main/java/com/airbnb/lottie/network/ |
H A D | NetworkCache.java | 140 File jsonFile = new File(parentDir(), filenameForUrl(url, FileExtension.JSON, false)); in getCachedFile() local 141 if (jsonFile.exists()) { in getCachedFile() 142 return jsonFile; in getCachedFile()
|
/aosp_15_r20/external/flatbuffers/tests/ |
H A D | test.cpp | 730 std::string jsonfile; in JsonOptionalTest() local 738 false, &jsonfile), in JsonOptionalTest() 750 TEST_EQ(parser.ParseJson(jsonfile.c_str()), true); in JsonOptionalTest() 765 TEST_EQ_STR(jsongen.c_str(), jsonfile.c_str()); in JsonOptionalTest() 888 std::string jsonfile; in ParseAndGenerateTextTest() local 896 &jsonfile), in ParseAndGenerateTextTest() 919 TEST_EQ(parser.ParseJson(jsonfile.c_str()), true); in ParseAndGenerateTextTest() 937 TEST_EQ_STR(jsongen.c_str(), jsonfile.c_str()); in ParseAndGenerateTextTest() 950 auto buf = registry.TextToFlatBuffer(jsonfile.c_str(), MonsterIdentifier()); in ParseAndGenerateTextTest() 961 TEST_EQ_STR(text.c_str(), jsonfile.c_str()); in ParseAndGenerateTextTest() [all …]
|
/aosp_15_r20/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
H A D | JsonPrinter.java | 242 File jsonFile; in open() local 244 jsonFile = new File(fileName); in open() 245 FileOutputStream fOutStrem = new FileOutputStream(jsonFile); in open()
|
/aosp_15_r20/tools/asuite/atest/ |
H A D | atest_utils.py | 1178 def load_json_safely(jsonfile): argument 1182 jsonfile: The json file path. 1189 if isinstance(jsonfile, bytes): 1190 jsonfile = jsonfile.decode('utf-8') 1191 if Path(jsonfile).is_file(): 1193 with open(jsonfile, 'r', encoding='utf-8') as cache: 1196 logging.debug('Exception happened while loading %s.', jsonfile) 1198 logging.debug('%s: File not found.', jsonfile)
|
/aosp_15_r20/external/jackson-databind/ |
H A D | README.md | 183 File jsonFile = new JsonFile("test.json"); 184 JsonGenerator g = f.createGenerator(jsonFile); 192 JsonParser p = f.createParser(jsonFile);
|
/aosp_15_r20/external/bazelbuild-rules_go/go/tools/builders/ |
H A D | stdliblist.go | 269 jsonFile, err := os.Create(*out) 273 defer jsonFile.Close() 280 encoder := json.NewEncoder(jsonFile)
|
/aosp_15_r20/external/robolectric/processor/src/test/java/org/robolectric/annotation/processing/ |
H A D | JavadocJsonGeneratorTest.java | 60 String jsonFile = jsonDocsDir + "/org.robolectric.DocumentedObjectOuter.DocumentedObject.json"; in shouldGenerateJavadocJson() local 61 JsonElement json = JsonParser.parseReader(Files.newBufferedReader(Paths.get(jsonFile), UTF_8)); in shouldGenerateJavadocJson()
|
/aosp_15_r20/cts/hostsidetests/edi/src/android/edi/cts/ |
H A D | DynamicPartitionsDeviceInfo.java | 48 protected void collectDeviceInfo(File jsonFile) throws Exception { in collectDeviceInfo() argument 81 try (FileWriter writer = new FileWriter(jsonFile)) { in collectDeviceInfo()
|