/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | HealthConnectServiceImplTest.java | 256 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/ |
D | BackAndRestoreRule.kt | 38 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/ |
D | CtsSdkProviderApiImpl.java | 165 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/ |
D | HealthConnectManagerTest.java | 783 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/ |
D | RoboJarFetcherTask.kt | 100 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/ |
D | AppsIndexerUserInstance.java | 133 @NonNull File dataDir, in AppsIndexerUserInstance() 137 mDataDir = Objects.requireNonNull(dataDir); in AppsIndexerUserInstance()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | FileSystemPermissionTest.java | 149 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/ |
D | AppsIndexerUserInstanceTest.java | 330 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/ |
D | TestToPhoneFileCopier.kt | 33 File(InstrumentationRegistry.getInstrumentation().targetContext.dataDir, dest)
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/ |
D | SdkSandboxManagerTest.java | 814 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/ |
D | Backend.java | 74 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/ |
D | ContactsIndexerUserInstance.java | 160 @NonNull File dataDir, in ContactsIndexerUserInstance() argument 165 mDataDir = Objects.requireNonNull(dataDir); in ContactsIndexerUserInstance()
|
/packages/modules/Profiling/service/java/com/android/os/profiling/ |
D | RateLimiter.java | 538 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/ |
D | ContactsIndexerUserInstanceTest.java | 225 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/ |
D | CarFeatureController.java | 198 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()
|
D | ICarImpl.java | 952 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/ |
D | SandboxedSdkContextUnitTest.java | 93 info.dataDir = SDK_CE_DATA_DIR; in setUp()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | RegisteredNfcFServicesCache.java | 206 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/ |
D | SdkSandboxManagerService.java | 1652 custom.dataDir = dirInfo.getCeDataDir(); 1728 sdkSandboxInfo.dataDir,
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/ |
D | SdkSandboxManagerServiceUnitTest.java | 1825 assertThat(ai.dataDir).isEqualTo(storageInfo.getCeDataDir()); in testLoadSdk_CustomizedApplicationInfoIsPopulatedProperly()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 697 getApplicationInfo().dataDir); in init()
|