Home
last modified time | relevance | path

Searched refs:dataDir (Results 1 – 21 of 21) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/
DHealthConnectServiceImplTest.java256 File dataDir = mContext.getDataDir(); in testStageRemoteData_withValidInput_allFilesStaged() local
257 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_withValidInput_allFilesStaged()
258 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_withValidInput_allFilesStaged()
284 File dataDir = mContext.getDataDir(); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged() local
285 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged()
286 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged()
313 File dataDir = mContext.getDataDir(); in testStageRemoteData_whenStagingProgress_doesStage() local
314 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_whenStagingProgress_doesStage()
315 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_whenStagingProgress_doesStage()
344 File dataDir = mContext.getDataDir(); in testStageRemoteData_whenStagingDone_doesNotStage() local
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/rule/
DBackAndRestoreRule.kt38 private fun dbBackUp() = File(phoneContext.dataDir.path, "/databasesBackUp") in dbBackUp()
40 private fun dbDirectory() = File(phoneContext.dataDir.path, "/databases") in dbBackUp()
61 val file = File(File(getInstrumentation().targetContext.dataDir, "/databases"), dbName) in uploadDatabase()
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/providers/CtsProvider/src/com/android/ctssdkprovider/
DCtsSdkProviderApiImpl.java165 final String dataDir = mContext.getDataDir().getPath(); in testStoragePaths() local
166 if (!dataDir.startsWith(sdkPathPrefix)) { in testStoragePaths()
167 throw new IllegalStateException("Data dir for CE is wrong: " + dataDir); in testStoragePaths()
180 final String dataDir = cut.getDataDir().getPath(); in testStoragePaths() local
181 if (!dataDir.startsWith(sdkPathPrefix)) { in testStoragePaths()
182 throw new IllegalStateException("Data dir for DE is wrong: " + dataDir); in testStoragePaths()
500 return mActivity.getApplicationInfo().dataDir; in getDataDir()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java783 File dataDir = context.getDataDir(); in testStageRemoteData_withValidInput_noExceptionsReturned() local
784 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_withValidInput_noExceptionsReturned()
785 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_withValidInput_noExceptionsReturned()
839 File dataDir = context.getDataDir(); in testStageRemoteData_whenNotReadMode_errorIoReturned() local
840 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_whenNotReadMode_errorIoReturned()
841 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_whenNotReadMode_errorIoReturned()
910 File dataDir = context.getDataDir(); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned() local
911 File testRestoreFile1 = createAndGetNonEmptyFile(dataDir, "testRestoreFile1"); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned()
912 File testRestoreFile2 = createAndGetNonEmptyFile(dataDir, "testRestoreFile2"); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned()
981 File dataDir = context.getDataDir(); in testStageRemoteData_withoutPermission_errorSecurityReturned() local
[all …]
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/
DRoboJarFetcherTask.kt100 val dataDir = File(outPath, "gapi") constant in RoboJarFetcher
101 dataDir.mkdirs()
102 dataStoreFactory = FileDataStoreFactory(dataDir)
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DAppsIndexerUserInstance.java133 @NonNull File dataDir, in AppsIndexerUserInstance()
137 mDataDir = Objects.requireNonNull(dataDir); in AppsIndexerUserInstance()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DFileSystemPermissionTest.java149 String myAppDirectory = getContext().getApplicationInfo().dataDir; in testOtherApplicationDirectoriesAreNotWritable()
151 if (app.dataDir != null && !myAppDirectory.equals(app.dataDir)) { in testOtherApplicationDirectoriesAreNotWritable()
152 … writableDirs.addAll(getWritableDirectoriesAndSubdirectoriesOf(new File(app.dataDir))); in testOtherApplicationDirectoriesAreNotWritable()
163 String myDataDir = getContext().getApplicationInfo().dataDir; in testApplicationParentDirectoryNotWritable()
1251 String myHome = getContext().getApplicationInfo().dataDir; in getWritableDirectoriesAndSubdirectoriesOf()
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsIndexerUserInstanceTest.java330 File dataDir = new File(mTemporaryFolder.newFolder(), "apps"); in testCreateInstance_dataDirectoryCreatedAsynchronously() local
338 dataDir, in testCreateInstance_dataDirectoryCreatedAsynchronously()
343 return dataDir.exists(); in testCreateInstance_dataDirectoryCreatedAsynchronously()
348 mSingleThreadedExecutor.submit(dataDir::exists).get(); in testCreateInstance_dataDirectoryCreatedAsynchronously()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DTestToPhoneFileCopier.kt33 File(InstrumentationRegistry.getInstrumentation().targetContext.dataDir, dest)
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DSdkSandboxManagerTest.java814 String dataDir = actionExecutor.getDataDir(); in testSandboxActivityUseSdkBasedContextIfRequiredFlagAreEnabled() local
815 assertThat(dataDir).contains(SDK_NAME_1); in testSandboxActivityUseSdkBasedContextIfRequiredFlagAreEnabled()
816 assertThat(dataDir).doesNotContain(getSdkSandboxPackageName()); in testSandboxActivityUseSdkBasedContextIfRequiredFlagAreEnabled()
837 String dataDir = actionExecutor.getDataDir(); in testSandboxActivityUseAppBasedContextIfSdkBasedFlagIDisabled() local
838 assertThat(dataDir).doesNotContain(SDK_NAME_1); in testSandboxActivityUseAppBasedContextIfSdkBasedFlagIDisabled()
839 assertThat(dataDir).contains(getSdkSandboxPackageName()); in testSandboxActivityUseAppBasedContextIfSdkBasedFlagIDisabled()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DBackend.java74 nativeInit(this, context.getApplicationInfo().dataDir, Build.VERSION.SDK_INT); in Backend()
255 native int nativeInit(JobCallback jobCallback, String dataDir, int apiVersion); in nativeInit() argument
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DContactsIndexerUserInstance.java160 @NonNull File dataDir, in ContactsIndexerUserInstance() argument
165 mDataDir = Objects.requireNonNull(dataDir); in ContactsIndexerUserInstance()
/packages/modules/Profiling/service/java/com/android/os/profiling/
DRateLimiter.java538 File dataDir = Environment.getDataDirectory(); in setupPersistFiles() local
539 File systemDir = new File(dataDir, "system"); in setupPersistFiles()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DContactsIndexerUserInstanceTest.java225 File dataDir = new File(mTemporaryFolder.newFolder(), "contacts"); in testCreateInstance_dataDirectoryCreatedAsynchronously() local
228 ContactsIndexerUserInstance.createInstance(mContext, dataDir, mConfigForTest, in testCreateInstance_dataDirectoryCreatedAsynchronously()
231 return dataDir.exists(); in testCreateInstance_dataDirectoryCreatedAsynchronously()
235 dataDir::exists).get(); in testCreateInstance_dataDirectoryCreatedAsynchronously()
/packages/services/Car/service/src/com/android/car/
DCarFeatureController.java198 public CarFeatureController(@NonNull Context context, @NonNull File dataDir, VehicleHal hal) { in CarFeatureController() argument
224 mFeatureConfigFile = new AtomicFile(new File(dataDir, FEATURE_CONFIG_FILE_NAME)); in CarFeatureController()
DICarImpl.java952 File dataDir = mContext.getDataDir(); in dumpDataDir() local
953 writer.printf("Data dir: %s Exists: %b\n", dataDir.getAbsolutePath(), dataDir.exists()); in dumpDataDir()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkContextUnitTest.java93 info.dataDir = SDK_CE_DATA_DIR; in setUp()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredNfcFServicesCache.java206 File dataDir = mContext.getFilesDir(); in RegisteredNfcFServicesCache() local
209 new AtomicFile(new File(dataDir, "dynamic_systemcode_nfcid2.xml")); in RegisteredNfcFServicesCache()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxManagerService.java1652 custom.dataDir = dirInfo.getCeDataDir();
1728 sdkSandboxInfo.dataDir,
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxManagerServiceUnitTest.java1825 assertThat(ai.dataDir).isEqualTo(storageInfo.getCeDataDir()); in testLoadSdk_CustomizedApplicationInfoIsPopulatedProperly()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java697 getApplicationInfo().dataDir); in init()