Home
last modified time | relevance | path

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

123456

/tools/tradefederation/core/javatests/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java116 String content = FileUtil.readStringFromFile(res); in testBasicFormat() local
117 assertXmlContainsNode(content, "Result"); in testBasicFormat()
119 assertXmlNotContainNode(content, "Result/RunHistory"); in testBasicFormat()
121 assertXmlContainsNode(content, "Result/Summary"); in testBasicFormat()
122 assertXmlContainsAttribute(content, "Result/Summary", "pass", "2"); in testBasicFormat()
123 assertXmlContainsAttribute(content, "Result/Summary", "failed", "0"); in testBasicFormat()
124 assertXmlContainsAttribute(content, "Result/Summary", "modules_done", "2"); in testBasicFormat()
125 assertXmlContainsAttribute(content, "Result/Summary", "modules_total", "2"); in testBasicFormat()
127 assertXmlContainsNode(content, "Result/Module"); in testBasicFormat()
128 assertXmlContainsAttribute(content, "Result/Module", "name", "module1"); in testBasicFormat()
[all …]
/tools/asuite/aidegen/lib/
Dclion_project_file_gen_unittest.py105 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 …]
Dproject_file_gen.py203 content = self._remove_debugger_token(templates.XML_MODULES)
204 content = content.replace(_MODULE_TOKEN, module)
206 common_util.file_generate(target_path, content)
208 def _remove_debugger_token(self, content): argument
226 content = content.replace(_ENABLE_DEBUGGER_MODULE_TOKEN, '')
227 return content
331 content = common_util.read_file_content(target_path)
332 content = content.replace(_ENABLE_DEBUGGER_MODULE_TOKEN, replace_string)
333 common_util.file_generate(target_path, content)
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DConfigurationUtilTest.java78 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 …]
DConfigurationTest.java617 String content = FileUtil.readStringFromFile(test); in testDumpXml() local
618 assertTrue(content.length() > 100); in testDumpXml()
619 assertTrue(content.contains("<configuration>")); in testDumpXml()
620 assertTrue(content.contains("<test class")); in testDumpXml()
639 String content = FileUtil.readStringFromFile(test); in testDumpXml_withFilter() local
640 assertTrue(content.length() > 100); in testDumpXml_withFilter()
641 assertTrue(content.contains("<configuration>")); in testDumpXml_withFilter()
642 assertFalse(content.contains("<test class")); in testDumpXml_withFilter()
663 String content = FileUtil.readStringFromFile(test); in testDumpXml_multi_device() local
664 assertTrue(content.length() > 100); in testDumpXml_multi_device()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterClient.java151 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/javatests/com/android/tradefed/config/gcs/
DGCSConfigurationFactoryTest.java73 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 …]
DGCSConfigurationServerTest.java64 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/javatests/com/android/tradefed/result/
DSubprocessResultsReporterTest.java79 String content = FileUtil.readStringFromFile(tmpReportFile); in testPrintEvent_printToFile() local
80 assertTrue(content.contains("TEST_RUN_STARTED")); in testPrintEvent_printToFile()
81 assertTrue(content.contains("\"testCount\":5")); in testPrintEvent_printToFile()
82 assertTrue(content.contains("\"runName\":\"TEST\"")); in testPrintEvent_printToFile()
83 assertTrue(content.contains("\"start_time\":500")); in testPrintEvent_printToFile()
84 assertTrue(content.contains("\"runAttempt\":1")); in testPrintEvent_printToFile()
85 assertTrue(content.contains("TEST_RUN_ENDED {\"time\":100}\n")); in testPrintEvent_printToFile()
285 String content = FileUtil.readStringFromFile(tmpReportFile); in testTestFailed_PrintsFailureStatus() local
286 assertTrue(content.contains("\"trace\":\"not executed\"")); in testTestFailed_PrintsFailureStatus()
287 assertTrue(content.contains("\"failure_status\":\"NOT_EXECUTED\"")); in testTestFailed_PrintsFailureStatus()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/build/content/
DArtifactDetailsTest.java16 package com.android.tradefed.build.content;
20 import com.android.tradefed.build.content.ArtifactDetails.ArtifactFileDescriptor;
69 File content = FileUtil.createTempFile("artifacts-details-test", ".json"); in generateBaseContent() local
107 FileUtil.writeToFile(baseContent, content); in generateBaseContent()
108 return content; in generateBaseContent()
112 File content = FileUtil.createTempFile("artifacts-details-test", ".json"); in generateCurrentContent() local
154 FileUtil.writeToFile(currentContent, content); in generateCurrentContent()
155 return content; in generateCurrentContent()
DTestContentAnalyzerTest.java16 package com.android.tradefed.build.content;
25 import com.android.tradefed.build.content.ContentAnalysisContext.AnalysisMethod;
229 File content = FileUtil.createTempFile("artifacts-details-test", ".json"); in generateBaseContent() local
267 FileUtil.writeToFile(baseContent, content); in generateBaseContent()
268 return content; in generateBaseContent()
272 File content = FileUtil.createTempFile("artifacts-details-test", ".json"); in generateCurrentContent() local
309 FileUtil.writeToFile(currentContent, content); in generateCurrentContent()
310 return content; in generateCurrentContent()
/tools/metalava/metalava-model-text/src/test/resources/com/android/tools/metalava/model/text/core/api/
D1.12.0-beta01.txt9 …scription(android.accessibilityservice.AccessibilityServiceInfo, android.content.pm.PackageManager…
27 public class ActivityCompat extends androidx.core.content.ContextCompat {
41 …method public static void setLocusContext(android.app.Activity, androidx.core.content.LocusIdCompa…
44 …method public static void startActivityForResult(android.app.Activity, android.content.Intent, int…
45 …app.Activity, android.content.IntentSender, int, android.content.Intent?, int, int, int, android.o…
54 …oolean onActivityResult(android.app.Activity, @IntRange(from=0) int, int, android.content.Intent?);
67 …atic androidx.core.app.ActivityOptionsCompat makeCustomAnimation(android.content.Context, int, int…
90 …al android.app.Activity instantiateActivity(ClassLoader, String, android.content.Intent?) throws j…
91 …roid.app.Activity instantiateActivityCompat(ClassLoader, String, android.content.Intent?) throws j…
94 …method public final android.content.ContentProvider instantiateProvider(ClassLoader, String) throw…
[all …]
/tools/acloud/internal/lib/
Dssh.py173 def _FilterUnusedContent(content): argument
184 content = re.sub(_ERROR_MSG_TO_QUOTE_RE, "'", content)
185 content = re.sub(_ERROR_MSG_DEL_STYLE_RE, "", content, flags=re.DOTALL)
186 content = re.sub(_ERROR_MSG_DEL_TAGS_RE, "", content)
187 content = re.sub(r"\\n", " ", content)
188 return content
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DOxygenUtilTest.java102 String content = in testCollectErrorSignatures() local
107 FileUtil.writeToFile(content, file1); in testCollectErrorSignatures()
126 String content = in testCollectDeviceLaunchMetrics() local
135 FileUtil.writeToFile(content, file1); in testCollectDeviceLaunchMetrics()
155 String content = in testCollectDeviceLaunchMetricsV2() local
166 FileUtil.writeToFile(content, file1); in testCollectDeviceLaunchMetricsV2()
182 String content = "version_number \n\n\n"; in testCollectOxygenVersion() local
183 FileUtil.writeToFile(content, file1); in testCollectOxygenVersion()
/tools/platform-compat/java/android/compat/testing/app/
DSharedLibraryInfoDeviceTest.java22 import android.content.Context;
23 import android.content.pm.SharedLibraryInfo;
84 ImmutableList.Builder<String> content = ImmutableList.builder(); in collectSharedLibraryPaths() local
87 content.add(String.format(Locale.US, "%s %d %d %s", in collectSharedLibraryPaths()
96 ImmutableList<String> lines = content.build(); in collectSharedLibraryPaths()
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DAttestationApplicationId.java27 import android.content.Context;
28 import android.content.pm.PackageInfo;
29 import android.content.pm.PackageManager;
30 import android.content.pm.PackageManager.NameNotFoundException;
31 import android.content.pm.Signature;
/tools/tradefederation/core/src/com/android/tradefed/result/skipped/
DArtifactsAnalyzer.java20 import com.android.tradefed.build.content.ContentAnalysisContext;
21 import com.android.tradefed.build.content.ContentAnalysisResults;
22 import com.android.tradefed.build.content.ImageContentAnalyzer;
23 import com.android.tradefed.build.content.TestContentAnalyzer;
24 import com.android.tradefed.build.content.ContentAnalysisContext.AnalysisMethod;
/tools/platform-compat/java/com/android/annotationvisitor/
DAnnotationHandler.java34 Map<String, String> content = new HashMap<String, String>(); in stringifyAnnotationProperties() local
38 content.put(prop.getNameString(), prop.getValue().stringifyValue()); in stringifyAnnotationProperties()
41 return content; in stringifyAnnotationProperties()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/multi/
DMixImageZipPreparerTest.java344 private File createImageDir(String content, String... fileNames) throws IOException { in createImageDir() argument
347 FileUtil.writeToFile(content, new File(tempDir, fileName)); in createImageDir()
352 private File createImageZip(String content, String... fileNames) throws IOException { in createImageZip() argument
356 tempDir = createImageDir(content, fileNames); in createImageZip()
369 private void verifyImageReader(String content, Reader reader) throws IOException { in verifyImageReader() argument
370 char[] buffer = new char[content.length()]; in verifyImageReader()
372 Assert.assertEquals(content, new String(buffer)); in verifyImageReader()
376 private void verifyImage(String content, File dir, String fileName) in verifyImage() argument
379 verifyImageReader(content, reader); in verifyImage()
/tools/asuite/atest/
Datest_utils.py710 content = target.read()
711 if not isinstance(content, bytes):
712 content = content.encode('utf-8')
713 return hashlib.md5(content).hexdigest()
741 content = load_json_safely(check_file)
742 if content:
743 for filename, md5 in content.items():
1004 content = ''
1011 content = content + '\n'
1016 content = content + line.decode()
[all …]
/tools/security/fuzzing/llm/tinyxml2_fuzzer/
Dgen_corpus.py17 content = generate_random_string(random.randint(0, 20))
23 def create_corpus_file(filename, content): argument
25 file.write(content)
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/
DGameQualificationTest.java19 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/
DUnsupportedAppUsageProcessor.java88 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/dexter/testdata/expected/
Dmedium.entry_hook895 ….v4.app.NavUtils$NavUtilsImpl.getParentActivityName(android.content.Context, android.content.pm.Ac…
910 …app.NavUtils$NavUtilsImplBase.getParentActivityName(android.content.Context, android.content.pm.Ac…
916 …y(android.support.v4.app.NavUtils$NavUtilsImplBase, android.content.Context, android.content.pm.Ac…
919 4| iget-object v1, v6, android.content.pm.ActivityInfo.metaData
924 9| iget-object v1, v6, android.content.pm.ActivityInfo.metaData
942 35| invoke-virtual {v5}, android.content.Context.getPackageName():java.lang.String
966 …4.app.NavUtils$NavUtilsImplJB.getParentActivityName(android.content.Context, android.content.pm.Ac…
973 …try(android.support.v4.app.NavUtils$NavUtilsImplJB, android.content.Context, android.content.pm.Ac…
974 …3| invoke-static {v3}, android.support.v4.app.NavUtilsJB.getParentActivityName(android.content.pm.…
980 …app.NavUtils$NavUtilsImplBase.getParentActivityName(android.content.Context, android.content.pm.Ac…
[all …]
Dmedium.asm848 ….v4.app.NavUtils$NavUtilsImpl.getParentActivityName(android.content.Context, android.content.pm.Ac…
862 …app.NavUtils$NavUtilsImplBase.getParentActivityName(android.content.Context, android.content.pm.Ac…
870 1| iget-object v1, v6, android.content.pm.ActivityInfo.metaData
875 6| iget-object v1, v6, android.content.pm.ActivityInfo.metaData
893 32| invoke-virtual {v5}, android.content.Context.getPackageName():java.lang.String
916 …4.app.NavUtils$NavUtilsImplJB.getParentActivityName(android.content.Context, android.content.pm.Ac…
923 …0| invoke-static {v3}, android.support.v4.app.NavUtilsJB.getParentActivityName(android.content.pm.…
929 …app.NavUtils$NavUtilsImplBase.getParentActivityName(android.content.Context, android.content.pm.Ac…
973 …app.NavUtils.getParentActivityIntent(android.content.Context, android.content.ComponentName):andro…
981 …droid.support.v4.app.NavUtils.getParentActivityName(android.content.Context, android.content.Compo…
[all …]

123456