Searched refs:mMetadataCache (Results 1 – 2 of 2) sorted by relevance
71 final Map<String, Metadata> mMetadataCache = new HashMap<>(); field in DatabaseManager199 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 …]
144 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 …]