Home
last modified time | relevance | path

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

/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DAppSearchSchemaMigrationCtsTestBase.java121 private AppSearchSessionShim mDb; field in AppSearchSchemaMigrationCtsTestBase
128 mDb = createSearchSessionAsync(DB_NAME).get(); in setUp()
146 mDb.setSchemaAsync( in setUp()
159 mDb.putAsync( in setUp()
170 mDb.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in tearDown()
192 mDb.setSchemaAsync( in test_ForceOverride_BackwardsCompatible_Trigger_MigrateIncompatibleType()
221 mDb.setSchemaAsync( in testForceOverride_BackwardsCompatible_NoTrigger_MigrateIncompatibleType()
237 mDb.setSchemaAsync( in testForceOverride_BackwardsIncompatible_Trigger_MigrateIncompatibleType()
254 mDb.setSchemaAsync( in testForceOverride_BackwardsIncompatible_Trigger_NoMigrateIncompatibleType()
271 mDb.setSchemaAsync( in testForceOverride_BackwardsIncompatible_NoTrigger_MigrateIncompatibleType()
[all …]
/cts/tests/appsearch/src/com/android/cts/appsearch/app/
DAppSearchSessionPlatformCtsTest.java46 private AppSearchSessionShim mDb; field in AppSearchSessionPlatformCtsTest
50 mDb = in setUp()
67 mDb.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup()
83 mDb.setSchemaAsync(new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testStorageAttributedToSelf_withDocument()
97 mDb.putAsync(new PutDocumentsRequest.Builder().addGenericDocuments(emails).build()).get(); in testStorageAttributedToSelf_withDocument()
121 mDb.setSchemaAsync(new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testStorageAttributedToSelf_withoutDocument()
DGlobalSearchSessionServiceCtsTestBase.java146 private AppSearchSessionShim mDb; field in GlobalSearchSessionServiceCtsTestBase
153 mDb = createSearchSessionAsync(DB_NAME); in setUp()
170 mDb.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup()
219 mDb.setSchemaAsync(new SetSchemaRequest.Builder() in testPublicVisibility_accessibleTestPackage()
236 checkIsBatchResultSuccess(mDb.putAsync(new PutDocumentsRequest.Builder() in testPublicVisibility_accessibleTestPackage()
244 SearchResultsShim results = mDb.search("pineapple", searchSpec); in testPublicVisibility_accessibleTestPackage()
346 mDb.setSchemaAsync(new SetSchemaRequest.Builder() in testPublicVisibility_invalidCertificate()
362 checkIsBatchResultSuccess(mDb.putAsync(new PutDocumentsRequest.Builder() in testPublicVisibility_invalidCertificate()
369 SearchResultsShim results = mDb.search("pineapple", searchSpec); in testPublicVisibility_invalidCertificate()
412 mDb.setSchemaAsync(new SetSchemaRequest.Builder().addSchemas(AppSearchEmail.SCHEMA).build()) in testNoPackageAccess_default()
[all …]
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/helper_a/
DAppSearchDeviceTest.java87 private AppSearchSessionShim mDb; field in AppSearchDeviceTest
92 mDb = AppSearchSessionShimImpl.createSearchSessionAsync( in setUp()
100 mDb.setSchemaAsync(new SetSchemaRequest.Builder().addSchemas(SCHEMA) in testPutDocuments()
106 mDb.putAsync( in testPutDocuments()
143 List<GenericDocument> outDocuments = doGet(mDb, NAMESPACE, ID); in testGetDocuments_exist()
169 mDb.close(); in closeAndFlush()
174 AppSearchBatchResult<String, GenericDocument> getResult = mDb.getByDocumentIdAsync( in testGetDocuments_nonexist()
188 mDb.setSchemaAsync(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in clearTestData()
/cts/tests/tests/content/src/android/content/cts/
DContentProviderTest.java492 private SQLiteDatabase mDb; field in ContentProviderTest.OpenFilePipeContentProvider
497 mDb = sContext.openOrCreateDatabase(dbName, Context.MODE_PRIVATE, null); in OpenFilePipeContentProvider()
498 mDb.execSQL("CREATE TABLE files ( _data TEXT );"); in OpenFilePipeContentProvider()
499 mDb.execSQL("INSERT INTO files VALUES ( \"" + fileName + "\");"); in OpenFilePipeContentProvider()
525 return mDb.query("files", projection, selection, selectionArgs, null, null, null); in query()