Home
last modified time | relevance | path

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

123

/cts/tests/tests/telephony/src/android/telephony/embms/cts/
DMbmsDownloadSessionTest.java84 File tempFileRootDirectory = new File(mContext.getFilesDir(), tempFileDirName); in testSetTempFileDirectory()
97 File tempFileRootDirectory = new File(mContext.getFilesDir(), "NNN-DoesNotExist"); in testSetInvalidTempFileRoot()
107 tempFileRootDirectory = new File(mContext.getFilesDir(), "this-is-a-file.dat"); in testSetInvalidTempFileRoot()
118 mDownloadSession.setTempFileRootDirectory(mContext.getFilesDir()); in testSetInvalidTempFileRoot()
177 File tempFileRootDir = new File(mContext.getFilesDir(), "CtsTestDir"); in testListPendingDownloads()
191 File tempFileRootDirectory = new File(mContext.getFilesDir(), tempFileDirName); in testSetTempFileDirFailure()
DDownloadRequestTest.java38 File destinationDirectory = new File(getInstrumentation().getContext().getFilesDir(), in testBuilderConstruction()
50 File destinationDirectory = new File(getInstrumentation().getContext().getFilesDir(), in testServiceIdEquivalency()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DOutOfProcessLoginActivity.java83 return new File(context.getFilesDir(), "stopped"); in getStoppedMarker()
93 return new File(context.getFilesDir(), "started"); in getStartedMarker()
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOActivity.java31 File testFile = new File(getFilesDir(), "StoragedTest_Temp_FG"); in onStart()
DSimpleIOService.java78 File testFile = new File(getFilesDir(), "StoragedTest_Temp_BG"); in handleMessage()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java46 File dir = getContext().getFilesDir(); in setUp()
75 File dir = getContext().getFilesDir(); in tearDown()
166 dir = getContext().getFilesDir(); in helpTestFileObserver()
212 helpTestFileObserver(getContext().getFilesDir(), false); in testFileObserver()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DBaseBootReceiver.java34 final File probe = new File(context.getFilesDir(), in onReceive()
DSplitAppTest.java418 final StructStat actual = Os.stat(getContext().getFilesDir().getAbsolutePath()); in testDataInternal()
427 final StructStat actual = Os.stat(getContext().getFilesDir().getAbsolutePath()); in testDataNotInternal()
480 final File current = getContext().getFilesDir(); in testPrimaryOnSameVolume()
493 assertTrue(new File(getContext().getFilesDir(), "normal.raw").createNewFile()); in testCodeCacheWrite()
498 assertTrue(new File(getContext().getFilesDir(), "normal.raw").exists()); in testCodeCacheRead()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DMediaStoreSaver.java42 picDir = mContext.getFilesDir(); in savePNG()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java151 File imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromPath()
181 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); in testCreateFromStream()
191 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromStream()
225 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromStream2()
258 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); in testCreateFromResourceStream1()
269 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromResourceStream1()
308 File emptyFile = new File(mContext.getFilesDir(), "tempemptyimage.jpg"); in testCreateFromResourceStream2()
319 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromResourceStream2()
DIconTest.java86 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon()
152 File file = new File(mActivity.getFilesDir(), "testimage.jpg"); in testFileIcon_getType()
/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/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/
DKeyValueBackupRestoreTest.java229 File file = new File(mContext.getFilesDir(), TEST_FILE_1); in saveSharedPreferencesValues()
235 file = new File(mContext.getFilesDir(), TEST_FILE_2); in saveSharedPreferencesValues()
268 scanner = new Scanner(new File(mContext.getFilesDir(), fileName)); in readFileContent()
/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/util/src/android/util/cts/
DPrintStreamPrinterTest.java47 mFile = new File(InstrumentationRegistry.getTargetContext().getFilesDir(), in setup()
/cts/tests/tests/security/src/android/security/cts/
DSELinuxTest.java56 File appDataDir = getContext().getFilesDir(); in testCTSAppDataContext()
/cts/tests/tests/content/src/android/content/cts/
DSyncStorageEngineTest.java71 return new File(new File(getContext().getFilesDir(), "system"), "sync"); in getSyncDir()
DImageCaptureUriExtraToClipDataTest.java58 mTestFile = new File(getContext().getFilesDir() + File.separator + FILE_NAME); in setUp()
DContextTest.java103 final File defaultFile = new File(mContext.getFilesDir(), "test"); in testCreateDeviceProtectedStorageContext()
104 final File deviceFile = new File(deviceContext.getFilesDir(), "test"); in testCreateDeviceProtectedStorageContext()
317 final File base = mContext.getFilesDir(); in testFilenames()
/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/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java77 File appDataDir = getContext().getFilesDir(); in appDataContext()
/cts/hostsidetests/backup/AllowBackup/src/
DAllowBackupTest.java60 File filesDir = mContext.getFilesDir(); in setupFiles()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebHistoryItemTest.java89 String dbPath = getActivity().getFilesDir().toString() + "/icons"; in testWebHistoryItem()
/cts/hostsidetests/backup/FullBackupOnly/src/
DFullBackupOnlyTest.java66 File filesDir = mContext.getFilesDir(); in setupFiles()

123