/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechServiceTest.java | 64 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/ |
D | ScopedStorageBaseDeviceTest.java | 19 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir; 56 getExternalFilesDir().mkdirs(); in setupStorage()
|
D | ScopedStorageDeviceTest.java | 58 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/ |
D | AppBTests.java | 74 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/ |
D | AppATests.java | 104 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/ |
D | FileObserverTest.java | 61 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/ |
D | ScopedStorageTest.java | 41 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/ |
D | DownloadManagerTest.java | 240 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/ |
D | CommonExternalStorageTest.java | 85 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()
|
D | ExternalStorageTest.java | 131 getContext().getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), "meow"); in testDownloadManagerPackage()
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | MediaRecorderCameraActivity.java | 64 : getExternalFilesDir(null); in onCreate()
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteExternalStorageTest.java | 378 getContext().getExternalFilesDir(null), in testExternalStorageRename() 379 getContext().getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), in testExternalStorageRename()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedVectorDrawableParameterizedTest.java | 162 String outputFolder = mActivity.getExternalFilesDir(null).getAbsolutePath(); in testAnimationOnLayer() 316 String outputFolder = mActivity.getExternalFilesDir(null).getAbsolutePath(); in testInfiniteAVD()
|
D | DrawableTestUtils.java | 236 String outputFolder = context.getExternalFilesDir(null).getAbsolutePath(); in saveAutoNamedVectorDrawableIntoPNG()
|
D | AdaptiveIconDrawableTest.java | 155 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/ |
D | TestUtils.java | 431 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/ |
D | LegacyStorageTest.java | 40 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/ |
D | Utils.java | 68 useWrite(makeUniqueFile(c.getExternalFilesDir("meow")), 7 * MB_IN_BYTES); in useSpace()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PackageSignatureTest.java | 200 File directory = mContext.getExternalFilesDir(null); in writeSignature()
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | IncludeExcludeTest.java | 96 File externalDir = mContext.getExternalFilesDir(null); in setupFiles()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | LocationOnScreenTests.java | 172 String path = mContext.getExternalFilesDir(null).getPath(); in findTestColorsInScreenshot()
|
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppTest.java | 279 File filesDir = sContext.getExternalFilesDir(/* type= */ null); in writeApkFile_writesFile()
|
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/ |
D | StorageStatsTest.java | 189 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/ |
D | FileChannelInterProcessLockTest.java | 702 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/ |
D | Camera2ConcurrentAndroidTestCase.java | 104 : mContext.getExternalFilesDir(null); in setUp()
|