Home
last modified time | relevance | path

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

12345

/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogQueryHandler.java215 StringBuilder where = new StringBuilder(); in markNewCallsAsOld() local
216 where.append(Calls.NEW); in markNewCallsAsOld()
217 where.append(" = 1"); in markNewCallsAsOld()
223 values, where.toString(), null); in markNewCallsAsOld()
229 StringBuilder where = new StringBuilder(); in markNewVoicemailsAsOld() local
230 where.append(Calls.NEW); in markNewVoicemailsAsOld()
231 where.append(" = 1 AND "); in markNewVoicemailsAsOld()
232 where.append(Calls.TYPE); in markNewVoicemailsAsOld()
233 where.append(" = ?"); in markNewVoicemailsAsOld()
239 values, where.toString(), new String[]{ Integer.toString(Calls.VOICEMAIL_TYPE) }); in markNewVoicemailsAsOld()
[all …]
/packages/apps/Music/src/com/android/music/
DTrackBrowserActivity.java455 String where = MediaStore.Audio.Media.ALBUM_ID + "='" + mAlbumId + in setTitle() local
460 new String[] {MediaStore.Audio.Media.ALBUM}, where, null, null); in setTitle()
864 String where = MediaStore.Audio.Playlists.Members._ID + "=?";
870 res.update(baseUri, values, where, wherearg);
875 res.update(baseUri, values, where, wherearg);
880 res.update(baseUri, values, where, wherearg);
1016 StringBuilder where = new StringBuilder();
1017 where.append(MediaStore.Audio.Media.TITLE + " != ''");
1027 mCursorCols, where.toString(), null, mSortOrder, async);
1039 where.append(" AND " + MediaStore.Audio.Media.IS_PODCAST + "=1");
[all …]
DMusicUtils.java331 String where = MediaStore.Audio.Media.ARTIST_ID + "=" + id + " AND " + in getSongListForArtist() local
334 ccols, where, null, in getSongListForArtist()
347 String where = MediaStore.Audio.Media.ALBUM_ID + "=" + id + " AND " + in getSongListForAlbum() local
350 ccols, where, null, MediaStore.Audio.Media.TRACK); in getSongListForAlbum()
460 StringBuilder where = new StringBuilder(); in deleteTracks() local
461 where.append(MediaStore.Audio.Media._ID + " IN ("); in deleteTracks()
463 where.append(list[i]); in deleteTracks()
465 where.append(","); in deleteTracks()
468 where.append(")"); in deleteTracks()
470 where.toString(), null, null); in deleteTracks()
[all …]
DPlaylistBrowserActivity.java415 … String where = MediaStore.MediaColumns.DATE_ADDED + ">" + (System.currentTimeMillis() / 1000 - X); in playRecentlyAdded() local
417 ccols, where, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER); in playRecentlyAdded()
470 StringBuilder where = new StringBuilder(); in getPlaylistCursor() local
471 where.append(MediaStore.Audio.Playlists.NAME + " != ''"); in getPlaylistCursor()
484 where.append(" AND "); in getPlaylistCursor()
485 where.append(MediaStore.Audio.Playlists.NAME + " LIKE ?"); in getPlaylistCursor()
489 String whereclause = where.toString(); in getPlaylistCursor()
/packages/apps/Gallery2/src/com/android/photos/data/
DMediaCacheDatabase.java115 String where = Columns.URI + " = ? AND " + Columns.MEDIA_SIZE + " = ?"; in getCached() local
120 Cursor cursor = db.query(TABLE, PROJECTION_ID, where, whereArgs, null, null, null); in getCached()
144 String where = Columns.URI + " = ? AND " + Columns.MEDIA_SIZE + " < ?"; in executeOnBestCached() local
150 Cursor cursor = db.query(TABLE, PROJECTION_CACHED, where, whereArgs, null, null, orderBy); in executeOnBestCached()
199 String where = Columns.URI + " = ? AND " + Columns.MEDIA_SIZE + " = ?"; in delete() local
203 deleteRows(uri, where, whereArgs, action); in delete()
207 String where = Columns.URI + " = ?"; in delete() local
211 deleteRows(uri, where, whereArgs, action); in delete()
214 private void deleteRows(Uri uri, String where, String[] whereArgs, Action action) { in deleteRows() argument
218 Cursor cursor = db.query(TABLE, PROJECTION_CACHED, where, whereArgs, null, null, null); in deleteRows()
[all …]
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/providers/DrmProvider/src/com/android/providers/drm/
DDrmProvider.java274 public String where; field in DrmProvider.GetTableAndWhereOutParameter
282 String where = null; in getTableAndWhere() local
290 where = "_id=" + uri.getPathSegments().get(1); in getTableAndWhere()
299 where = "_id=" + uri.getPathSegments().get(1); in getTableAndWhere()
309 if (!TextUtils.isEmpty(where)) { in getTableAndWhere()
310 out.where = where + " AND (" + userWhere + ")"; in getTableAndWhere()
312 out.where = userWhere; in getTableAndWhere()
315 out.where = where; in getTableAndWhere()
357 sGetTableAndWhereParam.where, whereArgs); in delete()
383 sGetTableAndWhereParam.where, whereArgs); in update()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaAdapter.java72 TextView where; field in AgendaAdapter.ViewHolder
123 holder.where = (TextView) view.findViewById(R.id.where); in bindView()
138 holder.where.setTextColor(mWhereDeclinedColor); in bindView()
143 holder.where.setTextColor(mWhereColor); in bindView()
170 holder.where.setTextColor(mStandardColor); in bindView()
176 TextView where = holder.where; in bindView() local
259 where.setVisibility(View.VISIBLE); in bindView()
260 where.setText(whereString); in bindView()
262 where.setVisibility(View.GONE); in bindView()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java264 String where = FileColumns.STORAGE_ID + "=?";
267 db.update("files", values, where, whereArgs);
270 int numpurged = db.delete("files", where, whereArgs);
2559 String where = ""; in doAudioSearch() local
2562 where = "match LIKE ? ESCAPE '\\'"; in doAudioSearch()
2564 where += " AND match LIKE ? ESCAPE '\\'"; in doAudioSearch()
2577 return qb.query(db, cols, where, wildcardWords, null, null, null, limit); in doAudioSearch()
3669 public String where; field in MediaProvider.GetTableAndWhereOutParameter
3677 String where = null; in getTableAndWhere() local
3681 where = FileColumns.MEDIA_TYPE + "=" + FileColumns.MEDIA_TYPE_IMAGE; in getTableAndWhere()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java523 public int delete(Uri url, String where, String[] whereArgs) { in delete() argument
529 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
532 MmsSmsDatabaseHelper.updateAllThreads(db, where, whereArgs); in delete()
558 where = DatabaseUtils.concatenateWhere("thread_id=" + threadID, where); in delete()
559 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
564 count = db.delete("raw", where, whereArgs); in delete()
568 count = db.delete("sr_pending", where, whereArgs); in delete()
608 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { in update() argument
668 where = DatabaseUtils.concatenateWhere(where, extraWhere); in update()
669 count = db.update(table, values, where, whereArgs); in update()
DTelephonyProvider.java670 public int delete(Uri url, String where, String[] whereArgs) in delete() argument
682 count = db.delete(CARRIERS_TABLE, where, whereArgs); in delete()
688 count = db.delete(CARRIERS_TABLE, where, whereArgs); in delete()
726 public int update(Uri url, ContentValues values, String where, String[] whereArgs) in update() argument
738 count = db.update(CARRIERS_TABLE, values, where, whereArgs); in update()
744 count = db.update(CARRIERS_TABLE, values, where, whereArgs); in update()
750 if (where != null || whereArgs != null) { in update()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmProvider.java99 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { in update() argument
132 public int delete(Uri url, String where, String[] whereArgs) { in delete() argument
138 count = db.delete("alarms", where, whereArgs); in delete()
143 if (TextUtils.isEmpty(where)) { in delete()
144 where = "_id=" + segment; in delete()
146 where = "_id=" + segment + " AND (" + where + ")"; in delete()
148 count = db.delete("alarms", where, whereArgs); in delete()
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider.java905 public int delete(Uri url, String where, String[] whereArgs) { in delete() argument
919 if (where != null && where.length() > 0) { in delete()
921 sb.append(where); in delete()
927 where = sb.toString(); in delete()
946 int count = db.delete(TABLE_NAMES[match % 10], where, whereArgs); in delete()
952 public int update(Uri url, ContentValues values, String where, in update() argument
963 if (where != null && where.length() > 0) { in update()
965 sb.append(where); in update()
971 where = sb.toString(); in update()
1008 int ret = db.update(TABLE_NAMES[match % 10], values, where, whereArgs); in update()
DBrowserProvider2.java963 String where = Bookmarks.PARENT + "=? AND " + Bookmarks.IS_DELETED + "=0"; in query() local
964 where = DatabaseUtils.concatenateWhere(where, selection); in query()
969 query = qb.buildQuery(projection, where, null, null, sortOrder, null); in query()
972 String where = Bookmarks.ACCOUNT_TYPE + "=? AND " + in query() local
980 where = DatabaseUtils.concatenateWhere(where, selection); in query()
982 where, null, null, null, null); in query()
989 where = Bookmarks.ACCOUNT_TYPE + "=? AND " + Bookmarks.ACCOUNT_NAME + "=?" + in query()
991 where = DatabaseUtils.concatenateWhere(where, selection); in query()
994 where, null, null, null, null); in query()
1183 String where = whereBuilder.toString(); in createCombinedQuery() local
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java221 public int delete(Uri uri, String where, String[] whereArgs) { in delete() argument
226 count = db.delete(USERDICT_TABLE_NAME, where, whereArgs); in delete()
232 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs); in delete()
245 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) { in update() argument
250 count = db.update(USERDICT_TABLE_NAME, values, where, whereArgs); in update()
256 + (!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/apps/Phone/src/com/android/phone/
DClearMissedCallsService.java51 StringBuilder where = new StringBuilder(); in onHandleIntent() local
52 where.append(Calls.NEW); in onHandleIntent()
53 where.append(" = 1 AND "); in onHandleIntent()
54 where.append(Calls.TYPE); in onHandleIntent()
55 where.append(" = ?"); in onHandleIntent()
56 getContentResolver().update(Calls.CONTENT_URI, values, where.toString(), in onHandleIntent()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java147 String where = "SELECT " + columnName + " FROM " + Tables.EVENTS + in getEventValue() local
149 return DatabaseUtils.stringForQuery(db, where, in getEventValue()
792 String where = SQL_WHERE_ID_FROM_INSTANCES_NOT_SYNCED; in updateRecurrenceInstancesLocked() local
793 delCount = db.delete(Tables.INSTANCES, where, new String[] { in updateRecurrenceInstancesLocked()
800 String where = SQL_WHERE_ID_FROM_INSTANCES_SYNCED; in updateRecurrenceInstancesLocked() local
801 delCount = db.delete(Tables.INSTANCES, where, new String[] { in updateRecurrenceInstancesLocked()
841 String where = CalendarProvider2.SQL_WHERE_ID; in getRelevantRecurrenceEntries() local
842 qb.appendWhere(where); in getRelevantRecurrenceEntries()
848 String where = "(" + Events._SYNC_ID + "=? OR " + Events.ORIGINAL_SYNC_ID + "=?) AND " in getRelevantRecurrenceEntries() local
850 qb.appendWhere(where); in getRelevantRecurrenceEntries()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java103 if (TextUtils.isEmpty(args.where)) { in getType()
119 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
136 db.delete(args.table, args.where, args.args); in deleteId()
180 int count = db.delete(args.table, args.where, args.args); in delete()
191 int count = db.update(args.table, values, args.where, args.args); in update()
1164 public final String where; field in LauncherProvider.SqlArguments
1167 SqlArguments(Uri url, String where, String[] args) { in SqlArguments() argument
1170 this.where = where; in SqlArguments()
1174 } else if (!TextUtils.isEmpty(where)) { in SqlArguments()
1178 this.where = "_id=" + ContentUris.parseId(url); in SqlArguments()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java974 String where = Downloads.Impl.RequestHeaders.COLUMN_DOWNLOAD_ID + "=" in queryRequestHeaders() local
978 return db.query(Downloads.Impl.RequestHeaders.HEADERS_DB_TABLE, projection, where, in queryRequestHeaders()
985 private void deleteRequestHeaders(SQLiteDatabase db, String where, String[] whereArgs) { in deleteRequestHeaders() argument
987 Cursor cursor = db.query(DB_TABLE, projection, where, whereArgs, null, null, null, null); in deleteRequestHeaders()
1014 final String where, final String[] whereArgs) { in update() argument
1016 Helpers.validateSelection(where, sAppReadableColumnsSet); in update()
1073 SqlSelection selection = getWhereClause(uri, where, whereArgs, match); in update()
1113 private SqlSelection getWhereClause(final Uri uri, final String where, final String[] whereArgs, in getWhereClause() argument
1116 selection.appendClause(where, whereArgs); in getWhereClause()
1135 public int delete(final Uri uri, final String where, in delete() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DAtPhonebook.java378 String where; in queryPhonebook() local
383 where = VISIBLE_PHONEBOOK_WHERE; in queryPhonebook()
385 where = OUTGOING_CALL_WHERE; in queryPhonebook()
387 where = INCOMING_CALL_WHERE; in queryPhonebook()
389 where = MISSED_CALL_WHERE; in queryPhonebook()
401 Calls.CONTENT_URI, CALLS_PROJECTION, where, null, in queryPhonebook()
410 where, null, Phone.NUMBER + " LIMIT " + MAX_PHONEBOOK_SIZE); in queryPhonebook()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DShortcutRepositoryImplLog.java167 String where = ageRestriction; in buildShortcutQueries() local
168 String preferLatest = PREFER_LATEST_PREFIX + where + PREFER_LATEST_SUFFIX; in buildShortcutQueries()
171 false, TABLES, SHORTCUT_QUERY_COLUMNS, where, GROUP_BY, having, orderBy, null); in buildShortcutQueries()
174 where = PREFIX_RESTRICTION + " AND " + ageRestriction; in buildShortcutQueries()
175 preferLatest = PREFER_LATEST_PREFIX + where + PREFER_LATEST_SUFFIX; in buildShortcutQueries()
178 false, TABLES, SHORTCUT_QUERY_COLUMNS, where, GROUP_BY, having, orderBy, null); in buildShortcutQueries()
190 final String where = SourceStats.total_clicks + " >= $1"; in buildSourceRankingSql() local
196 false, tables, columns, where, groupBy, having, orderBy, limit); in buildSourceRankingSql()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1103 final String where = Colors.ACCOUNT_NAME + "=? AND " + Colors.ACCOUNT_TYPE + "=? AND " in updateAndCheckColor() local
1115 addSyncQueryParams(uri, DEFAULT_ACCOUNT, DEFAULT_ACCOUNT_TYPE), cv, where, in updateAndCheckColor()
1784 String where = Instances.SELF_ATTENDEE_STATUS + "!=" + in testInstanceSearchQuery() local
1829 "search", where, null, orderBy); in testInstanceSearchQuery()
1841 "purple", where, null, orderBy); in testInstanceSearchQuery()
1853 "puurple", where, null, orderBy); in testInstanceSearchQuery()
1865 "purple lasers", where, null, orderBy); in testInstanceSearchQuery()
1877 "lasers kapow", where, null, orderBy); in testInstanceSearchQuery()
1889 "\"search purple\"", where, null, orderBy); in testInstanceSearchQuery()
1901 "\"purple search\"", where, null, orderBy); in testInstanceSearchQuery()
[all …]
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.java212 String where = WHERE_CALENDARS_VISIBLE; in updateWhere() local
214 where += " AND " + Instances.SELF_ATTENDEE_STATUS + "!=" in updateWhere()
217 return where; in updateWhere()
354 String where = updateWhere(); in onCreateLoader() local
357 getActivity(), mEventUri, Event.EVENT_PROJECTION, where, in onCreateLoader()
/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()

12345