Home
last modified time | relevance | path

Searched refs:packageDir (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/backup/
DKitchenSinkBackupTransport.java237 File packageDir = new File(mCurrentSetIncrementalDir, packageInfo.packageName); in performBackupInternal() local
238 boolean hasDataForPackage = !packageDir.mkdirs(); in performBackupInternal()
243 packageDir.mkdirs(); in performBackupInternal()
258 int totalSize = parseKeySizes(packageDir, datastore); in performBackupInternal()
301 File element = new File(packageDir, op.mKey); in performBackupInternal()
348 private int parseKeySizes(File packageDir, ArrayMap<String, Integer> datastore) { in parseKeySizes() argument
350 final String[] elements = packageDir.list(); in parseKeySizes()
353 Log.d(TAG, "Existing datastore contents: " + packageDir); in parseKeySizes()
356 File element = new File(packageDir, file); in parseKeySizes()
370 Log.d(TAG, "No existing data for package: " + packageDir); in parseKeySizes()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxStorageManagerUnitTest.java300 final String packageDir = in test_SdkSubDirectories_GetSdkSubDir() local
304 final SubDirectories subDirs = new SubDirectories(packageDir); in test_SdkSubDirectories_GetSdkSubDir()
311 final String expectedFullPath = Paths.get(packageDir, expectedSubDirName).toString(); in test_SdkSubDirectories_GetSdkSubDir()
323 final String packageDir = in test_SdkSubDirectories_IsValid() local
327 final SubDirectories subDirs = new SubDirectories(packageDir); in test_SdkSubDirectories_IsValid()
340 final String packageDir = in test_SdkSubDirectories_IsValid_MissingNonSdkStorage() local
344 final SubDirectories subDirs = new SubDirectories(packageDir); in test_SdkSubDirectories_IsValid_MissingNonSdkStorage()
358 final String packageDir = in test_SdkSubDirectories_IsValid_HasUnknownSubDir() local
361 Path invalidSubDir = Paths.get(packageDir, "invalid"); in test_SdkSubDirectories_IsValid_HasUnknownSubDir()
364 final SubDirectories subDirs = new SubDirectories(packageDir); in test_SdkSubDirectories_IsValid_HasUnknownSubDir()
[all …]
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/rollback/
DRollbackHandlingDatastoreLocationHelper.java38 final Path packageDir = Paths.get(rollbackHandlingDataStoreDir); in getRollbackHandlingDataStoreDirAndCreateDir() local
39 if (!Files.exists(packageDir)) { in getRollbackHandlingDataStoreDirAndCreateDir()
40 Files.createDirectories(packageDir); in getRollbackHandlingDataStoreDirAndCreateDir()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/consent/
DConsentDatastoreLocationHelper.java43 final Path packageDir = Paths.get(consentDataStoreDir); in getConsentDataStoreDirAndCreateDir() local
44 if (!Files.exists(packageDir)) { in getConsentDataStoreDirAndCreateDir()
45 Files.createDirectories(packageDir); in getConsentDataStoreDirAndCreateDir()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxStorageManager.java397 final String packageDir = getSdkDataPackageDirectory(volumeUuid, userId, packageName, in reconcileSdkDataPackageDirs() local
399 final SubDirectories subDirs = new SubDirectories(packageDir); in reconcileSdkDataPackageDirs()
405 Log.i(TAG, "Reconciling missing package directory for: " + packageDir); in reconcileSdkDataPackageDirs()
408 Log.w(TAG, "Failed to get uid for reconcilation of " + packageDir); in reconcileSdkDataPackageDirs()
424 final Path packageDir = in destroySdkDataPackageDirectory() local
426 if (!Files.exists(packageDir)) { in destroySdkDataPackageDirectory()
430 Log.i(TAG, "Destroying sdk data package directory " + packageDir); in destroySdkDataPackageDirectory()
448 Files.delete(packageDir); in destroySdkDataPackageDirectory()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/consent/
DConsentManagerTest.java302 Path packageDir = Paths.get(consentDataStoreDir); in testDeleteConsentDataStoreDir() local
303 assertThat(Files.exists(packageDir)).isTrue(); in testDeleteConsentDataStoreDir()
307 assertThat(Files.exists(packageDir)).isFalse(); in testDeleteConsentDataStoreDir()
430 Path packageDir = Paths.get(consentDataStoreDir); in testDeleteConsentDataStoreDirUserIdentifierNotPresent() local
439 assertThat(Files.exists(packageDir)).isTrue(); in testDeleteConsentDataStoreDirUserIdentifierNotPresent()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DSdkSandboxStorageManagerUtility.java139 final String packageDir = in createPackagePath() local
142 Files.createDirectories(Paths.get(packageDir)); in createPackagePath()
/packages/modules/AdServices/adservices/service/java/com/android/server/adservices/
DUserInstanceManager.java143 final Path packageDir = Paths.get(userDirectoryPath); in deleteUserInstance() local
144 if (Files.exists(packageDir)) { in deleteUserInstance()
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/
DAdServicesManagerServiceTest.java350 Path packageDir = Paths.get(consentDataStoreDir); in testOnUserRemoved() local
354 assertThat(Files.exists(packageDir)).isTrue(); in testOnUserRemoved()
359 assertThat(Files.exists(packageDir)).isFalse(); in testOnUserRemoved()