Home
last modified time | relevance | path

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

12345678910>>...38

/cts/apps/CameraITS/
DAndroid.mk16 its-dir-name := CameraITS
17 its-dir := $(HOST_OUT)/$(its-dir-name)
18 its-build-stamp := $(its-dir)/build_stamp
24 $(its-dir): $(its-build-stamp)
28 mkdir -p $(its-dir)
29 $(ACP) -rfp cts/apps/$(its-dir-name)/* $(its-dir)
30 rm $(its-dir)/Android.mk
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dca.conf9 dir = ./rootca
10 certs = $dir/certs
11 crl_dir = $dir/crl
12 new_certs_dir = $dir/newcerts
13 database = $dir/index.txt
14 serial = $dir/serial
15 RANDFILE = $dir/private/.rand
18 private_key = $dir/private/ca.key.pem
19 certificate = $dir/certs/ca.cert.pem
22 crlnumber = $dir/crlnumber
[all …]
/cts/apps/CtsVerifier/
DAndroid.mk17 LOCAL_PATH:= $(call my-dir)
121 $(call intermediates-dir-for,APPS,$(1))/package.apk
141 cts-dir := $(HOST_OUT)/cts-verifier
142 verifier-dir-name := android-cts-verifier
143 verifier-dir := $(cts-dir)/$(verifier-dir-name)
144 verifier-zip-name := $(verifier-dir-name).zip
145 verifier-zip := $(cts-dir)/$(verifier-zip-name)
163 $(verifier-zip) : $(call intermediates-dir-for,APPS,CtsVerifier)/package.apk | $(ACP)
164 $(hide) mkdir -p $(verifier-dir)
165 $(hide) $(ACP) -fp $< $(verifier-dir)/CtsVerifier.apk
[all …]
/cts/hostsidetests/security/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
43 selinux_plat_seapp_contexts := $(call intermediates-dir-for,ETC,plat_seapp_contexts)/plat_seapp_con…
45 selinux_plat_seapp_neverallows := $(call intermediates-dir-for,ETC,plat_seapp_neverallows)/plat_sea…
47 selinux_plat_file_contexts := $(call intermediates-dir-for,ETC,plat_file_contexts)/plat_file_contex…
49 selinux_plat_property_contexts := $(call intermediates-dir-for,ETC,plat_property_contexts)/plat_pro…
51 selinux_plat_service_contexts := $(call intermediates-dir-for,ETC,plat_service_contexts)/plat_servi…
69 selinux_general_policy := $(call intermediates-dir-for,ETC,general_sepolicy.conf)/general_sepolicy.…
77 LOCAL_GENERATED_SOURCES := $(call local-generated-sources-dir)/android/cts/security/SELinuxNeverall…
81 mkdir -p $(dir $@)
/cts/tests/tests/os/src/android/os/cts/
DAbiTest.java41 for (String dir : abiDirs) { in testNo64()
44 if (dir.equals(dirOther)) { in testNo64()
46 } else if (dir.startsWith(dirOther + "/")) { in testNo64()
52 checkElfFilesInDirectory(new File(dir)); in testNo64()
57 private void checkElfFilesInDirectory(File dir) throws Exception { in checkElfFilesInDirectory() argument
58 if (!dir.isDirectory()) { in checkElfFilesInDirectory()
62 if (isSymbolicLink(dir)) { in checkElfFilesInDirectory()
66 File[] files = dir.listFiles(); in checkElfFilesInDirectory()
DFileObserverTest.java36 private void helpSetUp(File dir) throws Exception { in helpSetUp() argument
37 File testFile = new File(dir, TEST_FILE); in helpSetUp()
39 File testDir = new File(dir, TEST_DIR); in helpSetUp()
46 File dir = getContext().getFilesDir(); in setUp() local
47 helpSetUp(dir); in setUp()
49 dir = getContext().getExternalFilesDir(null); in setUp()
50 helpSetUp(dir); in setUp()
53 private void helpTearDown(File dir) throws Exception { in helpTearDown() argument
54 File testFile = new File(dir, TEST_FILE); in helpTearDown()
55 File testDir = new File(dir, TEST_DIR); in helpTearDown()
[all …]
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java99 for (String dir : STANDARD_DIRECTORIES) { in testUserRejects()
100 userRejectsTest(volume, dir); in testUserRejects()
113 private void userRejectsTest(StorageVolume volume, String dir) throws Exception { in userRejectsTest() argument
114 final UiAlertDialog dialog = openExternalDirectoryValidPath(volume, dir); in userRejectsTest()
178 for (String dir : STANDARD_DIRECTORIES) { in testNotAskedAgainOnRoot()
179 sendOpenExternalDirectoryIntent(volume, dir); in testNotAskedAgainOnRoot()
181 + "permission to " + volumeDesc + " and " + dir); in testNotAskedAgainOnRoot()
195 for (String dir : dirs) { in testDeniesOnceButAllowsAskingAgain()
196 if (volume.isPrimary() && dir == DIRECTORY_ROOT) continue; in testDeniesOnceButAllowsAskingAgain()
198 UiAlertDialog dialog = openExternalDirectoryValidPath(volume, dir); in testDeniesOnceButAllowsAskingAgain()
[all …]
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeTestUtils.java34 public static boolean compressDirectory(File dir, File file) throws IOException { in compressDirectory() argument
35 if (dir == null || !dir.exists() || file == null || file.exists()) { in compressDirectory()
39 final File[] srcFiles = dir.listFiles(); in compressDirectory()
71 public static boolean deleteDirectory(File dir) { in deleteDirectory() argument
72 final File files[] = dir.listFiles(); in deleteDirectory()
78 return dir.delete(); in deleteDirectory()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DHoarder.java41 final File dir = new File(args[2]); in main() local
45 doBlocks(dir, false); in main()
48 doInodes(dir, false); in main()
60 public static void doBlocks(File dir, boolean oneshot) throws IOException { in doBlocks() argument
62 while (dir.exists()) { in doBlocks()
63 final File target = makeUniqueFile(dir); in doBlocks()
68 final StructStatVfs stat = Os.statvfs(dir.getAbsolutePath()); in doBlocks()
100 public static void doInodes(File dir, boolean oneshot) throws IOException { in doInodes() argument
102 while (dir.exists()) { in doInodes()
107 final File a = makeUniqueFile(dir); in doInodes()
DStorageTest.java179 final File dir = makeUniqueFile(getContext().getCacheDir()); in testBehaviorNormal() local
180 dir.mkdir(); in testBehaviorNormal()
181 assertFalse(sm.isCacheBehaviorGroup(dir)); in testBehaviorNormal()
182 assertFalse(sm.isCacheBehaviorTombstone(dir)); in testBehaviorNormal()
193 final File dir = makeUniqueFile(getContext().getCacheDir()); in testBehaviorGroup() local
194 dir.mkdir(); in testBehaviorGroup()
195 sm.setCacheBehaviorGroup(dir, true); in testBehaviorGroup()
196 assertTrue(sm.isCacheBehaviorGroup(dir)); in testBehaviorGroup()
207 final File dir = makeUniqueFile(getContext().getCacheDir()); in testBehaviorTombstone() local
208 dir.mkdir(); in testBehaviorTombstone()
[all …]
DUtils.java99 public static File makeUniqueFile(File dir) { in makeUniqueFile() argument
100 return new File(dir, Long.toString(System.nanoTime())); in makeUniqueFile()
131 public static long getSizeManual(File dir) throws Exception { in getSizeManual() argument
132 return getSizeManual(dir, false); in getSizeManual()
135 public static long getSizeManual(File dir, boolean excludeObb) throws Exception { in getSizeManual() argument
136 long size = getAllocatedSize(dir); in getSizeManual()
137 for (File f : dir.listFiles()) { in getSizeManual()
156 public static boolean deleteContents(File dir) { in deleteContents() argument
157 File[] files = dir.listFiles(); in deleteContents()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DBaseBootReceiver.java52 File dir = file.getParentFile(); in exposeFile() local
54 dir.setExecutable(true, false); in exposeFile()
55 dir.setExecutable(true, true); in exposeFile()
56 dir = dir.getParentFile(); in exposeFile()
57 } while (dir != null); in exposeFile()
/cts/tools/vm-tests-tf/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
62 intermediates := $(call local-intermediates-dir)
78 $(LOCAL_BUILT_MODULE): PRIVATE_INTERMEDIATES_CLASSES := $(call intermediates-dir-for,JAVA_LIBRARIES…
84 oj_jar := $(call intermediates-dir-for,JAVA_LIBRARIES,core-oj,,COMMON)/classes.jar
85 libart_jar := $(call intermediates-dir-for,JAVA_LIBRARIES,core-libart,,COMMON)/classes.jar
88 $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
89 …$(hide) mkdir -p $(PRIVATE_INTERMEDIATES_HOSTJUNIT_FILES)/dot/junit $(dir $(PRIVATE_INTERMEDIATES_…
109 $(hide) cd $(dir $@) && zip -q -r $(notdir $@) tests
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceInfo.java68 final File dir = new File(Environment.getExternalStorageDirectory(), "device-info-files"); in makeResultDir() local
69 if (!dir.mkdirs() && !dir.isDirectory()) { in makeResultDir()
72 return dir; in makeResultDir()
80 final File dir; in testCollectDeviceInfo() local
83 } else if ((dir = makeResultDir()) == null) { in testCollectDeviceInfo()
87 File jsonFile = new File(dir, getClass().getSimpleName() + ".deviceinfo.json"); in testCollectDeviceInfo()
DVintfFilesCollector.java53 File dir = DeviceInfo.makeResultDir(); in testCollectVintfFiles() local
54 assertNotNull("Cannot create directory for device info files", dir); in testCollectVintfFiles()
55 collect(dir); in testCollectVintfFiles()
60 private static void collect(File dir) throws Exception { in collect() argument
64 writeStringToFile(content, new File(dir, fileName)); in collect()
DPackageDeviceInfo.java46 String dir = pkg.applicationInfo.sourceDir; in collectDeviceInfo() local
47 store.addResult(SYSTEM_PRIV, dir != null && dir.startsWith(PRIV_APP_DIR)); in collectDeviceInfo()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DMediaStoreSaver.java45 File dir = new File(picDir, folderName); in savePNG() local
46 if (!dir.exists() && !dir.mkdirs()) { in savePNG()
51 File file = File.createTempFile(imageName, ".png", dir); in savePNG()
/cts/hostsidetests/appsecurity/test-apps/NoRestartApp/feature/
DAndroid.mk17 LOCAL_PATH := $(call my-dir)
32 localRStamp := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,COMMON)/src/R.stamp
34 featureOfApk := $(call intermediates-dir-for,APPS,$(featureOf))/package.apk
/cts/hostsidetests/appsecurity/test-apps/SplitApp/feature/
DAndroid.mk17 LOCAL_PATH:= $(call my-dir)
36 featureOfApk := $(call intermediates-dir-for,APPS,$(featureOf))/package.apk
37 localRStamp := $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),,COMMON)/src/R.stamp
/cts/hostsidetests/edi/src/android/edi/cts/
DLibraryDeviceInfo.java60 IFileEntry dir = mDevice.getFileEntry(path); in collectFileDetails() local
62 if(dir == null || !dir.isDirectory()) { in collectFileDetails()
66 for (IFileEntry file : dir.getChildren(false)) { in collectFileDetails()
/cts/tools/utils/
DVogarUtils.java66 public static ExpectationStore provideExpectationStore(String dir) throws IOException { in provideExpectationStore() argument
67 if (dir == null) { in provideExpectationStore()
70 ExpectationStore result = ExpectationStore.parse(getExpectationFiles(dir), ModeId.DEVICE); in provideExpectationStore()
74 private static Set<File> getExpectationFiles(String dir) { in getExpectationFiles() argument
76 File[] files = new File(dir).listFiles(new FilenameFilter() { in getExpectationFiles()
78 public boolean accept(File dir, String name) { in getExpectationFiles()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java441 File dir = new File("/sys/class/xt_idletimer"); in testIdletimerDirectoryExistsAndSane() local
442 assertTrue(dir.isDirectory()); in testIdletimerDirectoryExistsAndSane()
443 assertFalse(dir.canWrite()); in testIdletimerDirectoryExistsAndSane()
444 assertTrue(dir.canExecute()); in testIdletimerDirectoryExistsAndSane()
446 assertFileOwnedBy(dir, "root"); in testIdletimerDirectoryExistsAndSane()
447 assertFileOwnedByGroup(dir, "root"); in testIdletimerDirectoryExistsAndSane()
773 for (String dir : OTHER_RANDOM_DIRECTORIES) { in testOtherRandomDirectoriesNotWritable()
774 File start = new File(dir); in testOtherRandomDirectoriesNotWritable()
789 private static void tryToReadFromAllIn(File dir, ExecutorService executor) throws IOException { in tryToReadFromAllIn() argument
790 assertTrue(dir.isDirectory()); in tryToReadFromAllIn()
[all …]
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java226 public static File buildProbeFile(File dir) { in buildProbeFile() argument
227 return new File(dir, ".probe_" + System.nanoTime()); in buildProbeFile()
230 public static File[] buildCommonChildDirs(File dir) { in buildCommonChildDirs() argument
232 new File(dir, Environment.DIRECTORY_MUSIC), in buildCommonChildDirs()
233 new File(dir, Environment.DIRECTORY_PODCASTS), in buildCommonChildDirs()
234 new File(dir, Environment.DIRECTORY_ALARMS), in buildCommonChildDirs()
235 new File(dir, Environment.DIRECTORY_RINGTONES), in buildCommonChildDirs()
236 new File(dir, Environment.DIRECTORY_NOTIFICATIONS), in buildCommonChildDirs()
237 new File(dir, Environment.DIRECTORY_PICTURES), in buildCommonChildDirs()
238 new File(dir, Environment.DIRECTORY_MOVIES), in buildCommonChildDirs()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DBrowserTest.java219 File dir = file.getParentFile(); in exposeFile() local
221 dir.setExecutable(true, false); in exposeFile()
222 dir.setExecutable(true, true); in exposeFile()
223 dir = dir.getParentFile(); in exposeFile()
224 } while (dir != null); in exposeFile()
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DDeviceReportTest.java93 final File dir = new File(Environment.getExternalStorageDirectory(), "report-log-files"); in testFile() local
94 assertTrue("Report Log directory missing", dir.isDirectory() || dir.mkdirs()); in testFile()
97 File[] files = dir.listFiles(); in testFile()
124 File jsonFile1 = new File(dir, REPORT_NAME_1 + ".reportlog.json"); in testFile()
125 File jsonFile2 = new File(dir, REPORT_NAME_2 + ".reportlog.json"); in testFile()

12345678910>>...38