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.java72 final Map<String, Metadata> mMetadataCache = new HashMap<>(); field in DatabaseManager
200 synchronized (mMetadataCache) { in bondStateChanged()
203 if (mMetadataCache.containsKey(address)) { in bondStateChanged()
208 Metadata metadata = mMetadataCache.get(address); in bondStateChanged()
210 mMetadataCache.remove(address); in bondStateChanged()
230 synchronized (mMetadataCache) { in setCustomMeta()
241 if (!mMetadataCache.containsKey(address)) { in setCustomMeta()
244 Metadata data = mMetadataCache.get(address); in setCustomMeta()
265 synchronized (mMetadataCache) { in getCustomMeta()
277 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()
443 Assert.assertEquals(0, mDatabaseManager.mMetadataCache.size()); in testSetConnection()
453 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
[all …]