Home
last modified time | relevance | path

Searched refs:selectionBuilder (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/database/
DSimContactDaoImpl.java314 final StringBuilder selectionBuilder = new StringBuilder(); in queryRawContactsForSimContacts() local
327 selectionBuilder.append('('); in queryRawContactsForSimContacts()
328 selectionBuilder.append(Data.MIMETYPE).append("=? AND "); in queryRawContactsForSimContacts()
331 selectionBuilder.append(Phone.NUMBER).append(" IN (") in queryRawContactsForSimContacts()
339 selectionBuilder.append(')'); in queryRawContactsForSimContacts()
342 selectionBuilder.append(" OR ("); in queryRawContactsForSimContacts()
344 selectionBuilder.append(Data.MIMETYPE).append("=? AND "); in queryRawContactsForSimContacts()
347 selectionBuilder.append(Data.DISPLAY_NAME).append(" IN (") in queryRawContactsForSimContacts()
355 selectionBuilder.append(')'); in queryRawContactsForSimContacts()
362 selectionBuilder.toString(), in queryRawContactsForSimContacts()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogProvider.java249 final SelectionBuilder selectionBuilder = new SelectionBuilder(selection); in query() local
250 checkVoicemailPermissionAndAddRestriction(uri, selectionBuilder, true /*isQuery*/); in query()
251 selectionBuilder.addClause(EXCLUDE_HIDDEN_SELECTION); in query()
259 selectionBuilder.addClause(getEqualityClause(Calls._ID, in query()
290 final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, in query()
409 SelectionBuilder selectionBuilder = new SelectionBuilder(selection); in update() local
410 checkVoicemailPermissionAndAddRestriction(uri, selectionBuilder, false /*isQuery*/); in update()
419 selectionBuilder.addClause(getEqualityClause(Calls._ID, parseCallIdFromUri(uri))); in update()
426 return getDatabaseModifier(db).update(uri, Tables.CALLS, values, selectionBuilder.build(), in update()
439 SelectionBuilder selectionBuilder = new SelectionBuilder(selection); in delete() local
[all …]
DVoicemailContentProvider.java169 SelectionBuilder selectionBuilder = new SelectionBuilder(selection); in query() local
170 selectionBuilder.addClause(getPackageRestrictionClause(true/*isQuery*/)); in query()
171 return getTableDelegate(uriData).query(uriData, projection, selectionBuilder.build(), in query()
184 SelectionBuilder selectionBuilder = new SelectionBuilder(selection); in update() local
185 selectionBuilder.addClause(getPackageRestrictionClause(false/*isQuery*/)); in update()
186 return getTableDelegate(uriData).update(uriData, values, selectionBuilder.build(), in update()
199 SelectionBuilder selectionBuilder = new SelectionBuilder(selection); in delete() local
200 selectionBuilder.addClause(getPackageRestrictionClause(false/*isQuery*/)); in delete()
201 return getTableDelegate(uriData).delete(uriData, selectionBuilder.build(), selectionArgs); in delete()
DContactMetadataProvider.java133 final SelectionBuilder selectionBuilder = new SelectionBuilder(selection); in query() local
143 selectionBuilder.addClause(getEqualityClause(MetadataSync._ID, in query()
156 return qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, in query()
/packages/apps/Messaging/src/com/android/messaging/sms/
DApnDatabase.java229 final StringBuilder selectionBuilder = new StringBuilder(); in saveUserDataFromOldTable() local
233 if (selectionBuilder.length() > 0) { in saveUserDataFromOldTable()
234 selectionBuilder.append(" AND "); in saveUserDataFromOldTable()
238 selectionBuilder.append(key).append(" IS NULL"); in saveUserDataFromOldTable()
240 selectionBuilder.append(key).append("=?"); in saveUserDataFromOldTable()
249 selectionBuilder.toString(), in saveUserDataFromOldTable()
DBugleApnSettingsLoader.java446 final StringBuilder selectionBuilder = new StringBuilder(); in querySystem() local
449 selectionBuilder.append(SELECTION_CURRENT); in querySystem()
453 if (selectionBuilder.length() > 0) { in querySystem()
454 selectionBuilder.append(" AND "); in querySystem()
456 selectionBuilder.append(SELECTION_APN); in querySystem()
465 selectionBuilder.toString(), in querySystem()
/packages/apps/Messaging/src/android/support/v7/mms/
DDefaultApnSettingsLoader.java348 final StringBuilder selectionBuilder = new StringBuilder(); in querySystem() local
351 selectionBuilder.append(Telephony.Carriers.CURRENT).append(" IS NOT NULL"); in querySystem()
355 if (selectionBuilder.length() > 0) { in querySystem()
356 selectionBuilder.append(" AND "); in querySystem()
358 selectionBuilder.append(Telephony.Carriers.APN).append("=?"); in querySystem()
365 selectionBuilder.toString(), in querySystem()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java358 StringBuilder selectionBuilder = new StringBuilder(ORIGINAL_NUMBER_SELECTION); in unblock() local
362 selectionBuilder.append(" or " + E164_NUMBER_SELECTION); in unblock()
365 String selection = selectionBuilder.toString(); in unblock()