Home
last modified time | relevance | path

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

12345

/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DOutOfProcessLoginActivity.java103 return new File(context.getFilesDir(), "stopped"); in getStoppedMarker()
113 return new File(context.getFilesDir(), "started"); in getStartedMarker()
123 return new File(context.getFilesDir(), "destroyed"); in getDestroyedMarker()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadSessionTest.java111 File tempFileRootDirectory = new File(mContext.getFilesDir(), tempFileDirName); in testSetTempFileDirectory()
125 File tempFileRootDirectory = new File(mContext.getFilesDir(), "NNN-DoesNotExist"); in testSetInvalidTempFileRoot()
135 tempFileRootDirectory = new File(mContext.getFilesDir(), "this-is-a-file.dat"); in testSetInvalidTempFileRoot()
146 mDownloadSession.setTempFileRootDirectory(mContext.getFilesDir()); in testSetInvalidTempFileRoot()
209 File tempFileRootDir = new File(mContext.getFilesDir(), "CtsTestDir"); in testListPendingDownloads()
224 File tempFileRootDirectory = new File(mContext.getFilesDir(), tempFileDirName); in testSetTempFileDirFailure()
DDownloadRequestTest.java65 File destinationDirectory = new File(getInstrumentation().getContext().getFilesDir(), in testBuilderConstruction()
78 File destinationDirectory = new File(getInstrumentation().getContext().getFilesDir(), in testServiceIdEquivalency()
/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/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DAtomicFileHelperTest.java55 File appPrivateFileDir = mContext.getFilesDir(); in testAtomicFileWithPreExistedBaseFile()
73 File appPrivateFileDir = mContext.getFilesDir(); in testAtomicFileWithNonExistedBaseFile()
105 File appPrivateFileDir = mContext.getFilesDir(); in testAtomicFileWithFailedWrite()
126 File appPrivateFileDir = mContext.getFilesDir(); in testAtomicFileRewrite()
/cts/hostsidetests/appsecurity/test-apps/NoDataStorageApp/src/com/android/cts/noappstorage/
DNoAppDataStorageTest.java45 assertDirDoesNotExist(mCeContext.getFilesDir()); in testNoInternalCeStorage()
53 assertDirDoesNotExist(mDeContext.getFilesDir()); in testNoInternalDeStorage()
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DDataExtractionRulesApplicabilityTest.java63 File testFile = new File(mContext.getFilesDir(), fileName); in createFiles()
91 File file = new File(mContext.getFilesDir(), fileName); in ensureOnlyGivenFileIsExcluded()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java55 File dir = getContext().getFilesDir(); in setUp()
97 File dir = getContext().getFilesDir(); in tearDown()
177 dir = getContext().getFilesDir(); in helpTestFileObserver()
256 helpTestFileObserver(getContext().getFilesDir(), false); in testFileObserver()
273 Pair.create(getContext().getFilesDir(), false), in testFileObserver_multipleFilesFull()
283 Pair.create(getContext().getFilesDir(), false) in testFileObserver_multipleFilesInstant()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAlarmReceiver.java42 new File(sContext.getFilesDir(), "alarm-history.xml"));
45 new File(sContext.getFilesDir(), "alarm-compat-history.xml"));
/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/SplitApp/src/com/android/cts/splitapp/
DBaseBootReceiver.java34 final File probe = new File(context.getFilesDir(), in onReceive()
DRemoteQueryProvider.java62 File probe = new File(deCtx.getFilesDir(), fileName); in fileQuery()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java103 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon()
120 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testAdaptiveFileIcon()
192 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon_getType()
216 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testAdaptiveFileIcon_getType()
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()
269 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromStream2()
302 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); in testCreateFromResourceStream1()
313 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromResourceStream1()
352 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); in testCreateFromResourceStream2()
363 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromResourceStream2()
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/
DProcessBroadcast.java123 File versionFile = new File(context.getFilesDir(), "userdata.txt"); in processUserData()
177 File versionFile = new File(context.getFilesDir(), "userdata.txt"); in getUserDataVersion()
/cts/tests/tests/content/src/android/content/cts/
DSyncStorageEngineTest.java59 return new File(new File(getContext().getFilesDir(), "system"), "sync"); in getSyncDir()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DMediaStoreSaver.java42 picDir = mContext.getFilesDir(); in savePNG()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCallComposerTest.java95 Files.deleteIfExists(mContext.getFilesDir().toPath().resolve(TEST_FILE_NAME)); in tearDown()
103 Path testFile = mContext.getFilesDir().toPath().resolve(TEST_FILE_NAME); in testUploadPictureWithFile()
132 Path testFile = mContext.getFilesDir().toPath().resolve(TEST_FILE_NAME); in testExcessivelyLargePictureAsFile()
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java152 File appDataDir = getContext().getFilesDir(); in appDataContext()
160 File appDataDir = getContext().getFilesDir(); in canExecuteFromHomeDir()
/cts/tests/backup/app/src/android/backup/app/
DMainActivity.java69 File f = new File(getFilesDir().getAbsolutePath(), FILE_NAME); in createFile()
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/
DKeyValueBackupRestoreTest.java243 File file = new File(mContext.getFilesDir(), TEST_FILE_1); in saveSharedPreferencesValues()
249 file = new File(mContext.getFilesDir(), TEST_FILE_2); in saveSharedPreferencesValues()
282 scanner = new Scanner(new File(mContext.getFilesDir(), fileName)); in readFileContent()
/cts/hostsidetests/install/app/src/android/cts/install/
DSessionRule.java46 mTestStateFile = new File(mContext.getFilesDir(), STATE_FILENAME); in SessionRule()
/cts/tests/tests/packageinstaller/test-apps/criticaluserjourneyinstaller/src/android/packageinstaller/cts/cujinstaller/
DMainActivity.java163 File file = new File(getFilesDir(), apkName); in copyApkFromUri()
182 final File apkFile = new File(getFilesDir(), apkName); in startInstallationViaPackageInstallerSession()
192 final File apkFile = new File(getFilesDir(), apkName); in startInstallationViaIntent()
/cts/tests/tests/security/src/android/security/cts/
DMediaRecorderInfoLeakTest.java61 new File(getContext().getFilesDir(), "record.output").getPath()); in test_cve_2016_2499()
/cts/hostsidetests/backup/ProfileFullBackupApp/src/android/cts/backup/profilefullbackupapp/
DProfileFullBackupRestoreTest.java47 File dir = getTargetContext().getFilesDir(); in setUp()

12345