/cts/tests/tests/database/src/android/database/cts/ |
D | SQLiteCantOpenDatabaseExceptionTest.java | 39 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/src/android/media/cts/ |
D | ThumbnailUtilsTest.java | 108 final File file = stageFile("testmp3.mp3", new File(mDir, "cts.mp3")); in testCreateAudioThumbnail() local 116 final File file = stageFile("monotestmp3.mp3", new File(mDir, "audio.mp3")); in testCreateAudioThumbnail_SeparateFile() local 126 final File file = stageFile("monotestmp3.mp3", new File(mDir, "cts.mp3")); in testCreateAudioThumbnail_None() local 136 final File file = stageFile("volantis.jpg", new File(mDir, "cts.jpg")); in testCreateImageThumbnail() local 154 final File file = stageFile(res, new File(mDir, "cts.jpg")); in testCreateImageThumbnail_sampleWithThumbnail() local 163 final File file = stageFile(res, new File(mDir, "cts.jpg")); in testCreateImageThumbnail_strippedSample() local 177 final File file = stageFile(res, new File(mDir, "cts.heic")); in testCreateImageThumbnail_HEICSample() local 190 final File file = stageFile("sample.avif", new File(mDir, "cts.avif")); in testCreateImageThumbnailAvif() local 199 final File file = stageFile( in testCreateVideoThumbnail() local 207 private static File stageFile(final String res, File file) throws IOException { in stageFile()
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
D | MultiUserStorageTest.java | 175 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/ |
D | FileAccessPermissionTest.java | 55 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/ |
D | LinuxRngTest.java | 41 public static native int getCharDeviceMajor(String file) throws IOException; in getCharDeviceMajor() 42 public static native int getCharDeviceMinor(String file) throws IOException; in getCharDeviceMinor()
|
D | HwRngTest.java | 124 private static String readyFullyAsciiFile(File file) throws IOException { in readyFullyAsciiFile() 144 private static Map<String, String> parseUeventFile(File file) throws IOException { in parseUeventFile()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | BypassDatabaseOperationsTest.java | 264 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
|
D | ScopedStorageDeviceTest.java | 406 final File file = new File(getExternalFilesDir(), "text.txt"); in testCreateFileInAppExternalDir() local 887 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteContentResolver() local 905 File file = new File(getDcimDir(), displayName); in testOpenContentResolverFirstWriteContentResolver() local 923 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteFilePath() local 941 File file = new File(getDcimDir(), displayName); in testOpenContentResolverFirstWriteFilePath() local 959 File file = new File(getDcimDir(), displayName); in testOpenContentResolverWriteOnly() local 980 File file = new File(getDcimDir(), displayName); in testOpenContentResolverDup() local 1006 File file = new File(getDcimDir(), displayName); in testOpenContentResolverClose() local 1037 File file = new File(getDcimDir(), displayName); in testContentResolverDelete() local 1284 File file = new File(getDcimDir(), "app_update.jpg"); in testAppUpdateInvalidation() local [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStoreTrashedTest.java | 83 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/ |
D | DataDirPermissionTest.java | 44 File file = new File(FONT_DATA_DIR); in testDataFontDirPermission() local 57 File file = new File(FONT_DATA_FILES_DIR); in testDataFontFilesDirPermission() local
|
D | FontTest.java | 73 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/tools/cfassembler/src/dxconvext/util/ |
D | FileUtils.java | 42 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/ |
D | IconTest.java | 94 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/hostsidetests/incrementalinstall/app/v1/src/android/incrementalinstall/incrementaltestapp/ |
D | MainActivity.java | 55 String file = "dynamicasset.txt"; in loadDynamicAsset() local 57 .getAssets().open(file)) { in loadDynamicAsset()
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 963 private static void assertCanQueryAndOpenFile(File file, String mode) throws IOException { in assertCanQueryAndOpenFile() 975 private static void assertCanCreateFile(File file) throws IOException { in assertCanCreateFile() 989 private static void assertFileAccess_existsOnly(File file) throws Exception { in assertFileAccess_existsOnly() 994 private static void assertFileAccess_readOnly(File file) throws Exception { in assertFileAccess_readOnly() 999 private static void assertFileAccess_readWrite(File file) throws Exception { in assertFileAccess_readWrite() 1014 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() 1019 private static void assertCannotReadOrWrite(File file) in assertCannotReadOrWrite() 1028 private static void assertCanAccessMyAppFile(File file) in assertCanAccessMyAppFile() 1034 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite, in assertAccess() 1060 private static void assertAccess(File file, int mask, boolean expected) throws Exception { in assertAccess() [all …]
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | RcParser.java | 43 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
|
D | ExeParser.java | 24 public ExeParser(File file) { in ExeParser()
|
D | JarParser.java | 24 public JarParser(File file) { in JarParser()
|
D | OdexParser.java | 24 public OdexParser(File file) { in OdexParser()
|
D | ImgParser.java | 26 public ImgParser(File file) { in ImgParser()
|
D | SymbolicLinkParser.java | 26 public SymbolicLinkParser(File file) { in SymbolicLinkParser()
|
/cts/tests/filesystem/src/android/filesystem/cts/ |
D | FileUtil.java | 124 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/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 316 public static boolean canOpenFileAs(TestApp testApp, File file, boolean forWrite) in canOpenFileAs() 342 public static boolean checkDatabaseRowExistsAs(TestApp testApp, File file) throws Exception { in checkDatabaseRowExistsAs() 539 public static ParcelFileDescriptor openFileAs(TestApp testApp, File file, boolean forWrite) in openFileAs() 631 public static Uri insertFileUsingDataColumn(@NonNull File file) { in insertFileUsingDataColumn() 663 public static Uri getFileUri(@NonNull File file) { in getFileUri() 673 public static int getFileRowIdFromDatabase(@NonNull File file) { in getFileRowIdFromDatabase() 681 public static int getFileRowIdFromDatabase(ContentResolver cr, @NonNull File file) { in getFileRowIdFromDatabase() 683 try (Cursor c = queryFile(cr, file, MediaStore.MediaColumns._ID)) { in getFileRowIdFromDatabase() argument 696 public static String getFileOwnerPackageFromDatabase(@NonNull File file) { in getFileOwnerPackageFromDatabase() 711 public static int getFileSizeFromDatabase(@NonNull File file) { in getFileSizeFromDatabase() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0693/src/android/security/cts/CVE_2021_0693/ |
D | PocActivity.java | 34 String file = "content://com.android.shell.heapdump/" in onCreate() local
|
/cts/suite/audio_quality/lib/src/audio/ |
D | Buffer.cpp | 91 std::ifstream file(filename.string(), std::ios::in | std::ios::binary | in loadFromFile() local 116 std::ofstream file(filenameWithExtension.string(), std::ios::out | std::ios::binary | in saveToFile() local
|