/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/clipping/ |
D | ClipStorageTest.java | 62 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 …]
|
D | UrisSupplierTest.java | 59 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/ |
D | StubProvider.java | 88 private final Map<String, StubDocument> mStorage = new HashMap<>(); field in StubProvider 114 mStorage.clear(); in clearCacheAndBuildRoots() 137 mStorage.put(rootInfo.document.documentId, rootInfo.document); in clearCacheAndBuildRoots() 174 final StubDocument file = mStorage.get(documentId); in queryDocument() 184 final StubDocument parentDocument = mStorage.get(parentDocId); in isChildDocument() 185 final StubDocument childDocument = mStorage.get(docId); in isChildDocument() 192 StubDocument parent = mStorage.get(parentId); in createDocument() 196 mStorage.put(document.documentId, document); in createDocument() 209 final StubDocument document = mStorage.get(documentId); in deleteDocument() 215 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/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageWizardBase.java | 62 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() 242 final List<VolumeInfo> vols = mStorage.getVolumes(); in findFirstVolume()
|
D | StorageWizardInit.java | 81 mStorage.setVolumeInited(mVolume.getFsUuid(), true); in onNavigateExternal()
|
D | StorageWizardMoveProgress.java | 47 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate()
|
D | StorageWizardFormatSlow.java | 82 mStorage.forgetVolume(forgetUuid); in onNavigateNext()
|
D | StorageWizardMoveConfirm.java | 69 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate()
|
D | StorageWizardFormatProgress.java | 88 final StorageManager storage = mActivity.mStorage; in doInBackground()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageWizardBase.java | 62 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()
|
D | StorageWizardInit.java | 81 mStorage.setVolumeInited(mVolume.getFsUuid(), true); in onNavigateExternal()
|
D | StorageWizardFormatSlow.java | 82 mStorage.forgetVolume(forgetUuid); in onNavigateNext()
|
D | StorageWizardMoveProgress.java | 48 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate()
|
D | StorageWizardMoveConfirm.java | 69 final String volumeName = mStorage.getBestVolumeDescription(mVolume); in onCreate()
|
D | StorageWizardFormatProgress.java | 90 final StorageManager storage = mActivity.mStorage; in doInBackground()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/ |
D | SecureBleChannel.java | 86 private final ConnectedDeviceStorage mStorage; field in SecureBleChannel 111 mStorage = storage; in SecureBleChannel() 202 byte[] previousKey = mStorage.getEncryptionKey(mDeviceId); in processHandshakeResumingSession() 226 mStorage.saveEncryptionKey(mDeviceId, newKey.asBytes()); in processHandshakeResumingSession() 233 UUID uniqueId = mStorage.getUniqueId(); in sendUniqueIdToClient() 241 return mStorage.getEncryptionKey(id) != null; in hasEncryptionKey() 317 mStorage.saveEncryptionKey(mDeviceId, localKey.asBytes()); in notifyOutOfBandAccepted()
|
D | CarBlePeripheralManager.java | 135 String originalBluetoothName = mStorage.getStoredBluetoothName(); in start() 140 mStorage.removeStoredBluetoothName(); in start() 226 mStorage.storeBluetoothName(mOriginalBluetoothName); in startAssociation() 354 mStorage.removeStoredBluetoothName(); in verifyBluetoothNameRestored() 379 SecureBleChannel secureChannel = new SecureBleChannel(secureStream, mStorage, isReconnect, in addConnectedDevice() 449 mStorage.updateAssociatedDeviceName(connectedDevice.mDeviceId, deviceName); 511 mStorage.addAssociatedDeviceForActiveUser(
|
D | CarBleManager.java | 41 final ConnectedDeviceStorage mStorage; field in CarBleManager 48 mStorage = connectedDeviceStorage; in CarBleManager()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ |
D | ConnectedDeviceManager.java | 75 private final ConnectedDeviceStorage mStorage; field in ConnectedDeviceManager 183 mStorage = storage; in ConnectedDeviceManager() 189 mStorage.setAssociatedDeviceCallback(mAssociatedDeviceCallback); in ConnectedDeviceManager() 291 List<AssociatedDevice> userDevices = mStorage.getActiveUserAssociatedDevices(); in connectToActiveUserDeviceInternal() 349 return mStorage.getActiveUserAssociatedDevices(); in getActiveUserAssociatedDevices() 363 mStorage.removeAssociatedDeviceForActiveUser(deviceId); in removeActiveUserAssociatedDevice() 374 mStorage.updateAssociatedDeviceConnectionEnabled(deviceId, in enableAssociatedDeviceConnection() 386 mStorage.updateAssociatedDeviceConnectionEnabled(deviceId, in disableAssociatedDeviceConnection() 600 mStorage.getActiveUserAssociatedDeviceIds().contains(deviceId), in addConnectedDevice() 736 return mStorage.getActiveUserAssociatedDeviceIds(); in getActiveUserDeviceIds()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpCoverArtProvider.java | 51 private AvrcpCoverArtStorage mStorage; field in AvrcpCoverArtProvider 78 File file = mStorage.getImageFile(device, imageHandle); in getImageDescriptor() 110 mStorage = new AvrcpCoverArtStorage(getContext()); in onCreate()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadThread.java | 124 private final StorageManager mStorage; field in DownloadThread 253 mStorage = mContext.getSystemService(StorageManager.class); in DownloadThread() 580 if (mInfoDelta.mTotalBytes > 0 && mStorage.isAllocationSupported(outFd)) { in transferData() 581 mStorage.allocateBytes(outFd, mInfoDelta.mTotalBytes); in transferData()
|