Home
last modified time | relevance | path

Searched refs:RkpdDatabase (Results 1 – 10 of 10) sorted by relevance

/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/database/
DRkpdDatabase.java33 public abstract class RkpdDatabase extends RoomDatabase { class
40 private static volatile RkpdDatabase sInstance;
45 public static RkpdDatabase getDatabase(final Context context) { in getDatabase()
46 RkpdDatabase result = sInstance; in getDatabase()
50 synchronized (RkpdDatabase.class) { in getDatabase()
53 RkpdDatabase.class, DB_NAME) in getDatabase()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DPeriodicProvisionerTests.java44 import com.android.rkpdapp.database.RkpdDatabase;
87 RkpdDatabase.getDatabase(sContext).provisionedKeyDao().deleteAllKeys(); in setUp()
103 RkpdDatabase.getDatabase(sContext).provisionedKeyDao().deleteAllKeys(); in tearDown()
207 ProvisionedKeyDao dao = RkpdDatabase.getDatabase(sContext).provisionedKeyDao(); in fetchEekDisablesRkp()
231 ProvisionedKeyDao dao = RkpdDatabase.getDatabase(sContext).provisionedKeyDao(); in provisioningExpiresOldKeys()
DRkpdDatabaseTest.java34 import com.android.rkpdapp.database.RkpdDatabase;
64 private RkpdDatabase mDatabase;
69 mDatabase = Room.databaseBuilder(context, RkpdDatabase.class, DB_NAME).build(); in setUp()
DProvisionerTest.java42 import com.android.rkpdapp.database.RkpdDatabase;
88 mKeyDao = RkpdDatabase.getDatabase(sContext).provisionedKeyDao(); in setUp()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/
DRemoteProvisioningService.java33 import com.android.rkpdapp.database.RkpdDatabase;
88 ProvisionedKeyDao dao = RkpdDatabase.getDatabase(context).provisionedKeyDao(); in getRegistration()
/packages/modules/RemoteKeyProvisioning/app/tests/avf/src/com/android/avf/rkpdapp/e2etest/
DAvfIntegrationTest.java34 import com.android.rkpdapp.database.RkpdDatabase;
89 mKeyDao = RkpdDatabase.getDatabase(getContext()).provisionedKeyDao(); in setUp()
/packages/modules/RemoteKeyProvisioning/app/tests/stress/src/com/android/rkpdapp/stress/
DRegistrationBinderStressTest.java36 import com.android.rkpdapp.database.RkpdDatabase;
80 mKeyDao = RkpdDatabase.getDatabase(mContext).provisionedKeyDao(); in setUp()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/
DPeriodicProvisioner.java30 import com.android.rkpdapp.database.RkpdDatabase;
62 mKeyDao = RkpdDatabase.getDatabase(context).provisionedKeyDao(); in PeriodicProvisioner()
/packages/modules/RemoteKeyProvisioning/app/tests/e2e/src/com/android/rkpdapp/e2etest/
DRkpdHostTestHelperTests.java37 import com.android.rkpdapp.database.RkpdDatabase;
104 mKeyDao = RkpdDatabase.getDatabase(sContext).provisionedKeyDao(); in setUp()
DKeystoreIntegrationTest.java43 import com.android.rkpdapp.database.RkpdDatabase;
136 mKeyDao = RkpdDatabase.getDatabase(sContext).provisionedKeyDao(); in setUp()