Home
last modified time | relevance | path

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

12

/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java64 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testSynthesizeToFile()
79 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testSynthesizeToFileWithFileObject()
99 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testSynthesizeToFileWithFileDescriptor()
122 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testMaxSpeechInputLength()
202 File sampleFile = new File(getContext().getExternalFilesDir(null), "notsound.wav"); in testMediaPlayerFails()
215 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testAddPlayEarcon()
232 File sampleFile = new File(getContext().getExternalFilesDir(null), SAMPLE_FILE_NAME); in testAddPlaySpeech()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageBaseDeviceTest.java19 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir;
56 getExternalFilesDir().mkdirs(); in setupStorage()
DScopedStorageDeviceTest.java58 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir;
406 final File file = new File(getExternalFilesDir(), "text.txt"); in testCreateFileInAppExternalDir()
433 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testCreateFileInOtherAppExternalDir()
444 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testCreateFileInOtherAppExternalDir()
458 final File videoFile = new File(getExternalFilesDir(), VIDEO_FILE_NAME); in testReadWriteFilesInOtherAppExternalDir()
521 final File externalFilesDir = getExternalFilesDir(); in testCreateAndDeleteEmptyDir()
652 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "no.such.package")); in testOpendirRestrictions()
657 getExternalFilesDir().getPath().replace(THIS_PACKAGE_NAME, "com.android.shell")); in testOpendirRestrictions()
661 final String[] filesList = getExternalFilesDir().list(); in testOpendirRestrictions()
796 final File nonmediaFile = new File(getExternalFilesDir(), NONMEDIA_FILE_NAME); in testListFilesFromExternalFilesDirectory()
[all …]
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java74 mContext.getExternalFilesDir("").getParentFile().getAbsolutePath()); in testCanNotAccessAppAExternalDirs()
83 mContext.getExternalFilesDir("").getAbsolutePath()); in testCanAccessAppAExternalDirs()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/
DAppATests.java104 File externalFilesDir = mContext.getExternalFilesDir(""); in setUpExternalStoragePaths()
106 mExternalDataPath = mContext.getExternalFilesDir("").getAbsolutePath(); in setUpExternalStoragePaths()
176 assertNull(mContext.getExternalFilesDir("")); in testAppAExternalDirsUnavailable()
222 mContext.getExternalFilesDir("").getParentFile().getAbsolutePath()); in testCanNotAccessAppBExternalDirs()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java61 dir = getContext().getExternalFilesDir(null); in setUp()
101 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/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java41 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir;
145 getExternalFilesDir().mkdirs(); in setup()
205 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testManageExternalStorageCantReadWriteOtherAppExternalDir()
299 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testAccess_directory()
323 getExternalFilesDir().getAbsolutePath())).isFalse(); in testAccess_directory()
324 assertCanAccessMyAppFile(getExternalFilesDir()); in testAccess_directory()
712 final File otherAppExternalDataDir = new File(getExternalFilesDir().getPath().replace( in testNoIsolatedStorageCantReadWriteOtherAppExternalDir()
911 assertThat(getExternalFilesDir()).isNotNull(); in testInstantAppsCantAccessExternalStorage()
914 assertThat(getExternalFilesDir().list()).isNull(); in testInstantAppsCantAccessExternalStorage()
915 assertThat(getExternalFilesDir().exists()).isFalse(); in testInstantAppsCantAccessExternalStorage()
/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/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/tests/camera/src/android/hardware/multiprocess/camera/cts/
DMediaRecorderCameraActivity.java64 : getExternalFilesDir(null); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java378 getContext().getExternalFilesDir(null), in testExternalStorageRename()
379 getContext().getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), in testExternalStorageRename()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java162 String outputFolder = mActivity.getExternalFilesDir(null).getAbsolutePath(); in testAnimationOnLayer()
316 String outputFolder = mActivity.getExternalFilesDir(null).getAbsolutePath(); in testInfiniteAVD()
DDrawableTestUtils.java236 String outputFolder = context.getExternalFilesDir(null).getAbsolutePath(); in saveAutoNamedVectorDrawableIntoPNG()
DAdaptiveIconDrawableTest.java155 File dir = context.getExternalFilesDir(null); in testDrawWithoutSetBounds()
185 File dir = context.getExternalFilesDir(null); in testDrawSetBounds()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java431 final String androidDataDir = getExternalFilesDir().toString(); in verifyInsertFromExternalPrivateDirViaRelativePath_denied()
462 final String androidDataDir = getExternalFilesDir().toString(); in verifyInsertFromExternalPrivateDirViaData_denied()
494 final String androidDataDir = getExternalFilesDir().toString(); in verifyUpdateToExternalDirsViaData_denied()
527 final String androidDataDir = getExternalFilesDir().toString(); in verifyUpdateToExternalPrivateDirsViaRelativePath_denied()
1186 public static File getExternalFilesDir() { in getExternalFilesDir() method in TestUtils
1189 if (!res.equals(getContext().getExternalFilesDir(null))) { in getExternalFilesDir()
1721 String[] parts = getExternalFilesDir().getAbsolutePath().split("/"); in assertVolumeType()
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java40 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir;
192 assertCanCreateFile(new File(TestUtils.getExternalFilesDir(), in testCreateFilesInRandomPlaces_hasW()
278 new File(TestUtils.getExternalFilesDir(), in testCantAccessExternalStorage()
954 final String androidDataDir = getExternalFilesDir().toString(); in testInsertFromExternalDirsViaData()
988 final String androidDataDir = getExternalFilesDir().toString(); in testUpdateToExternalDirsViaData()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtils.java68 useWrite(makeUniqueFile(c.getExternalFilesDir("meow")), 7 * MB_IN_BYTES); in useSpace()
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java200 File directory = mContext.getExternalFilesDir(null); in writeSignature()
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DIncludeExcludeTest.java96 File externalDir = mContext.getExternalFilesDir(null); in setupFiles()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationOnScreenTests.java172 String path = mContext.getExternalFilesDir(null).getPath(); in findTestColorsInScreenshot()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppTest.java279 File filesDir = sContext.getExternalFilesDir(/* type= */ null); in writeApkFile_writesFile()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java189 getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES), "test.jpg"); in testVerifyStatsExternal()
263 manualSize += getSizeManual(getContext().getExternalFilesDir(null), true); in testVerifyStatsExternalConsistent()
/cts/tests/tests/libcorefileio/src/android/cts/
DFileChannelInterProcessLockTest.java702 File dir = new File(context.getExternalFilesDir(null), DIR_NAME);
717 File dir = new File(context.getExternalFilesDir(null), DIR_NAME);
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2ConcurrentAndroidTestCase.java104 : mContext.getExternalFilesDir(null); in setUp()

12