Home
last modified time | relevance | path

Searched refs:ContactsDatabaseHelper (Results 1 – 25 of 54) sorted by relevance

123

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java35 import com.android.providers.contacts.ContactsDatabaseHelper.MimetypesColumns;
36 import com.android.providers.contacts.ContactsDatabaseHelper.RawContactsColumns;
37 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
51 private ContactsDatabaseHelper mDbHelper;
149 assertEquals(-1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value1")); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
150 assertEquals(-1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value2")); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
153 final long id1 = ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value1"); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
156 assertEquals(id1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value1")); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
157 assertEquals(-1, ContactsDatabaseHelper.queryIdWithOneArg(mDb, query, "value2")); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
161 final long id2 = ContactsDatabaseHelper.insertWithOneArgAndReturnId(mDb, insert, "value2"); in testQueryIdWithOneArg_insertWithOneArgAndReturnId()
[all …]
DContactsDatabaseMigrationTest.java65 final ContactsDatabaseHelper contactsDatabaseHelper = new ContactsDatabaseHelper( in testPhoneAccountHandleMigrationMarkingOnUpgrade()
74 "select count(*) from " + ContactsDatabaseHelper.Tables.DATA in testPhoneAccountHandleMigrationMarkingOnUpgrade()
80 "select count(*) from " + ContactsDatabaseHelper.Tables.DATA in testPhoneAccountHandleMigrationMarkingOnUpgrade()
86 "select count(*) from " + ContactsDatabaseHelper.Tables.DATA in testPhoneAccountHandleMigrationMarkingOnUpgrade()
97 final ContactsDatabaseHelper contactsDatabaseHelper = new ContactsDatabaseHelper( in testPhoneAccountHandleMigrationOnCreate()
106 "select count(*) from " + ContactsDatabaseHelper.Tables.DATA in testPhoneAccountHandleMigrationOnCreate()
DContactsDatabaseHelperUpgradeTest.java44 import com.android.providers.contacts.ContactsDatabaseHelper.AccountsColumns;
45 import com.android.providers.contacts.ContactsDatabaseHelper.AggregatedPresenceColumns;
46 import com.android.providers.contacts.ContactsDatabaseHelper.AggregationExceptionColumns;
47 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsColumns;
48 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
49 import com.android.providers.contacts.ContactsDatabaseHelper.DataUsageStatColumns;
50 import com.android.providers.contacts.ContactsDatabaseHelper.DirectoryColumns;
51 import com.android.providers.contacts.ContactsDatabaseHelper.GroupsColumns;
52 import com.android.providers.contacts.ContactsDatabaseHelper.MimetypesColumns;
53 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupColumns;
[all …]
DSecondaryUserContactsProvider2.java25 private ContactsDatabaseHelper mDbHelper;
32 public ContactsDatabaseHelper newDatabaseHelper(final Context context) { in newDatabaseHelper()
34 mDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context, in newDatabaseHelper()
DSqlInjectionDetectionTest.java77 if (ContactsDatabaseHelper.DISALLOW_SUB_QUERIES) { in testPhoneQueryBadSelection()
89 if (ContactsDatabaseHelper.DISALLOW_SUB_QUERIES) { in testPhoneQueryBadSortOrder()
135 if (ContactsDatabaseHelper.DISALLOW_SUB_QUERIES) { in testBadDelete()
146 if (ContactsDatabaseHelper.DISALLOW_SUB_QUERIES) { in testBadUpdate()
159 if (ContactsDatabaseHelper.DISALLOW_SUB_QUERIES) { in testBadInsert()
DSynchronousContactsProvider2.java37 private static ContactsDatabaseHelper sDbHelper;
44 public ContactsDatabaseHelper newDatabaseHelper(final Context context) { in newDatabaseHelper()
46 sDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context, in newDatabaseHelper()
DTestUtils.java33 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
227 ContentResolver resolver, ContactsDatabaseHelper dbh, ContentValues values) { in insertRawContact()
232 ContentResolver resolver, ContactsDatabaseHelper dbh, ContentValues values) { in insertProfileRawContact()
237 ContentResolver resolver, ContactsDatabaseHelper dbh, ContentValues values) { in insertRawContact()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
DDeletedContactsTableUtil.java23 import com.android.providers.contacts.ContactsDatabaseHelper;
38 db.execSQL("CREATE TABLE " + ContactsDatabaseHelper.Tables.DELETED_CONTACTS + " (" + in create()
45 ContactsDatabaseHelper.Tables.DELETED_CONTACTS, in create()
62 return db.insertWithOnConflict(ContactsDatabaseHelper.Tables.DELETED_CONTACTS, null, values, in insertDeletedContact()
78 return db.delete(ContactsDatabaseHelper.Tables.DELETED_CONTACTS, in deleteOldLogs()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DBootCompletedReceiver.java59 String dbTime = ContactsDatabaseHelper.getInstance(context).getProperty( in onReceive()
60 ContactsDatabaseHelper.DbProperties.DATABASE_TIME_CREATED, ""); in onReceive()
67 dbTime = ContactsDatabaseHelper.getInstance(context).getProperty( in onReceive()
68 ContactsDatabaseHelper.DbProperties.DATABASE_TIME_CREATED, ""); in onReceive()
DLegacyApiSupport.java56 import com.android.providers.contacts.ContactsDatabaseHelper.AccountsColumns;
57 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
58 import com.android.providers.contacts.ContactsDatabaseHelper.ExtensionsColumns;
59 import com.android.providers.contacts.ContactsDatabaseHelper.GroupsColumns;
60 import com.android.providers.contacts.ContactsDatabaseHelper.MimetypesColumns;
61 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupColumns;
62 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
63 import com.android.providers.contacts.ContactsDatabaseHelper.PhoneLookupColumns;
64 import com.android.providers.contacts.ContactsDatabaseHelper.PresenceColumns;
65 import com.android.providers.contacts.ContactsDatabaseHelper.RawContactsColumns;
[all …]
DDataRowHandlerForGroupMembership.java27 import com.android.providers.contacts.ContactsDatabaseHelper.Clauses;
28 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
29 import com.android.providers.contacts.ContactsDatabaseHelper.GroupsColumns;
30 import com.android.providers.contacts.ContactsDatabaseHelper.Projections;
31 import com.android.providers.contacts.ContactsDatabaseHelper.RawContactsColumns;
32 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
68 public DataRowHandlerForGroupMembership(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandlerForGroupMembership()
DContactsUpgradeReceiver.java65 if (prefDbVersion != ContactsDatabaseHelper.DATABASE_VERSION || in onReceive()
73 editor.putInt(PREF_DB_VERSION, ContactsDatabaseHelper.DATABASE_VERSION); in onReceive()
81 ContactsDatabaseHelper helper = ContactsDatabaseHelper.getInstance(context); in onReceive()
DPhotoStore.java26 import com.android.providers.contacts.ContactsDatabaseHelper.PhotoFilesColumns;
27 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
60 private final ContactsDatabaseHelper mDatabaseHelper;
70 public PhotoStore(File rootDirectory, ContactsDatabaseHelper databaseHelper) { in PhotoStore()
278 mDb.delete(ContactsDatabaseHelper.Tables.PHOTO_FILES, PhotoFilesColumns.CONCRETE_ID + "=?", in removeEntry()
DSearchIndexManager.java32 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
33 import com.android.providers.contacts.ContactsDatabaseHelper.MimetypesColumns;
34 import com.android.providers.contacts.ContactsDatabaseHelper.RawContactsColumns;
35 import com.android.providers.contacts.ContactsDatabaseHelper.SearchIndexColumns;
36 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
244 private final ContactsDatabaseHelper mDbHelper;
252 mDbHelper = (ContactsDatabaseHelper) mContactsProvider.getDatabaseHelper(); in SearchIndexManager()
DDataRowHandler.java33 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
34 import com.android.providers.contacts.ContactsDatabaseHelper.MimetypesColumns;
35 import com.android.providers.contacts.ContactsDatabaseHelper.PresenceColumns;
36 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
83 protected final ContactsDatabaseHelper mDbHelper;
90 public DataRowHandler(Context context, ContactsDatabaseHelper dbHelper, in DataRowHandler()
448 final int maxSize = ContactsDatabaseHelper.getSimpleFieldMaxSize(); in applySimpleFieldMaxSize()
DAbstractContactsProvider.java39 import com.android.providers.contacts.ContactsDatabaseHelper.AccountsColumns;
40 import com.android.providers.contacts.ContactsDatabaseHelper.RawContactsColumns;
41 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
85 private ContactsDatabaseHelper mDbHelper;
129 public ContactsDatabaseHelper getDatabaseHelper() { in getDatabaseHelper()
353 protected abstract ContactsDatabaseHelper newDatabaseHelper(Context context); in newDatabaseHelper()
DGlobalSearchSupport.java36 import com.android.providers.contacts.ContactsDatabaseHelper.AggregatedPresenceColumns;
37 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsColumns;
38 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
39 import com.android.providers.contacts.ContactsDatabaseHelper.Views;
DDataRowHandlerForPhoneNumber.java27 import com.android.providers.contacts.ContactsDatabaseHelper.PhoneLookupColumns;
28 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
38 ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator) { in DataRowHandlerForPhoneNumber()
DContactsProvider2.java147 import com.android.providers.contacts.ContactsDatabaseHelper.AccountsColumns;
148 import com.android.providers.contacts.ContactsDatabaseHelper.AggregatedPresenceColumns;
149 import com.android.providers.contacts.ContactsDatabaseHelper.AggregationExceptionColumns;
150 import com.android.providers.contacts.ContactsDatabaseHelper.Clauses;
151 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsColumns;
152 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsStatusUpdatesColumns;
153 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
154 import com.android.providers.contacts.ContactsDatabaseHelper.DataUsageStatColumns;
155 import com.android.providers.contacts.ContactsDatabaseHelper.DbProperties;
156 import com.android.providers.contacts.ContactsDatabaseHelper.GroupsColumns;
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/sqlite/
DDatabaseAnalyzerTest.java20 import com.android.providers.contacts.ContactsDatabaseHelper;
28 final ContactsDatabaseHelper dbh = in testFindTableViewsAllowingColumns()
29 ContactsDatabaseHelper.getNewInstanceForTest(getContext(), in testFindTableViewsAllowingColumns()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DProfileAggregator.java24 import com.android.providers.contacts.ContactsDatabaseHelper;
25 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
40 ContactsDatabaseHelper contactsDatabaseHelper, in ProfileAggregator()
DAbstractContactAggregator.java21 import com.android.providers.contacts.ContactsDatabaseHelper;
22 import com.android.providers.contacts.ContactsDatabaseHelper.AccountsColumns;
23 import com.android.providers.contacts.ContactsDatabaseHelper.AggregatedPresenceColumns;
24 import com.android.providers.contacts.ContactsDatabaseHelper.ContactsColumns;
25 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
26 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupColumns;
27 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
28 import com.android.providers.contacts.ContactsDatabaseHelper.PhoneLookupColumns;
29 import com.android.providers.contacts.ContactsDatabaseHelper.PresenceColumns;
30 import com.android.providers.contacts.ContactsDatabaseHelper.RawContactsColumns;
[all …]
DContactAggregator.java30 import com.android.providers.contacts.ContactsDatabaseHelper;
31 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
32 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupColumns;
33 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
34 import com.android.providers.contacts.ContactsDatabaseHelper.RawContactsColumns;
35 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
68 ContactsDatabaseHelper contactsDatabaseHelper, in ContactAggregator()
DContactAggregator2.java36 import com.android.providers.contacts.ContactsDatabaseHelper;
37 import com.android.providers.contacts.ContactsDatabaseHelper.DataColumns;
38 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupColumns;
39 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
40 import com.android.providers.contacts.ContactsDatabaseHelper.PhoneLookupColumns;
41 import com.android.providers.contacts.ContactsDatabaseHelper.RawContactsColumns;
42 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
80 ContactsDatabaseHelper contactsDatabaseHelper, in ContactAggregator2()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DCommonNicknameCache.java24 import com.android.providers.contacts.ContactsDatabaseHelper.NicknameLookupColumns;
25 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;

123