Home
last modified time | relevance | path

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

1234

/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()
DBluetoothAtPhonebook.java321 String where; in queryPhonebook() local
326 where = VISIBLE_PHONEBOOK_WHERE; in queryPhonebook()
328 where = OUTGOING_CALL_WHERE; in queryPhonebook()
330 where = INCOMING_CALL_WHERE; in queryPhonebook()
332 where = MISSED_CALL_WHERE; in queryPhonebook()
344 Calls.CONTENT_URI, CALLS_PROJECTION, where, null, in queryPhonebook()
353 where, null, Phone.NUMBER + " LIMIT " + MAX_PHONEBOOK_SIZE); in queryPhonebook()
/packages/apps/Contacts/src/com/android/contacts/calllog/
DCallLogQueryHandler.java216 StringBuilder where = new StringBuilder(); in markNewCallsAsOld() local
217 where.append(Calls.NEW); in markNewCallsAsOld()
218 where.append(" = 1"); in markNewCallsAsOld()
224 values, where.toString(), null); in markNewCallsAsOld()
230 StringBuilder where = new StringBuilder(); in markNewVoicemailsAsOld() local
231 where.append(Calls.NEW); in markNewVoicemailsAsOld()
232 where.append(" = 1 AND "); in markNewVoicemailsAsOld()
233 where.append(Calls.TYPE); in markNewVoicemailsAsOld()
234 where.append(" = ?"); in markNewVoicemailsAsOld()
240 values, where.toString(), new String[]{ Integer.toString(Calls.VOICEMAIL_TYPE) }); in markNewVoicemailsAsOld()
[all …]
/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/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/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/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/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java104 eventInfo.where = location; in testGetAppWidgetModel_1Event()
132 eventInfo.where = location + i; in testGetAppWidgetModel_2StaggeredEvents()
142 eventInfo.where = location + i; in testGetAppWidgetModel_2StaggeredEvents()
176 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventToday()
186 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventToday()
217 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventTomorrow()
227 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventTomorrow()
258 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventLater()
268 eventInfo.where = location + i; in testGetAppWidgetModel_AllDayEventLater()
/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()
863 String where = MediaStore.Audio.Playlists.Members._ID + "=?";
869 res.update(baseUri, values, where, wherearg);
874 res.update(baseUri, values, where, wherearg);
879 res.update(baseUri, values, where, wherearg);
1015 StringBuilder where = new StringBuilder();
1016 where.append(MediaStore.Audio.Media.TITLE + " != ''");
1026 mCursorCols, where.toString(), null, mSortOrder, async);
1038 where.append(" AND " + MediaStore.Audio.Media.IS_PODCAST + "=1");
[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()
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 …]
/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.java521 public int delete(Uri url, String where, String[] whereArgs) { in delete() argument
527 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
530 MmsSmsDatabaseHelper.updateAllThreads(db, where, whereArgs); in delete()
556 where = DatabaseUtils.concatenateWhere("thread_id=" + threadID, where); in delete()
557 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
562 count = db.delete("raw", where, whereArgs); in delete()
566 count = db.delete("sr_pending", where, whereArgs); in delete()
606 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { in update() argument
666 where = DatabaseUtils.concatenateWhere(where, extraWhere); in update()
667 count = db.update(table, values, where, whereArgs); in update()
DTelephonyProvider.java604 public int delete(Uri url, String where, String[] whereArgs) in delete() argument
616 count = db.delete(CARRIERS_TABLE, where, whereArgs); in delete()
622 count = db.delete(CARRIERS_TABLE, where, whereArgs); in delete()
660 public int update(Uri url, ContentValues values, String where, String[] whereArgs) in update() argument
672 count = db.update(CARRIERS_TABLE, values, where, whereArgs); in update()
678 count = db.update(CARRIERS_TABLE, values, where, whereArgs); in update()
684 if (where != null || whereArgs != null) { in update()
/packages/apps/Browser/src/com/android/browser/
DLogTag.java29 public static void logBookmarkAdded(String url, String where) { in logBookmarkAdded() argument
31 + where); in logBookmarkAdded()
DEventLogTags.logtags7 # Second parameter is where the bookmark was added from, currently history or bookmarks view.
8 70103 browser_bookmark_added (url|3), (where|3)
/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()
/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()
DCalendarDebug.java99 String where = CalendarContract.Events.CALENDAR_ID + "=" + id; in doInBackground() local
101 CalendarContract.Events.CONTENT_URI, EVENTS_PROJECTION, where, in doInBackground()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java264 String where = FileColumns.STORAGE_ID + "=?";
266 db.update("files", values, where, whereArgs);
268 db.delete("files", where, whereArgs);
2466 String where = ""; in doAudioSearch() local
2469 where = "match LIKE ? ESCAPE '\\'"; in doAudioSearch()
2471 where += " AND match LIKE ? ESCAPE '\\'"; in doAudioSearch()
2484 return qb.query(db, cols, where, wildcardWords, null, null, null, limit); in doAudioSearch()
3586 public String where; field in MediaProvider.GetTableAndWhereOutParameter
3594 String where = null; in getTableAndWhere() local
3598 where = FileColumns.MEDIA_TYPE + "=" + FileColumns.MEDIA_TYPE_IMAGE; in getTableAndWhere()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java101 if (TextUtils.isEmpty(args.where)) { in getType()
117 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
134 db.delete(args.table, args.where, args.args); in deleteId()
178 int count = db.delete(args.table, args.where, args.args); in delete()
189 int count = db.update(args.table, values, args.where, args.args); in update()
1149 public final String where; field in LauncherProvider.SqlArguments
1152 SqlArguments(Uri url, String where, String[] args) { in SqlArguments() argument
1155 this.where = where; in SqlArguments()
1159 } else if (!TextUtils.isEmpty(where)) { in SqlArguments()
1163 this.where = "_id=" + ContentUris.parseId(url); in SqlArguments()
[all …]
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.java190 String where = WHERE_CALENDARS_VISIBLE; in updateWhere() local
192 where += " AND " + Instances.SELF_ATTENDEE_STATUS + "!=" in updateWhere()
195 return where; in updateWhere()
330 String where = updateWhere(); in onCreateLoader() local
333 getActivity(), mEventUri, Event.EVENT_PROJECTION, where, in onCreateLoader()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java969 String where = Downloads.Impl.RequestHeaders.COLUMN_DOWNLOAD_ID + "=" in queryRequestHeaders() local
973 return db.query(Downloads.Impl.RequestHeaders.HEADERS_DB_TABLE, projection, where, in queryRequestHeaders()
980 private void deleteRequestHeaders(SQLiteDatabase db, String where, String[] whereArgs) { in deleteRequestHeaders() argument
982 Cursor cursor = db.query(DB_TABLE, projection, where, whereArgs, null, null, null, null); in deleteRequestHeaders()
1009 final String where, final String[] whereArgs) { in update() argument
1011 Helpers.validateSelection(where, sAppReadableColumnsSet); in update()
1068 SqlSelection selection = getWhereClause(uri, where, whereArgs, match); in update()
1108 private SqlSelection getWhereClause(final Uri uri, final String where, final String[] whereArgs, in getWhereClause() argument
1111 selection.appendClause(where, whereArgs); in getWhereClause()
1130 public int delete(final Uri uri, final String where, in delete() argument
[all …]
/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/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java403 String where = PartnerBookmarksContract.Bookmarks.PARENT + "=?"; in query() local
404 where = DatabaseUtils.concatenateWhere(where, selection); in query()
409 query = qb.buildQuery(projection, where, null, null, sortOrder, null); in query()

1234