Home
last modified time | relevance | path

Searched defs:file (Results 1 – 25 of 249) sorted by relevance

12345678910

/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DFilePathAccessTestUtils.java43 public static void assertFileAccess_existsOnly(File file) throws Exception { in assertFileAccess_existsOnly()
48 public static void assertFileAccess_readOnly(File file) throws Exception { in assertFileAccess_readOnly()
53 public static void assertFileAccess_readWrite(File file) throws Exception { in assertFileAccess_readWrite()
68 public static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess()
73 public static void assertCannotReadOrWrite(File file) in assertCannotReadOrWrite()
82 public static void assertCanAccessMyAppFile(File file) in assertCanAccessMyAppFile()
88 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite, in assertAccess()
114 private static void assertAccess(File file, int mask, boolean expected) throws Exception { in assertAccess()
/cts/tests/tests/database/src/android/database/cts/
DSQLiteCantOpenDatabaseExceptionTest.java39 private void callWithExceptedMessage(File file, String expectedMessagePatter) { in callWithExceptedMessage()
55 final File file = getDatabaseFile("nonexisitentdir/mydb.db"); in testDirectoryDoesNotExist() local
62 final File file = getDatabaseFile("mydb.db"); in testFileDoesNotExist() local
69 final File file = getDatabaseFile("mydb.db"); in testFileNotReadable() local
81 final File file = getDatabaseFile("mydb.db"); in testPathIsADirectory() local
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DThumbnailUtilsTest.java111 final File file = stageFile("testmp3.mp3", new File(mDir, "cts.mp3")); in testCreateAudioThumbnail() local
119 final File file = stageFile("monotestmp3.mp3", new File(mDir, "audio.mp3")); in testCreateAudioThumbnail_SeparateFile() local
129 final File file = stageFile("monotestmp3.mp3", new File(mDir, "cts.mp3")); in testCreateAudioThumbnail_None() local
139 final File file = stageFile("volantis.jpg", new File(mDir, "cts.jpg")); in testCreateImageThumbnail() local
157 final File file = stageFile(res, new File(mDir, "cts.jpg")); in testCreateImageThumbnail_sampleWithThumbnail() local
166 final File file = stageFile(res, new File(mDir, "cts.jpg")); in testCreateImageThumbnail_strippedSample() local
180 final File file = stageFile(res, new File(mDir, "cts.heic")); in testCreateImageThumbnail_HEICSample() local
193 final File file = stageFile("sample.avif", new File(mDir, "cts.avif")); in testCreateImageThumbnailAvif() local
202 final File file = stageFile( in testCreateVideoThumbnail() local
210 private static File stageFile(final String res, File file) throws IOException { in stageFile()
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/
DMultiUserStorageTest.java175 private File buildApiObbPath(String file) { in buildApiObbPath()
179 private File buildEnvObbPath(String file) { in buildEnvObbPath()
183 private File buildRawObbPath(String file) { in buildRawObbPath()
187 private static File buildApiPath(String file) { in buildApiPath()
191 private static File buildEnvPath(String file) { in buildEnvPath()
195 private static File buildRawPath(String file) { in buildRawPath()
/cts/tests/tests/os/src/android/os/cts/
DFileAccessPermissionTest.java55 File file = new File("/system"); in testSystemDirAccess() local
84 File file = new File("/system/app"); in testApksAlwaysReadable() local
102 File file = new File("/data/app"); in testAccessAppDataDir() local
181 private void writeFileCheck(File file) { in writeFileCheck()
/cts/tests/tests/security/src/android/security/cts/
DLinuxRngTest.java41 public static native int getCharDeviceMajor(String file) throws IOException; in getCharDeviceMajor()
42 public static native int getCharDeviceMinor(String file) throws IOException; in getCharDeviceMinor()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DBypassDatabaseOperationsTest.java264 final File file = new File(getDcimDir(), IMAGE_FILE_NAME); in testAppDoesntBypassDatabaseOps() local
290 final File file = new File(getDcimDir(), IMAGE_FILE_NAME); in testAppBypassesDatabaseOps() local
298 assertNotNull(MediaStore.scanFile(getContentResolver(), file)); in testAppBypassesDatabaseOps() local
306 assertNull(MediaStore.scanFile(getContentResolver(), file)); in testAppBypassesDatabaseOps() local
320 MediaStore.scanFile(getContentResolver(), file); in testAppBypassesDatabaseOps() local
DScopedStorageDeviceTest.java423 final File file = new File(getExternalFilesDir(), "text.txt"); in testCreateFileInAppExternalDir() local
904 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteContentResolver() local
922 File file = new File(getDcimDir(), displayName); in testOpenContentResolverFirstWriteContentResolver() local
940 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteFilePath() local
958 File file = new File(getDcimDir(), displayName); in testOpenContentResolverFirstWriteFilePath() local
976 File file = new File(getDcimDir(), displayName); in testOpenContentResolverWriteOnly() local
997 File file = new File(getDcimDir(), displayName); in testOpenContentResolverDup() local
1021 File file = new File(getDcimDir(), displayName); in testOpenContentResolverClose() local
1053 File file = new File(getDcimDir(), displayName); in testContentResolverDelete() local
1095 File file = new File(getDcimDir(), "update_modifies_mtime.jpg"); in writeAndCheckMtime() local
[all …]
DFileCreationUtils.java30 protected static void createContentFromResource(int resourceId, File file) throws IOException { in createContentFromResource()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreTrashedTest.java83 final File file = ProviderTestUtils.stageFile(R.drawable.scenery, in testOwned() local
99 final File file = ProviderTestUtils.stageFile(R.drawable.scenery, in testUnowned() local
115 final File file = ProviderTestUtils.stageFile(R.drawable.scenery, in testAtypical() local
123 private void doTrashed(File file, Uri uri) { in doTrashed()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DDataDirPermissionTest.java44 File file = new File(FONT_DATA_DIR); in testDataFontDirPermission() local
57 File file = new File(FONT_DATA_FILES_DIR); in testDataFontFilesDirPermission() local
DFontTest.java73 final File file = new File(ctx.getCacheDir(), prefix + i); in getTempFile() local
86 File file = getTempFile(); in mmap() local
100 private static ByteBuffer mmap(File file) { in mmap()
109 private static boolean copyToFile(File file, InputStream is) { in copyToFile()
113 private static boolean copyToFile(File file, InputStream is, byte[] prepend, byte[] append) { in copyToFile()
276 File file = getTempFile(); in testBuilder_file() local
303 File file = getTempFile(); in testBuilder_file_ttc() local
331 File file = getTempFile(); in testBuilder_file_vf() local
358 File file = getTempFile(); in testBuilder_file_override() local
378 File file = getTempFile(); in testBuilder_file_override() local
[all …]
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DHelper.java48 File file = null; in takeScreenshotAndSave() local
66 File file = null; in dumpsysAndSave() local
81 private static File saveBitmapToFile(Bitmap bitmap, File file) { in saveBitmapToFile()
114 final File file = new File(dir, filename); in createFile() local
/cts/tools/cfassembler/src/dxconvext/util/
DFileUtils.java42 File file = new File(fileName); in readFile() local
53 public static byte[] readFile(File file) { in readFile()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java94 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon() local
111 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testAdaptiveFileIcon() local
183 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon_getType() local
207 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testAdaptiveFileIcon_getType() local
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DRcParser.java43 public RcParser(File file) { in RcParser()
70 String file = service.getFile().substring(1); in getDependencies() local
80 String file = importRc.substring(1); in getDependencies() local
DExeParser.java24 public ExeParser(File file) { in ExeParser()
DOdexParser.java24 public OdexParser(File file) { in OdexParser()
DJarParser.java24 public JarParser(File file) { in JarParser()
DImgParser.java26 public ImgParser(File file) { in ImgParser()
DSymbolicLinkParser.java26 public SymbolicLinkParser(File file) { in SymbolicLinkParser()
/cts/hostsidetests/incrementalinstall/app/v1/src/android/incrementalinstall/incrementaltestapp/
DMainActivity.java55 String file = "dynamicasset.txt"; in loadDynamicAsset() local
57 .getAssets().open(file)) { in loadDynamicAsset()
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/
DResourcesLoaderTestBase.kt106 val file = context.copiedAssetFile("$this.apk") in <lambda>() constant
112 val file = context.copiedAssetFile("$this.apk") in <lambda>() constant
126 val file = context.copiedAssetFile("$this.arsc") in <lambda>() constant
247 val file = File(root, entry.name) in <lambda>() constant
/cts/tests/filesystem/src/android/filesystem/cts/
DFileUtil.java124 public static void writeFile(File file, byte[] data, boolean append) throws IOException { in writeFile()
145 File file = createNewFile(context, dirName); in createNewFilledFile() local
221 private static RWAmount getRWAmount(File file) throws IOException { in getRWAmount()
275 File file = FileUtil.createNewFilledFile(context, in doRandomReadTest() local
332 File file = FileUtil.createNewFilledFile(context, in doRandomWriteTest() local
387 File file = FileUtil.createNewFilledFile(context, in doSequentialUpdateTest() local
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0693/src/android/security/cts/CVE_2021_0693/
DPocActivity.java34 String file = "content://com.android.shell.heapdump/" in onCreate() local

12345678910