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()
71 public static MetadataDatabase createDatabaseWithoutMigration(Context context) { in createDatabaseWithoutMigration()
73 MetadataDatabase.class, DATABASE_NAME) in createDatabaseWithoutMigration()
DDatabaseManager.java67 private MetadataDatabase mDatabase = null;
133 mDatabase = MetadataDatabase in handleMessage()
567 metadata.last_active_time = MetadataDatabase.sCurrentConnectionNumber++; in setConnection()
679 MetadataDatabase.sCurrentConnectionNumber = 0; in compactLastConnectionTime()
683 if (metadata.last_active_time != MetadataDatabase.sCurrentConnectionNumber) { in compactLastConnectionTime()
686 + MetadataDatabase.sCurrentConnectionNumber); in compactLastConnectionTime()
687 metadata.last_active_time = MetadataDatabase.sCurrentConnectionNumber; in compactLastConnectionTime()
689 MetadataDatabase.sCurrentConnectionNumber++; in compactLastConnectionTime()
713 public void start(MetadataDatabase database) { in start()
741 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()
588 MetadataDatabase.MIGRATION_100_101); in testDatabaseMigration_100_101()
655 MetadataDatabase.MIGRATION_101_102); in testDatabaseMigration_101_102()
782 MetadataDatabase.MIGRATION_102_103); in testDatabaseMigration_102_103()
912 MetadataDatabase.MIGRATION_103_104); in testDatabaseMigration_103_104()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java87 import com.android.bluetooth.btservice.storage.MetadataDatabase;
463 mDatabaseManager.start(MetadataDatabase.createDatabase(this)); in onCreate()