/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockProvider.kt | 58 BaseColumns._ID + " = " + InstancesColumns.ALARM_ID + ")" 61 "." + BaseColumns._ID + " IS NULL OR " + 62 INSTANCES_TABLE_NAME + "." + BaseColumns._ID + " = (" + 63 "SELECT " + BaseColumns._ID + 66 " = " + ALARMS_TABLE_NAME + "." + BaseColumns._ID + 79 sAlarmsWithInstancesProjection[ALARMS_TABLE_NAME + "." + BaseColumns._ID] = 80 ALARMS_TABLE_NAME + "." + BaseColumns._ID 101 sAlarmsWithInstancesProjection[INSTANCES_TABLE_NAME + "." + BaseColumns._ID] = 102 INSTANCES_TABLE_NAME + "." + BaseColumns._ID 164 qb.appendWhere(BaseColumns._ID.toString() + "=") in query() [all …]
|
D | ClockDatabaseHelper.kt | 138 val value = values.get(BaseColumns._ID) in fixAlarmInsert() 142 val columns: Array<String> = arrayOf(BaseColumns._ID) in fixAlarmInsert() 143 val selection: String = BaseColumns._ID + " = ?" in fixAlarmInsert() 150 values.putNull(BaseColumns._ID) in fixAlarmInsert() 207 BaseColumns._ID + " INTEGER PRIMARY KEY," + in createAlarmsTable() 221 BaseColumns._ID + " INTEGER PRIMARY KEY," + in createInstanceTable() 232 ALARMS_TABLE_NAME + "(" + BaseColumns._ID + ") " + in createInstanceTable()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseHelper.java | 163 + ConversationColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " 275 + MessageColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " 295 + CONVERSATIONS_TABLE + "(" + ConversationColumns._ID + ") ON DELETE CASCADE " 297 + PARTICIPANTS_TABLE + "(" + ParticipantColumns._ID + ") ON DELETE SET NULL " 299 + PARTICIPANTS_TABLE + "(" + ParticipantColumns._ID + ") ON DELETE SET NULL " 347 + PartColumns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," 359 + MESSAGES_TABLE + "(" + MessageColumns._ID + ") ON DELETE CASCADE " 361 + CONVERSATIONS_TABLE + "(" + ConversationColumns._ID + ") ON DELETE CASCADE " 370 + "." + MessageColumns._ID + "=" + "NEW." + PartColumns.MESSAGE_ID + ")" 371 + " WHERE " + PARTS_TABLE + "." + PartColumns._ID + "=" + "NEW." + PartColumns._ID [all …]
|
D | BugleDatabaseOperations.java | 263 cursor = dbWrapper.rawQuery("SELECT " + ConversationColumns._ID in getExistingConversation() 298 ConversationColumns._ID + " =?", in getThreadId() 324 return isBlockedParticipant(db, participantId, ParticipantColumns._ID); in isBlockedParticipant() 522 ConversationColumns._ID + "=?", new String[] { conversationId }); in deleteConversation() 695 final String selection = ParticipantColumns._ID + "=? AND " + in addConversationSelfIdToContentValues() 700 new String[] { ParticipantColumns._ID }, selection, in addConversationSelfIdToContentValues() 776 ConversationColumns._ID, conversationId, values); in updateConversationRowIfExists() 791 return updateRowIfExists(dbWrapper, DatabaseHelper.MESSAGES_TABLE, MessageColumns._ID, in updateMessageRowIfExists() 807 return updateRowIfExists(dbWrapper, DatabaseHelper.PARTS_TABLE, PartColumns._ID, in updatePartRowIfExists() 880 ConversationColumns._ID + "=?", in getConversationSelfId() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelperUpgradeTest.java | 153 cv(Contacts._ID, 1, in upgradeTo1201() 207 cv(Contacts._ID, 1, in upgradeTo1600() 214 cv(Contacts._ID, 2, in upgradeTo1600() 221 cv(Contacts._ID, 3, in upgradeTo1600() 228 cv(Contacts._ID, 4, in upgradeTo1600() 235 cv(Contacts._ID, 5, in upgradeTo1600() 256 cv(Contacts._ID, 1, in upgradeTo1601() 264 cv(Contacts._ID, 2, in upgradeTo1601() 272 cv(Contacts._ID, 3, in upgradeTo1601() 280 cv(Contacts._ID, 4, in upgradeTo1601() [all …]
|
D | ContactsProvider2Test.java | 426 Contacts._ID, in testContactsProjection() 467 Contacts._ID, in testContactsStrequentProjection() 512 Contacts._ID, in testContactsStrequentPhoneOnlyProjection() 561 Contacts._ID, in testContactsWithSnippetProjection() 603 RawContacts._ID, in testRawContactsProjection() 643 Data._ID, in testDataProjection() 692 Contacts._ID, in testDataProjection() 734 Data._ID, in testDistinctDataProjection() 774 Contacts._ID, in testDistinctDataProjection() 817 Contacts.Entity._ID, in testEntityProjection() [all …]
|
D | ContactLookupKeyTest.java | 68 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() 72 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() 76 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() 106 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingSourceIdAndNoAccount() 134 assertStoredValue(lookupUri1, Contacts._ID, contactId1); in testLookupKeySameSourceIdDifferentAccounts() 137 assertStoredValue(lookupUri2, Contacts._ID, contactId2); in testLookupKeySameSourceIdDifferentAccounts() 179 assertStoredValue(lookupUri, Contacts._ID, largerContactId); in testLookupKeyChoosingLargestContact()
|
D | PhotoStoreTest.java | 145 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in runStorageTestForResource() 166 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in runStorageTestForResourceWithCrop() 188 Cursor c = mDb.query(Tables.PHOTO_FILES, new String[]{PhotoFiles._ID}, in testRemoveEntry() 189 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in testRemoveEntry() 234 Cursor c = mDb.query(Tables.PHOTO_FILES, new String[]{PhotoFiles._ID}, in testCleanup() 235 PhotoFiles._ID + "=?", new String[]{String.valueOf(normalPhotoId)}, in testCleanup()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 278 + "(SELECT " + MimetypesColumns._ID 357 String[] ID = new String[] {BaseColumns._ID}; 384 + AccountsColumns._ID 404 final String OUTER_RAW_CONTACTS_ID = OUTER_RAW_CONTACTS + "." + RawContacts._ID; 425 + " WHERE " + Tables.CONTACTS +"." + Contacts._ID 426 + "=" + Tables.VISIBLE_CONTACTS +"." + Contacts._ID + ")"; 430 + " WHERE " + Tables.CONTACTS +"." + Contacts._ID 431 + "=" + Tables.DEFAULT_DIRECTORY +"." + Contacts._ID + ")"; 448 public static final String CONCRETE_ID = Tables.CONTACTS + "." + BaseColumns._ID; 471 Tables.RAW_CONTACTS + "." + BaseColumns._ID; [all …]
|
D | LegacyApiSupport.java | 229 String[] COLUMNS = { BaseColumns._ID }; 231 int _ID = 0; field 355 sPeopleProjectionMap.put(People._ID, People._ID); in sPeopleProjectionMap.put() argument 369 " WHERE " + DataColumns.CONCRETE_RAW_CONTACT_ID + "=people." + People._ID + in sPeopleProjectionMap.put() 375 sOrganizationProjectionMap.put(android.provider.Contacts.Organizations._ID, in sOrganizationProjectionMap.put() argument 376 android.provider.Contacts.Organizations._ID); in sOrganizationProjectionMap.put() 391 sContactMethodProjectionMap.put(ContactMethods._ID, ContactMethods._ID); in sContactMethodProjectionMap.put() argument 401 sPhoneProjectionMap.put(android.provider.Contacts.Phones._ID, in sPhoneProjectionMap.put() argument 402 android.provider.Contacts.Phones._ID); in sPhoneProjectionMap.put() 417 sExtensionProjectionMap.put(android.provider.Contacts.Extensions._ID, in sExtensionProjectionMap.put() argument [all …]
|
D | DataRowHandler.java | 60 Data._ID, 67 public static final int _ID = 0; field 75 String[] COLUMNS = { Data._ID, Data.RAW_CONTACT_ID, Data.MIMETYPE }; 77 int _ID = 0; field 161 long dataId = c.getLong(DataUpdateQuery._ID); in update() 169 db.update(Tables.DATA, values, Data._ID + " =?", mSelectionArgs1); in update() 231 HASH_INPUT_COLUMNS, Data._ID + "=?", mSelectionArgs1, null, null, null); in handleHashIdForUpdate() 275 cols, Data._ID + "=?", mSelectionArgs1, null, null, null); in handlePrimaryAndSuperPrimary() 318 long dataId = c.getLong(DataDeleteQuery._ID); in delete() 322 int count = db.delete(Tables.DATA, Data._ID + "=?", mSelectionArgs1); in delete() [all …]
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/ |
D | AudioStore.java | 84 MediaStore.Audio.Artists._ID in load() 86 String sortOrder = MediaStore.Audio.Artists._ID; in load() 90 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Artists._ID); in load() 108 MediaStore.Audio.Albums._ID, in load() 111 String sortOrder = MediaStore.Audio.Albums._ID; in load() 115 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Albums._ID); in load() 142 MediaStore.Audio.Media._ID, in load() 148 String sortOrder = MediaStore.Audio.Media._ID; in load() 152 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID); in load() 189 MediaStore.Audio.Playlists._ID in load() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | AbstractContactAggregator.java | 308 "SELECT COUNT(" + RawContacts._ID + ")" + in AbstractContactAggregator() 311 + " AND " + RawContacts._ID + "<>?"); in AbstractContactAggregator() 320 " WHERE " + RawContacts._ID + "=?" in AbstractContactAggregator() 326 " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 331 " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 336 " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 342 + RawContacts.STARRED + "=1)" + " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 351 + ") THEN 1 ELSE 0 END)" + " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 358 + "WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 364 " WHERE " + RawContacts._ID + "=?"); in AbstractContactAggregator() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 168 "old." + CalendarContract.Events._ID + ";" + 171 "old." + CalendarContract.Events._ID + ";" + 174 "old." + CalendarContract.Events._ID + ";" + 177 "old." + CalendarContract.Events._ID + ";" + 180 "old." + CalendarContract.Events._ID + ";" + 183 "old." + CalendarContract.Events._ID + ";"; 190 " WHERE " + Events.ORIGINAL_ID + "=old." + Events._ID + ";"; 202 "old." + CalendarContract.Events._ID + ";"; 210 + " WHERE " + Calendars._ID + "=" + "old." + Calendars._ID 221 + Tables.CALENDARS + " WHERE " + Calendars._ID + "=new." + Events.CALENDAR_ID [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
D | ContactsTableUtil.java | 62 db.update(Tables.CONTACTS, values, Contacts._ID + " = ?", in updateContactLastUpdateByContactId() 96 + " WHERE " + Contacts._ID + " IN ( " in buildUpdateLastUpdateSql() 99 + " WHERE " + ContactsContract.RawContacts._ID in buildUpdateLastUpdateSql() 114 return db.delete(Tables.CONTACTS, Contacts._ID + " = ?", new String[]{contactId + ""}); in deleteContact() 129 + " where " + ContactsContract.RawContacts._ID + " = ?)" in deleteContactIfSingleton()
|
/packages/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapContract.java | 370 String _ID = "_id"; field 445 String _ID = "_id"; field 505 String _ID = "_id"; field 704 String _ID = "_id"; field 1012 MessageColumns._ID, 1036 MessageColumns._ID, 1058 AccountColumns._ID, AccountColumns.ACCOUNT_DISPLAY_NAME, AccountColumns.FLAG_EXPOSE, 1066 AccountColumns._ID, 1076 FolderColumns._ID,
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadIdleService.java | 101 Downloads.Impl._ID, 106 final int _ID = 0; field 127 final long id = cursor.getLong(StaleQuery._ID); in cleanStale() 141 Downloads.Impl._ID, 144 final int _ID = 0; field 175 final long id = cursor.getLong(OrphanQuery._ID); in cleanOrphans()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | TestDataFactory.java | 48 ConversationListViewColumns._ID, 67 Phone._ID, 72 Contacts._ID, 79 ConversationMessageViewColumns._ID, 97 Media._ID, 158 ConversationMessageViewColumns._ID, row).toString(); in getMessageText() 184 ParticipantColumns._ID, in getConversationParticipantsCursor() 269 final String[] ID_PROJECTION = { BaseColumns._ID }; in getSmsMmsThreadIdCursor()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/ |
D | FakeTvProvider.java | 112 + Channels._ID 180 sChannelProjectionMap.put(Channels._ID, CHANNELS_TABLE + "." + Channels._ID); in sChannelProjectionMap.put() argument 255 sProgramProjectionMap.put(Programs._ID, Programs._ID); in sProgramProjectionMap.put() argument 308 sWatchedProgramProjectionMap.put(WatchedPrograms._ID, WatchedPrograms._ID); in sWatchedProgramProjectionMap.put() argument 337 sRecordedProgramProjectionMap.put(RecordedPrograms._ID, RecordedPrograms._ID); in sRecordedProgramProjectionMap.put() argument 421 sPreviewProgramProjectionMap.put(PreviewPrograms._ID, PreviewPrograms._ID); in sPreviewProgramProjectionMap.put() argument 528 sWatchNextProgramProjectionMap.put(WatchNextPrograms._ID, WatchNextPrograms._ID); in sWatchNextProgramProjectionMap.put() argument 658 + RecordedPrograms._ID 732 + Channels._ID 740 + PreviewPrograms._ID [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | ConversationListItemData.java | 293 DatabaseHelper.CONVERSATIONS_TABLE + '.' + ConversationColumns._ID 294 + " as " + ConversationListViewColumns._ID + ", " 344 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns._ID 356 + '=' + DatabaseHelper.PARTICIPANTS_TABLE + '.' + DatabaseHelper.ParticipantColumns._ID 371 + '=' + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns._ID + ") " 377 public static final String _ID = ConversationColumns._ID; field in ConversationListItemData.ConversationListViewColumns 414 ConversationListViewColumns._ID, 506 ConversationColumns._ID + "=?", in getExistingConversation()
|
/packages/apps/Dialer/java/com/android/dialer/calllog/database/ |
D | AnnotatedCallLogContentProvider.java | 97 queryBuilder.appendWhere(AnnotatedCallLog._ID + "=" + ContentUris.parseId(uri)); in query() 156 values.get(AnnotatedCallLog._ID) != null, "You must specify an _ID when inserting"); in insert() 160 Long idFromValues = values.getAsLong(AnnotatedCallLog._ID); in insert() 167 values.put(AnnotatedCallLog._ID, idFromUri); in insert() 180 values.get(AnnotatedCallLog._ID)); in insert() 248 !values.containsKey(AnnotatedCallLog._ID), "Do not specify _ID when updating by ID"); in update() 335 return AnnotatedCallLog._ID + "=" + id; in getSelectionWithId()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
D | VoicemailsQueryHelper.java | 37 Voicemails._ID, // 0 44 public static final int _ID = 0; field in VoicemailsQueryHelper 98 final long id = cursor.getLong(_ID); in getLocalVoicemails() 135 String selectionStatement = String.format(Voicemails._ID + " IN (%s)", sb.toString()); in deleteFromDatabase() 143 Voicemails._ID + "=? AND " + Voicemails.ARCHIVED + "= 0", in deleteNonArchivedFromDatabase() 271 final long id = cursor.getLong(_ID); in oldestVoicemailsOnServer()
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | DatabaseHelperTest.java | 115 + TvContract.Channels._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," in onCreate() 139 + "UNIQUE(" + TvContract.Channels._ID + "," in onCreate() 143 + TvContract.Programs._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," in onCreate() 168 + TvContract.Channels._ID + "," + TvContract.Channels.COLUMN_PACKAGE_NAME in onCreate() 184 + TvContract.WatchedPrograms._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," in onCreate() 203 + TvContract.Channels._ID + "," + TvContract.Channels.COLUMN_PACKAGE_NAME in onCreate()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 520 BaseColumns._ID + "=?", in getDocumentMetadataFromIndex() 630 ImageQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 651 VideoQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 663 ArtistQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 672 AlbumQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 681 SongQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 703 FileColumns._ID + "=?", queryArgs, null); in queryDocument() 1105 try (Cursor cursor = resolver.query(uri, new String[]{FileColumns._ID}, extras, null)) { in isEmpty() argument 1248 ImageColumns._ID, 1254 final int _ID = 0; field [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelDbController.java | 18 import static android.provider.BaseColumns._ID; 380 + LauncherSettings.Favorites._ID + " NOT IN (SELECT " in deleteEmptyFolders() 385 Favorites._ID, selection, null, null); in deleteEmptyFolders() 388 LauncherSettings.Favorites._ID, folderIds), null); in deleteEmptyFolders() 412 + " AND " + _ID + " NOT IN" in deleteBadAppPairs() 417 _ID, selection, null, null); in deleteBadAppPairs() 420 _ID, appPairIds), null); in deleteBadAppPairs() 444 + " (SELECT " + _ID + " FROM " + TABLE_NAME + ")"; in deleteUnparentedApps() 447 _ID, selection, null, null); in deleteUnparentedApps() 450 _ID, appIds), null); in deleteUnparentedApps()
|