Home
last modified time | relevance | path

Searched refs:mStorage (Results 1 – 14 of 14) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/
DClipStorageTest.java62 private ClipStorage mStorage; field in ClipStorageTest
71 mStorage = new ClipStorage(clipDir, mPref); in setUp()
76 mSlot = mStorage.claimStorageSlot(); in setUp()
94 File copy = mStorage.getFile(mSlot); in testRead()
95 try(ClipStorageReader provider = mStorage.createReader(copy)) { in testRead()
105 int firstSlot = mStorage.claimStorageSlot(); in testClaimStorageSlot_NoAvailableSlot()
107 mStorage.getFile(firstSlot); in testClaimStorageSlot_NoAvailableSlot()
109 int slot = mStorage.claimStorageSlot(); in testClaimStorageSlot_NoAvailableSlot()
111 mStorage.getFile(slot); in testClaimStorageSlot_NoAvailableSlot()
114 assertEquals(firstSlot, mStorage.claimStorageSlot()); in testClaimStorageSlot_NoAvailableSlot()
[all …]
DUrisSupplierTest.java59 private ClipStorage mStorage; field in UrisSupplierTest
68 mStorage = new ClipStorage(folder.getRoot(), mPref); in setUp()
94 assertIterableEquals(SHORT_URI_LIST, uris.getUris(mStorage)); in testGetDocsEquals_shortList()
101 assertIterableEquals(LONG_URI_LIST, uris.getUris(mStorage)); in testGetDocsEquals_longList()
119 return UrisSupplier.create(SHORT_URI_LIST, mStorage); in createWithShortList()
124 UrisSupplier.create(LONG_URI_LIST, mStorage); in createWithLongList()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java92 private final Map<String, StubDocument> mStorage = new HashMap<>(); field in StubProvider
118 mStorage.clear(); in clearCacheAndBuildRoots()
141 mStorage.put(rootInfo.document.documentId, rootInfo.document); in clearCacheAndBuildRoots()
178 final StubDocument file = mStorage.get(documentId); in queryDocument()
188 final StubDocument parentDocument = mStorage.get(parentDocId); in isChildDocument()
189 final StubDocument childDocument = mStorage.get(docId); in isChildDocument()
212 StubDocument parent = mStorage.get(parentId); in createDocument()
216 mStorage.put(document.documentId, document); in createDocument()
229 final StubDocument document = mStorage.get(documentId); in deleteDocument()
235 mStorage.remove(documentId); in deleteDocument()
[all …]
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/
DRunOnBootCompleteTasksReceiver.java38 PersonalStorage mStorage; field in RunOnBootCompleteTasksReceiver
47 mStorage = new PersonalStorage(context); in onReceive()
56 if (mStorage.getReapplyPansOnBootCompleteState()) { in reapplyPANSOnBoot()
61 mOemNetworkPreferencesAdapter.applyPreference(mStorage.getAllPrefApps()); in reapplyPANSOnBoot()
69 if (mStorage.getReapplyWifiOnBootCompleteState()) { in reapplyWifiOnBoot()
73 Set<String> ssidsWithOemPaid = mStorage.getOemPaidWifiSsids(); in reapplyWifiOnBoot()
74 Set<String> ssidsWithOemPrivate = mStorage.getOemPrivateWifiSsids(); in reapplyWifiOnBoot()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTransitionStore.java22 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/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpCoverArtService.java50 private final AvrcpCoverArtStorage mStorage; field in AvrcpCoverArtService
68 mStorage = new AvrcpCoverArtStorage(COVER_ART_STORAGE_MAX_ITEMS); in AvrcpCoverArtService()
83 mStorage.clear(); in start()
101 mStorage.clear(); in stop()
151 return mStorage.storeImage(new CoverArt(image)); in storeImage()
159 return mStorage.getImage(imageHandle); in getImage()
273 mStorage.dump(sb); in dump()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardBase.java62 protected StorageManager mStorage; field in StorageWizardBase
75 mStorage = getSystemService(StorageManager.class); in onCreate()
79 mVolume = mStorage.findVolumeById(volumeId); in onCreate()
84 mDisk = mStorage.findDiskById(diskId); in onCreate()
90 mStorage.registerListener(mStorageListener); in onCreate()
123 mStorage.unregisterListener(mStorageListener); in onDestroy()
250 final List<VolumeInfo> vols = mStorage.getVolumes(); in findFirstVolume()
DStorageWizardInit.java81 mStorage.setVolumeInited(mVolume.getFsUuid(), true); in onNavigateExternal()
DStorageWizardFormatSlow.java82 mStorage.forgetVolume(forgetUuid); in onNavigateNext()
DStorageWizardMoveProgress.java48 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate()
DStorageWizardMoveConfirm.java69 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate()
DStorageWizardFormatProgress.java90 final StorageManager storage = mActivity.mStorage; in doInBackground()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DItemInstallQueue.java84 private final PersistedItemArray<PendingInstallShortcutInfo> mStorage = field in ItemInstallQueue
103 mItems = mStorage.read(mContext, this::decode); in ensureQueueLoaded()
112 mStorage.write(mContext, mItems); in addToQueue()
138 mStorage.getFile(mContext).delete(); in flushQueueInBackground()
152 mStorage.write(mContext, mItems); in removeFromInstallQueue()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java125 private final StorageManager mStorage; field in DownloadThread
252 mStorage = mContext.getSystemService(StorageManager.class); in DownloadThread()
569 if (mInfoDelta.mTotalBytes > 0 && mStorage.isAllocationSupported(outFd)) { in transferData()
570 mStorage.allocateBytes(outFd, mInfoDelta.mTotalBytes); in transferData()
685 mStorage.fixupAppDir(file.getParentFile()); in finalizeDestination()