Home
last modified time | relevance | path

Searched refs:mMetadataCache (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java66 final Map<String, Metadata> mMetadataCache = new HashMap<>(); field in DatabaseManager
163 synchronized (mMetadataCache) { in bondStateChanged()
166 if (mMetadataCache.containsKey(address)) { in bondStateChanged()
171 Metadata metadata = mMetadataCache.get(address); in bondStateChanged()
173 mMetadataCache.remove(address); in bondStateChanged()
210 synchronized (mMetadataCache) { in setCustomMeta()
224 if (!mMetadataCache.containsKey(address)) { in setCustomMeta()
227 Metadata data = mMetadataCache.get(address); in setCustomMeta()
249 synchronized (mMetadataCache) { in getCustomMeta()
261 if (!mMetadataCache.containsKey(address)) { in getCustomMeta()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java214 mDatabaseManager.mMetadataCache.put(OTHER_BT_ADDR1, otherData); in testRemoveUnusedMetadata_WithSingleBondedDevice()
218 mDatabaseManager.mMetadataCache.put(TEST_BT_ADDR, data); in testRemoveUnusedMetadata_WithSingleBondedDevice()
240 mDatabaseManager.mMetadataCache.clear(); in testRemoveUnusedMetadata_WithSingleBondedDevice()
251 mDatabaseManager.mMetadataCache.put(TEST_BT_ADDR, testData); in testRemoveUnusedMetadata_WithMultiBondedDevices()
257 mDatabaseManager.mMetadataCache.put(OTHER_BT_ADDR1, otherData1); in testRemoveUnusedMetadata_WithMultiBondedDevices()
263 mDatabaseManager.mMetadataCache.put(OTHER_BT_ADDR2, otherData2); in testRemoveUnusedMetadata_WithMultiBondedDevices()
294 mDatabaseManager.mMetadataCache.clear(); in testRemoveUnusedMetadata_WithMultiBondedDevices()
388 mDatabaseManager.mMetadataCache.remove(LOCAL_STORAGE); in restartDatabaseManagerHelper()
396 mDatabaseManager.mMetadataCache.put(TEST_BT_ADDR, data); in testSetGetProfilePriorityCase()
429 mDatabaseManager.mMetadataCache.clear(); in testSetGetProfilePriorityCase()
[all …]