Home
last modified time | relevance | path

Searched refs:content (Results 1 – 25 of 26) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java97 String content = FileUtil.readStringFromFile(res); in testBasicFormat() local
98 assertXmlContainsNode(content, "Result"); in testBasicFormat()
100 assertXmlContainsNode(content, "Result/Summary"); in testBasicFormat()
101 assertXmlContainsAttribute(content, "Result/Summary", "pass", "2"); in testBasicFormat()
102 assertXmlContainsAttribute(content, "Result/Summary", "failed", "0"); in testBasicFormat()
103 assertXmlContainsAttribute(content, "Result/Summary", "modules_done", "2"); in testBasicFormat()
104 assertXmlContainsAttribute(content, "Result/Summary", "modules_total", "2"); in testBasicFormat()
106 assertXmlContainsNode(content, "Result/Module"); in testBasicFormat()
107 assertXmlContainsAttribute(content, "Result/Module", "name", "module1"); in testBasicFormat()
108 assertXmlContainsAttribute(content, "Result/Module", "abi", "armeabi-v7a"); in testBasicFormat()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/gcs/
DGCSConfigurationFactoryTest.java72 String content = null; in setUp()
74 content = HOST_CONFIG; in setUp()
76 content = AVD_HOST_CONFIG; in setUp()
78 content = COMMON_CONFIG; in setUp()
80 content = INVALID_CONFIG; in setUp()
82 if (content != null) { in setUp()
83 return new ByteArrayInputStream(content.getBytes()); in setUp()
104 String content = StreamUtil.getStringFromStream(input); in testGetConfigStream() local
105 Assert.assertEquals(HOST_CONFIG, content); in testGetConfigStream()
124 String content = StreamUtil.getStringFromStream(input); in testGetConfigStream_bundled() local
[all …]
DGCSConfigurationServerTest.java58 String content = null; in setUp()
60 content = CONFIG; in setUp()
62 content = HOST_CONFIG_MAPPING; in setUp()
64 if (content != null) { in setUp()
65 return new ByteArrayInputStream(content.getBytes()); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationUtilTest.java65 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml() local
66 assertTrue(content.length() > 100); in testDumpClassToXml()
67 assertTrue(content.contains("<configuration>")); in testDumpClassToXml()
68 assertTrue(content.contains("<option name=\"adb-path\" value=\"adb\" />")); in testDumpClassToXml()
70 content.contains( in testDumpClassToXml()
108 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml_filtered() local
109 assertTrue(content.contains("<configuration>")); in testDumpClassToXml_filtered()
111 content.contains( in testDumpClassToXml_filtered()
115 content.contains( in testDumpClassToXml_filtered()
DConfigurationTest.java637 String content = FileUtil.readStringFromFile(test); in testDumpXml() local
638 assertTrue(content.length() > 100); in testDumpXml()
639 assertTrue(content.contains("<configuration>")); in testDumpXml()
640 assertTrue(content.contains("<test class")); in testDumpXml()
658 String content = FileUtil.readStringFromFile(test); in testDumpXml_withFilter() local
659 assertTrue(content.length() > 100); in testDumpXml_withFilter()
660 assertTrue(content.contains("<configuration>")); in testDumpXml_withFilter()
661 assertFalse(content.contains("<test class")); in testDumpXml_withFilter()
681 String content = FileUtil.readStringFromFile(test); in testDumpXml_multi_device() local
682 assertTrue(content.length() > 100); in testDumpXml_multi_device()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DKeyValueConfigPreparer.java67 String content = config.toString(); in setUp() local
71 if (content.contains(externalStorageString)) { in setUp()
74 content = content.replace(externalStorageString, externalStoragePath); in setUp()
78 device.pushString(content, mPath); in setUp()
/tools/tradefederation/core/util-apps/DeviceSetupUtil/src/com/android/tradefed/utils/
DDeviceSetupService.java23 import android.content.Context;
24 import android.content.Intent;
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DTarUtilTest.java124 final String content = "I'LL BE ZIPPED"; in testGzipDir_unGzip() local
129 FileUtil.writeToFile(content, tmpFile); in testGzipDir_unGzip()
137 assertEquals(content, FileUtil.readStringFromFile(unzipped.listFiles()[0])); in testGzipDir_unGzip()
DBugreportTest.java59 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()
DGCSFileDownloaderFuncTest.java102 String content = StreamUtil.getStringFromStream(inputStream); in testDownloadFile() local
103 Assert.assertEquals(FILE_CONTENT, content); in testDownloadFile()
/tools/tradefederation/core/src/com/android/tradefed/util/
DTestMapping.java106 String content = String.join("", Files.readAllLines(path, StandardCharsets.UTF_8)); in TestMapping() local
107 if (content != null) { in TestMapping()
108 JSONTokener tokener = new JSONTokener(content); in TestMapping()
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DContentInfo.java35 public Asn1OpaqueObject content; field in ContentInfo
DEncapsulatedContentInfo.java39 public ByteBuffer content; field in EncapsulatedContentInfo
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DSubprocessResultsReporterTest.java73 String content = FileUtil.readStringFromFile(tmpReportFile); in testPrintEvent_printToFile() local
75 + "TEST_RUN_ENDED {\"time\":100}\n", content); in testPrintEvent_printToFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DGTest.java376 String content = in loadFilter() local
378 if (content != null && !content.isEmpty()) { in loadFilter()
380 JSONObject filter = new JSONObject(content); in loadFilter()
388 CLog.e("Error with content of the filter file %s: %s", filterFile, content); in loadFilter()
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiMonitorService.java22 import android.content.Context;
23 import android.content.Intent;
DWifiConnector.java19 import android.content.Context;
20 import android.content.SharedPreferences;
DWifiUtil.java20 import android.content.Context;
/tools/metalava/
DREADME.md141 …e/core/java/android/content/res/AssetManager.java:166: error: Replaced Kitkat with KitKat in docum…
212 | android.content.Intent | 104 |
214 | android.content.Context | 61 |
221 | android.content.SharedPreferences | 26 |
222 | android.content.SharedPreferences.Editor | 26 |
242 | Intent.Intent(android.content.Context, Class<?>) | 21 |
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java203 String content = String.format(TEST_CONFIG, objType, obj.getClass().getCanonicalName()); in createTmpConfig() local
204 FileUtil.writeToFile(content, configFile); in createTmpConfig()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java584 contentInfo.content = new Asn1OpaqueObject(Asn1DerEncoder.encode(signedData)); in generateSignatureBlock()
DV1SchemeVerifier.java470 Asn1BerParser.parse(contentInfo.content.getEncoded(), SignedData.class); in verifySigBlockAgainstSigFile()
/tools/acloud/
DLICENSE142 origin of the Work and reproducing the content of the NOTICE file.
/tools/apksig/
DLICENSE154 origin of the Work and reproducing the content of the NOTICE file.
/tools/tradefederation/core/res/jacoco/
Djacocoant.jarMETA-INF/MANIFEST.MF META-INF/MTNMINDS.SF META-INF/MTNMINDS ...

12