Home
last modified time | relevance | path

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

1234567

/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/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/tests/tests/os/src/android/os/cts/
DFileObserverTest.java42 private void helpSetUp(File dir) throws Exception { in helpSetUp() argument
43 File testFile = new File(dir, TEST_FILE); in helpSetUp()
45 File testDir = new File(dir, TEST_DIR); in helpSetUp()
52 File dir = getContext().getFilesDir(); in setUp() local
53 helpSetUp(dir); in setUp()
55 dir = getContext().getCacheDir(); in setUp()
56 helpSetUp(dir); in setUp()
60 dir = getContext().getExternalFilesDir(null); in setUp()
61 helpSetUp(dir); in setUp()
63 dir = Environment.getExternalStorageDirectory(); in setUp()
[all …]
DAbiTest.java42 for (String dir : abiDirs) { in testNo64()
45 if (dir.equals(dirOther)) { in testNo64()
47 } else if (dir.startsWith(dirOther + "/")) { in testNo64()
53 checkElfFilesInDirectory(new File(dir)); in testNo64()
58 private void checkElfFilesInDirectory(File dir) throws Exception { in checkElfFilesInDirectory() argument
59 if (!dir.isDirectory()) { in checkElfFilesInDirectory()
63 if (isSymbolicLink(dir)) { in checkElfFilesInDirectory()
67 File[] files = dir.listFiles(); in checkElfFilesInDirectory()
/cts/apps/CtsVerifier/
DAndroid.mk17 LOCAL_PATH:= $(call my-dir)
134 $(call intermediates-dir-for,APPS,$(1))/package.apk
155 cts-dir := $(HOST_OUT)/cts-verifier
156 verifier-dir-name := android-cts-verifier
157 verifier-dir := $(cts-dir)/$(verifier-dir-name)
158 verifier-zip-name := $(verifier-dir-name).zip
159 verifier-zip := $(cts-dir)/$(verifier-zip-name)
177 $(verifier-zip) : $(call intermediates-dir-for,APPS,CtsVerifier)/package.apk | $(ACP)
178 $(hide) mkdir -p $(verifier-dir)
179 $(hide) $(ACP) -fp $< $(verifier-dir)/CtsVerifier.apk
[all …]
/cts/hostsidetests/security/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
35 selinux_plat_seapp_contexts := $(call intermediates-dir-for,ETC,plat_seapp_contexts)/plat_seapp_con…
37 selinux_plat_seapp_neverallows := $(call intermediates-dir-for,ETC,plat_seapp_neverallows)/plat_sea…
39 selinux_plat_file_contexts := $(call intermediates-dir-for,ETC,plat_file_contexts)/plat_file_contex…
41 selinux_plat_property_contexts := $(call intermediates-dir-for,ETC,plat_property_contexts)/plat_pro…
43 selinux_plat_service_contexts := $(call intermediates-dir-for,ETC,plat_service_contexts)/plat_servi…
62 selinux_general_policy := $(call intermediates-dir-for,ETC,general_sepolicy.conf)/general_sepolicy.…
68 LOCAL_GENERATED_SOURCES := $(call local-generated-sources-dir)/android/cts/security/SELinuxNeverall…
72 mkdir -p $(dir $@)
/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()
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 File[] files = dir.listFiles(); in getSizeManual()
168 public static boolean deleteContents(File dir) { in deleteContents() argument
169 File[] files = dir.listFiles(); in deleteContents()
DStorageTest.java225 final File dir = makeUniqueFile(getContext().getCacheDir()); in testBehaviorNormal() local
226 dir.mkdir(); in testBehaviorNormal()
227 assertFalse(sm.isCacheBehaviorGroup(dir)); in testBehaviorNormal()
228 assertFalse(sm.isCacheBehaviorTombstone(dir)); in testBehaviorNormal()
239 final File dir = makeUniqueFile(getContext().getCacheDir()); in testBehaviorGroup() local
240 dir.mkdir(); in testBehaviorGroup()
241 sm.setCacheBehaviorGroup(dir, true); in testBehaviorGroup()
242 assertTrue(sm.isCacheBehaviorGroup(dir)); in testBehaviorGroup()
253 final File dir = makeUniqueFile(getContext().getCacheDir()); in testBehaviorTombstone() local
254 dir.mkdir(); in testBehaviorTombstone()
[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/tools/vm-tests-tf/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
62 intermediates := $(call local-intermediates-dir)
76 $(call intermediates-dir-for,JAVA_LIBRARIES,cts-vmtests-dot,HOST,COMMON)/classes.jar
79 $(call intermediates-dir-for,JAVA_LIBRARIES,vmtests-generated-resources,HOST)/javalib.jar
81 $(call intermediates-dir-for,JAVA_LIBRARIES,vmtests-mains,,COMMON)/javalib.jar
84 $(LOCAL_BUILT_MODULE): PRIVATE_INTERMEDIATES_CLASSES := $(call intermediates-dir-for,JAVA_LIBRARIES…
91 $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
92 $(hide) mkdir -p $(dir $(PRIVATE_INTERMEDIATES_DEXCORE_JAR))
106 $(hide) cp $(PRIVATE_VMTESTS_MAINS_GENERATED) $(dir $@)/tests/mains.jar
107 $(hide) cd $(dir $@) && zip -q -r $(notdir $@) tests
/cts/hostsidetests/apex/src/android/apex/cts/
DApexTest.java71 for (String dir : builtinDirs) { in testApexType()
72 numFlattenedApexes += countFlattenedApexes(dir); in testApexType()
73 numNonFlattenedApexes += countNonFlattenedApexes(dir); in testApexType()
95 private int countFlattenedApexes(String dir) throws Exception { in countFlattenedApexes() argument
97 "find " + dir + " -type f -name \"apex_manifest.pb\" ! -path \"*" + in countFlattenedApexes()
102 private int countNonFlattenedApexes(String dir) throws Exception { in countNonFlattenedApexes() argument
104 "find " + dir + " -type f -name \"*.apex\" ! -name \"" + in countNonFlattenedApexes()
/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()
88 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()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteGiftTest.java101 for (File dir : getAllPackageSpecificPaths(getContext())) { in testClearingWrite()
102 dir.mkdirs(); in testClearingWrite()
103 new File(dir, "probe").createNewFile(); in testClearingWrite()
104 assertTrue(new File(dir, "probe").exists()); in testClearingWrite()
109 for (File dir : getAllPackageSpecificPaths(getContext())) { in testClearingRead()
110 assertFalse(new File(dir, "probe").exists()); in testClearingRead()
/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/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java509 File dir = new File("/sys/class/xt_idletimer"); in testIdletimerDirectoryExistsAndSane() local
510 assertTrue(dir.isDirectory()); in testIdletimerDirectoryExistsAndSane()
511 assertFalse(dir.canWrite()); in testIdletimerDirectoryExistsAndSane()
512 assertTrue(dir.canExecute()); in testIdletimerDirectoryExistsAndSane()
514 assertFileOwnedBy(dir, "root"); in testIdletimerDirectoryExistsAndSane()
515 assertFileOwnedByGroup(dir, "root"); in testIdletimerDirectoryExistsAndSane()
848 for (String dir : OTHER_RANDOM_DIRECTORIES) { in testOtherRandomDirectoriesNotWritable()
849 File start = new File(dir); in testOtherRandomDirectoriesNotWritable()
865 private static void tryToReadFromAllIn(File dir, ExecutorService executor) throws IOException { in tryToReadFromAllIn() argument
866 assertTrue(dir.isDirectory()); in tryToReadFromAllIn()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutGetLineLeftRightTest.java84 for (TextDirectionHeuristic dir: dirs) { in cases()
86 dir == TextDirectionHeuristics.LTR ? "DIR_LTR" : "DIR_RTL"; in cases()
87 params.add(new Object[] {leadingMargin, align, dirName, dir}); in cases()
95 String dirName, TextDirectionHeuristic dir) { in StaticLayoutGetLineLeftRightTest() argument
98 mDir = dir; in StaticLayoutGetLineLeftRightTest()
125 if (dir == TextDirectionHeuristics.RTL) { in StaticLayoutGetLineLeftRightTest()
132 if (dir == TextDirectionHeuristics.RTL) { in StaticLayoutGetLineLeftRightTest()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java245 public static File buildProbeFile(File dir) { in buildProbeFile() argument
246 return new File(dir, ".probe_" + System.nanoTime()); in buildProbeFile()
249 public static File[] buildCommonChildDirs(File dir) { in buildCommonChildDirs() argument
251 new File(dir, Environment.DIRECTORY_MUSIC), in buildCommonChildDirs()
252 new File(dir, Environment.DIRECTORY_PODCASTS), in buildCommonChildDirs()
253 new File(dir, Environment.DIRECTORY_ALARMS), in buildCommonChildDirs()
254 new File(dir, Environment.DIRECTORY_RINGTONES), in buildCommonChildDirs()
255 new File(dir, Environment.DIRECTORY_NOTIFICATIONS), in buildCommonChildDirs()
256 new File(dir, Environment.DIRECTORY_PICTURES), in buildCommonChildDirs()
257 new File(dir, Environment.DIRECTORY_MOVIES), in buildCommonChildDirs()
[all …]
/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/hostsidetests/backup/ProfileFullBackupApp/src/android/cts/backup/profilefullbackupapp/
DProfileFullBackupRestoreTest.java47 File dir = getTargetContext().getFilesDir(); in setUp() local
48 dir.mkdirs(); in setUp()
50 mFile1 = new File(dir, "file1"); in setUp()
51 mFile2 = new File(dir, "file2"); in setUp()
/cts/tests/tests/dynamic_linker/com/android/dynamiclinker/
DDynamicLinkerTest.java54 File dir = new File(InstrumentationRegistry.getContext().getApplicationInfo().nativeLibraryDir); in testNativeLibraryNotExtracted() local
55 assertTrue(dir.isDirectory()); in testNativeLibraryNotExtracted()
56 assertEquals(0, dir.list().length); in testNativeLibraryNotExtracted()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreTrashedTest.java79 final File dir = ProviderTestUtils.getVolumePath(mVolumeName); in testOwned() local
81 Environment.buildPath(dir, "DCIM", System.nanoTime() + ".jpg")); in testOwned()
95 final File dir = ProviderTestUtils.getVolumePath(mVolumeName); in testUnowned() local
97 Environment.buildPath(dir, "DCIM", System.nanoTime() + ".jpg")); in testUnowned()
111 final File dir = ProviderTestUtils.getVolumePath(mVolumeName); in testAtypical() local
113 Environment.buildPath(dir, "NOT_DCIM", System.nanoTime() + ".jpg")); in testAtypical()
DMediaStorePendingTest.java291 for (String dir : everything) { in testDirectories()
292 params.setPath(dir); in testDirectories()
293 if (allowedAudio.contains(dir)) { in testDirectories()
296 assertNotCreatePending(dir, params); in testDirectories()
303 for (String dir : everything) { in testDirectories()
304 params.setPath(dir); in testDirectories()
305 if (allowedVideo.contains(dir)) { in testDirectories()
308 assertNotCreatePending(dir, params); in testDirectories()
315 for (String dir : everything) { in testDirectories()
316 params.setPath(dir); in testDirectories()
[all …]
/cts/common/device-side/util-axt/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()

1234567