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.java71 final Map<String, Metadata> mMetadataCache = new HashMap<>(); field in DatabaseManager
199 synchronized (mMetadataCache) { in bondStateChanged()
202 if (mMetadataCache.containsKey(address)) { in bondStateChanged()
207 Metadata metadata = mMetadataCache.get(address); in bondStateChanged()
209 mMetadataCache.remove(address); in bondStateChanged()
246 synchronized (mMetadataCache) { in setCustomMeta()
257 if (!mMetadataCache.containsKey(address)) { in setCustomMeta()
260 Metadata data = mMetadataCache.get(address); in setCustomMeta()
281 synchronized (mMetadataCache) { in getCustomMeta()
293 if (!mMetadataCache.containsKey(address)) { in getCustomMeta()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java144 mDatabaseManager.mMetadataCache.clear(); in testMetadataDefault()
243 mDatabaseManager.mMetadataCache.put(OTHER_BT_ADDR1, otherData); in testRemoveUnusedMetadata_WithSingleBondedDevice()
247 mDatabaseManager.mMetadataCache.put(TEST_BT_ADDR, data); in testRemoveUnusedMetadata_WithSingleBondedDevice()
267 mDatabaseManager.mMetadataCache.clear(); in testRemoveUnusedMetadata_WithSingleBondedDevice()
280 mDatabaseManager.mMetadataCache.put(TEST_BT_ADDR, testData); in testRemoveUnusedMetadata_WithMultiBondedDevices()
286 mDatabaseManager.mMetadataCache.put(OTHER_BT_ADDR1, otherData1); in testRemoveUnusedMetadata_WithMultiBondedDevices()
292 mDatabaseManager.mMetadataCache.put(OTHER_BT_ADDR2, otherData2); in testRemoveUnusedMetadata_WithMultiBondedDevices()
321 mDatabaseManager.mMetadataCache.clear(); in testRemoveUnusedMetadata_WithMultiBondedDevices()
409 Assert.assertEquals(0, mDatabaseManager.mMetadataCache.size()); in testSetConnection()
419 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
[all …]