/frameworks/base/core/tests/coretests/src/android/app/ |
D | ApplicationPackageManagerTest.java | 116 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/ |
D | PackageHelper.java | 169 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/ |
D | PackageHelperTests.java | 80 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/ |
D | LockSettingsServiceTestable.java | 58 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()
|
D | MockLockSettingsContext.java | 45 StorageManager storageManager, TrustManager trustManager, in MockLockSettingsContext() argument 52 mStorageManager = storageManager; in MockLockSettingsContext()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceTestable.java | 246 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()
|
D | MockSystemServices.java | 112 public final StorageManagerForMock storageManager; field in MockSystemServices 157 storageManager = mock(StorageManagerForMock.class); in MockSystemServices()
|
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/ |
D | BackgroundDexOptServiceIntegrationTests.java | 230 StorageManager storageManager = (StorageManager) getContext().getSystemService( in getStorageLowBytes() local 232 return storageManager.getStorageLowBytes(Environment.getDataDirectory()); in getStorageLowBytes()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 688 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/ |
D | StorageManager.java | 1358 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/ |
D | StagingManager.java | 1489 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/ |
D | ApplicationPackageManager.java | 2297 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/ |
D | UsbDeviceManager.java | 518 final StorageManager storageManager = StorageManager.from(mContext); in UsbHandler() local 520 storageManager != null ? storageManager.getPrimaryVolume() : null; in UsbHandler()
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 1016 IStorageManager storageManager = null; in startOtherServices() local 1295 storageManager = IStorageManager.Stub.asInterface( in startOtherServices()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 1529 final IStorageManager storageManager = mInjector.getStorageManager(); 1532 storageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret);
|
D | ActivityManagerService.java | 5510 IStorageManager storageManager = PackageHelper.getStorageManager(); in finishBooting() local 5511 storageManager.commitChanges(); in finishBooting()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityTaskManagerService.java | 5355 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in sendLocaleToMountDaemonMsg() local 5357 storageManager.setField(StorageManager.SYSTEM_LOCALE_KEY, l.toLanguageTag()); in sendLocaleToMountDaemonMsg()
|