Home
last modified time | relevance | path

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

1234567

/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/modules/adb/
Dadb.bash27 local where i cur serial
31 where=OPTIONS
36 where=OPT_SERIAL
39 where=OPT_PATH
42 where=OPTIONS
45 if [[ $where == OPT_SERIAL ]]; then
46 where=OPT_SERIAL_ARG
49 where=COMMAND
56 if [[ $where == COMMAND && $i -ge $COMP_CWORD ]]; then
57 where=OPTIONS
[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/Car/Dialer/src/com/android/car/dialer/livedata/
DUnreadMissedCallLiveData.java42 StringBuilder where = new StringBuilder(); in newInstance() local
44 where.append(String.format("%s = ?", CallLog.Calls.TYPE)); in newInstance()
46 where.append(String.format(" AND %s = 1", CallLog.Calls.NEW)); in newInstance()
47 where.append(String.format(" AND %s IS NOT 1", CallLog.Calls.IS_READ)); in newInstance()
49 where.append(String.format(" AND %s IS NULL", CallLog.Calls.PHONE_ACCOUNT_ID)); in newInstance()
51 where.append(String.format(" AND %s = ?", CallLog.Calls.PHONE_ACCOUNT_ID)); in newInstance()
55 String selection = where.length() > 0 ? where.toString() : null; in newInstance()
DCallHistoryLiveData.java70 StringBuilder where = new StringBuilder(); in newInstance() local
76 where.append(CallLog.Calls.TYPE + " = ?"); in newInstance()
78 where.append(" AND "); in newInstance()
82 where.append(CallLog.Calls.PHONE_ACCOUNT_ID + " IS NULL"); in newInstance()
84 where.append(CallLog.Calls.PHONE_ACCOUNT_ID + " = ?"); in newInstance()
95 where.toString(), in newInstance()
/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/ui/favorite/
DBluetoothFavoriteContactsLiveData.java75 StringBuilder where = new StringBuilder(); in getFavoriteQueryParam() local
78 where.append(String.format("%s = ?", ContactsContract.Data.MIMETYPE)); in getFavoriteQueryParam()
80 where.append(String.format(" AND %s = 1", ContactsContract.CommonDataKinds.Phone.STARRED)); in getFavoriteQueryParam()
82 where.append( in getFavoriteQueryParam()
85 where.append(String.format(" AND %s = ?", ContactsContract.RawContacts.ACCOUNT_NAME)); in getFavoriteQueryParam()
90 where.toString(), in getFavoriteQueryParam()
/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/Launcher3/src/com/android/launcher3/util/
DContentWriter.java120 public CommitParams(String where, String[] selectionArgs) { in CommitParams() argument
121 this(LauncherSettings.Favorites.CONTENT_URI, where, selectionArgs); in CommitParams()
124 private CommitParams(Uri uri, String where, String[] selectionArgs) { in CommitParams() argument
126 mWhere = where; in CommitParams()
133 public static CommitParams backupCommitParams(String where, String[] selectionArgs) { in backupCommitParams() argument
135 LauncherSettings.Favorites.BACKUP_CONTENT_URI, where, selectionArgs); in backupCommitParams()
/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/MediaProvider/src/com/android/providers/media/util/
DSQLiteQueryBuilder.java402 boolean distinct, String tables, String[] columns, String where, in buildQueryString() argument
422 appendClause(query, " WHERE ", where); in buildQueryString()
882 String where = computeWhere(selection);
885 mDistinct, mTables, projection, where,
993 final String where = computeWhere(selection);
994 appendClause(sql, " WHERE ", where);
1004 final String where = computeWhere(selection);
1005 appendClause(sql, " WHERE ", where);
1123 final StringBuilder where = new StringBuilder();
1125 where.append('(').append(mWhereClause).append(')');
[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/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java575 StringBuilder where = new StringBuilder(); in markCallLogAsRead() local
576 where.append(CallLog.Calls.NEW); in markCallLogAsRead()
577 where.append(" = 1 AND "); in markCallLogAsRead()
578 where.append(CallLog.Calls.TYPE); in markCallLogAsRead()
579 where.append(" = ?"); in markCallLogAsRead()
582 where.append(" AND "); in markCallLogAsRead()
583 where.append(columnName); in markCallLogAsRead()
584 where.append(" = ?"); in markCallLogAsRead()
593 where.toString(), in markCallLogAsRead()
/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 …]
/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/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/Bluetooth/src/com/android/bluetooth/hfp/
DAtPhonebook.java408 String where; in queryPhonebook() local
413 where = null; in queryPhonebook()
415 where = OUTGOING_CALL_WHERE; in queryPhonebook()
417 where = INCOMING_CALL_WHERE; in queryPhonebook()
419 where = MISSED_CALL_WHERE; in queryPhonebook()
431 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, where); in queryPhonebook()
447 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, where); in queryPhonebook()
/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/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java141 if (TextUtils.isEmpty(args.where)) { in getType()
192 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
342 int count = db.delete(args.table, args.where, args.args); in delete()
357 int count = db.update(args.table, values, args.where, args.args); in update()
1133 public final String where; field in LauncherProvider.SqlArguments
1136 SqlArguments(Uri url, String where, String[] args) { in SqlArguments() argument
1139 this.where = where; in SqlArguments()
1143 } else if (!TextUtils.isEmpty(where)) { in SqlArguments()
1147 this.where = "_id=" + ContentUris.parseId(url); in SqlArguments()
1155 where = null; in SqlArguments()
/packages/apps/Car/libs/car-telephony-common/tests/unittests/src/com/android/car/telephony/common/
DQueryParamTest.java97 .where(Condition in testBuildQueryParam()
127 builder.where(Condition.is(COLUMN_A, OP_EQUAL, STRING_VALUE)); in testBuildSelection()
139 builder.where(Condition in testBuildSelection_andCondition()
157 builder.where(Condition in testBuildSelection_orCondition()

1234567