/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatterTest.java | 104 String content = FileUtil.readStringFromFile(res); in testBasicFormat() local 105 assertXmlContainsNode(content, "Result"); in testBasicFormat() 107 assertXmlNotContainNode(content, "Result/RunHistory"); in testBasicFormat() 109 assertXmlContainsNode(content, "Result/Summary"); in testBasicFormat() 110 assertXmlContainsAttribute(content, "Result/Summary", "pass", "2"); in testBasicFormat() 111 assertXmlContainsAttribute(content, "Result/Summary", "failed", "0"); in testBasicFormat() 112 assertXmlContainsAttribute(content, "Result/Summary", "modules_done", "2"); in testBasicFormat() 113 assertXmlContainsAttribute(content, "Result/Summary", "modules_total", "2"); in testBasicFormat() 115 assertXmlContainsNode(content, "Result/Module"); in testBasicFormat() 116 assertXmlContainsAttribute(content, "Result/Module", "name", "module1"); in testBasicFormat() [all …]
|
/tools/asuite/aidegen/lib/ |
D | clion_project_file_gen_unittest.py | 105 content = hfile.read() 114 self.assertEqual(content, expected) 131 content = hfile.read() 135 self.assertEqual(content, expected) 148 content = hfile.read() 150 self.assertEqual(content, expected) 164 content = hfile.read() 170 self.assertEqual(content, expected) 183 content = hfile.read() 185 self.assertEqual(content, expected) [all …]
|
D | project_file_gen.py | 193 content = self._remove_debugger_token(templates.XML_MODULES) 194 content = content.replace(_MODULE_TOKEN, module) 196 common_util.file_generate(target_path, content) 198 def _remove_debugger_token(self, content): argument 216 content = content.replace(_ENABLE_DEBUGGER_MODULE_TOKEN, '') 217 return content 325 content = common_util.read_file_content(target_path) 326 content = content.replace(_ENABLE_DEBUGGER_MODULE_TOKEN, replace_string) 327 common_util.file_generate(target_path, content)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationUtilTest.java | 78 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml() local 79 assertTrue(content.length() > 100); in testDumpClassToXml() 80 assertTrue(content.contains("<configuration>")); in testDumpClassToXml() 81 assertTrue(content.contains("<option name=\"adb-path\" value=\"adb\" />")); in testDumpClassToXml() 83 content.contains( in testDumpClassToXml() 125 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml_filtered() local 126 assertTrue(content.contains("<configuration>")); in testDumpClassToXml_filtered() 128 content.contains( in testDumpClassToXml_filtered() 132 content.contains( in testDumpClassToXml_filtered() 301 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml_filterDeprecated() local [all …]
|
D | ConfigurationTest.java | 601 String content = FileUtil.readStringFromFile(test); in testDumpXml() local 602 assertTrue(content.length() > 100); in testDumpXml() 603 assertTrue(content.contains("<configuration>")); in testDumpXml() 604 assertTrue(content.contains("<test class")); in testDumpXml() 622 String content = FileUtil.readStringFromFile(test); in testDumpXml_withFilter() local 623 assertTrue(content.length() > 100); in testDumpXml_withFilter() 624 assertTrue(content.contains("<configuration>")); in testDumpXml_withFilter() 625 assertFalse(content.contains("<test class")); in testDumpXml_withFilter() 645 String content = FileUtil.readStringFromFile(test); in testDumpXml_multi_device() local 646 assertTrue(content.length() > 100); in testDumpXml_multi_device() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/gcs/ |
D | GCSConfigurationFactoryTest.java | 73 String content = null; in setUp() 75 content = HOST_CONFIG; in setUp() 77 content = AVD_HOST_CONFIG; in setUp() 79 content = COMMON_CONFIG; in setUp() 81 content = INVALID_CONFIG; in setUp() 83 if (content != null) { in setUp() 84 return new ByteArrayInputStream(content.getBytes()); in setUp() 107 String content = StreamUtil.getStringFromStream(input); in testGetConfigStream() local 108 Assert.assertEquals(HOST_CONFIG, content); in testGetConfigStream() 128 String content = StreamUtil.getStringFromStream(input); in testGetConfigStream_bundled() local [all …]
|
D | GCSConfigurationServerTest.java | 64 String content = null; in setUp() 66 content = CONFIG; in setUp() 68 content = CONFIG; in setUp() 70 content = HOST_CONFIG_MAPPING; in setUp() 72 if (content != null) { in setUp() 73 return new ByteArrayInputStream(content.getBytes()); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterClient.java | 151 final String content = StreamUtil.getStringFromStream(response.getContent()); in getTestEnvironment() local 152 CLog.d(content); in getTestEnvironment() 153 return TestEnvironment.fromJson(new JSONObject(content)); in getTestEnvironment() 168 final String content = StreamUtil.getStringFromStream(response.getContent()); in getTestResources() local 169 CLog.d(content); in getTestResources() 170 final JSONArray jsonArray = new JSONObject(content).optJSONArray("test_resources"); in getTestResources() 191 final String content = StreamUtil.getStringFromStream(response.getContent()); in getTestContext() local 192 CLog.d(content); in getTestContext() 193 return TestContext.fromJson(new JSONObject(content)); in getTestContext() 211 final String content = StreamUtil.getStringFromStream(response.getContent()); in updateTestContext() local [all …]
|
/tools/tradefederation/core/util-apps/DeviceSetupUtil/src/com/android/tradefed/utils/ |
D | DeviceSetupIntentReceiver.java | 19 import android.content.BroadcastReceiver; 20 import android.content.Context; 21 import android.content.Intent;
|
D | DeviceSetupService.java | 23 import android.content.Context; 24 import android.content.Intent;
|
/tools/asuite/asuite_plugin/src/java/com/android/atest/widget/ |
D | AtestNotification.java | 34 public AtestNotification(@NotNull String content) { in AtestNotification() argument 35 super(ATEST_GROUP_ID, ATEST_TITLE, content, NotificationType.ERROR); in AtestNotification()
|
/tools/asuite/atest/ |
D | asuite_metrics.py | 63 content = response.read() 64 if content != _METRICS_RESPONSE: 65 raise Exception('Unexpected metrics response: %s' % content)
|
/tools/tradefederation/core/atest/ |
D | asuite_metrics.py | 69 content = response.read() 70 if content != _METRICS_RESPONSE: 71 raise Exception('Unexpected metrics response: %s' % content)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | SubprocessResultsReporterTest.java | 82 String content = FileUtil.readStringFromFile(tmpReportFile); in testPrintEvent_printToFile() local 83 assertTrue(content.contains("TEST_RUN_STARTED")); in testPrintEvent_printToFile() 84 assertTrue(content.contains("\"testCount\":5")); in testPrintEvent_printToFile() 85 assertTrue(content.contains("\"runName\":\"TEST\"")); in testPrintEvent_printToFile() 86 assertTrue(content.contains("\"start_time\":500")); in testPrintEvent_printToFile() 87 assertTrue(content.contains("\"runAttempt\":1")); in testPrintEvent_printToFile() 88 assertTrue(content.contains("TEST_RUN_ENDED {\"time\":100}\n")); in testPrintEvent_printToFile()
|
/tools/test/connectivity/acts/framework/acts/libs/ |
D | yaml_writer.py | 42 def safe_dump(content, file): argument 45 yaml.safe_dump(content, file, **_DUMP_KWARGS)
|
/tools/asuite/asuite_plugin/src/java/com/android/atest/toolWindow/ |
D | AtestToolWindowFactory.java | 21 import com.intellij.ui.content.Content; 22 import com.intellij.ui.content.ContentFactory;
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | HostGTest.java | 130 String content = cmdResult.getStdout(); in loadFilter() local 131 if (content != null && !content.isEmpty()) { in loadFilter() 132 JSONObject filter = new JSONObject(content); in loadFilter() 137 CLog.e("Error with content of the filter file %s: %s", filterFile, content); in loadFilter()
|
/tools/security/fuzzing/orphans/libexif/ |
D | libexif_fuzzer.cpp | 25 static void data_func(ExifContent *content, void *) { in data_func() argument 26 exif_content_foreach_entry(content, dump_value, NULL); in data_func()
|
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/ |
D | GameQualificationTest.java | 19 import android.content.BroadcastReceiver; 20 import android.content.Context; 21 import android.content.Intent; 22 import android.content.IntentFilter;
|
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/ |
D | UnsupportedAppUsageProcessor.java | 88 List<String> content = new ArrayList<>(); in process() local 96 content.add(annotationIndex); in process() 101 if (content.isEmpty()) { in process() 112 content.forEach(outputStream::println); in process()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | AcloudConfigParser.java | 68 String content = FileUtil.readStringFromFile(configFile); in parseConfig() local 69 String[] lines = content.split("\n"); in parseConfig()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/multi/ |
D | MixImageZipPreparerTest.java | 289 private File createImageDir(String content, String... fileNames) throws IOException { in createImageDir() argument 292 FileUtil.writeToFile(content, new File(tempDir, fileName)); in createImageDir() 297 private File createImageZip(String content, String... fileNames) throws IOException { in createImageZip() argument 301 tempDir = createImageDir(content, fileNames); in createImageZip() 314 private void verifyImageReader(String content, Reader reader) throws IOException { in verifyImageReader() argument 315 char[] buffer = new char[content.length()]; in verifyImageReader() 317 Assert.assertEquals(content, new String(buffer)); in verifyImageReader() 321 private void verifyImage(String content, File dir, String fileName) in verifyImage() argument 324 verifyImageReader(content, reader); in verifyImage()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | RestApiHelper.java | 108 HttpContent content = null; in execute() local 110 content = new ByteArrayContent(JSON_MIME, data.toString().getBytes()); in execute() 113 final HttpRequest request = getRequestFactory().buildRequest(method, uri, content); in execute()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BugreportTest.java | 59 InputStream content = new ByteArrayInputStream(BUGREPORT_CONTENT.getBytes()); in setUp() local 60 FileUtil.writeToFile(content, bugreport); in setUp() 163 InputStream content = new ByteArrayInputStream(BUGREPORT_CONTENT.getBytes()); in testBugreportz_noMainFile() local 164 FileUtil.writeToFile(content, bugreport); in testBugreportz_noMainFile()
|
D | GCSFileDownloaderTest.java | 63 String content = FileUtil.readStringFromFile(localFile); in testDownloadFile() local 64 Assert.assertEquals("bucket\nthis/is/a/file.txt", content); in testDownloadFile()
|