/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelperTest.java | 35 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 …]
|
D | ContactsDatabaseMigrationTest.java | 65 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()
|
D | ContactsDatabaseHelperUpgradeTest.java | 44 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 …]
|
D | SecondaryUserContactsProvider2.java | 25 private ContactsDatabaseHelper mDbHelper; 32 public ContactsDatabaseHelper newDatabaseHelper(final Context context) { in newDatabaseHelper() 34 mDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context, in newDatabaseHelper()
|
D | SqlInjectionDetectionTest.java | 77 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()
|
D | SynchronousContactsProvider2.java | 37 private static ContactsDatabaseHelper sDbHelper; 44 public ContactsDatabaseHelper newDatabaseHelper(final Context context) { in newDatabaseHelper() 46 sDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context, in newDatabaseHelper()
|
D | TestUtils.java | 33 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/ |
D | DeletedContactsTableUtil.java | 23 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/ |
D | BootCompletedReceiver.java | 59 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()
|
D | LegacyApiSupport.java | 56 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 …]
|
D | DataRowHandlerForGroupMembership.java | 27 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()
|
D | ContactsUpgradeReceiver.java | 65 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()
|
D | PhotoStore.java | 26 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()
|
D | SearchIndexManager.java | 32 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()
|
D | DataRowHandler.java | 33 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()
|
D | AbstractContactsProvider.java | 39 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()
|
D | GlobalSearchSupport.java | 36 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;
|
D | DataRowHandlerForPhoneNumber.java | 27 import com.android.providers.contacts.ContactsDatabaseHelper.PhoneLookupColumns; 28 import com.android.providers.contacts.ContactsDatabaseHelper.Tables; 38 ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator) { in DataRowHandlerForPhoneNumber()
|
D | ContactsProvider2.java | 147 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/ |
D | DatabaseAnalyzerTest.java | 20 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/ |
D | ProfileAggregator.java | 24 import com.android.providers.contacts.ContactsDatabaseHelper; 25 import com.android.providers.contacts.ContactsDatabaseHelper.Tables; 40 ContactsDatabaseHelper contactsDatabaseHelper, in ProfileAggregator()
|
D | AbstractContactAggregator.java | 21 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 …]
|
D | ContactAggregator.java | 30 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()
|
D | ContactAggregator2.java | 36 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/ |
D | CommonNicknameCache.java | 24 import com.android.providers.contacts.ContactsDatabaseHelper.NicknameLookupColumns; 25 import com.android.providers.contacts.ContactsDatabaseHelper.Tables;
|