Home
last modified time | relevance | path

Searched refs:storageManager (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/
DApplicationPackageManagerTest.java116 StorageManager storageManager = Mockito.mock(StorageManager.class); in getMockedStorageManager() local
117 Mockito.when(storageManager.getVolumes()).thenReturn(sVolumes); in getMockedStorageManager()
118 Mockito.when(storageManager.findVolumeById(VolumeInfo.ID_PRIVATE_INTERNAL)) in getMockedStorageManager()
120 Mockito.when(storageManager.findVolumeByUuid(sAdoptedVolUuid)) in getMockedStorageManager()
122 Mockito.when(storageManager.findVolumeByUuid(sPublicVolUuid)) in getMockedStorageManager()
124 Mockito.when(storageManager.findVolumeByUuid(sPrivateUnmountedVolUuid)) in getMockedStorageManager()
126 return storageManager; in getMockedStorageManager()
152 StorageManager storageManager = getMockedStorageManager(); in testGetCandidateVolumes_systemApp() local
160 appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
165 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java169 private static boolean checkFitOnVolume(StorageManager storageManager, String volumePath, in checkFitOnVolume() argument
175 final UUID target = storageManager.getUuidForPath(new File(volumePath)); in checkFitOnVolume()
176 final long availBytes = storageManager.getAllocatableBytes(target, in checkFitOnVolume()
181 final long cacheClearable = storageManager.getAllocatableBytes(target, in checkFitOnVolume()
189 final StorageManager storageManager = testInterface.getStorageManager(context); in resolveInstallVolume() local
200 for (VolumeInfo vol : storageManager.getVolumes()) { in resolveInstallVolume()
214 if (checkFitOnVolume(storageManager, internalVolumePath, params)) { in resolveInstallVolume()
236 if (checkFitOnVolume(storageManager, internalVolumePath, params)) { in resolveInstallVolume()
252 if (checkFitOnVolume(storageManager, existingVolumePath, params)) { in resolveInstallVolume()
263 if (checkFitOnVolume(storageManager, volumePaths.valueAt(0), params)) { in resolveInstallVolume()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java80 StorageManager storageManager = Mockito.mock(StorageManager.class); in createStorageManagerMock() local
81 Mockito.when(storageManager.getVolumes()).thenReturn(volumes); in createStorageManagerMock()
89 … Mockito.when(storageManager.getStorageBytesUntilLow(internalFile)).thenReturn(sInternalSize); in createStorageManagerMock()
90 Mockito.when(storageManager.getStorageBytesUntilLow(adoptedFile)).thenReturn(sAdoptedSize); in createStorageManagerMock()
91 Mockito.when(storageManager.getStorageBytesUntilLow(publicFile)).thenReturn(sPublicSize); in createStorageManagerMock()
92 … Mockito.when(storageManager.getUuidForPath(Mockito.eq(internalFile))).thenReturn(internalUuid); in createStorageManagerMock()
93 … Mockito.when(storageManager.getUuidForPath(Mockito.eq(adoptedFile))).thenReturn(adoptedUuid); in createStorageManagerMock()
94 Mockito.when(storageManager.getUuidForPath(Mockito.eq(publicFile))).thenReturn(publicUuid); in createStorageManagerMock()
95 Mockito.when(storageManager.getAllocatableBytes(Mockito.eq(internalUuid), Mockito.anyInt())) in createStorageManagerMock()
97 Mockito.when(storageManager.getAllocatableBytes(Mockito.eq(adoptedUuid), Mockito.anyInt())) in createStorageManagerMock()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTestable.java58 IStorageManager storageManager, SyntheticPasswordManager spManager, in MockInjector() argument
66 mStorageManager = storageManager; in MockInjector()
168 IStorageManager storageManager, IActivityManager mActivityManager, in LockSettingsServiceTestable() argument
174 storageManager, spManager, gsiService, in LockSettingsServiceTestable()
DMockLockSettingsContext.java45 StorageManager storageManager, TrustManager trustManager, in MockLockSettingsContext() argument
52 mStorageManager = storageManager; in MockLockSettingsContext()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java246 return services.storageManager.isFileBasedEncryptionEnabled(); in storageManagerIsFileBasedEncryptionEnabled()
251 return services.storageManager.isNonDefaultBlockEncrypted(); in storageManagerIsNonDefaultBlockEncrypted()
256 return services.storageManager.isEncrypted(); in storageManagerIsEncrypted()
261 return services.storageManager.isEncryptable(); in storageManagerIsEncryptable()
DMockSystemServices.java112 public final StorageManagerForMock storageManager; field in MockSystemServices
157 storageManager = mock(StorageManagerForMock.class); in MockSystemServices()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java230 StorageManager storageManager = (StorageManager) getContext().getSystemService( in getStorageLowBytes() local
232 return storageManager.getStorageLowBytes(Environment.getDataDirectory()); in getStorageLowBytes()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java688 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in updateCryptoUserInfo() local
691 storageManager.setField(StorageManager.OWNER_INFO_KEY, ownerInfo); in updateCryptoUserInfo()
761 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in updateEncryptionPassword() local
763 storageManager.changeEncryptionPassword(type, passwordString); in updateEncryptionPassword()
1134 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in setVisiblePatternEnabled() local
1136 storageManager.setField(StorageManager.PATTERN_VISIBLE_KEY, enabled ? "1" : "0"); in setVisiblePatternEnabled()
1161 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in setVisiblePasswordEnabled() local
1163 storageManager.setField(StorageManager.PASSWORD_VISIBLE_KEY, enabled ? "1" : "0"); in setVisiblePasswordEnabled()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java1358 final IStorageManager storageManager = IStorageManager.Stub.asInterface( in getVolumeList() local
1381 return storageManager.getVolumeList(uid, packageName, flags); in getVolumeList()
1636 IStorageManager storageManager = IStorageManager.Stub.asInterface( in isNonDefaultBlockEncrypted() local
1638 return storageManager.getPasswordType() != CRYPT_TYPE_DEFAULT; in isNonDefaultBlockEncrypted()
/frameworks/base/services/core/java/com/android/server/pm/
DStagingManager.java1489 IStorageManager storageManager = PackageHelper.getStorageManager(); in handlePreRebootVerification_End() local
1490 if (storageManager.supportsCheckpoint()) { in handlePreRebootVerification_End()
1491 storageManager.startCheckpoint(2); in handlePreRebootVerification_End()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2297 final StorageManager storageManager = mContext.getSystemService(StorageManager.class); in getPackageCandidateVolumes() local
2298 return getPackageCandidateVolumes(app, storageManager, mPM); in getPackageCandidateVolumes()
2303 StorageManager storageManager, IPackageManager pm) { in getPackageCandidateVolumes() argument
2304 final VolumeInfo currentVol = getPackageCurrentVolume(app, storageManager); in getPackageCandidateVolumes()
2305 final List<VolumeInfo> vols = storageManager.getVolumes(); in getPackageCandidateVolumes()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java518 final StorageManager storageManager = StorageManager.from(mContext); in UsbHandler() local
520 storageManager != null ? storageManager.getPrimaryVolume() : null; in UsbHandler()
/frameworks/base/services/java/com/android/server/
DSystemServer.java1016 IStorageManager storageManager = null; in startOtherServices() local
1295 storageManager = IStorageManager.Stub.asInterface( in startOtherServices()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java1529 final IStorageManager storageManager = mInjector.getStorageManager();
1532 storageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret);
DActivityManagerService.java5510 IStorageManager storageManager = PackageHelper.getStorageManager(); in finishBooting() local
5511 storageManager.commitChanges(); in finishBooting()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskManagerService.java5355 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in sendLocaleToMountDaemonMsg() local
5357 storageManager.setField(StorageManager.SYSTEM_LOCALE_KEY, l.toLanguageTag()); in sendLocaleToMountDaemonMsg()