Home
last modified time | relevance | path

Searched refs:storageInfo (Results 1 – 12 of 12) sorted by relevance

/packages/services/Mtp/src/com/android/mtp/
DMtpRoot.java46 MtpRoot(int deviceId, MtpStorageInfo storageInfo) { in MtpRoot() argument
48 mStorageId = storageInfo.getStorageId(); in MtpRoot()
49 mDescription = storageInfo.getDescription(); in MtpRoot()
50 mFreeSpace = storageInfo.getFreeSpace(); in MtpRoot()
51 mMaxCapacity = storageInfo.getMaxCapacity(); in MtpRoot()
52 mVolumeIdentifier = storageInfo.getVolumeIdentifier(); in MtpRoot()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/
DUserStorageInfo.java108 StorageInfoProto storageInfo = StorageInfoProto.parseFrom(in); in readStorageInfoFromFile() local
109 mTotalStorageSizeBytes = storageInfo.getTotalStorageSize(); in readStorageInfoFromFile()
110 mPackageStorageSizeMap = calculatePackageStorageInfoMap(storageInfo); in readStorageInfoFromFile()
129 @UnknownInitialization UserStorageInfo this, @NonNull StorageInfoProto storageInfo) { in calculatePackageStorageInfoMap() argument
131 if (storageInfo.hasDocumentStorageInfo()) { in calculatePackageStorageInfoMap()
132 DocumentStorageInfoProto documentStorageInfo = storageInfo.getDocumentStorageInfo(); in calculatePackageStorageInfoMap()
150 long totalStorageSize = storageInfo.getTotalStorageSize(); in calculatePackageStorageInfoMap()
DAppSearchManagerService.java1961 StorageInfo storageInfo = instance.getAppSearchImpl().getStorageInfoForDatabase( in getStorageInfo()
1965 callback, AppSearchResultParcel.fromStorageInfo(storageInfo)); in getStorageInfo()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageSettingsManagerTest.java91 PrivateStorageInfo storageInfo = new VolumeSizesLoader(mContext, storageVolumeProvider, in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled() local
94 mVolumeSizeCallback.getValue().onLoadFinished(null, storageInfo); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled()
113 PrivateStorageInfo storageInfo = new VolumeSizesLoader(mContext, storageVolumeProvider, in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled() local
116 mVolumeSizeCallback.getValue().onLoadFinished(null, storageInfo); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled()
133 PrivateStorageInfo storageInfo = new VolumeSizesLoader(mContext, storageVolumeProvider, in onReceivedSizes_storageResultNotLoaded_noListenersCalled() local
135 mVolumeSizeCallback.getValue().onLoadFinished(null, storageInfo); in onReceivedSizes_storageResultNotLoaded_noListenersCalled()
154 PrivateStorageInfo storageInfo = new VolumeSizesLoader(mContext, storageVolumeProvider, in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled() local
DVolumeSizesLoaderTest.java49 PrivateStorageInfo storageInfo = new VolumeSizesLoader(mContext, storageVolumeProvider, in getVolumeSize_getsValidSizes() local
52 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
53 assertThat(storageInfo.totalBytes).isEqualTo(10000L); in getVolumeSize_getsValidSizes()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/
DUserStorageInfoTest.java68 StorageInfoProto storageInfo = in testReadStorageInfoFromFile() local
75 storageInfo.writeTo(out); in testReadStorageInfoFromFile()
81 storageInfo.getTotalStorageSize()); in testReadStorageInfoFromFile()
111 StorageInfoProto storageInfo = in testCalculatePackageStorageInfoMap() local
120 assertThat(mUserStorageInfo.calculatePackageStorageInfoMap(storageInfo)) in testCalculatePackageStorageInfoMap()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DVolumeSizesLoaderTest.java43 PrivateStorageInfo storageInfo = in getVolumeSize_getsValidSizes() local
46 assertThat(storageInfo.freeBytes).isEqualTo(1000L); in getVolumeSize_getsValidSizes()
47 assertThat(storageInfo.totalBytes).isEqualTo(10000L); in getVolumeSize_getsValidSizes()
/packages/modules/AppSearch/framework/java/android/app/appsearch/aidl/
DAppSearchResultParcel.java153 @Param(id = 10) @Nullable StorageInfo storageInfo, in AppSearchResultParcel()
165 mStorageInfo = storageInfo; in AppSearchResultParcel()
315 public static AppSearchResultParcel<StorageInfo> fromStorageInfo(StorageInfo storageInfo) { in fromStorageInfo() argument
317 .setStorageInfo(storageInfo) in fromStorageInfo()
440 Builder<ValueType> setStorageInfo(StorageInfo storageInfo) { in setStorageInfo() argument
441 mStorageInfo = storageInfo; in setStorageInfo()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchImplTest.java2937 StorageInfo storageInfo = mAppSearchImpl.getStorageInfoForPackage("nonexistent.package"); in testGetStorageInfoForPackage_nonexistentPackage() local
2938 assertThat(storageInfo.getSizeBytes()).isEqualTo(0); in testGetStorageInfoForPackage_nonexistentPackage()
2939 assertThat(storageInfo.getAliveDocumentsCount()).isEqualTo(0); in testGetStorageInfoForPackage_nonexistentPackage()
2940 assertThat(storageInfo.getAliveNamespacesCount()).isEqualTo(0); in testGetStorageInfoForPackage_nonexistentPackage()
2960 StorageInfo storageInfo = mAppSearchImpl.getStorageInfoForPackage("package1"); in testGetStorageInfoForPackage_withoutDocument() local
2961 assertThat(storageInfo.getSizeBytes()).isEqualTo(0); in testGetStorageInfoForPackage_withoutDocument()
2962 assertThat(storageInfo.getAliveDocumentsCount()).isEqualTo(0); in testGetStorageInfoForPackage_withoutDocument()
2963 assertThat(storageInfo.getAliveNamespacesCount()).isEqualTo(0); in testGetStorageInfoForPackage_withoutDocument()
3021 StorageInfo storageInfo = mAppSearchImpl.getStorageInfoForPackage("package1"); in testGetStorageInfoForPackage_proportionalToDocuments() local
3022 long size1 = storageInfo.getSizeBytes(); in testGetStorageInfoForPackage_proportionalToDocuments()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java123 StorageInfo storageInfo = new StorageInfo(); in testHealthServiceWearInformationProvider() local
124 storageInfo.eol = WearInformation.PRE_EOL_INFO_NORMAL; in testHealthServiceWearInformationProvider()
125 storageInfo.lifetimeA = 3; in testHealthServiceWearInformationProvider()
126 storageInfo.lifetimeB = WearInformation.UNKNOWN_LIFETIME_ESTIMATE; in testHealthServiceWearInformationProvider()
127 storageInfo.attr.isInternal = true; in testHealthServiceWearInformationProvider()
135 list.add(storageInfo); in testHealthServiceWearInformationProvider()
144 assertThat(wearInformation.lifetimeEstimateB).isEqualTo(storageInfo.lifetimeB); in testHealthServiceWearInformationProvider()
145 assertThat(wearInformation.preEolInfo).isEqualTo(storageInfo.eol); in testHealthServiceWearInformationProvider()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DStorageDashboardFragmentTest.java146 PrivateStorageInfo storageInfo = new PrivateStorageInfo(0, 0); in test_dontLoadWhenQuotaOnAndAllLoaded() local
147 mFragment.setPrivateStorageInfo(storageInfo); in test_dontLoadWhenQuotaOnAndAllLoaded()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxManagerServiceUnitTest.java1814 StorageDirInfo storageInfo = in testLoadSdk_CustomizedApplicationInfoIsPopulatedProperly() local
1825 assertThat(ai.dataDir).isEqualTo(storageInfo.getCeDataDir()); in testLoadSdk_CustomizedApplicationInfoIsPopulatedProperly()
1826 assertThat(ai.credentialProtectedDataDir).isEqualTo(storageInfo.getCeDataDir()); in testLoadSdk_CustomizedApplicationInfoIsPopulatedProperly()
1827 assertThat(ai.deviceProtectedDataDir).isEqualTo(storageInfo.getDeDataDir()); in testLoadSdk_CustomizedApplicationInfoIsPopulatedProperly()