Searched refs:MetadataDatabase (Results 1 – 7 of 7) sorted by relevance
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/ |
D | MetadataDatabase.java | 37 public abstract class MetadataDatabase extends RoomDatabase { class 51 public static MetadataDatabase createDatabase(Context context) { in createDatabase() 52 return Room.databaseBuilder(context, MetadataDatabase.class, DATABASE_NAME) in createDatabase() 84 public static MetadataDatabase createDatabaseWithoutMigration(Context context) { in createDatabaseWithoutMigration() 85 return Room.databaseBuilder(context, MetadataDatabase.class, DATABASE_NAME) in createDatabaseWithoutMigration()
|
D | DatabaseManager.java | 73 private @GuardedBy("mDatabaseLock") MetadataDatabase mDatabase = null; 130 MetadataDatabase.createDatabaseWithoutMigration( in handleMessage() 614 synchronized (MetadataDatabase.class) { in setConnection() 615 metadata.last_active_time = MetadataDatabase.sCurrentConnectionNumber++; in setConnection() 884 synchronized (MetadataDatabase.class) { in compactLastConnectionTime() 885 MetadataDatabase.sCurrentConnectionNumber = 0; in compactLastConnectionTime() 889 if (metadata.last_active_time != MetadataDatabase.sCurrentConnectionNumber) { in compactLastConnectionTime() 897 + MetadataDatabase.sCurrentConnectionNumber); in compactLastConnectionTime() 898 metadata.last_active_time = MetadataDatabase.sCurrentConnectionNumber; in compactLastConnectionTime() 900 MetadataDatabase.sCurrentConnectionNumber++; in compactLastConnectionTime() [all …]
|
D | Metadata.java | 87 last_active_time = MetadataDatabase.sCurrentConnectionNumber++; in Metadata()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManagerTest.java | 82 private MetadataDatabase mDatabase; 106 MetadataDatabase.class.getCanonicalName(), 121 MetadataDatabase.class) in setUp() 814 DB_NAME, 101, true, MetadataDatabase.MIGRATION_100_101); in testDatabaseMigration_100_101() 883 DB_NAME, 102, true, MetadataDatabase.MIGRATION_101_102); in testDatabaseMigration_101_102() 1012 DB_NAME, 103, true, MetadataDatabase.MIGRATION_102_103); in testDatabaseMigration_102_103() 1144 DB_NAME, 104, true, MetadataDatabase.MIGRATION_103_104); in testDatabaseMigration_103_104() 1170 DB_NAME, 105, true, MetadataDatabase.MIGRATION_104_105); in testDatabaseMigration_104_105() 1213 DB_NAME, 106, true, MetadataDatabase.MIGRATION_105_106); in testDatabaseMigration_105_106() 1241 DB_NAME, 107, true, MetadataDatabase.MIGRATION_106_107); in testDatabaseMigration_106_107() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | DataMigrationTest.java | 48 import com.android.bluetooth.btservice.storage.MetadataDatabase; 323 MetadataDatabase database = MetadataDatabase.createDatabaseWithoutMigration(mMockContext); in testBluetoothDbMigration()
|
D | PhonePolicyTest.java | 43 import com.android.bluetooth.btservice.storage.MetadataDatabase; 1081 MetadataDatabase mDatabase = in testAutoConnectHfpOnly() 1084 MetadataDatabase.class) in testAutoConnectHfpOnly() 1119 MetadataDatabase mDatabase = in autoConnect_whenMultiHfp_startConnection() 1122 MetadataDatabase.class) in autoConnect_whenMultiHfp_startConnection() 1163 MetadataDatabase mDatabase = in autoConnect_whenMultiHfpAndDeconnection_startConnection() 1166 MetadataDatabase.class) in autoConnect_whenMultiHfpAndDeconnection_startConnection()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 127 import com.android.bluetooth.btservice.storage.MetadataDatabase; 718 mDatabaseManager.start(MetadataDatabase.createDatabase(this)); in init()
|