/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/codeprovider/src/com/android/tests/codeprovider/storagetest_1/ |
D | StorageTestSdk1ApiImpl.java | 54 String sdkDataPath = mContext.getDataDir().toString(); in verifyPerSdkStorageIsUsable() 71 if (getSharedStoragePath().equals(mContext.getDataDir().toString())) { in createFilesInStorage() 77 createFilesinStorage(sizeInBytes, mContext.getDataDir().toString()); in createFilesInStorage() 78 createFilesinStorage(sizeInBytes, mContext.getDataDir().toString() + "/cache"); in createFilesInStorage() 93 return mContext.getApplicationContext().getDataDir().toString(); in getSharedStoragePath()
|
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/provider/src/com/android/sdksandbox/cts/provider/dataisolationtest/ |
D | DataIsolationTestSdkApiImpl.java | 51 verifyDirectoryAccess(mContext.getDataDir().toString(), true); in testSdkSandboxDataIsolation_SandboxCanAccessItsDirectory() 92 verifyDirectoryAccess(mContext.getApplicationContext().getDataDir().toString(), true); in testSdkSandboxDataIsolation_CannotVerifyAcrossVolumes()
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | FileUtils.java | 54 File dir = new File(context.getDataDir(), PENDING_DIR); in getPendingDir() 66 File dir = new File(context.getDataDir(), TEMP_DIR + "/" + timestamp); in getTempDir()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/performance/ |
D | PerfImpactingAppsPreferenceControllerTest.java | 161 (new File(mContext.getDataDir(), TEST_PKG_NAME)).delete(); in tearDown() 162 (new File(mContext.getDataDir(), TEST_PRIVILEGE_PKG_NAME)).delete(); in tearDown() 300 File appFile = new File(mContext.getDataDir(), TEST_PKG_NAME); in getResultInfos() 312 appFile = new File(mContext.getDataDir(), TEST_PRIVILEGE_PKG_NAME); in getResultInfos()
|
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/ |
D | SdkApi.java | 114 if (!path.startsWith(mContext.getDataDir().getPath())) { in createFile() 118 path = Paths.get(mContext.getDataDir().getPath(), "file.txt"); in createFile() 197 final String perSdkDir = mContext.getDataDir().getAbsolutePath(); in isCustomizedSdkContextEnabled()
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/ |
D | SandboxedSdkContextUnitTest.java | 163 assertThat(mSandboxedSdkContext.getDataDir().toString()).isEqualTo(SDK_CE_DATA_DIR); in testGetDataDir_CredentialEncrypted() 167 assertThat(ceContext.getDataDir().toString()).isEqualTo(SDK_CE_DATA_DIR); in testGetDataDir_CredentialEncrypted() 174 assertThat(deContext.getDataDir().toString()).isEqualTo(SDK_DE_DATA_DIR); in testGetDataDir_DeviceEncrypted()
|
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/ |
D | SandboxedSdkContext.java | 214 public File getDataDir() { in getDataDir() method in SandboxedSdkContext 216 return getBaseContext().getDataDir(); in getDataDir()
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/providers/CtsProvider/src/com/android/ctssdkprovider/ |
D | IActivityActionExecutor.aidl | 18 String getDataDir(); in getDataDir() method
|
D | CtsSdkProviderApiImpl.java | 165 final String dataDir = mContext.getDataDir().getPath(); in testStoragePaths() 180 final String dataDir = cut.getDataDir().getPath(); in testStoragePaths() 499 public String getDataDir() { in getDataDir() method in CtsSdkProviderApiImpl.ActivityActionExecutor
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/common/ |
D | AdServicesFilesCleanupBootCompleteReceiverTest.java | 118 verify(mContext, never()).getDataDir(); in testReceiverSkipsDeletionIfDisabled() 157 mReceiver.deleteAdServicesFiles(mContext.getDataDir()); in testReceiverDeletesAdServicesFiles() 199 mReceiver.deleteAdServicesFiles(mContext.getDataDir()); in testReceiverDeletesAdServicesDirectories()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | HealthConnectServiceImplTest.java | 256 File dataDir = mContext.getDataDir(); in testStageRemoteData_withValidInput_allFilesStaged() 284 File dataDir = mContext.getDataDir(); in testStageRemoteData_withNotReadMode_onlyValidFilesStaged() 313 File dataDir = mContext.getDataDir(); in testStageRemoteData_whenStagingProgress_doesStage() 344 File dataDir = mContext.getDataDir(); in testStageRemoteData_whenStagingDone_doesNotStage()
|
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/ |
D | SdkSandboxConfigurationTest.java | 131 final File dir = mContext.getDataDir(); in testGetDataDir_CE() 144 final File dir = ctx.getDataDir(); in testGetDataDir_DE()
|
D | SdkSandboxRestrictionsTest.java | 188 Path scriptPath = Paths.get(mContext.getDataDir().toString(), "example.sh"); in testSandboxCannotExecute_WriteLocation()
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/ |
D | SdkSandboxTest.java | 266 Paths.get(mContext.getDataDir().getPath() + "/" + paths.get(i))); in createFileInPaths() 268 Paths.get(mContext.getDataDir().getPath(), "/" + paths.get(i) + "/" + fileName); in createFileInPaths() 288 Arrays.asList(mContext.getDataDir().getPath() + "/" + pathName1); in testComputeSdkStorage() 290 Arrays.asList(mContext.getDataDir().getPath() + "/" + pathName2); in testComputeSdkStorage()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/ |
D | IoUtils.java | 67 File file = new File(context.getDataDir(), fileName); in writeToFile()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | Enable16kPagesPreferenceControllerTest.java | 111 "test_update", ".zip", new File(mContext.getDataDir().getPath())); in copyFromAssetToDataDir()
|
/packages/modules/ExtServices/java/src/android/ext/services/common/ |
D | AdServicesFilesCleanupBootCompleteReceiver.java | 69 boolean success = deleteAdServicesFiles(context.getDataDir()); in onReceive()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectManagerTest.java | 783 File dataDir = context.getDataDir(); in testStageRemoteData_withValidInput_noExceptionsReturned() 839 File dataDir = context.getDataDir(); in testStageRemoteData_whenNotReadMode_errorIoReturned() 910 File dataDir = context.getDataDir(); in testStageRemoteData_whenStagingStagedData_noExceptionsReturned() 981 File dataDir = context.getDataDir(); in testStageRemoteData_withoutPermission_errorSecurityReturned() 1257 File dataDir = context.getDataDir(); in testGetHealthConnectDataState_afterStagingAndMerge_returnsStateIdle() 1330 File dataDir = context.getDataDir(); in testGetDataRestoreError_onErrorDuringStaging_returnsErrorFetching() 1442 File dataDir = context.getDataDir(); in testGetDataRestoreError_onNoErrorDuringRestore_returnsNoError()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | AppManifestConfigMetricsLogger.java | 131 new File(context.getDataDir() + "/shared_prefs", PREFS_NAME).getAbsolutePath(); in dump()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/ |
D | OTAResourcesManager.java | 150 File f = new File(context.getDataDir() + Uri.parse(otaFile.getFileUri()).getPath()); in getOtaFile()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | ICarImplTest.java | 193 doThrow(new NullPointerException()).when(mContext).getDataDir(); in testNoShardedPreferencesAccessedBeforeUserZeroUnlock()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AppManifestConfigMetricsLoggerTest.java | 248 when(mMockContext.getDataDir()).thenReturn(new File("/la/la/land")); in testDump_empty()
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/ |
D | SdkSandboxManagerTest.java | 814 String dataDir = actionExecutor.getDataDir(); in testSandboxActivityUseSdkBasedContextIfRequiredFlagAreEnabled() 837 String dataDir = actionExecutor.getDataDir(); in testSandboxActivityUseAppBasedContextIfSdkBasedFlagIDisabled()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 531 + " when initializing user %d", mContext.getDataDir(), userId); in maybeInitSharedPrefs() 780 allPrefs.size(), mContext.getDataDir()); in dumpSharedPrefs()
|
/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/ |
D | MicrodroidTests.java | 1119 Path filePath = Paths.get(context.getDataDir().getPath(), "vm", vmName); in getVmDirectory() 2537 Path filePath = Paths.get(context.getDataDir().getPath(), "vm", vmName, fileName); in getVmFile()
|