Home
last modified time | relevance | path

Searched refs:_ID (Results 1 – 25 of 351) sorted by relevance

12345678910>>...15

/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.kt58 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 …]
DClockDatabaseHelper.kt138 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/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java274 + "(SELECT " + MimetypesColumns._ID
352 String[] ID = new String[] {BaseColumns._ID};
377 "(SELECT " + AccountsColumns._ID +
390 final String OUTER_RAW_CONTACTS_ID = OUTER_RAW_CONTACTS + "." + RawContacts._ID;
413 + " WHERE " + Tables.CONTACTS +"." + Contacts._ID
414 + "=" + Tables.VISIBLE_CONTACTS +"." + Contacts._ID + ")";
418 + " WHERE " + Tables.CONTACTS +"." + Contacts._ID
419 + "=" + Tables.DEFAULT_DIRECTORY +"." + Contacts._ID + ")";
425 public static final String CONCRETE_ID = Tables.CONTACTS + "." + BaseColumns._ID;
448 Tables.RAW_CONTACTS + "." + BaseColumns._ID;
[all …]
DLegacyApiSupport.java227 String[] COLUMNS = { BaseColumns._ID };
229 int _ID = 0; field
353 sPeopleProjectionMap.put(People._ID, People._ID); in sPeopleProjectionMap.put() argument
367 " WHERE " + DataColumns.CONCRETE_RAW_CONTACT_ID + "=people." + People._ID + in sPeopleProjectionMap.put()
373 sOrganizationProjectionMap.put(android.provider.Contacts.Organizations._ID, in sOrganizationProjectionMap.put() argument
374 android.provider.Contacts.Organizations._ID); in sOrganizationProjectionMap.put()
389 sContactMethodProjectionMap.put(ContactMethods._ID, ContactMethods._ID); in sContactMethodProjectionMap.put() argument
399 sPhoneProjectionMap.put(android.provider.Contacts.Phones._ID, in sPhoneProjectionMap.put() argument
400 android.provider.Contacts.Phones._ID); in sPhoneProjectionMap.put()
415 sExtensionProjectionMap.put(android.provider.Contacts.Extensions._ID, in sExtensionProjectionMap.put() argument
[all …]
DDataRowHandler.java56 Data._ID,
63 public static final int _ID = 0; field
71 String[] COLUMNS = { Data._ID, Data.RAW_CONTACT_ID, Data.MIMETYPE };
73 int _ID = 0; field
157 long dataId = c.getLong(DataUpdateQuery._ID); in update()
165 db.update(Tables.DATA, values, Data._ID + " =?", mSelectionArgs1); in update()
227 HASH_INPUT_COLUMNS, Data._ID + "=?", mSelectionArgs1, null, null, null); in handleHashIdForUpdate()
271 cols, Data._ID + "=?", mSelectionArgs1, null, null, null); in handlePrimaryAndSuperPrimary()
314 long dataId = c.getLong(DataDeleteQuery._ID); in delete()
318 int count = db.delete(Tables.DATA, Data._ID + "=?", mSelectionArgs1); in delete()
[all …]
DContactsProvider2.java468 = new String[] {Tables.GROUPS + "." + Groups._ID};
476 + " FROM " + Tables.RAW_CONTACTS + " WHERE " + RawContacts._ID + "=?";
525 Contacts._ID + " IN "
533 + "(SELECT " + Tables.GROUPS + "." + Groups._ID
541 " WHERE " + RawContacts._ID + " IN (";
547 " WHERE " + RawContacts._ID + " IN (";
553 " WHERE " + Contacts._ID + " = ?1 AND " + Contacts.PINNED + " <= " +
594 Data._ID,
744 .add(Contacts._ID)
792 .add(Contacts._ID)
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseHelper.java163 + 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 …]
DBugleDatabaseOperations.java263 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/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java312 "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 …]
DContactAggregator2.java192 final String sql = "SELECT " + RawContacts._ID + " FROM " + Tables.RAW_CONTACTS + in needAggregate()
194 " AND " + RawContacts._ID + "=?"; in needAggregate()
734 RawContacts._ID,
900 String selection = RawContacts._ID + " =" + rawContactId; in rawContactWithoutName()
922 mSb.append(RawContacts._ID).append(" IN ("); in updateScoreForCandidatesWithoutName()
955 + Tables.RAW_CONTACTS + "." + RawContacts._ID + ")";
981 + Tables.RAW_CONTACTS + "." + RawContacts._ID + ")";
987 RawContacts._ID,
1009 + Tables.RAW_CONTACTS + "." + RawContacts._ID + ")";
1018 Tables.RAW_CONTACTS + "." + RawContacts._ID,
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java84 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/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java168 "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/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java200 Contacts._ID, in testContactsProjection()
241 Contacts._ID, in testContactsStrequentProjection()
286 Contacts._ID, in testContactsStrequentPhoneOnlyProjection()
335 Contacts._ID, in testContactsWithSnippetProjection()
377 RawContacts._ID, in testRawContactsProjection()
417 Data._ID, in testDataProjection()
466 Contacts._ID, in testDataProjection()
508 Data._ID, in testDistinctDataProjection()
548 Contacts._ID, in testDistinctDataProjection()
591 Contacts.Entity._ID, in testEntityProjection()
[all …]
DContactsDatabaseHelperUpgradeTest.java152 cv(Contacts._ID, 1, in upgradeTo1201()
219 new TableColumn(AccountsColumns._ID, INTEGER, false, null),
228 new TableColumn(BaseColumns._ID, INTEGER, false, null),
253 new TableColumn(RawContacts._ID, INTEGER, false, null),
295 new TableColumn(StreamItems._ID, INTEGER, false, null),
310 new TableColumn(StreamItemPhotos._ID, INTEGER, false, null),
321 new TableColumn(PhotoFiles._ID, INTEGER, false, null),
328 new TableColumn(PackagesColumns._ID, INTEGER, false, null),
333 new TableColumn(MimetypesColumns._ID, INTEGER, false, null),
338 new TableColumn(Data._ID, INTEGER, false, null),
[all …]
DContactLookupKeyTest.java60 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount()
64 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount()
68 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount()
94 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingSourceIdAndNoAccount()
122 assertStoredValue(lookupUri1, Contacts._ID, contactId1); in testLookupKeySameSourceIdDifferentAccounts()
125 assertStoredValue(lookupUri2, Contacts._ID, contactId2); in testLookupKeySameSourceIdDifferentAccounts()
165 assertStoredValue(lookupUri, Contacts._ID, largerContactId); in testLookupKeyChoosingLargestContact()
DPhotoStoreTest.java144 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/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapContract.java392 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/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeTvProvider.java112 + 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/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java518 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()
1106 try (Cursor cursor = resolver.query(uri, new String[]{FileColumns._ID}, extras, null)) { in isEmpty() argument
1249 ImageColumns._ID,
1255 final int _ID = 0; field
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
DContactsTableUtil.java62 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/TvProvider/src/com/android/providers/tv/
DTvProvider.java119 + " ON (" + CHANNELS_TABLE + "." + Channels._ID + "="
180 sChannelProjectionMap.put(Channels._ID, CHANNELS_TABLE + "." + Channels._ID); in initProjectionMaps()
252 sProgramProjectionMap.put(Programs._ID, Programs._ID); in initProjectionMaps()
312 sWatchedProgramProjectionMap.put(WatchedPrograms._ID, WatchedPrograms._ID); in initProjectionMaps()
336 sRecordedProgramProjectionMap.put(RecordedPrograms._ID, RecordedPrograms._ID); in initProjectionMaps()
409 sPreviewProgramProjectionMap.put(PreviewPrograms._ID, PreviewPrograms._ID); in initProjectionMaps()
507 sWatchNextProgramProjectionMap.put(WatchNextPrograms._ID, WatchNextPrograms._ID); in initProjectionMaps()
620 + RecordedPrograms._ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
657 + "REFERENCES " + CHANNELS_TABLE + "(" + Channels._ID + ") "
662 + PreviewPrograms._ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DTestDataFactory.java48 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/DownloadProvider/src/com/android/providers/downloads/
DDownloadIdleService.java101 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/src/com/android/messaging/datamodel/data/
DConversationListItemData.java293 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/
DAnnotatedCallLogContentProvider.java97 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()

12345678910>>...15