Home
last modified time | relevance | path

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

123

/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/doc_generation/
Dswitcher4.py46 root = os.path.split(java_ref_root)[1] variable
47 if root != "reference":
144 for root, dirs, files in os.walk(java_source_abs_path):
152 print "***", os.path.join(root, file_)
158 doc = os.path.join(root, file_)
193 for root, dirs, files in os.walk(kotlin_source_abs_path):
201 print "***", os.path.join(root, file_)
207 doc = os.path.join(root, file_)
/tools/asuite/atest-py2/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.py105 root = tree.getroot()
106 self._load_include_tags(root)
107 return root
110 def _load_include_tags(self, root): argument
126 while i < len(root):
127 elem = root[i]
146 root[i] = node
/tools/treble/split/
Dmanifest_split.py143 root = ET.parse(config_file).getroot()
146 c.attrib["name"]: config_file for c in root.findall("remove_project")
150 {c.attrib["name"]: config_file for c in root.findall("add_project")})
155 for child in root.findall("path_mapping")
179 root = manifest.getroot()
180 repo_list = [(p.get("path", p.get("name")), p.get("name")) for p in root.findall("project")]
434 root = manifest.getroot()
435 for child in root.findall("project"):
437 root.remove(child)
/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_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/metalava/src/main/java/com/android/tools/metalava/
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>()
DDriver.kt419 val root = File("").absoluteFile in processFlags() constant
420 val rootPath = root.path in processFlags()
488 options.androidJarSignatureFiles?.let { root -> in processNonCodebaseFlags() method
490 ConvertJarsToSignatureFiles().convertJars(root) in processNonCodebaseFlags()
1066 val root = File("").absoluteFile in createStubFiles() constant
1067 stubWriter.writeSourceList(it, root) in createStubFiles()
1198 val root = findRoot(file) ?: continue in extractRoots() constant
1199 dirToRootCache[parent.path] = root in extractRoots()
1201 if (!sourceRoots.contains(root)) { in extractRoots()
1202 sourceRoots.add(root) in extractRoots()
DComparisonVisitor.kt518 val root = ItemTree(null) in createTree() constant
519 stack.push(root) in createTree()
558 removeDuplicates(root) in createTree()
561 ensureSorted(root) in createTree()
564 return root.children in createTree()
/tools/asuite/atest-py2/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/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/test/connectivity/acts/framework/tests/
Dacts_import_unit_test.py79 for root, _, files in os.walk(acts_path):
81 full_path = os.path.join(root, f)
87 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/asuite/atest/
Datest_execution_info.py83 def print_test_result(root, history_arg): argument
98 target = '%s/20*_*_*' % root
214 for root, _, files in os.walk(constants.ATEST_RESULT_ROOT):
218 json_file = os.path.join(root, 'test_result')
/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/asuite/aidegen/project/
Dproject_splitter.py164 root = common_util.get_android_root_dir()
178 child, parent.source_path[key], root)
458 def _remove_child_duplicate_sources_from_parent(child, parent_sources, root): argument
475 os.path.relpath(path, root), child.project_relative_path)):
/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>()
/tools/external_updater/
Darchive_utils.py130 for root, dirs, files in os.walk(path):
132 return root
/tools/dexter/dexter/
Ddexter_tests.py17 data_root = args.root or 'tools/dexter/testdata'
21 if args.root is None:
/tools/repohooks/rh/
Dconfig_test.py51 def check_repo_root(root): argument
53 assertEqual('REPO_ROOT', REPO_ROOT, root)
/tools/treble/build/
DREADME.md56 All projects in the root directory that are not in the overlays
64 directory can be mounted at the root directory to support different targets.
/tools/test/connectivity/acts/framework/acts/libs/uicd/
Duicd_cli.py84 for (root, _, files) in os.walk(path, onerror=_raise):
86 workflow_files.append(os.path.join(root, file))

123