/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/ |
D | ClipStorageTest.java | 58 private ClipStorage mStorage; field in ClipStorageTest 66 mStorage = new ClipStorage(clipDir, mPref); in setUp() 71 mSlot = mStorage.claimStorageSlot(); in setUp() 89 File copy = mStorage.getFile(mSlot); in testRead() 90 try(ClipStorageReader provider = mStorage.createReader(copy)) { in testRead() 100 int firstSlot = mStorage.claimStorageSlot(); in testClaimStorageSlot_NoAvailableSlot() 102 mStorage.getFile(firstSlot); in testClaimStorageSlot_NoAvailableSlot() 104 int slot = mStorage.claimStorageSlot(); in testClaimStorageSlot_NoAvailableSlot() 106 mStorage.getFile(slot); in testClaimStorageSlot_NoAvailableSlot() 109 assertEquals(firstSlot, mStorage.claimStorageSlot()); in testClaimStorageSlot_NoAvailableSlot() [all …]
|
D | UrisSupplierTest.java | 58 private ClipStorage mStorage; field in UrisSupplierTest 66 mStorage = new ClipStorage(folder.getRoot(), mPref); in setUp() 92 assertIterableEquals(SHORT_URI_LIST, uris.getUris(mStorage)); in testGetDocsEquals_shortList() 99 assertIterableEquals(LONG_URI_LIST, uris.getUris(mStorage)); in testGetDocsEquals_longList() 117 return UrisSupplier.create(SHORT_URI_LIST, mStorage); in createWithShortList() 122 UrisSupplier.create(LONG_URI_LIST, mStorage); in createWithLongList()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | StubProvider.java | 86 private final Map<String, StubDocument> mStorage = new HashMap<>(); field in StubProvider 111 mStorage.clear(); in clearCacheAndBuildRoots() 134 mStorage.put(rootInfo.document.documentId, rootInfo.document); in clearCacheAndBuildRoots() 171 final StubDocument file = mStorage.get(documentId); in queryDocument() 181 final StubDocument parentDocument = mStorage.get(parentDocId); in isChildDocument() 182 final StubDocument childDocument = mStorage.get(docId); in isChildDocument() 189 StubDocument parent = mStorage.get(parentId); in createDocument() 193 mStorage.put(document.documentId, document); in createDocument() 206 final StubDocument document = mStorage.get(documentId); in deleteDocument() 212 mStorage.remove(documentId); in deleteDocument() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | TransitionStore.java | 22 private HashMap<Object, Object> mStorage = new HashMap<Object, Object>(); field in TransitionStore 25 mStorage.put(key, value); in put() 29 mStorage.put(key, get(key, valueIfNull)); in putIfNotPresent() 34 return (T) mStorage.get(key); in get() 39 T value = (T) mStorage.get(key); in get() 44 mStorage.clear(); in clear()
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/ |
D | DefaultNetworkRecommendationProvider.java | 126 private final ScoreStorage mStorage; field in DefaultNetworkRecommendationProvider 141 mStorage = storage; in DefaultNetworkRecommendationProvider() 180 final ScoredNetwork network = mStorage.get(networkKey); in requestRecommendation() 238 ScoredNetwork scoredNetwork = mStorage.get(key); in onRequestScores() 280 mStorage.dump(fd, writer, args); in dump() 290 mStorage.addScore(scoredNetwork); in addScoreForTest() 298 mStorage.clear(); in clearScoresForTest() 430 return mStorage.get(networkKey); in getCachedScoredNetwork()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageWizardBase.java | 45 protected StorageManager mStorage; field in StorageWizardBase 57 mStorage = getSystemService(StorageManager.class); in onCreate() 61 mVolume = mStorage.findVolumeById(volumeId); in onCreate() 66 mDisk = mStorage.findDiskById(diskId); in onCreate() 74 mStorage.registerListener(mStorageListener); in onCreate() 133 mStorage.unregisterListener(mStorageListener); in onDestroy() 205 final List<VolumeInfo> vols = mStorage.getVolumes(); in findFirstVolume()
|
D | MigrateEstimateTask.java | 54 private final StorageManager mStorage; field in MigrateEstimateTask 63 mStorage = context.getSystemService(StorageManager.class); in MigrateEstimateTask() 81 final VolumeInfo emulatedVol = mStorage.findEmulatedForPrivate(privateVol); in doInBackground()
|
D | StorageWizardMigrateConfirm.java | 54 final String sourceDescrip = mStorage.getBestVolumeDescription(sourceVol); in onCreate() 55 final String targetDescrip = mStorage.getBestVolumeDescription(mVolume); in onCreate()
|
D | StorageWizardFormatProgress.java | 96 final StorageManager storage = mActivity.mStorage; in doInBackground() 248 mStorage.forgetVolume(forgetUuid); in onFormatFinished()
|
D | StorageWizardMoveConfirm.java | 58 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate()
|
D | StorageWizardMigrateProgress.java | 51 final String descrip = mStorage.getBestVolumeDescription(mVolume); in onCreate()
|
D | StorageWizardMoveProgress.java | 47 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate()
|
D | StorageWizardInit.java | 103 mStorage.setVolumeInited(mVolume.getFsUuid(), true); in onNavigateNext()
|