Home
last modified time | relevance | path

Searched refs:dbHelper (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
DGalleryWidgetMigrator.java79 WidgetDatabaseHelper dbHelper = new WidgetDatabaseHelper(context); in migrateGalleryWidgetsInternal() local
82 List<Entry> entries = dbHelper.getEntries(WidgetDatabaseHelper.TYPE_ALBUM); in migrateGalleryWidgetsInternal()
96 updateEntryUsingRelativePath(entry, dbHelper); in migrateGalleryWidgetsInternal()
103 if (!localEntries.isEmpty()) migrateLocalEntries(context, localEntries, dbHelper); in migrateGalleryWidgetsInternal()
107 HashMap<Integer, Entry> entries, WidgetDatabaseHelper dbHelper) { in migrateLocalEntries() argument
111 migrateLocalEntries(entries, dbHelper, oldExtPath); in migrateLocalEntries()
116 migrateLocalEntries(entries, dbHelper, PRE_JB_EXT_PATH); in migrateLocalEntries()
119 migrateLocalEntries(entries, dbHelper, JB_EXT_PATH); in migrateLocalEntries()
124 WidgetDatabaseHelper dbHelper, String oldExtPath) { in migrateLocalEntries() argument
127 updatePath(new File(root, "DCIM"), entries, dbHelper, oldExtPath); in migrateLocalEntries()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionTask.java65 protected final TranscriptionDbHelper dbHelper; field in TranscriptionTask
88 dbHelper = new TranscriptionDbHelper(context, voicemailUri); in TranscriptionTask()
126 recordResult(context, getTranscription(), dbHelper, cancelled); in transcribeVoicemail()
179 dbHelper.setTranscriptionState(newState); in updateTranscriptionState()
183 dbHelper.setTranscriptionAndState(transcript, newState); in updateTranscriptionAndState()
187 Context context, Pair<String, TranscriptionStatus> result, TranscriptionDbHelper dbHelper) { in recordResult() argument
188 recordResult(context, result, dbHelper, false); in recordResult()
194 TranscriptionDbHelper dbHelper, in recordResult() argument
198 dbHelper.setTranscriptionAndState(result.first, VoicemailCompat.TRANSCRIPTION_AVAILABLE); in recordResult()
204 dbHelper.setTranscriptionState(VoicemailCompat.TRANSCRIPTION_FAILED_NO_SPEECH_DETECTED); in recordResult()
[all …]
DGetTranscriptReceiver.java205 TranscriptionDbHelper dbHelper = new TranscriptionDbHelper(context, voicemailUri); in doInBackground() local
206 TranscriptionTask.recordResult(context, result, dbHelper); in doInBackground()
215 TranscriptionDbHelper dbHelper = new TranscriptionDbHelper(context); in processPendingTranscriptions() local
216 List<Uri> inProgress = dbHelper.getTranscribingVoicemails(); in processPendingTranscriptions()
DTranscriptionRatingHelper.java81 TranscriptionDbHelper dbHelper = new TranscriptionDbHelper(context, voicemailUri); in doInBackground() local
82 dbHelper.setTranscriptionState(VoicemailCompat.TRANSCRIPTION_AVAILABLE_AND_RATED); in doInBackground()
DTranscriptionBackfillService.java74 TranscriptionDbHelper dbHelper = new TranscriptionDbHelper(this); in onHandleWork() local
75 List<Uri> untranscribed = dbHelper.getUntranscribedVoicemails(); in onHandleWork()
/packages/apps/KeyChain/robotests/src/com/android/keychain/internal/
DGrantsDatabaseTest.java322 IncorrectlyVersionedV2DatabaseHelper dbHelper =
325 final SQLiteDatabase db = dbHelper.getWritableDatabase();
328 dbHelper.insertIntoGrantsTable(db, alias, 123456);
329 dbHelper.insertIntoSelectableTable(db, alias, false);
334 dbHelper.insertIntoGrantsTable(db, selectableAlias, 123456);
335 dbHelper.insertIntoSelectableTable(db, selectableAlias, true);
340 dbHelper.insertIntoGrantsTable(db, defaultSelectableAlias, 123456);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackSource.java37 private final FilterStackDBHelper dbHelper; field in FilterStackSource
40 dbHelper = new FilterStackDBHelper(context); in FilterStackSource()
45 database = dbHelper.getWritableDatabase(); in open()
53 dbHelper.close(); in close()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForCustomMimetype.java23 public DataRowHandlerForCustomMimetype(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForCustomMimetype() argument
25 super(context, dbHelper, aggregator, mimetype); in DataRowHandlerForCustomMimetype()
DDataRowHandlerForNote.java29 public DataRowHandlerForNote(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForNote() argument
31 super(context, dbHelper, aggregator, Note.CONTENT_ITEM_TYPE); in DataRowHandlerForNote()
DDataRowHandlerForIm.java29 public DataRowHandlerForIm(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForIm() argument
31 super(context, dbHelper, aggregator, Im.CONTENT_ITEM_TYPE, Im.TYPE, Im.LABEL); in DataRowHandlerForIm()
DDataRowHandlerForIdentity.java29 public DataRowHandlerForIdentity(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForIdentity() argument
31 super(context, dbHelper, aggregator, Identity.CONTENT_ITEM_TYPE); in DataRowHandlerForIdentity()
DDataRowHandlerForCommonDataKind.java35 public DataRowHandlerForCommonDataKind(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForCommonDataKind() argument
38 super(context, dbHelper, aggregator, mimetype); in DataRowHandlerForCommonDataKind()
DDataRowHandlerForStructuredPostal.java48 public DataRowHandlerForStructuredPostal(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForStructuredPostal() argument
50 super(context, dbHelper, aggregator, StructuredPostal.CONTENT_ITEM_TYPE); in DataRowHandlerForStructuredPostal()
DDataRowHandlerForEmail.java32 … Context context, ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator) { in DataRowHandlerForEmail() argument
33 super(context, dbHelper, aggregator, Email.CONTENT_ITEM_TYPE, Email.TYPE, Email.LABEL); in DataRowHandlerForEmail()
DDataRowHandlerForNickname.java32 public DataRowHandlerForNickname(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForNickname() argument
34 super(context, dbHelper, aggregator, Nickname.CONTENT_ITEM_TYPE, Nickname.TYPE, in DataRowHandlerForNickname()
DDataRowHandlerForPhoto.java49 Context context, ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator, in DataRowHandlerForPhoto() argument
51 super(context, dbHelper, aggregator, Photo.CONTENT_ITEM_TYPE); in DataRowHandlerForPhoto()
DDataRowHandlerForOrganization.java34 public DataRowHandlerForOrganization(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForOrganization() argument
36 super(context, dbHelper, aggregator, in DataRowHandlerForOrganization()
DVoicemailStatusTable.java65 public VoicemailStatusTable(String tableName, Context context, CallLogDatabaseHelper dbHelper, in VoicemailStatusTable() argument
69 mDbHelper = dbHelper; in VoicemailStatusTable()
DDataRowHandlerForPhoneNumber.java37 ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator) { in DataRowHandlerForPhoneNumber() argument
38 super(context, dbHelper, aggregator, Phone.CONTENT_ITEM_TYPE, Phone.TYPE, Phone.LABEL); in DataRowHandlerForPhoneNumber()
DContactsProvider2.java1641 ContactsDatabaseHelper dbHelper, AbstractContactAggregator contactAggregator, in initDataRowHandlers() argument
1645 new DataRowHandlerForEmail(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1647 new DataRowHandlerForIm(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1649 new DataRowHandlerForOrganization(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1651 new DataRowHandlerForPhoneNumber(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1653 new DataRowHandlerForNickname(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1655 new DataRowHandlerForStructuredName(context, dbHelper, contactAggregator, in initDataRowHandlers()
1658 new DataRowHandlerForStructuredPostal(context, dbHelper, contactAggregator, in initDataRowHandlers()
1661 new DataRowHandlerForGroupMembership(context, dbHelper, contactAggregator, in initDataRowHandlers()
1664 new DataRowHandlerForPhoto(context, dbHelper, contactAggregator, photoStore, in initDataRowHandlers()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java164 DatabaseHelper dbHelper = new DatabaseHelper(mContext, null, DB_FILE) { in setupTestDb() local
173 dbHelper.getWritableDatabase().insert(Favorites.TABLE_NAME, null, values); in setupTestDb()
175 dbHelper.close(); in setupTestDb()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java492 final ContactsDatabaseHelper dbHelper = ContactsDatabaseHelper.getNewInstanceForTest( in testOpenTimestamp() local
495 dbHelper.getReadableDatabase(); // Open the DB. in testOpenTimestamp()
497 final long creationTime = dbHelper.getDatabaseCreationTime(); in testOpenTimestamp()
501 dbHelper.close(); in testOpenTimestamp()
DSearchIndexManagerTest.java532 ContactsDatabaseHelper dbHelper = (ContactsDatabaseHelper) getContactsProvider() in assertSearchIndex() local
534 assertEquals(expectedContent, dbHelper.querySearchIndexContentForTest(contactId)); in assertSearchIndex()
535 assertEquals(expectedTokens, dbHelper.querySearchIndexTokensForTest(contactId)); in assertSearchIndex()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardController.java71 final CardDatabaseHelper dbHelper = CardDatabaseHelper.getInstance(mContext); in onDismissed() local
72 dbHelper.markContextualCardAsDismissed(mContext, card.getName()); in onDismissed()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DSliceContextualCardController.java71 final CardDatabaseHelper dbHelper = CardDatabaseHelper.getInstance(mContext); in onDismissed() local
72 dbHelper.markContextualCardAsDismissed(mContext, card.getName()); in onDismissed()

12