Searched defs:where (Results 1 - 19 of 19) 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/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
H A DBluetoothMapEmailProvider.java123 * @param input The pipe where data should be read. This will be
390 public int delete(Uri uri, String where, String[] selectionArgs) { argument
546 * For the message table the selection (where clause) can only include the following columns:
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
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.java551 public int delete(Uri url, String where, String[] whereArgs) { argument
557 count = db.delete(TABLE_SMS, where, whereArgs);
560 MmsSmsDatabaseHelper.updateAllThreads(db, where, whereArgs);
586 where = DatabaseUtils.concatenateWhere("thread_id=" + threadID, where);
587 count = db.delete(TABLE_SMS, where, whereArgs);
592 count = db.delete("raw", where, whereArgs);
596 count = db.delete("sr_pending", where, whereArgs);
638 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
698 where
[all...]
H A DTelephonyProvider.java894 public int delete(Uri url, String where, String[] whereArgs) argument
921 count = db.delete(CARRIERS_TABLE, where, whereArgs);
940 count = db.delete(CARRIERS_TABLE, where, whereArgs);
990 count = db.delete(SIMINFO_TABLE, where, whereArgs);
1007 public int update(Uri url, ContentValues values, String where, String[] whereArgs) argument
1035 count = db.update(CARRIERS_TABLE, values, where, whereArgs);
1055 count = db.update(CARRIERS_TABLE, values, where, whereArgs);
1061 if (where != null || whereArgs != null) {
1063 "Cannot update URL " + url + " with a where clause");
1099 count = db.update(SIMINFO_TABLE, values, where, whereArg
[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.java105 if (TextUtils.isEmpty(args.where)) {
121 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
138 db.delete(args.table, args.where, args.args);
182 int count = db.delete(args.table, args.where, args.args);
193 int count = db.update(args.table, values, args.where, args.args);
273 // In the case where neither onCreate nor onUpgrade gets called, we read the maxId from
1206 * Build a query string that will match any row where the column matches
1222 public final String where; field in class:LauncherProvider.SqlArguments
1225 SqlArguments(Uri url, String where, String[] args) { argument
1228 this.where
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadProvider.java185 * This class encapsulates a SQL where clause and its parameters. It makes it possible for
980 String where = Downloads.Impl.RequestHeaders.COLUMN_DOWNLOAD_ID + "="
984 return db.query(Downloads.Impl.RequestHeaders.HEADERS_DB_TABLE, projection, where,
991 private void deleteRequestHeaders(SQLiteDatabase db, String where, String[] whereArgs) { argument
993 Cursor cursor = db.query(DB_TABLE, projection, where, whereArgs, null, null, null, null);
1020 final String where, final String[] whereArgs) {
1022 Helpers.validateSelection(where, sAppReadableColumnsSet);
1083 SqlSelection selection = getWhereClause(uri, where, whereArgs, match);
1123 private SqlSelection getWhereClause(final Uri uri, final String where, final String[] whereArgs, argument
1126 selection.appendClause(where, whereArg
1019 update(final Uri uri, final ContentValues values, final String where, final String[] whereArgs) argument
1145 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.java131 if (TextUtils.isEmpty(args.where)) {
147 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
168 db.delete(args.table, args.where, args.args);
237 int count = db.delete(args.table, args.where, args.args);
249 int count = db.update(args.table, values, args.where, args.args);
439 // In the case where neither onCreate nor onUpgrade gets called, we read the maxId from
1627 // If we have a single item, promote it to where the folder
2239 * Build a query string that will match any row where the column matches
2287 public final String where; field in class:LauncherProvider.SqlArguments
2290 SqlArguments(Uri url, String where, Strin argument
[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.java282 String where = FileColumns.STORAGE_ID + "=?";
285 db.update("files", values, where, whereArgs);
288 int numpurged = db.delete("files", where, whereArgs);
1054 "SELECT _id FROM audio where mime_type='audio/mp4' AND " +
1550 "DELETE from files where _id=old._id;" +
1551 "DELETE from audio_playlists_map where audio_id=old._id;" +
1552 "DELETE from audio_genres_map where audio_id=old._id;" +
1992 * @param values the content values, where the bucked id name and bucket display name are updated.
2016 * @param values the content values, where the display name is updated.
2032 * @param values the content values, where take
3819 public String where; field in class:MediaProvider.GetTableAndWhereOutParameter
[all...]
/packages/apps/Email/src/com/android/email/provider/
H A DEmailProvider.java318 Message.UPDATED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
322 Message.UPDATED_TABLE_NAME + " where " + BaseColumns._ID + '=';
325 Message.DELETED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
333 " where " + BodyColumns.MESSAGE_KEY + " in " + '(' + ORPHAN_BODY_MESSAGE_ID_SELECT + ')';
336 " where " + BodyColumns.MESSAGE_KEY + '=';
406 * delete from <table> where <column> not in (select <foreignColumn> from <foreignTable>)
442 // update mailbox set parentKey = (select _id from mailbox as b where
446 + "(select " + Mailbox._ID + " from " + Mailbox.TABLE_NAME + " as b where "
456 // update mailbox set parentKey = -1 where parentKey=0 or parentKey is null;
458 + "=" + Mailbox.NO_MAILBOX + " where "
1471 whereWith(String where, String selection) argument
[all...]

Completed in 1860 milliseconds