Home
last modified time | relevance | path

Searched refs:getDataDir (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/codeprovider/src/com/android/tests/codeprovider/storagetest_1/
DStorageTestSdk1ApiImpl.java54 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/
DDataIsolationTestSdkApiImpl.java51 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/
DFileUtils.java54 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/
DPerfImpactingAppsPreferenceControllerTest.java161 (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/
DSdkApi.java114 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/
DSandboxedSdkContextUnitTest.java163 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/
DSandboxedSdkContext.java214 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/
DIActivityActionExecutor.aidl18 String getDataDir(); in getDataDir() method
DCtsSdkProviderApiImpl.java165 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/
DAdServicesFilesCleanupBootCompleteReceiverTest.java118 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/
DHealthConnectServiceImplTest.java256 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/
DSdkSandboxConfigurationTest.java131 final File dir = mContext.getDataDir(); in testGetDataDir_CE()
144 final File dir = ctx.getDataDir(); in testGetDataDir_DE()
DSdkSandboxRestrictionsTest.java188 Path scriptPath = Paths.get(mContext.getDataDir().toString(), "example.sh"); in testSandboxCannotExecute_WriteLocation()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSdkSandboxTest.java266 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/
DIoUtils.java67 File file = new File(context.getDataDir(), fileName); in writeToFile()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DEnable16kPagesPreferenceControllerTest.java111 "test_update", ".zip", new File(mContext.getDataDir().getPath())); in copyFromAssetToDataDir()
/packages/modules/ExtServices/java/src/android/ext/services/common/
DAdServicesFilesCleanupBootCompleteReceiver.java69 boolean success = deleteAdServicesFiles(context.getDataDir()); in onReceive()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java783 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/
DAppManifestConfigMetricsLogger.java131 new File(context.getDataDir() + "/shared_prefs", PREFS_NAME).getAbsolutePath(); in dump()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/
DOTAResourcesManager.java150 File f = new File(context.getDataDir() + Uri.parse(otaFile.getFileUri()).getPath()); in getOtaFile()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DICarImplTest.java193 doThrow(new NullPointerException()).when(mContext).getDataDir(); in testNoShardedPreferencesAccessedBeforeUserZeroUnlock()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAppManifestConfigMetricsLoggerTest.java248 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/
DSdkSandboxManagerTest.java814 String dataDir = actionExecutor.getDataDir(); in testSandboxActivityUseSdkBasedContextIfRequiredFlagAreEnabled()
837 String dataDir = actionExecutor.getDataDir(); in testSandboxActivityUseAppBasedContextIfSdkBasedFlagIDisabled()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java531 + " 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/
DMicrodroidTests.java1119 Path filePath = Paths.get(context.getDataDir().getPath(), "vm", vmName); in getVmDirectory()
2537 Path filePath = Paths.get(context.getDataDir().getPath(), "vm", vmName, fileName); in getVmFile()

12