Home
last modified time | relevance | path

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

1234567891011

/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.java57 File file = new File("/system"); in testSystemDirAccess() local
86 File file = new File("/system/app"); in testApksAlwaysReadable() local
104 File file = new File("/data/app"); in testAccessAppDataDir() local
183 private void writeFileCheck(File file) { in writeFileCheck()
DParcelFileDescriptorTest.java117 final File file = File.createTempFile("testReadOnly", "bin"); in testReadOnly() local
131 final File file = File.createTempFile("testNormal", "bin"); in testNormal() local
139 final File file = File.createTempFile("testAppend", "bin"); in testAppend() local
148 final File file = File.createTempFile("testTruncate", "bin"); in testTruncate() local
155 private void doMultiWrite(File file, int flags) throws Exception { in doMultiWrite()
406 final ParcelFileDescriptor file = ParcelFileDescriptor.open( in testFileNormal() local
422 final ParcelFileDescriptor file = ParcelFileDescriptor.open( in testFileError() local
438 final ParcelFileDescriptor file = ParcelFileDescriptor.open( in testFileDetach() local
516 final File file = File.createTempFile("treble_clef_\ud834\udd1e", ".tmp"); in testFileNamesWithNonBmpChars() local
627 File file = File.createTempFile("testParcelFileDescriptor", "bin"); in makeParcelFileDescriptor() local
/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/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/
DBypassDatabaseOperationsTest.java232 final File file = new File(getDcimDir(), IMAGE_FILE_NAME); in testAppDoesntBypassDatabaseOps() local
258 final File file = new File(getDcimDir(), IMAGE_FILE_NAME); in testAppBypassesDatabaseOps() local
266 assertNotNull(MediaStore.scanFile(getContentResolver(), file)); in testAppBypassesDatabaseOps() local
274 assertNull(MediaStore.scanFile(getContentResolver(), file)); in testAppBypassesDatabaseOps() local
288 MediaStore.scanFile(getContentResolver(), file); in testAppBypassesDatabaseOps() local
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreTrashedTest.java81 final File file = MediaProviderTestUtils.stageFile(R.drawable.scenery, in testOwned() local
97 final File file = MediaProviderTestUtils.stageFile(R.drawable.scenery, in testUnowned() local
113 final File file = MediaProviderTestUtils.stageFile(R.drawable.scenery, in testAtypical() local
121 private void doTrashed(File file, Uri uri) { in doTrashed()
DMediaProviderTestUtils.java121 public static File waitUntilExists(File file) throws IOException { in waitUntilExists()
161 public static File stageFile(int resId, File file) throws IOException { in stageFile()
225 public static Uri scanFile(File file) throws Exception { in scanFile()
232 public static Uri scanFileFromShell(File file) throws Exception { in scanFileFromShell()
301 public static void assertExists(File file) throws IOException { in assertExists()
319 public static void assertNotExists(File file) throws IOException { in assertNotExists()
386 public static String getRawFileHash(File file) throws Exception { in getRawFileHash()
/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.java103 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon() local
120 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testAdaptiveFileIcon() local
192 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon_getType() local
216 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()
DJarParser.java24 public JarParser(File file) { in JarParser()
DOdexParser.java24 public OdexParser(File file) { in OdexParser()
DImgParser.java26 public ImgParser(File file) { in ImgParser()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java427 final File file = new File(getExternalFilesDir(), "text.txt"); in testCreateFileInAppExternalDir() local
908 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteContentResolver() local
926 File file = new File(getDcimDir(), displayName); in testOpenContentResolverFirstWriteContentResolver() local
944 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteFilePath() local
962 File file = new File(getDcimDir(), displayName); in testOpenContentResolverFirstWriteFilePath() local
980 File file = new File(getDcimDir(), displayName); in testOpenContentResolverWriteOnly() local
1001 File file = new File(getDcimDir(), displayName); in testOpenContentResolverDup() local
1025 File file = new File(getDcimDir(), displayName); in testOpenContentResolverClose() local
1057 File file = new File(getDcimDir(), displayName); in testContentResolverDelete() local
1099 File file = new File(getDcimDir(), "update_modifies_mtime.jpg"); in writeAndCheckMtime() local
[all …]
/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/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/
DFileUtils.java124 File file = new File(path, name); in assertFileExists() local
129 File file = new File(path, name); in touchFile() local
134 File file = new File(path, name); in deleteFile() local
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DAppCloningDeviceTest.java56 final File file = new File(dir, getFileToBeCreatedName()); in testInsertFilesInDirectoryViaMediaProvider() local
69 final File file = new File(dir, getFileToBeCreatedName()); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified() local

1234567891011