Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 80) sorted by relevance

1234

/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustBinaryTest.java122 String root, ITestDevice testDevice, ITestInvocationListener listener) in doRunAllTestsInSubdirectory() argument
125 if (testDevice.isDirectory(root)) { in doRunAllTestsInSubdirectory()
127 CLog.d("Look into rust directory %s on %s", root, testDevice.getSerialNumber()); in doRunAllTestsInSubdirectory()
129 for (String child : testDevice.getChildren(root)) { in doRunAllTestsInSubdirectory()
130 CLog.d("Look into child path %s", (root + "/" + child)); in doRunAllTestsInSubdirectory()
131 if (doRunAllTestsInSubdirectory(root + "/" + child, testDevice, listener)) { in doRunAllTestsInSubdirectory()
136 } else if (shouldSkipFile(root)) { in doRunAllTestsInSubdirectory()
137 CLog.d("Skip rust test %s on %s", root, testDevice.getSerialNumber()); in doRunAllTestsInSubdirectory()
140 CLog.d("To run rust test %s on %s", root, testDevice.getSerialNumber()); in doRunAllTestsInSubdirectory()
141 runTest(testDevice, listener, createParser(listener, new File(root).getName()), root); in doRunAllTestsInSubdirectory()
/tools/metalava/src/test/java/com/android/tools/metalava/
DFileReadSandboxTest.kt33 val root = temporaryFolder.newFolder() in Test sandbox() constant
35 val goodFile = File(root, "goodFile").apply { createNewFile() } in Test sandbox()
36 val badFile = File(root, "badFile").apply { createNewFile() } in Test sandbox()
38 val goodDir = File(root, "goodDir").apply { mkdirs() } in Test sandbox()
41 val badDir = File(root, "badDir").apply { mkdirs() } in Test sandbox()
44 val subDir = File(root, "subdir").apply { mkdirs() } in Test sandbox()
76 …val allowedSet = mutableSetOf(root, goodFile, goodDir, goodDirFile, subDir, subSubDir, subSubDirGo… in Test sandbox()
111 val newFile1 = File(root, "newFile1").apply { createNewFile() } in Test sandbox()
128 root.listFiles() in Test sandbox()
141 root.listFiles() in Test sandbox()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTest.java169 String root, ITestDevice testDevice, ITestInvocationListener listener) in doRunAllTestsInSubdirectory() argument
171 if (testDevice.isDirectory(root)) { in doRunAllTestsInSubdirectory()
172 if (!shouldRunFolder(root)) { in doRunAllTestsInSubdirectory()
176 for (String child : testDevice.getChildren(root)) { in doRunAllTestsInSubdirectory()
177 doRunAllTestsInSubdirectory(root + "/" + child, testDevice, listener); in doRunAllTestsInSubdirectory()
181 IShellOutputReceiver resultParser = createResultParser(getFileName(root), listener); in doRunAllTestsInSubdirectory()
182 if (shouldSkipFile(root)) { in doRunAllTestsInSubdirectory()
185 String flags = getAllGTestFlags(root); in doRunAllTestsInSubdirectory()
186 CLog.i("Running gtest %s %s on %s", root, flags, testDevice.getSerialNumber()); in doRunAllTestsInSubdirectory()
188 runTestXml(testDevice, root, flags, listener); in doRunAllTestsInSubdirectory()
[all …]
DGoogleBenchmarkTest.java166 private void doRunAllTestsInSubdirectory(String root, ITestDevice testDevice, in doRunAllTestsInSubdirectory() argument
168 if (testDevice.isDirectory(root)) { in doRunAllTestsInSubdirectory()
170 for (String child : testDevice.getChildren(root)) { in doRunAllTestsInSubdirectory()
171 doRunAllTestsInSubdirectory(root + "/" + child, testDevice, listener); in doRunAllTestsInSubdirectory()
176 String rootEntry = root.substring(root.lastIndexOf("/") + 1); in doRunAllTestsInSubdirectory()
180 testDevice.executeShellCommand(String.format("chmod 755 %s", root)); in doRunAllTestsInSubdirectory()
181 if (shouldSkipFile(root)) { in doRunAllTestsInSubdirectory()
186 Set<String> filteredTests = getFilteredTests(testDevice, root); in doRunAllTestsInSubdirectory()
204 root, in doRunAllTestsInSubdirectory()
/tools/asuite/aidegen/lib/
Dcommon_util_unittest.py266 root = 'my/path-to-root/master'
269 mock_get_android_root_dir.return_value = root
275 self.assertEqual(os.path.join(default_root, os.path.basename(root)),
312 root = 'root'
313 mock_get_env.return_value = root
315 self.assertEqual(root, expected)
316 root = ''
317 mock_get_env.return_value = root
364 root = ElementTree.fromstring(self._TEST_XML_CONTENT)
365 pretty_xml = common_util.to_pretty_xml(root)
Dide_util.py264 root = file_type_xml.getroot()
266 for mapping in root.findall(_XPATH_MAPPING):
276 root.find(_XPATH_EXTENSION_MAP).append(
278 pretty_xml = common_util.to_pretty_xml(root)
Dide_common_util.py84 for root, _, files in os.walk(top):
85 logging.debug('Search all files under %s to get %s, %s.', top, root,
88 exe_file = os.path.join(root, file_)
/tools/doc_generation/
Dswitcher4.py46 root = os.path.split(java_ref_root)[1] variable
47 if root != "reference":
122 for root, dirs, files in os.walk(java_source_abs_path):
130 print "***", os.path.join(root, file_)
136 doc = os.path.join(root, file_)
171 for root, dirs, files in os.walk(kotlin_source_abs_path):
179 print "***", os.path.join(root, file_)
185 doc = os.path.join(root, file_)
/tools/repohooks/tools/
Dcheckpatch.pl42 my $root;
213 'root=s' => \$root,
315 if (defined $root) {
316 if (!top_of_kernel_tree($root)) {
317 die "$P: $root: --root does not point at a valid tree\n";
321 $root = '.';
324 $root = $1;
328 if (!defined $root) {
841 return 0 if (!$tree || !(-e "$root/scripts/get_maintainer.pl"));
843 …my $status = `perl $root/scripts/get_maintainer.pl --status --nom --nol --nogit --nogit-fallback -…
[all …]
/tools/tradefederation/core/atest/test_finders/
Dtf_integration_finder.py96 root = tree.getroot()
97 self._load_include_tags(root)
98 return root
101 def _load_include_tags(self, root): argument
115 while i < len(root):
116 elem = root[i]
133 root[i] = node
/tools/asuite/atest/test_finders/
Dtf_integration_finder.py98 root = tree.getroot()
99 self._load_include_tags(root)
100 return root
103 def _load_include_tags(self, root): argument
119 while i < len(root):
120 elem = root[i]
137 root[i] = node
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt404 val root = File("").absoluteFile in processFlags() constant
405 val rootPath = root.path in processFlags()
473 options.androidJarSignatureFiles?.let { root -> in processNonCodebaseFlags() method
475 ConvertJarsToSignatureFiles().convertJars(root) in processNonCodebaseFlags()
1054 val root = File("").absoluteFile in createStubFiles() constant
1055 stubWriter.writeSourceList(it, root) in createStubFiles()
1233 val root = findRoot(file) ?: continue in extractRoots() constant
1234 dirToRootCache[parent.path] = root in extractRoots()
1236 if (!sourceRoots.contains(root)) { in extractRoots()
1237 sourceRoots.add(root) in extractRoots()
DConvertJarsToSignatureFiles.kt43 fun convertJars(root: File) { in <lambda>()
47 root, in <lambda>()
57 val oldApiFile = File(root, "prebuilts/sdk/$api/public/api/android.txt") in <lambda>()
61 File(root, "prebuilts/sdk/$api/public/api/android.txt") in <lambda>()
99 val oldRemovedFile = File(root, "prebuilts/sdk/$api/public/api/removed.txt") in <lambda>()
DComparisonVisitor.kt408 val root = ItemTree(null) in createTree() constant
409 stack.push(root) in createTree()
437 ensureSorted(root.children) in createTree()
438 return root.children in createTree()
/tools/tradefederation/core/atest/docs/
Ddeveloper_workflow.md56 (path relative to android repo root)
71 atest root dir: `./run_atest_unittests.sh`. Alternatively, you can
84 to android repo root).
120 (from android repo root)
129 (path relative to android repo root)
146 (path relative to android repo root)
/tools/asuite/atest/docs/
Ddeveloper_workflow.md56 (path relative to android repo root)
71 atest root dir: `./run_atest_unittests.sh`. Alternatively, you can
84 to android repo root).
120 (from android repo root)
129 (path relative to android repo root)
146 (path relative to android repo root)
/tools/treble/split/
Dmanifest_split.py107 root = ET.parse(config_file).getroot()
109 [child.attrib["name"] for child in root.findall("remove_project")])
111 [child.attrib["name"] for child in root.findall("add_project")])
374 root = manifest.getroot()
375 for child in root.findall("project"):
377 root.remove(child)
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dlatency.py69 root = ET.parse(xml_file).getroot()
70 event_pairs = root.findall('event-pair')
76 start_evt = root.find(
78 end_evt = root.find(
/tools/asuite/aidegen/project/
Dsource_splitter.py152 root = common_util.get_android_root_dir()
166 child, parent.source_path[key], root)
303 def _remove_child_duplicate_sources_from_parent(child, parent_sources, root): argument
320 os.path.relpath(path, root), child.project_relative_path)):
Dsource_splitter_unittest.py260 root = 'a/b'
263 child, parent_sources, root)
267 child, parent_sources, root)
/tools/test/connectivity/acts/framework/tests/
Dacts_import_unit_test.py125 for root, _, files in os.walk(base_dir):
127 full_path = os.path.join(root, f)
133 path = os.path.relpath(os.path.join(root, f), os.getcwd())
Dtest_suite.py43 for root, _, files in os.walk(os.path.dirname(__file__)):
46 test_files.append(os.path.join(root, filename))
48 suite.addTest(loader.discover(root, filename))
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationFactory.java301 private String getAbsolutePath(String root, String name) throws ConfigurationException { in getAbsolutePath() argument
304 if (root == null) { in getAbsolutePath()
307 root = System.getProperty("user.dir"); in getAbsolutePath()
309 file = new File(root, name); in getAbsolutePath()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZipToolsTest.java108 StoredEntry root = zfile.get(name); in assertFileInZip() local
109 assertNotNull(root); in assertFileInZip()
111 InputStream is = root.open(); in assertFileInZip()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DStubWriter.kt66 fun writeSourceList(target: File, root: File?) { in <lambda>()
68 val contents = if (root != null) { in <lambda>()
69 val path = root.path.replace('\\', '/') + "/" in <lambda>()

1234