Home
last modified time | relevance | path

Searched refs:getFilesDir (Results 1 – 25 of 79) sorted by relevance

1234

/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadSessionTest.java105 File tempFileRootDirectory = new File(mContext.getFilesDir(), tempFileDirName); in testSetTempFileDirectory()
119 File tempFileRootDirectory = new File(mContext.getFilesDir(), "NNN-DoesNotExist"); in testSetInvalidTempFileRoot()
129 tempFileRootDirectory = new File(mContext.getFilesDir(), "this-is-a-file.dat"); in testSetInvalidTempFileRoot()
140 mDownloadSession.setTempFileRootDirectory(mContext.getFilesDir()); in testSetInvalidTempFileRoot()
203 File tempFileRootDir = new File(mContext.getFilesDir(), "CtsTestDir"); in testListPendingDownloads()
218 File tempFileRootDirectory = new File(mContext.getFilesDir(), tempFileDirName); in testSetTempFileDirFailure()
DDownloadRequestTest.java48 File destinationDirectory = new File(getInstrumentation().getContext().getFilesDir(), in testBuilderConstruction()
61 File destinationDirectory = new File(getInstrumentation().getContext().getFilesDir(), in testServiceIdEquivalency()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DOutOfProcessLoginActivity.java102 return new File(context.getFilesDir(), "stopped"); in getStoppedMarker()
112 return new File(context.getFilesDir(), "started"); in getStartedMarker()
122 return new File(context.getFilesDir(), "destroyed"); in getDestroyedMarker()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java51 File dir = getContext().getFilesDir(); in setUp()
86 File dir = getContext().getFilesDir(); in tearDown()
158 dir = getContext().getFilesDir(); in helpTestFileObserver()
241 helpTestFileObserver(getContext().getFilesDir(), false); in testFileObserver()
253 Pair.create(getContext().getFilesDir(), false), in testFileObserver_multipleFilesFull()
262 Pair.create(getContext().getFilesDir(), false) in testFileObserver_multipleFilesInstant()
/cts/hostsidetests/testharness/app/src/android/testharness/app/
DTestHarnessActivity.java68 Path dirtyFile = getFilesDir().toPath().resolve(DIRTY_DEVICE_FILENAME); in dirtyDevice()
76 return !Files.exists(getFilesDir().toPath().resolve(DIRTY_DEVICE_FILENAME)); in isDeviceClean()
/cts/hostsidetests/userspacereboot/testapps/BasicTestApp/src/com/android/cts/userspacereboot/basic/
DBasicUserspaceRebootTest.java138 de.getFilesDir(), Intent.ACTION_LOCKED_BOOT_COMPLETED.toLowerCase()); in query()
140 de.getFilesDir(), Intent.ACTION_BOOT_COMPLETED.toLowerCase()); in query()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java153 File imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromPath()
175 File imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromIncomplete()
224 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); in testCreateFromStream()
234 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromStream()
268 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromStream2()
301 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); in testCreateFromResourceStream1()
312 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromResourceStream1()
351 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); in testCreateFromResourceStream2()
362 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromResourceStream2()
DIconTest.java87 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon()
153 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon_getType()
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/
DKeyValueBackupRestoreTest.java233 File file = new File(mContext.getFilesDir(), TEST_FILE_1); in saveSharedPreferencesValues()
239 file = new File(mContext.getFilesDir(), TEST_FILE_2); in saveSharedPreferencesValues()
272 scanner = new Scanner(new File(mContext.getFilesDir(), fileName)); in readFileContent()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DOutOfProcessActivity.java103 return new File(context.getFilesDir(), "stopped"); in getStoppedMarker()
113 return new File(context.getFilesDir(), "started"); in getStartedMarker()
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java141 File appDataDir = getContext().getFilesDir(); in appDataContext()
149 File appDataDir = getContext().getFilesDir(); in canExecuteFromHomeDir()
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOActivity.java31 File testFile = new File(getFilesDir(), "StoragedTest_Temp_FG"); in onStart()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtils.java65 useWrite(makeUniqueFile(c.getFilesDir()), 2 * MB_IN_BYTES); in useSpace()
71 useFallocate(makeUniqueFile(c.getFilesDir()), 13 * MB_IN_BYTES); in useSpace()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DSplitAppTest.java448 final StructStat actual = Os.stat(getContext().getFilesDir().getAbsolutePath()); in testDataInternal()
457 final StructStat actual = Os.stat(getContext().getFilesDir().getAbsolutePath()); in testDataNotInternal()
510 final File current = getContext().getFilesDir(); in testPrimaryOnSameVolume()
523 assertTrue(new File(getContext().getFilesDir(), "normal.raw").createNewFile()); in testCodeCacheWrite()
528 assertTrue(new File(getContext().getFilesDir(), "normal.raw").exists()); in testCodeCacheRead()
DBaseBootReceiver.java34 final File probe = new File(context.getFilesDir(), in onReceive()
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java167 mContext.getFilesDir(), in testMinDataPartitionSize()
171 "Application data", mContext.getFilesDir(), MIN_APP_DATA_PARTITION_SIZE_GB); in testMinDataPartitionSize()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DMediaStoreSaver.java42 picDir = mContext.getFilesDir(); in savePNG()
/cts/tests/backup/app/src/android/backup/app/
DMainActivity.java69 File f = new File(getFilesDir().getAbsolutePath(), FILE_NAME); in createFile()
DKeyValueBackupAgent.java48 File testFile = new File(getFilesDir(), MainActivity.FILE_NAME); in onBackup()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseOutputStreamTest.java55 File file = new File(getContext().getFilesDir(), FILE_NAME); in testAutoCloseOutputStream()
/cts/tests/tests/security/src/android/security/cts/
DMediaRecorderInfoLeakTest.java54 new File(getContext().getFilesDir(), "record.output").getPath()); in test_cve_2016_2499()
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/
DProcessUserData.java84 File versionFile = new File(context.getFilesDir(), "version.txt"); in processUserData()
/cts/tests/tests/util/src/android/util/cts/
DPrintStreamPrinterTest.java48 mFile = new File(InstrumentationRegistry.getTargetContext().getFilesDir(), in setup()
/cts/hostsidetests/backup/ProfileFullBackupApp/src/android/cts/backup/profilefullbackupapp/
DProfileFullBackupRestoreTest.java47 File dir = getTargetContext().getFilesDir(); in setUp()
/cts/tests/tests/content/src/android/content/cts/
DSyncStorageEngineTest.java73 return new File(new File(getContext().getFilesDir(), "system"), "sync"); in getSyncDir()

1234