Searched defs:where (Results 1 - 18 of 18) sorted by relevance

/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/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/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/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/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/providers/TelephonyProvider/src/com/android/providers/telephony/
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");
H A DMmsSmsDatabaseHelper.java385 public static void updateAllThreads(SQLiteDatabase db, String where, String[] whereArgs) { argument
388 if (where == null) {
389 where = "";
391 where = "WHERE (" + where + ")";
394 "(SELECT DISTINCT thread_id FROM sms " + where + ")";
409 "_id NOT IN (SELECT DISTINCT thread_id FROM sms where thread_id NOT NULL " +
410 "UNION SELECT DISTINCT thread_id FROM pdu where thread_id NOT NULL)", null);
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...]
/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/Launcher2/src/com/android/launcher2/
H A DLauncherProvider.java103 if (TextUtils.isEmpty(args.where)) {
119 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
136 db.delete(args.table, args.where, args.args);
180 int count = db.delete(args.table, args.where, args.args);
191 int count = db.update(args.table, values, args.where, args.args);
252 // In the case where neither onCreate nor onUpgrade gets called, we read the maxId from
1148 * Build a query string that will match any row where the column matches
1164 public final String where; field in class:LauncherProvider.SqlArguments
1167 SqlArguments(Uri url, String where, String[] args) { argument
1170 this.where
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadProvider.java187 * This class encapsulates a SQL where clause and its parameters. It makes it possible for
978 String where = Downloads.Impl.RequestHeaders.COLUMN_DOWNLOAD_ID + "="
982 return db.query(Downloads.Impl.RequestHeaders.HEADERS_DB_TABLE, projection, where,
989 private void deleteRequestHeaders(SQLiteDatabase db, String where, String[] whereArgs) { argument
991 Cursor cursor = db.query(DB_TABLE, projection, where, whereArgs, null, null, null, null);
1018 final String where, final String[] whereArgs) {
1020 Helpers.validateSelection(where, sAppReadableColumnsSet);
1077 SqlSelection selection = getWhereClause(uri, where, whereArgs, match);
1117 private SqlSelection getWhereClause(final Uri uri, final String where, final String[] whereArgs, argument
1120 selection.appendClause(where, whereArg
1017 update(final Uri uri, final ContentValues values, final String where, final String[] whereArgs) argument
1139 delete(final Uri uri, final String where, final String[] whereArgs) argument
[all...]
/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/Launcher3/src/com/android/launcher3/
H A DLauncherProvider.java109 if (TextUtils.isEmpty(args.where)) {
125 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
142 db.delete(args.table, args.where, args.args);
188 int count = db.delete(args.table, args.where, args.args);
200 int count = db.update(args.table, values, args.where, args.args);
311 // In the case where neither onCreate nor onUpgrade gets called, we read the maxId from
1407 * Build a query string that will match any row where the column matches
1423 public final String where; field in class:LauncherProvider.SqlArguments
1426 SqlArguments(Uri url, String where, String[] args) { argument
1429 this.where
[all...]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarProvider2Test.java1103 final String where = Colors.ACCOUNT_NAME + "=? AND " + Colors.ACCOUNT_TYPE + "=? AND "
1115 addSyncQueryParams(uri, DEFAULT_ACCOUNT, DEFAULT_ACCOUNT_TYPE), cv, where,
1784 String where = Instances.SELF_ATTENDEE_STATUS + "!=" +
1829 "search", where, null, orderBy);
1841 "purple", where, null, orderBy);
1853 "puurple", where, null, orderBy);
1865 "purple lasers", where, null, orderBy);
1877 "lasers kapow", where, null, orderBy);
1889 "\"search purple\"", where, null, orderBy);
1901 "\"purple search\"", where, nul
2161 testQueryCount(Uri uri, String where, int wanted) argument
[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/Email/src/com/android/email/provider/
H A DEmailProvider.java296 Message.UPDATED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
300 Message.UPDATED_TABLE_NAME + " where " + EmailContent.RECORD_ID + '=';
303 Message.DELETED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
307 " where " + BodyColumns.MESSAGE_KEY + " in " + "(select " + BodyColumns.MESSAGE_KEY +
312 " where " + BodyColumns.MESSAGE_KEY + '=';
370 * delete from <table> where <column> not in (select <foreignColumn> from <foreignTable>)
405 // update mailbox set parentKey = (select _id from mailbox as b where
409 + "(select " + Mailbox.ID + " from " + Mailbox.TABLE_NAME + " as b where "
419 // update mailbox set parentKey = -1 where parentKey=0 or parentKey is null;
421 + "=" + Mailbox.NO_MAILBOX + " where "
1331 whereWith(String where, String selection) argument
[all...]

Completed in 2861 milliseconds