Home
last modified time | relevance | path

Searched refs:getExternalFilesDir (Results 1 – 25 of 51) sorted by relevance

123

/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DScopedStorageBaseDeviceTest.java19 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir;
49 getExternalFilesDir().mkdirs(); in setupStorage()
DTestUtils.java576 final String androidDataDir = getExternalFilesDir().toString(); in verifyInsertFromExternalPrivateDirViaRelativePath_denied()
603 final String androidDataDir = getExternalFilesDir().toString(); in verifyInsertFromExternalPrivateDirViaData_denied()
632 final String androidDataDir = getExternalFilesDir().toString(); in verifyUpdateToExternalDirsViaData_denied()
663 final String androidDataDir = getExternalFilesDir().toString(); in verifyUpdateToExternalPrivateDirsViaRelativePath_denied()
1249 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in assertCantInsertToOtherPrivateAppDirectories()
1323 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in assertCantUpdateToOtherPrivateAppDirectories()
1662 public static File getExternalFilesDir() { in getExternalFilesDir() method in TestUtils
1665 if (!res.equals(getContext().getExternalFilesDir(null))) { in getExternalFilesDir()
2297 String[] parts = getExternalFilesDir().getAbsolutePath().split("/"); in assertVolumeType()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java104 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testSynthesizeToFile()
119 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testSynthesizeToFileWithFileObject()
139 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testSynthesizeToFileWithFileDescriptor()
162 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testMaxSpeechInputLength()
243 File sampleFile = new File(getContext().getExternalFilesDir(null), "notsound.wav"); in testMediaPlayerFails()
256 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testAddPlayEarcon()
274 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testAddPlaySpeech()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java71 mContext.getExternalFilesDir("").getParentFile().getAbsolutePath()); in testCanNotAccessAppAExternalDirs()
80 mContext.getExternalFilesDir("").getAbsolutePath()); in testCanAccessAppAExternalDirs()
/cts/hostsidetests/packagemanager/deletekeepdata/app/src/com/android/tests/deletekeepdata/app/
DDeleteKeepDataDeviceTest.java66 final File externalFile = new File(mContext.getExternalFilesDir(null), TEST_FILE_NAME); in testWriteData()
107 new File(mContext.getExternalFilesDir(null), TEST_FILE_NAME))) { in readExternalDataFile()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java63 dir = getContext().getExternalFilesDir(null); in setUp()
103 dir = getContext().getExternalFilesDir(null); in tearDown()
261 helpTestFileObserver(getContext().getExternalFilesDir(null), true); in testFileObserverExternal()
274 Pair.create(getContext().getExternalFilesDir(null), true), in testFileObserver_multipleFilesFull()
/cts/tests/tests/security/src/android/security/cts/
DWallpaperManagerTest.java152 File png = new File(mContext.getExternalFilesDir(null) + "/exploit.png"); in unZipMaliciousImageFile()
163 File file = new File(mContext.getExternalFilesDir( in unZipMaliciousImageFile()
DFileIntegrityManagerTest.java252 new File(mContext.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), FILENAME), in newUnsupportedFiles()
253 new File(mContext.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS), FILENAME))); in newUnsupportedFiles()
/cts/hostsidetests/appsecurity/test-apps/NoDataStorageApp/src/com/android/cts/noappstorage/
DNoAppDataStorageTest.java73 File dir = mCeContext.getExternalFilesDir(type); in testNoExternalStorage()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java240 File uriLocation = new File(mContext.getExternalFilesDir(null), "uriFile.bin"); in testDownloadManagerDestination()
243 File extFileLocation = new File(mContext.getExternalFilesDir(null), "extFile.bin"); in testDownloadManagerDestination()
292 File noExtLocation = new File(mContext.getExternalFilesDir(null), noExt); in testDownloadManagerDestinationExtension()
296 File wrongExtLocation = new File(mContext.getExternalFilesDir(null), wrongExt); in testDownloadManagerDestinationExtension()
522 File uriLocation = new File(mContext.getExternalFilesDir(null), "uriFile.bin"); in testDownloadNotVisibleInUi()
553 final File file = createFile(mContext.getExternalFilesDir(null), "colors.txt"); in testAddCompletedDownload()
648 new File(mContext.getExternalFilesDir(null), "test_file.mp4").getPath(), in testAddCompletedDownload_invalidPaths()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java50 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir;
181 getExternalFilesDir().mkdirs(); in setup()
276 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testManageExternalStorageCantReadWriteOtherAppExternalDir()
565 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testAccess_directory()
590 getExternalFilesDir().getAbsolutePath())).isFalse(); in testAccess_directory()
591 assertCanAccessMyAppFile(getExternalFilesDir()); in testAccess_directory()
994 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testNoIsolatedStorageCantReadWriteOtherAppExternalDir()
1197 assertThat(getExternalFilesDir()).isNotNull(); in testInstantAppsCantAccessExternalStorage()
1200 assertThat(getExternalFilesDir().list()).isNull(); in testInstantAppsCantAccessExternalStorage()
1201 assertThat(getExternalFilesDir().exists()).isFalse(); in testInstantAppsCantAccessExternalStorage()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java85 final File single = getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES); in testMultipleFilesDirs()
200 Collections.addAll(paths, context.getExternalFilesDir(null)); in getPrimaryPackageSpecificPathsExceptMedia()
208 Collections.addAll(paths, context.getExternalFilesDir(null)); in getPrimaryPackageSpecificPaths()
209 Collections.addAll(paths, context.getExternalFilesDir(Environment.DIRECTORY_PICTURES)); in getPrimaryPackageSpecificPaths()
DExternalStorageTest.java131 getContext().getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), "meow"); in testDownloadManagerPackage()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/
DAppATests.java115 File externalFilesDir = mContext.getExternalFilesDir(""); in setUpExternalStoragePaths()
196 assertNull(mContext.getExternalFilesDir("")); in testAppAExternalDirsUnavailable()
245 mContext.getExternalFilesDir("").getParentFile().getAbsolutePath()); in testCanNotAccessAppBExternalDirs()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DMediaRecorderCameraActivity.java64 : getExternalFilesDir(null); in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-0032/src/android/security/cts/CVE_2024_0032/
DDeviceTest.java112 File subdirectory = new File(context.getExternalFilesDir(null), subdirectoryName); in createSubDirectory()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java382 getContext().getExternalFilesDir(null), in testExternalStorageRename()
383 getContext().getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), in testExternalStorageRename()
/cts/hostsidetests/appcloning/test-apps/AppCloningStorageStatsTest/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java74 mContext.getExternalFilesDir(Environment.DIRECTORY_PICTURES), "test.jpg"); in testVerifyStatsExternal()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java169 String outputFolder = mActivity.getExternalFilesDir(null).getAbsolutePath(); in testAnimationOnLayer()
323 String outputFolder = mActivity.getExternalFilesDir(null).getAbsolutePath(); in testInfiniteAVD()
DAdaptiveIconDrawableTest.java171 File dir = context.getExternalFilesDir(null); in testDrawWithoutSetBounds()
201 File dir = context.getExternalFilesDir(null); in testDrawSetBounds()
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java43 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir;
202 assertCanCreateFile(new File(TestUtils.getExternalFilesDir(), in testCreateFilesInRandomPlaces_hasW()
288 new File(TestUtils.getExternalFilesDir(), in testCantAccessExternalStorage()
1097 final String androidDataDir = getExternalFilesDir().toString(); in testInsertFromExternalDirsViaData()
1131 final String androidDataDir = getExternalFilesDir().toString(); in testUpdateToExternalDirsViaData()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtils.java73 useWrite(makeUniqueFile(c.getExternalFilesDir("meow")), 7 * MB_IN_BYTES); in useSpace()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java62 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir;
427 final File file = new File(getExternalFilesDir(), "text.txt"); in testCreateFileInAppExternalDir()
454 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testCreateFileInOtherAppExternalDir()
465 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testCreateFileInOtherAppExternalDir()
479 final File videoFile = new File(getExternalFilesDir(), VIDEO_FILE_NAME); in testReadWriteFilesInOtherAppExternalDir()
542 final File externalFilesDir = getExternalFilesDir(); in testCreateAndDeleteEmptyDir()
673 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testOpendirRestrictions()
678 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testOpendirRestrictions()
682 final String[] filesList = getExternalFilesDir().list(); in testOpendirRestrictions()
817 final File nonmediaFile = new File(getExternalFilesDir(), NONMEDIA_FILE_NAME); in testListFilesFromExternalFilesDirectory()
[all …]
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java153 File externalFilesDir = mContext.getExternalFilesDir(null); in testMinSharedDataPartitionSize()
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DIncludeExcludeTest.java96 File externalDir = mContext.getExternalFilesDir(null); in setupFiles()

123