Searched refs:where (Results 1 - 25 of 52) sorted by relevance

123

/packages/services/Telephony/src/com/android/phone/
H A DClearMissedCallsService.java51 StringBuilder where = new StringBuilder();
52 where.append(Calls.NEW);
53 where.append(" = 1 AND ");
54 where.append(Calls.TYPE);
55 where.append(" = ?");
56 getContentResolver().update(Calls.CONTENT_URI, values, where.toString(),
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DCallLogQueryHandler.java159 // We need to check for NULL explicitly otherwise entries with where READ is NULL
162 StringBuilder where = new StringBuilder();
166 where.append(Calls.NEW);
167 where.append(" = 1");
171 if (where.length() > 0) {
172 where.append(" AND ");
175 where.append(String.format("(%s = ?)", Calls.TYPE));
181 if (where.length() > 0) {
182 where.append(" AND ");
184 where
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DLogTag.java27 * @param where the location from where the bookmark was added
29 public static void logBookmarkAdded(String url, String where) { argument
31 + where);
/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DClockProvider.java131 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) { argument
188 public int delete(Uri uri, String where, String[] whereArgs) { argument
194 count = db.delete(ClockDatabaseHelper.ALARMS_TABLE_NAME, where, whereArgs);
198 if (TextUtils.isEmpty(where)) {
199 where = ClockContract.AlarmsColumns._ID + "=" + primaryKey;
201 where = ClockContract.AlarmsColumns._ID + "=" + primaryKey +
202 " AND (" + where + ")";
204 count = db.delete(ClockDatabaseHelper.ALARMS_TABLE_NAME, where, whereArgs);
207 count = db.delete(ClockDatabaseHelper.INSTANCES_TABLE_NAME, where, whereArgs);
211 if (TextUtils.isEmpty(where)) {
[all...]
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaAdapter.java72 TextView where; field in class:AgendaAdapter.ViewHolder
123 holder.where = (TextView) view.findViewById(R.id.where);
138 holder.where.setTextColor(mWhereDeclinedColor);
143 holder.where.setTextColor(mWhereColor);
170 holder.where.setTextColor(mStandardColor);
176 TextView where = holder.where;
259 where.setVisibility(View.VISIBLE);
260 where
[all...]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java221 public int delete(Uri uri, String where, String[] whereArgs) { argument
226 count = db.delete(USERDICT_TABLE_NAME, where, whereArgs);
232 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs);
245 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) { argument
250 count = db.update(USERDICT_TABLE_NAME, values, where, whereArgs);
256 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs);
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapContent.java896 String where = "";
898 where = "type = 1 AND thread_id <> -1";
901 where = "(type = 4 OR type = 5 OR type = 6) AND thread_id <> -1";
904 where = "type = 2 AND thread_id <> -1";
907 where = "type = 3 AND thread_id <> -1";
910 where = "thread_id = -1";
913 return where;
917 String where = "";
919 where = "msg_box = 1 AND thread_id <> -1";
922 where
[all...]
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetModel.java79 String where; field in class:CalendarAppWidgetModel.EventInfo
111 builder.append(", where=");
112 builder.append(where);
134 result = prime * result + ((where == null) ? 0 : where.hashCode());
174 if (where == null) {
175 if (other.where != null)
177 } else if (!where.equals(other.where)) {
400 eventInfo.where
[all...]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DSmsProvider.java541 public int delete(Uri url, String where, String[] whereArgs) { argument
547 count = db.delete(TABLE_SMS, where, whereArgs);
550 MmsSmsDatabaseHelper.updateAllThreads(db, where, whereArgs);
576 where = DatabaseUtils.concatenateWhere("thread_id=" + threadID, where);
577 count = db.delete(TABLE_SMS, where, whereArgs);
582 count = db.delete("raw", where, whereArgs);
586 count = db.delete("sr_pending", where, whereArgs);
626 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
686 where
[all...]
H A DTelephonyProvider.java621 public int delete(Uri url, String where, String[] whereArgs) argument
633 count = db.delete(CARRIERS_TABLE, where, whereArgs);
639 count = db.delete(CARRIERS_TABLE, where, whereArgs);
677 public int update(Uri url, ContentValues values, String where, String[] whereArgs) argument
689 count = db.update(CARRIERS_TABLE, values, where, whereArgs);
695 count = db.update(CARRIERS_TABLE, values, where, whereArgs);
701 if (where != null || whereArgs != null) {
703 "Cannot update URL " + url + " with a where clause");
/packages/apps/Gallery2/src/com/android/photos/data/
H A DPhotoProvider.java351 String where;
356 where = WHERE_ID;
361 return DatabaseUtils.concatenateWhere(selection, where);
461 protected static String metadataSelectionFromPhotos(String where) { argument
462 return nestWhere(Metadata.PHOTO_ID, Photos.TABLE, where);
465 protected static String photoSelectionFromAlbums(String where) { argument
466 return nestWhere(Photos.ALBUM_ID, Albums.TABLE, where);
469 protected static String photoSelectionFromAccounts(String where) { argument
470 return nestWhere(Photos.ACCOUNT_ID, Accounts.TABLE, where);
473 protected static String albumSelectionFromAccounts(String where) { argument
[all...]
/packages/apps/Music/src/com/android/music/
H A DTrackBrowserActivity.java455 String where = MediaStore.Audio.Media.ALBUM_ID + "='" + mAlbumId +
460 new String[] {MediaStore.Audio.Media.ALBUM}, where, null, null);
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
[all...]
H A DPlaylistBrowserActivity.java415 String where = MediaStore.MediaColumns.DATE_ADDED + ">" + (System.currentTimeMillis() / 1000 - X);
417 ccols, where, null, MediaStore.Audio.Media.DEFAULT_SORT_ORDER);
470 StringBuilder where = new StringBuilder();
471 where.append(MediaStore.Audio.Playlists.NAME + " != ''");
484 where.append(" AND ");
485 where.append(MediaStore.Audio.Playlists.NAME + " LIKE ?");
489 String whereclause = where.toString();
H A DMusicUtils.java331 String where = MediaStore.Audio.Media.ARTIST_ID + "=" + id + " AND " +
334 ccols, where, null,
347 String where = MediaStore.Audio.Media.ALBUM_ID + "=" + id + " AND " +
350 ccols, where, null, MediaStore.Audio.Media.TRACK);
460 StringBuilder where = new StringBuilder();
461 where.append(MediaStore.Audio.Media._ID + " IN (");
463 where.append(list[i]);
465 where.append(",");
468 where.append(")");
470 where
[all...]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarDebug.java38 * The info is displayed as a ListActivity, where each entry has the calendar name
99 String where = CalendarContract.Events.CALENDAR_ID + "=" + id;
101 CalendarContract.Events.CONTENT_URI, EVENTS_PROJECTION, where,
H A DCalendarInstancesHelper.java76 * Determines the set of Events where the _id matches the first query argument, or the
92 * Determines the set of Events where the _sync_id matches the first query argument, or the
147 String where = "SELECT " + columnName + " FROM " + Tables.EVENTS +
149 return DatabaseUtils.stringForQuery(db, where,
741 * time we set originalId in related exceptions where originalSyncId is the only
792 String where = SQL_WHERE_ID_FROM_INSTANCES_NOT_SYNCED;
793 delCount = db.delete(Tables.INSTANCES, where, new String[] {
800 String where = SQL_WHERE_ID_FROM_INSTANCES_SYNCED;
801 delCount = db.delete(Tables.INSTANCES, where, new String[] {
841 String where
[all...]
/packages/apps/Gallery2/src/com/android/photos/views/
H A DHeaderGridView.java166 private void removeFixedViewInfo(View v, ArrayList<FixedViewInfo> where) { argument
167 int len = where.size();
169 FixedViewInfo info = where.get(i);
171 where.remove(i);
/packages/apps/Browser/src/com/android/browser/provider/
H A DBrowserProvider.java905 public int delete(Uri url, String where, String[] whereArgs) { argument
919 if (where != null && where.length() > 0) {
921 sb.append(where);
927 where = sb.toString();
946 int count = db.delete(TABLE_NAMES[match % 10], where, whereArgs);
952 public int update(Uri url, ContentValues values, String where, argument
963 if (where != null && where.length() > 0) {
965 sb.append(where);
[all...]
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
H A DCalendarAppWidgetServiceTest.java115 eventInfo.where = location;
142 eventInfo.where = location + i;
164 eventInfo.where = location + i;
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DAtPhonebook.java379 String where;
384 where = VISIBLE_PHONEBOOK_WHERE;
386 where = OUTGOING_CALL_WHERE;
388 where = INCOMING_CALL_WHERE;
390 where = MISSED_CALL_WHERE;
402 Calls.CONTENT_URI, CALLS_PROJECTION, where, null,
413 where, null, Phone.NUMBER + " LIMIT " + MAX_PHONEBOOK_SIZE);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherProvider.java104 if (TextUtils.isEmpty(args.where)) {
120 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
137 db.delete(args.table, args.where, args.args);
181 int count = db.delete(args.table, args.where, args.args);
192 int count = db.update(args.table, values, args.where, args.args);
272 // In the case where neither onCreate nor onUpgrade gets called, we read the maxId from
1168 * Build a query string that will match any row where the column matches
1184 public final String where; field in class:LauncherProvider.SqlArguments
1187 SqlArguments(Uri url, String where, String[] args) { argument
1190 this.where
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java273 String where = FileColumns.STORAGE_ID + "=?";
276 db.update("files", values, where, whereArgs);
279 int numpurged = db.delete("files", where, whereArgs);
1035 "SELECT _id FROM audio where mime_type='audio/mp4' AND " +
1531 "DELETE from files where _id=old._id;" +
1532 "DELETE from audio_playlists_map where audio_id=old._id;" +
1533 "DELETE from audio_genres_map where audio_id=old._id;" +
1968 * @param values the content values, where the bucked id name and bucket display name are updated.
1992 * @param values the content values, where the display name is updated.
2008 * @param values the content values, where take
3794 public String where; field in class:MediaProvider.GetTableAndWhereOutParameter
[all...]
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
H A DBP2TestCaseHelper.java133 int mockUpdate(Uri uri, ContentValues values, String where, argument
136 int ret = getMockContentResolver().update(uri, values, where, selectionArgs);
/packages/apps/Calendar/src/com/android/calendar/month/
H A DMonthByWeekFragment.java212 String where = WHERE_CALENDARS_VISIBLE;
214 where += " AND " + Instances.SELF_ATTENDEE_STATUS + "!="
217 return where;
354 String where = updateWhere();
357 getActivity(), mEventUri, Event.EVENT_PROJECTION, where,
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventLocationAdapter.java356 String where = null;
361 where = CONTACTS_WHERE;
369 CONTACTS_PROJECTION, where, whereArgs, Contacts.DISPLAY_NAME + " ASC");

Completed in 2321 milliseconds

123