Home
last modified time | relevance | path

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

/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/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()
DContactsProvider2.java1699 ContactsDatabaseHelper dbHelper, AbstractContactAggregator contactAggregator, in initDataRowHandlers() argument
1703 new DataRowHandlerForEmail(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1705 new DataRowHandlerForIm(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1707 new DataRowHandlerForOrganization(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1709 new DataRowHandlerForPhoneNumber(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1711 new DataRowHandlerForNickname(context, dbHelper, contactAggregator)); in initDataRowHandlers()
1713 new DataRowHandlerForStructuredName(context, dbHelper, contactAggregator, in initDataRowHandlers()
1716 new DataRowHandlerForStructuredPostal(context, dbHelper, contactAggregator, in initDataRowHandlers()
1719 new DataRowHandlerForGroupMembership(context, dbHelper, contactAggregator, in initDataRowHandlers()
1722 new DataRowHandlerForPhoto(context, dbHelper, contactAggregator, photoStore, in initDataRowHandlers()
[all …]
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.java67 public VoicemailStatusTable(String tableName, Context context, CallLogDatabaseHelper dbHelper, in VoicemailStatusTable() argument
71 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()
DDataRowHandlerForGroupMembership.java67 public DataRowHandlerForGroupMembership(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForGroupMembership() argument
70 super(context, dbHelper, aggregator, GroupMembership.CONTENT_ITEM_TYPE); in DataRowHandlerForGroupMembership()
DDataRowHandlerForStructuredName.java38 public DataRowHandlerForStructuredName(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForStructuredName() argument
41 super(context, dbHelper, aggregator, StructuredName.CONTENT_ITEM_TYPE); in DataRowHandlerForStructuredName()
DVoicemailContentTable.java92 public VoicemailContentTable(String tableName, Context context, CallLogDatabaseHelper dbHelper, in VoicemailContentTable() argument
97 mDbHelper = dbHelper; in VoicemailContentTable()
DDataRowHandler.java86 public DataRowHandler(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandler() argument
89 mDbHelper = dbHelper; in DataRowHandler()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java535 final ContactsDatabaseHelper dbHelper = ContactsDatabaseHelper.getNewInstanceForTest( in testOpenTimestamp() local
538 dbHelper.getReadableDatabase(); // Open the DB. in testOpenTimestamp()
540 final long creationTime = dbHelper.getDatabaseCreationTime(); in testOpenTimestamp()
544 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()
DContactsProvider2Test.java1962 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in testPhoneLookupUseStrictPhoneNumberCompare() local
1965 final boolean oldUseStrict = dbHelper.getUseStrictPhoneNumberComparisonForTest(); in testPhoneLookupUseStrictPhoneNumberCompare()
1966 dbHelper.setUseStrictPhoneNumberComparisonForTest(true); in testPhoneLookupUseStrictPhoneNumberCompare()
2012 dbHelper.setUseStrictPhoneNumberComparisonForTest(oldUseStrict); in testPhoneLookupUseStrictPhoneNumberCompare()
6737 final ContactsDatabaseHelper dbHelper = cp.getThreadActiveDatabaseHelperForTest(); in testHaveAccountsChanged() local
6738 dbHelper.setProperty(DbProperties.KNOWN_ACCOUNTS, "x"); in testHaveAccountsChanged()