Home
last modified time | relevance | path

Searched refs:where (Results 1 – 25 of 130) sorted by relevance

123456

/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemailClientImpl.java277 Context context, StringBuilder where, List<String> selectionArgs) { in appendOmtpVoicemailSelectionClause() argument
280 if (where.length() != 0) { in appendOmtpVoicemailSelectionClause()
281 where.append(" AND "); in appendOmtpVoicemailSelectionClause()
283 where.append("("); in appendOmtpVoicemailSelectionClause()
285 where.append("("); in appendOmtpVoicemailSelectionClause()
287 where.append(Voicemails.IS_OMTP_VOICEMAIL).append(" != 1"); in appendOmtpVoicemailSelectionClause()
288 where.append(")"); in appendOmtpVoicemailSelectionClause()
290 where.append(" OR "); in appendOmtpVoicemailSelectionClause()
291 where.append("("); in appendOmtpVoicemailSelectionClause()
293 where.append(Voicemails.SOURCE_PACKAGE).append(" = ?"); in appendOmtpVoicemailSelectionClause()
[all …]
/packages/apps/Dialer/java/com/android/dialer/database/
DCallLogQueryHandler.java106 StringBuilder where = new StringBuilder(); in fetchVoicemailStatus() local
111 .appendOmtpVoicemailStatusSelectionClause(context, where, selectionArgs); in fetchVoicemailStatus()
120 where.toString(), in fetchVoicemailStatus()
133 StringBuilder where = in fetchVoicemailUnreadCount() local
139 .appendOmtpVoicemailSelectionClause(context, where, selectionArgs); in fetchVoicemailUnreadCount()
146 where.toString(), in fetchVoicemailUnreadCount()
154 StringBuilder where = new StringBuilder(); in fetchCalls() local
158 where.append("(").append(Calls.TYPE).append(" != ?)"); in fetchCalls()
162 where.append(" AND (").append(Voicemails.DELETED).append(" = 0)"); in fetchCalls()
165 where.append(" AND (").append(Calls.NEW).append(" = 1)"); in fetchCalls()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContent.java1732 String where = ""; in setWhereFilterFolderTypeSms() local
1734 where = Sms.TYPE + " = 1 AND " + Sms.THREAD_ID + " <> -1"; in setWhereFilterFolderTypeSms()
1736 where = "(" + Sms.TYPE + " = 4 OR " + Sms.TYPE + " = 5 OR " + Sms.TYPE + " = 6) AND " in setWhereFilterFolderTypeSms()
1739 where = Sms.TYPE + " = 2 AND " + Sms.THREAD_ID + " <> -1"; in setWhereFilterFolderTypeSms()
1741 where = Sms.TYPE + " = 3 AND " + "(" + Sms.THREAD_ID + " IS NULL OR " + Sms.THREAD_ID in setWhereFilterFolderTypeSms()
1744 where = Sms.THREAD_ID + " = -1"; in setWhereFilterFolderTypeSms()
1747 return where; in setWhereFilterFolderTypeSms()
1751 String where = ""; in setWhereFilterFolderTypeMms() local
1753 where = Mms.MESSAGE_BOX + " = 1 AND " + Mms.THREAD_ID + " <> -1"; in setWhereFilterFolderTypeMms()
1755 where = Mms.MESSAGE_BOX + " = 4 AND " + Mms.THREAD_ID + " <> -1"; in setWhereFilterFolderTypeMms()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java210 public int update(@NonNull Uri uri, ContentValues values, String where, String[] whereArgs) { in update() argument
257 public int delete(@NonNull Uri uri, String where, String[] whereArgs) { in delete() argument
263 count = db.delete(ALARMS_TABLE_NAME, where, whereArgs); in delete()
267 if (TextUtils.isEmpty(where)) { in delete()
268 where = AlarmsColumns._ID + "=" + primaryKey; in delete()
270 where = AlarmsColumns._ID + "=" + primaryKey + " AND (" + where + ")"; in delete()
272 count = db.delete(ALARMS_TABLE_NAME, where, whereArgs); in delete()
275 count = db.delete(INSTANCES_TABLE_NAME, where, whereArgs); in delete()
279 if (TextUtils.isEmpty(where)) { in delete()
280 where = InstancesColumns._ID + "=" + primaryKey; in delete()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeContentProvider.java40 private final String where; field in FakeContentProvider.ContentOverride
45 ContentOverride(final String uri, final String where, final String args, in ContentOverride() argument
48 this.where = where; in ContentOverride()
54 boolean match(final String uri, final String where, final String[] args) { in match() argument
55 if (!this.uri.equals(uri) || !TextUtils.equals(this.where, where)) { in match()
88 public void addOverrideData(final Uri uri, final String where, final String args, in addOverrideData() argument
90 mOverrides.add(new ContentOverride(uri.toString(), where, args, columns, data)); in addOverrideData()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DVoicemailQueryHandler.java70 StringBuilder where = new StringBuilder(); in markNewVoicemailsAsOld() local
71 where.append(Calls.NEW); in markNewVoicemailsAsOld()
72 where.append(" = 1 AND "); in markNewVoicemailsAsOld()
73 where.append(Calls.TYPE); in markNewVoicemailsAsOld()
74 where.append(" = ?"); in markNewVoicemailsAsOld()
77 where.append(" AND ").append(Calls.VOICEMAIL_URI).append(" = ?"); in markNewVoicemailsAsOld()
88 where.toString(), in markNewVoicemailsAsOld()
DCallLogAsyncTaskUtil.java124 StringBuilder where = new StringBuilder(); in markCallAsRead()
125 where.append(CallLog.Calls.TYPE).append(" = ").append(CallLog.Calls.MISSED_TYPE); in markCallAsRead()
126 where.append(" AND "); in markCallAsRead()
132 where in markCallAsRead()
140 .update(CallLog.Calls.CONTENT_URI, values, where.toString(), null); in markCallAsRead()
DCallLogNotificationsQueryHelper.java126 StringBuilder where = new StringBuilder(); in markMissedCallsInCallLogAsRead() local
127 where.append(Calls.NEW); in markMissedCallsInCallLogAsRead()
128 where.append(" = 1 AND "); in markMissedCallsInCallLogAsRead()
129 where.append(Calls.TYPE); in markMissedCallsInCallLogAsRead()
130 where.append(" = ?"); in markMissedCallsInCallLogAsRead()
137 where.toString(), in markMissedCallsInCallLogAsRead()
/packages/apps/Car/Dialer/src/com/android/car/dialer/livedata/
DUnreadMissedCallLiveData.java40 StringBuilder where = new StringBuilder(); in newInstance() local
42 where.append(String.format("(%s = ?)", CallLog.Calls.TYPE)); in newInstance()
43 where.append(String.format("AND (%s = 1)", CallLog.Calls.NEW)); in newInstance()
44 where.append(String.format("AND (%s IS NOT 1)", CallLog.Calls.IS_READ)); in newInstance()
47 String selection = where.length() > 0 ? where.toString() : null; in newInstance()
DCallHistoryLiveData.java74 StringBuilder where = new StringBuilder(); in newInstance() local
80 where.append(String.format("(%s = ?)", CallLog.Calls.TYPE)); in newInstance()
83 String selection = where.length() > 0 ? where.toString() : null; in newInstance()
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java351 String where; in addIdToSelection() local
356 where = WHERE_ID; in addIdToSelection()
361 return DatabaseUtils.concatenateWhere(selection, where); in addIdToSelection()
461 protected static String metadataSelectionFromPhotos(String where) { in metadataSelectionFromPhotos() argument
462 return nestWhere(Metadata.PHOTO_ID, Photos.TABLE, where); in metadataSelectionFromPhotos()
465 protected static String photoSelectionFromAlbums(String where) { in photoSelectionFromAlbums() argument
466 return nestWhere(Photos.ALBUM_ID, Albums.TABLE, where); in photoSelectionFromAlbums()
469 protected static String photoSelectionFromAccounts(String where) { in photoSelectionFromAccounts() argument
470 return nestWhere(Photos.ACCOUNT_ID, Accounts.TABLE, where); in photoSelectionFromAccounts()
473 protected static String albumSelectionFromAccounts(String where) { in albumSelectionFromAccounts() argument
[all …]
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java476 String where = ContactsContract.Contacts._ID + " = ?"; in setAsFavoriteContact() local
479 where, selectionArgs); in setAsFavoriteContact()
497 StringBuilder where = new StringBuilder(); in markCallLogAsRead() local
498 where.append(CallLog.Calls.NEW); in markCallLogAsRead()
499 where.append(" = 1 AND "); in markCallLogAsRead()
500 where.append(CallLog.Calls.TYPE); in markCallLogAsRead()
501 where.append(" = ?"); in markCallLogAsRead()
504 where.append(" AND "); in markCallLogAsRead()
505 where.append(CallLog.Calls.NUMBER); in markCallLogAsRead()
506 where.append(" = ?"); in markCallLogAsRead()
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java259 public int delete(Uri uri, String where, String[] whereArgs) { in delete() argument
269 count = db.delete(USERDICT_TABLE_NAME, where, whereArgs); in delete()
275 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs); in delete()
288 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) { in update() argument
298 count = db.update(USERDICT_TABLE_NAME, values, where, whereArgs); in update()
304 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs); in update()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java79 String where; field in CalendarAppWidgetModel.EventInfo
112 builder.append(where); in toString()
134 result = prime * result + ((where == null) ? 0 : where.hashCode()); in hashCode()
174 if (where == null) { in equals()
175 if (other.where != null) in equals()
177 } else if (!where.equals(other.where)) { in equals()
400 eventInfo.where = location; in populateEventInfo()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java850 public int delete(Uri url, String where, String[] whereArgs) { in delete() argument
857 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
860 MmsSmsDatabaseHelper.updateThreads(db, where, whereArgs); in delete()
886 where = DatabaseUtils.concatenateWhere("thread_id=" + threadID, where); in delete()
887 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
894 count = db.update(TABLE_RAW, cv, where, whereArgs); in delete()
902 count = db.delete(TABLE_RAW, where, whereArgs); in delete()
910 count = db.delete("sr_pending", where, whereArgs); in delete()
1035 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { in update() argument
1106 where = DatabaseUtils.concatenateWhere(where, extraWhere); in update()
[all …]
DTelephonyProvider.java1696 String where = queryValFirst(NUMERIC) + in deleteRow() local
1794 log("deleteRow: where: " + where); in deleteRow()
1803 db.delete(CARRIERS_TABLE, where, whereArgs); in deleteRow()
2834 String where = TextUtils.join("=? and ", whereList) + "=?"; in getPreferredApnIdFromApn()
2839 Cursor c = db.query(CARRIERS_TABLE, new String[]{"_id"}, where, whereArgs, null, null, in getPreferredApnIdFromApn()
3485 public synchronized int delete(Uri url, String where, String[] whereArgs) { in delete() argument
3509 count = db.delete(CARRIERS_TABLE, "(" + where + unedited + " and " + in delete()
3531 count = db.delete(CARRIERS_TABLE, "(" + where + userOrCarrierEdited in delete()
3534 count += db.update(CARRIERS_TABLE, cv, "(" + where + in delete()
3555 count = db.delete(CARRIERS_TABLE, "(" + where + userOrCarrierEdited in delete()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/
DSqliteWrapper.java51 ContentValues values, String where, String[] selectionArgs) { in update() argument
53 return resolver.update(uri, values, where, selectionArgs); in update()
64 String where, String[] selectionArgs) { in delete() argument
66 return resolver.delete(uri, where, selectionArgs); in delete()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java145 String where = "SELECT " + columnName + " FROM " + Tables.EVENTS + in getEventValue() local
147 return DatabaseUtils.stringForQuery(db, where, in getEventValue()
791 String where = SQL_WHERE_ID_FROM_INSTANCES_NOT_SYNCED; in updateRecurrenceInstancesLocked() local
792 delCount = db.delete(Tables.INSTANCES, where, new String[] { in updateRecurrenceInstancesLocked()
799 String where = SQL_WHERE_ID_FROM_INSTANCES_SYNCED; in updateRecurrenceInstancesLocked() local
800 delCount = db.delete(Tables.INSTANCES, where, new String[] { in updateRecurrenceInstancesLocked()
840 String where = CalendarProvider2.SQL_WHERE_ID; in getRelevantRecurrenceEntries() local
841 qb.appendWhere(where); in getRelevantRecurrenceEntries()
847 String where = "(" + Events._SYNC_ID + "=? OR " + Events.ORIGINAL_SYNC_ID + "=?) AND " in getRelevantRecurrenceEntries() local
849 qb.appendWhere(where); in getRelevantRecurrenceEntries()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java144 if (TextUtils.isEmpty(args.where)) { in getType()
180 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
329 int count = db.delete(args.table, args.where, args.args); in delete()
345 int count = db.update(args.table, values, args.where, args.args); in update()
1013 public final String where; field in LauncherProvider.SqlArguments
1016 SqlArguments(Uri url, String where, String[] args) { in SqlArguments() argument
1019 this.where = where; in SqlArguments()
1023 } else if (!TextUtils.isEmpty(where)) { in SqlArguments()
1027 this.where = "_id=" + ContentUris.parseId(url); in SqlArguments()
1035 where = null; in SqlArguments()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DAtPhonebook.java406 String where; in queryPhonebook() local
411 where = null; in queryPhonebook()
413 where = OUTGOING_CALL_WHERE; in queryPhonebook()
415 where = INCOMING_CALL_WHERE; in queryPhonebook()
417 where = MISSED_CALL_WHERE; in queryPhonebook()
428 pbr.cursor = mContentResolver.query(Calls.CONTENT_URI, CALLS_PROJECTION, where, null, in queryPhonebook()
441 pbr.cursor = mContentResolver.query(phoneContentUri, PHONES_PROJECTION, where, null, in queryPhonebook()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVoicemailStatusWorker.java42 StringBuilder where = new StringBuilder(); in doInBackground() local
47 .appendOmtpVoicemailStatusSelectionClause(context, where, selectionArgs); in doInBackground()
55 where.toString(), in doInBackground()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsCursorLoader.java74 String where = getProjection(context)[CONTACT_DISPLAY_NAME] + " IS NOT NULL"; in getWhere() local
76 where += " AND " + Contacts.HAS_PHONE_NUMBER + "=1"; in getWhere()
78 return where; in getWhere()
/packages/services/Car/tools/hidl_parser/
Dparser.py276 def __init__(self, where, ref): argument
277 self.where = where
281 return '%s:%s' % (self.where, self.ref)
284 enum = document['enums'][self.where]
/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
DCp2DefaultDirectoryPhoneLookup.java379 String where =
400 where,
897 String where =
917 where,
958 StringBuilder where = new StringBuilder();
961 where.append(", ");
963 where.append("?");
965 return where.toString();
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java166 private void removeFixedViewInfo(View v, ArrayList<FixedViewInfo> where) { in removeFixedViewInfo() argument
167 int len = where.size(); in removeFixedViewInfo()
169 FixedViewInfo info = where.get(i); in removeFixedViewInfo()
171 where.remove(i); in removeFixedViewInfo()

123456