/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 | 425 Contacts._ID, in testContactsProjection() 466 Contacts._ID, in testContactsStrequentProjection() 511 Contacts._ID, in testContactsStrequentPhoneOnlyProjection() 560 Contacts._ID, in testContactsWithSnippetProjection() 602 RawContacts._ID, in testRawContactsProjection() 642 Data._ID, in testDataProjection() 691 Contacts._ID, in testDataProjection() 733 Data._ID, in testDistinctDataProjection() 773 Contacts._ID, in testDistinctDataProjection() 816 Contacts.Entity._ID, in testEntityProjection() [all …]
|
D | ContactLookupKeyTest.java | 67 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() 71 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() 75 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() 105 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingSourceIdAndNoAccount() 133 assertStoredValue(lookupUri1, Contacts._ID, contactId1); in testLookupKeySameSourceIdDifferentAccounts() 136 assertStoredValue(lookupUri2, Contacts._ID, contactId2); in testLookupKeySameSourceIdDifferentAccounts() 178 assertStoredValue(lookupUri, Contacts._ID, largerContactId); in testLookupKeyChoosingLargestContact()
|
D | PhotoStoreTest.java | 144 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in runStorageTestForResource() 165 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in runStorageTestForResourceWithCrop() 187 Cursor c = mDb.query(Tables.PHOTO_FILES, new String[]{PhotoFiles._ID}, in testRemoveEntry() 188 PhotoFiles._ID + "=?", new String[]{String.valueOf(photoFileId)}, null, null, null); in testRemoveEntry() 233 Cursor c = mDb.query(Tables.PHOTO_FILES, new String[]{PhotoFiles._ID}, in testCleanup() 234 PhotoFiles._ID + "=?", new String[]{String.valueOf(normalPhotoId)}, in testCleanup()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 277 + "(SELECT " + MimetypesColumns._ID 356 String[] ID = new String[] {BaseColumns._ID}; 383 + AccountsColumns._ID 403 final String OUTER_RAW_CONTACTS_ID = OUTER_RAW_CONTACTS + "." + RawContacts._ID; 424 + " WHERE " + Tables.CONTACTS +"." + Contacts._ID 425 + "=" + Tables.VISIBLE_CONTACTS +"." + Contacts._ID + ")"; 429 + " WHERE " + Tables.CONTACTS +"." + Contacts._ID 430 + "=" + Tables.DEFAULT_DIRECTORY +"." + Contacts._ID + ")"; 447 public static final String CONCRETE_ID = Tables.CONTACTS + "." + BaseColumns._ID; 470 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 | 312 "SELECT COUNT(" + RawContacts._ID + ")" + in AbstractContactAggregator() 315 + " AND " + RawContacts._ID + "<>?"); in AbstractContactAggregator() 324 " WHERE " + RawContacts._ID + "=?" in AbstractContactAggregator() 330 " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 335 " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 340 " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 346 + RawContacts.STARRED + "=1)" + " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 355 + ") THEN 1 ELSE 0 END)" + " WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 362 + "WHERE " + Contacts._ID + "=?"); in AbstractContactAggregator() 368 " 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/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapContract.java | 392 String _ID = "_id"; field 474 String _ID = "_id"; field 544 String _ID = "_id"; field 749 String _ID = "_id"; field 1083 MessageColumns._ID, 1106 MessageColumns._ID, 1129 AccountColumns._ID, AccountColumns.ACCOUNT_DISPLAY_NAME, AccountColumns.FLAG_EXPOSE, 1137 AccountColumns._ID, 1148 FolderColumns._ID,
|
/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/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/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/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/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 518 BaseColumns._ID + "=?", in getDocumentMetadataFromIndex() 628 ImageQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 649 VideoQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 661 ArtistQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 670 AlbumQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 679 SongQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 701 FileColumns._ID + "=?", queryArgs, null); in queryDocument() 1103 try (Cursor cursor = resolver.query(uri, new String[]{FileColumns._ID}, extras, null)) { in isEmpty() argument 1246 ImageColumns._ID, 1252 final int _ID = 0; field [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/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 119 + " ON (" + CHANNELS_TABLE + "." + Channels._ID + "=" 181 sChannelProjectionMap.put(Channels._ID, CHANNELS_TABLE + "." + Channels._ID); in initProjectionMaps() 253 sProgramProjectionMap.put(Programs._ID, Programs._ID); in initProjectionMaps() 319 sWatchedProgramProjectionMap.put(WatchedPrograms._ID, WatchedPrograms._ID); in initProjectionMaps() 343 sRecordedProgramProjectionMap.put(RecordedPrograms._ID, RecordedPrograms._ID); in initProjectionMaps() 420 sPreviewProgramProjectionMap.put(PreviewPrograms._ID, PreviewPrograms._ID); in initProjectionMaps() 522 sWatchNextProgramProjectionMap.put(WatchNextPrograms._ID, WatchNextPrograms._ID); in initProjectionMaps() 639 + RecordedPrograms._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," 678 + "REFERENCES " + CHANNELS_TABLE + "(" + Channels._ID + ") " 683 + PreviewPrograms._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," [all …]
|
/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/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()
|