/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/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 | 53 IStorageManager storageManager, SyntheticPasswordManager spManager, in MockInjector() argument 61 mStorageManager = storageManager; in MockInjector() 135 IStorageManager storageManager, IActivityManager mActivityManager, in LockSettingsServiceTestable() argument 139 storageManager, spManager, authSecretService, gsiService, in LockSettingsServiceTestable()
|
D | MockLockSettingsContext.java | 40 StorageManager storageManager, TrustManager trustManager, in MockLockSettingsContext() argument 46 mStorageManager = storageManager; in MockLockSettingsContext()
|
/frameworks/base/packages/MtpDocumentsProvider/perf_tests/src/com/android/mtp/ |
D | AppFusePerfTest.java | 44 final StorageManager storageManager = context.getSystemService(StorageManager.class); in testReadWriteFile() local 52 final ParcelFileDescriptor fd = storageManager.openProxyFileDescriptor( in testReadWriteFile() 63 final ParcelFileDescriptor fd = storageManager.openProxyFileDescriptor( in testReadWriteFile()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceTestable.java | 226 return services.storageManager.isFileBasedEncryptionEnabled(); in storageManagerIsFileBasedEncryptionEnabled() 231 return services.storageManager.isNonDefaultBlockEncrypted(); in storageManagerIsNonDefaultBlockEncrypted() 236 return services.storageManager.isEncrypted(); in storageManagerIsEncrypted() 241 return services.storageManager.isEncryptable(); in storageManagerIsEncryptable()
|
D | MockSystemServices.java | 103 public final StorageManagerForMock storageManager; field in MockSystemServices 143 storageManager = mock(StorageManagerForMock.class); in MockSystemServices()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 172 final StorageManager storageManager = testInterface.getStorageManager(context); in resolveInstallVolume() local 186 for (VolumeInfo vol : storageManager.getVolumes()) { in resolveInstallVolume() 189 final UUID target = storageManager.getUuidForPath(new File(vol.path)); in resolveInstallVolume() 190 final long availBytes = storageManager.getAllocatableBytes(target, in resolveInstallVolume()
|
/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/packages/PackageInstaller/src/com/android/packageinstaller/handheld/ |
D | UninstallAlertDialogFragment.java | 67 StorageManager storageManager = getContext().getSystemService(StorageManager.class); in getAppDataSizeForUser() local 71 List<StorageVolume> volumes = storageManager.getStorageVolumes(); in getAppDataSizeForUser()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 821 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in updateCryptoUserInfo() local 824 storageManager.setField(StorageManager.OWNER_INFO_KEY, ownerInfo); in updateCryptoUserInfo() 894 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in updateEncryptionPassword() local 896 storageManager.changeEncryptionPassword(type, passwordString); in updateEncryptionPassword() 1438 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in setVisiblePatternEnabled() local 1440 storageManager.setField(StorageManager.PATTERN_VISIBLE_KEY, enabled ? "1" : "0"); in setVisiblePatternEnabled() 1465 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in setVisiblePasswordEnabled() local 1467 storageManager.setField(StorageManager.PASSWORD_VISIBLE_KEY, enabled ? "1" : "0"); in setVisiblePasswordEnabled()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | StagingManager.java | 1024 IStorageManager storageManager = PackageHelper.getStorageManager(); in handlePreRebootVerification_End() local 1025 if (storageManager.supportsCheckpoint()) { in handlePreRebootVerification_End() 1026 storageManager.startCheckpoint(1); in handlePreRebootVerification_End()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 1246 final IStorageManager storageManager = IStorageManager.Stub.asInterface( in getVolumeList() local 1267 return storageManager.getVolumeList(uid, packageName, flags); in getVolumeList() 1522 IStorageManager storageManager = IStorageManager.Stub.asInterface( in isNonDefaultBlockEncrypted() local 1524 return storageManager.getPasswordType() != CRYPT_TYPE_DEFAULT; in isNonDefaultBlockEncrypted()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDocumentsProvider.java | 152 StorageManager storageManager, in onCreateForTesting() argument 162 mStorageManager = storageManager; in onCreateForTesting()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDocumentsProviderTest.java | 929 final StorageManager storageManager = getContext().getSystemService(StorageManager.class); in setupProvider() local 936 storageManager, in setupProvider() local
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 2134 final StorageManager storageManager = mContext.getSystemService(StorageManager.class); in getPackageCandidateVolumes() local 2135 return getPackageCandidateVolumes(app, storageManager, mPM); in getPackageCandidateVolumes() 2140 StorageManager storageManager, IPackageManager pm) { in getPackageCandidateVolumes() argument 2141 final VolumeInfo currentVol = getPackageCurrentVolume(app, storageManager); in getPackageCandidateVolumes() 2142 final List<VolumeInfo> vols = storageManager.getVolumes(); in getPackageCandidateVolumes()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 516 final StorageManager storageManager = StorageManager.from(mContext); in UsbHandler() local 518 storageManager != null ? storageManager.getPrimaryVolume() : null; in UsbHandler()
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 915 IStorageManager storageManager = null; in startOtherServices() local 1188 storageManager = IStorageManager.Stub.asInterface( in startOtherServices()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 2192 StorageManager storageManager = mContext.getSystemService(StorageManager.class); in pullExternalStorageInfo() local 2193 if (storageManager != null) { in pullExternalStorageInfo() 2194 List<VolumeInfo> volumes = storageManager.getVolumes(); in pullExternalStorageInfo()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 1304 final IStorageManager storageManager = mInjector.getStorageManager(); 1307 storageManager.unlockUserKey(userId, userInfo.serialNumber, token, secret);
|
D | ActivityManagerService.java | 5286 IStorageManager storageManager = PackageHelper.getStorageManager(); in finishBooting() local 5287 storageManager.commitChanges(); in finishBooting()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityTaskManagerService.java | 5412 IStorageManager storageManager = IStorageManager.Stub.asInterface(service); in sendLocaleToMountDaemonMsg() local 5414 storageManager.setField(StorageManager.SYSTEM_LOCALE_KEY, l.toLanguageTag()); in sendLocaleToMountDaemonMsg()
|