Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 71) sorted by relevance

123

/development/tools/external_crates/crate_health/src/
Dlib.rs91 pub fn ensure_exists_and_empty(dir: &impl AsRef<Path>) -> Result<()> { in ensure_exists_and_empty()
92 let dir = dir.as_ref(); in ensure_exists_and_empty() localVariable
93 if dir.exists() { in ensure_exists_and_empty()
94 remove_dir_all(&dir).context(format!("Failed to remove {}", dir.display()))?; in ensure_exists_and_empty()
96 create_dir_all(&dir).context(format!("Failed to create {}", dir.display())) in ensure_exists_and_empty()
/development/build/tools/
Dsdk-preprocess-files.mk1 LOCAL_PATH := $(call my-dir)
31 $(hide) mkdir -p $(dir $@)
54 full_target := $(call intermediates-dir-for,JAVA_LIBRARIES,$(ANDROID_PUBLIC_EXPORTABLE_STUBS),,COMM…
55 full_src_target := $(call intermediates-dir-for,ETC,frameworks-base-api-current.srcjar)/frameworks-…
58 android_jar_intermediates := $(call intermediates-dir-for,PACKAGING,android_jar,,COMMON)
66 $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
67 unzip -q $< -d $(dir $@)
68 cd $(dir $@) && zip -rqX $(notdir $@) *
77 $(hide)mkdir -p $(dir $@)
85 ALL_SDK_FILES += $(call intermediates-dir-for,JAVA_LIBRARIES,core-current-stubs-for-system-modules,…
[all …]
Dsdk_repo.mk18 $(dir $(2))/sdk-repo-$(1)-$(3).zip
79 bcp_srcjar := $(call intermediates-dir-for,ETC,platform-bootclasspath.srcjar)/platform-bootclasspat…
83 rm -rf $$(dir $$@)/tmp
84 unzip -qd $$(dir $$@)/tmp $$(bcp_srcjar)
85 …$$(SOONG_ZIP) -o $$@ -P src -e source.properties -f $$(source_props) -C $$(dir $$@)/tmp -D $$(dir
86 rm -rf $$(dir $$@)/tmp
168 SDK_ADDON_XML := $(dir $(ADDON_SDK_ZIP))/addon.xml
187 SDK_ADDON_IMG_XML := $(dir $(ADDON_SDK_ZIP))/addon-sys-img.xml
/development/samples/Vault/tests/src/com/example/android/vault/
DVaultProviderTest.java61 final String dir = mProvider.createDocument( in testDeleteDirectory() local
65 dir, MIME_TYPE_DEFAULT, "dirfile"); in testDeleteDirectory()
67 dir, Document.MIME_TYPE_DIR, "dirdir"); in testDeleteDirectory()
75 c = mProvider.queryChildDocuments(dir, null, (Bundle) null); in testDeleteDirectory()
79 mProvider.deleteDocument(dir); in testDeleteDirectory()
86 try { mProvider.queryDocument(dir, null); } catch (Exception expected) { } in testDeleteDirectory()
/development/tools/idegen/src/com/android/idegen/
DDirectorySearch.java82 public boolean accept(File dir, String name) { in findAndInitRepoRoot()
108 File dir; in findModuleRoot() local
110 dir = path.getParentFile(); in findModuleRoot()
112 dir = path; in findModuleRoot()
114 while (dir != null) { in findModuleRoot()
115 File makeFile = new File(dir, "Android.mk"); in findModuleRoot()
117 return dir; in findModuleRoot()
119 dir = dir.getParentFile(); in findModuleRoot()
DIntellijProject.java74 File dir = new File(repoRoot, moduleDir); in build() local
75 if (!dir.exists()) { in build()
80 Module module = cache.getAndCacheByDir(dir); in build()
82 logger.info("Module '" + dir.getPath() + "' not found." + in build()
138 File dir = mod.getDir(); in createVcsFile() local
140 while (dir != null) { in createVcsFile()
141 File gitRoot = new File(dir, ".git"); in createVcsFile()
143 gitRoots.add(dir.getCanonicalPath()); in createVcsFile()
146 dir = dir.getParentFile(); in createVcsFile()
/development/tools/findunused/
Dfind_unused_resources.rb105 def findUnusedResources(dir) argument
111 Dir.glob("#{dir}/res/**/*.xml").each { |filename|
131 Dir.glob("#{dir}/AndroidManifest.xml").each { |filename|
143 recordJavaUses("#{dir}/src/**/*.java")
161 result.appDir = dir
168 def findApps(dir) argument
170 Dir.glob("#{dir}/**/res").each { |filename|
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/
DRmTypeDefsTest.java30 File dir = Files.createTempDir(); in test() local
104 File srcDir = new File(dir, "test" + File.separator + "pkg"); in test()
110 srcDir = new File(dir, "android" + File.separator + "annotation"); in test()
136 getDirectoryContents(dir)); in test()
152 RmTypeDefs.main(new String[]{"--verbose", dir.getPath()}); in test()
173 getDirectoryContents(dir)); in test()
176 assertDoesNotContainBytes(new File(dir, in test()
180 deleteDir(dir); in test()
/development/tools/winscope/src/viewers/viewer_protolog/scroll_strategy/
Dprotolog_scroll_directive.ts28 useFactory: (dir: ProtologScrollDirective) => dir.scrollStrategy,
/development/tools/winscope/src/viewers/viewer_transactions/scroll_strategy/
Dtransactions_scroll_directive.ts28 useFactory: (dir: TransactionsScrollDirective) => dir.scrollStrategy,
/development/tools/repo_diff/service/repodiff/controllers/
Dreporter.go46 dir := filepath.Join(appConfig.OutputDirectory, "reports")
47 fname := filepath.Join(dir, filenameForTarget(target))
48 os.MkdirAll(dir, os.ModePerm)
/development/scripts/
Dupdate_crate_tests.py281 self.dir = path
283 self.dir_rel = self.dir.split(env.ANDROID_BUILD_TOP)[1]
285 raise UpdaterException('The path ' + self.dir + ' is not under ' +
291 os.chdir(self.dir)
294 self.dir_rel, self.dir)
330 if os.path.isfile(os.path.join(self.package.dir, "test_mapping_config.json")):
331 with open(os.path.join(self.package.dir, "test_mapping_config.json"), 'r') as fd:
356 for dir in dirs:
357 test_mapping["imports"].append({"path": dir})
Dbash_util.bash85 local dir="${TMPDIR:-${TEMP:-/tmp}}"
88 local file="$dir/temp-$(date '+%Y%m%d-%H%M%S')-$$$suffix"
/development/tools/
Dmonkey208 if not options.dir:
209 options.dir = "monkeys-%s" % CurrentTimestamp()
262 if os.path.exists(options.dir) and not os.path.isdir(options.dir):
264 % options.dir)
266 elif not os.path.exists(options.dir):
267 os.makedirs(options.dir)
293 filebase = os.path.sep.join((options.dir, pattern % run))
/development/samples/training/basic/ActivityLifecycle/
Dbuild.properties9 # 'source.dir' for the location of your java source folder and
10 # 'out.dir' for the location of your output folder.
17 extensible.classpath=${sdk.dir}/extras/android/support/v13/android-support-v13.jar
Dant.properties9 # 'source.dir' for the location of your java source folder and
10 # 'out.dir' for the location of your output folder.
/development/apps/Development/src/com/android/development/
DCacheAbuser.java58 File dir = new File(cacheDir, quick ? "quick" : "slow"); in AbuseTask() local
59 mBaseDir = new File(dir, Long.toString(System.currentTimeMillis())); in AbuseTask()
70 File dir = new File(mBaseDir, Long.toString(dir1num)); in doInBackground() local
71 File file = new File(dir, Long.toString(dir2num)); in doInBackground()
74 dir.mkdirs(); in doInBackground()
/development/samples/training/testingfun/app/
Dproject.properties10 …Guard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
/development/samples/training/basic/FragmentBasics/
Dproject.properties10 …Guard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
/development/samples/ControllerSample/
Dproject.properties10 …Guard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
/development/samples/training/testingfun/app/tests/
Dproject.properties10 …Guard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DMatrixStack.java160 private void preflight_adjust(int dir) { in preflight_adjust() argument
161 int newTop = mTop + dir * MATRIX_SIZE; in preflight_adjust()
170 private void adjust(int dir) { in adjust() argument
171 mTop += dir * MATRIX_SIZE; in adjust()
/development/samples/LunarLander/tests/
Dbuild.properties1 tested.project.dir=..
/development/samples/ApiDemos/tests/
Dbuild.properties1 tested.project.dir=..
/development/samples/BrokenKeyDerivation/tests/
Dbuild.properties1 tested.project.dir=..

123