Home
last modified time | relevance | path

Searched refs:MetadataDatabase (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DMetadataDatabase.java37 public abstract class MetadataDatabase extends RoomDatabase { class
53 public static MetadataDatabase createDatabase(Context context) { in createDatabase()
55 MetadataDatabase.class, DATABASE_NAME) in createDatabase()
73 public static MetadataDatabase createDatabaseWithoutMigration(Context context) { in createDatabaseWithoutMigration()
75 MetadataDatabase.class, DATABASE_NAME) in createDatabaseWithoutMigration()
DDatabaseManager.java68 private MetadataDatabase mDatabase = null;
134 mDatabase = MetadataDatabase in handleMessage()
551 metadata.last_active_time = MetadataDatabase.sCurrentConnectionNumber++; in setConnection()
663 MetadataDatabase.sCurrentConnectionNumber = 0; in compactLastConnectionTime()
667 if (metadata.last_active_time != MetadataDatabase.sCurrentConnectionNumber) { in compactLastConnectionTime()
670 + MetadataDatabase.sCurrentConnectionNumber); in compactLastConnectionTime()
671 metadata.last_active_time = MetadataDatabase.sCurrentConnectionNumber; in compactLastConnectionTime()
673 MetadataDatabase.sCurrentConnectionNumber++; in compactLastConnectionTime()
697 public void start(MetadataDatabase database) { in start()
725 return mAdapterService.getDatabasePath(MetadataDatabase.DATABASE_NAME) in getDatabaseAbsolutePath()
DMetadata.java61 last_active_time = MetadataDatabase.sCurrentConnectionNumber++; in Metadata()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java67 private MetadataDatabase mDatabase;
88 MetadataDatabase.class.getCanonicalName(),
101 MetadataDatabase.class).build(); in setUp()
631 MetadataDatabase.MIGRATION_100_101); in testDatabaseMigration_100_101()
698 MetadataDatabase.MIGRATION_101_102); in testDatabaseMigration_101_102()
825 MetadataDatabase.MIGRATION_102_103); in testDatabaseMigration_102_103()
955 MetadataDatabase.MIGRATION_103_104); in testDatabaseMigration_103_104()
980 MetadataDatabase.MIGRATION_104_105); in testDatabaseMigration_104_105()
1023 MetadataDatabase.MIGRATION_105_106); in testDatabaseMigration_105_106()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java104 import com.android.bluetooth.btservice.storage.MetadataDatabase;
544 mDatabaseManager.start(MetadataDatabase.createDatabase(this)); in onCreate()