Home
last modified time | relevance | path

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

12345

/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/maintenance/
DOnDevicePersonalizationMaintenanceJobServiceTest.java162 File vendorDir = new File(mContext.getFilesDir(), "VendorData"); in setup()
163 File localDir = new File(mContext.getFilesDir(), "LocalData"); in setup()
256 mContext.getFilesDir())); in testVendorDataCleanup()
259 mContext.getFilesDir())); in testVendorDataCleanup()
262 mContext.getFilesDir())); in testVendorDataCleanup()
303 mContext.getFilesDir())); in testLocalDataCleanup()
321 File vendorDir = new File(mContext.getFilesDir(), "VendorData"); in testVendorDataCleanupExtraDirs()
322 File localDir = new File(mContext.getFilesDir(), "LocalData"); in testVendorDataCleanupExtraDirs()
353 File vendorDir = new File(mContext.getFilesDir(), "VendorData"); in cleanup()
354 File localDir = new File(mContext.getFilesDir(), "LocalData"); in cleanup()
DOnDevicePersonalizationMaintenanceJobTest.java264 sContext.getFilesDir())); in testVendorDataCleanup()
270 sContext.getFilesDir())); in testVendorDataCleanup()
276 sContext.getFilesDir())); in testVendorDataCleanup()
324 sContext.getFilesDir())); in testLocalDataCleanup()
347 File vendorDir = new File(sContext.getFilesDir(), VENDOR_DATA); in testVendorDataCleanupExtraDirs()
348 File localDir = new File(sContext.getFilesDir(), LOCAL_DATA); in testVendorDataCleanupExtraDirs()
425 File vendorDir = new File(sContext.getFilesDir(), VENDOR_DATA); in cleanUpDirectories()
426 File localDir = new File(sContext.getFilesDir(), LOCAL_DATA); in cleanUpDirectories()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/
DEncoderPersistenceDaoTest.java84 File encoderDir = new File(CONTEXT.getFilesDir(), ENCODERS_DIR); in testCreateEncoderDirectory()
167 encoderDir = new File(CONTEXT.getFilesDir(), ENCODERS_DIR); in testWipeAllEncoders()
173 File encoderDir = new File(CONTEXT.getFilesDir(), ENCODERS_DIR); in testDeleteEmptyDirectory()
183 File tempFile = new File(CONTEXT.getFilesDir(), ADSERVICES_PREFIX + "temp_file"); in testWriteAndReadForFile()
186 mEncoderPersistenceDao.readDataFromFile(CONTEXT.getFilesDir(), tempFile.getName()); in testWriteAndReadForFile()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/vendor/
DOnDevicePersonalizationVendorDataDaoTest.java116 mContext.getFilesDir())); in testBatchInsert()
190 mContext.getFilesDir())); in testDeleteVendor()
193 mContext.getFilesDir())); in testDeleteVendor()
234 File vendorDir = new File(mContext.getFilesDir(), "VendorData"); in cleanup()
235 File localDir = new File(mContext.getFilesDir(), "LocalData"); in cleanup()
286 mContext.getFilesDir())); in testDeleteVendorTables()
289 mContext.getFilesDir())); in testDeleteVendorTables()
292 mContext.getFilesDir())); in testDeleteVendorTables()
DOnDevicePersonalizationLocalDataDaoTest.java79 mContext.getFilesDir())); in basicDaoOperations()
154 File vendorDir = new File(mContext.getFilesDir(), "VendorData"); in cleanup()
155 File localDir = new File(mContext.getFilesDir(), "LocalData"); in cleanup()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java83 FsHelper.deleteContents(getContext().getFilesDir()); in tearDown()
90 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFile()
98 final File expected1 = new File(getContext().getFilesDir(), "file.txt"); in testGenerateSaveFileDupes()
102 final File expected2 = new File(getContext().getFilesDir(), "file-1.txt"); in testGenerateSaveFileDupes()
111 final File expected = new File(getContext().getFilesDir(), "file.mp4"); in testGenerateSaveFileNoExtension()
119 final File expected = new File(getContext().getFilesDir(), "meow"); in testGenerateSaveFileHint()
129 final File fileWithInvalidName = new File(getContext().getFilesDir(), "meow**:"); in testGenerateSaveFileHintWithInvalidChars()
131 final File expected = new File(getContext().getFilesDir(), "meow___"); in testGenerateSaveFileHintWithInvalidChars()
140 final File fileWithInvalidName = new File(getContext().getFilesDir(), "**:"); in testGenerateSaveFileHintWithInvalidCharsOnly()
142 final File expected = new File(getContext().getFilesDir(), in testGenerateSaveFileHintWithInvalidCharsOnly()
[all …]
/packages/modules/Profiling/tests/cts/src/android/profiling/cts/
DProfilingServiceTests.java118 mRateLimiter.mPersistStoreDir = new File(mContext.getFilesDir(), "testdir"); in setUp()
684 mContext.getFilesDir().getPath(), in testQueuedResult_InvalidState()
723 mContext.getFilesDir().getPath(), in testQueuedResult_OverMaxRetries()
761 mContext.getFilesDir().getPath(), in testQueuedResult_ProfilingFinished()
800 mContext.getFilesDir().getPath(), in testQueuedResult_TraceUnredacted()
838 mContext.getFilesDir().getPath(), in testQueuedResult_TraceRedacted()
881 mContext.getFilesDir().getPath(), in testQueuedResult_AlreadyCopied()
918 mContext.getFilesDir().getPath(), in testQueuedResult_Cleanup()
948 File directory = new File(mContext.getFilesDir().getPath()); in testTemporaryDirectoryCleanup_inActiveSession()
962 mContext.getFilesDir().getPath(), in testTemporaryDirectoryCleanup_inActiveSession()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/vendor/
DOnDevicePersonalizationVendorDataDao.java92 String fileDir = getFileDir(tableName, context.getFilesDir()); in getInstance()
120 String fileDir = getFileDir(tableName, context.getFilesDir()); in getInstanceForTest()
216 FileUtils.deleteDirectory(new File(getFileDir(vendorDataTableName, context.getFilesDir()))); in deleteVendorData()
219 context.getFilesDir()))); in deleteVendorData()
494 context.getFilesDir())); in deleteVendorTables()
503 context.getFilesDir())); in deleteVendorTables()
509 File vendorDir = new File(context.getFilesDir(), "VendorData"); in deleteVendorTables()
523 File localDir = new File(context.getFilesDir(), "LocalData"); in deleteVendorTables()
/packages/services/Telephony/tests/src/com/android/phone/
DImsProvisioningLoaderTest.java83 doReturn(InstrumentationRegistry.getTargetContext().getFilesDir()).when( in setUp()
84 mContext).getFilesDir(); in setUp()
219 file = new File(context.getFilesDir(), fileName); in deleteXml()
236 file = new File(mContext.getFilesDir(), fileName); in getXmlContents()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DDownloadCompletionReceiver.java52 .getPath(context.getFilesDir().getPath(), "images/animals/", fileName) in getDestinationFile()
60 .getPath(context.getFilesDir().getPath(), "images/image.png") in getDestinationFile()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/leveldb/
DLevelDBManagerTest.java44 final String levelDBPath = context.getFilesDir().getPath() + "/" + levelDBFile; in testLevelDbOperations()
49 List<String> fileNames = Arrays.stream(context.getFilesDir().listFiles()).map( in testLevelDbOperations()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/
DSystemAppsSnapshotTest.java65 when(mContext.getFilesDir()) in setUp()
66 .thenReturn(InstrumentationRegistry.getTargetContext().getFilesDir()); in setUp()
/packages/modules/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesFilesCleanupBootCompleteReceiverTest.java160 String[] remainingFiles = mContext.getFilesDir().list(); in testReceiverDeletesAdServicesFiles()
177 Path root = mContext.getFilesDir().toPath(); in testReceiverDeletesAdServicesDirectories()
289 File dir = mContext.getFilesDir(); in createFiles()
305 File file = new File(mContext.getFilesDir(), name); in deleteFiles()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/
DSdkApi.java80 File file = new File(mContext.getFilesDir(), fileName); in getFileDescriptor()
112 path = Paths.get(mContext.getFilesDir().getPath(), "file.txt"); in createFile()
196 final String filesDir = mContext.getFilesDir().getAbsolutePath(); in isCustomizedSdkContextEnabled()
/packages/services/Telephony/src/com/android/phone/
DImsProvisioningLoader.java90 File file = new File(mContext.getFilesDir(), getFileName(subId)); in isFileExist()
219 file = new File(mContext.getFilesDir(), fileName); in readSubIdBundleFromXml()
246 outFile = new FileOutputStream(new File(mContext.getFilesDir(), fileName)); in saveSubIdBundleToXml()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/rollback/
DRollbackHandlingManagerTest.java51 private static final String BASE_DIR = PPAPI_CONTEXT.getFilesDir().getAbsolutePath();
61 PPAPI_CONTEXT.getFilesDir().getAbsolutePath(), in setup()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/
DSystemAppsSnapshot.java164 return new File(context.getFilesDir(), FOLDER_NAME); in getFolder()
168 return new File(context.getFilesDir(), LEGACY_FOLDER_NAME); in getLegacyFolder()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtils.java160 return context.getFilesDir() + File.separator + "dicts"; in getWordListCacheDirectory()
167 return context.getFilesDir() + File.separator + "staging"; in getWordListStagingDirectory()
174 return context.getFilesDir() + File.separator + "tmp"; in getWordListTempDirectory()
212 return context.getFilesDir().listFiles(new FilenameFilter() { in getUnusedDictionaryList()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTaskTest.java77 when(mTestContext.getFilesDir()).thenReturn(InstrumentationRegistry.getTargetContext() in setUp()
78 .getFilesDir()); in setUp()
DMigrateSystemAppsSnapshotTaskTest.java90 when(mContext.getFilesDir()) in setup()
92 new File(InstrumentationRegistry.getTargetContext().getFilesDir(), "test")); in setup()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/reset/
DResetDataTaskTest.java78 File vendorDir = new File(mContext.getFilesDir(), "VendorData"); in cleanup()
79 File localDir = new File(mContext.getFilesDir(), "LocalData"); in cleanup()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DEncryptionControllerTest.java77 when(mContext.getFilesDir()).thenReturn(getContext().getFilesDir()); in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DDisclaimersParserImplTest.java86 TEST_FILE_DIR = new File(targetContext.getFilesDir(), TEST_FILE_DIRNAME); in setUpClass()
103 when(mContext.getFilesDir()).thenReturn(TEST_FILE_DIR); in setUp()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DProvisioningParamsUtils.java35 context -> new File(context.getFilesDir(), PROVISIONING_PARAMS_FILE_NAME);
/packages/apps/Launcher3/src/com/android/launcher3/
DMainProcessInitializer.java37 FileLog.setDir(context.getApplicationContext().getFilesDir()); in init()

12345