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

/packages/apps/Launcher3/src/com/android/launcher3/provider/
H A DLossyScreenMigrationTask.java60 protected Cursor queryWorkspace(String[] columns, String where) { argument
61 return mDb.query(Favorites.TABLE_NAME, columns, where, null, null, null, null);
/packages/apps/Messaging/src/com/android/messaging/mmslib/
H A DSqliteWrapper.java51 ContentValues values, String where, String[] selectionArgs) {
53 return resolver.update(uri, values, where, selectionArgs);
64 String where, String[] selectionArgs) {
66 return resolver.delete(uri, where, selectionArgs);
50 update(Context context, ContentResolver resolver, Uri uri, ContentValues values, String where, String[] selectionArgs) argument
63 delete(Context context, ContentResolver resolver, Uri uri, String where, String[] selectionArgs) argument
/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/apps/DeskClock/src/com/android/deskclock/provider/
H A DClockProvider.java125 // storage area, which is where our data lives from now on.
202 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) { argument
249 public int delete(Uri uri, String where, String[] whereArgs) { argument
255 count = db.delete(ALARMS_TABLE_NAME, where, whereArgs);
259 if (TextUtils.isEmpty(where)) {
260 where = AlarmsColumns._ID + "=" + primaryKey;
262 where = AlarmsColumns._ID + "=" + primaryKey + " AND (" + where + ")";
264 count = db.delete(ALARMS_TABLE_NAME, where, whereArgs);
267 count = db.delete(INSTANCES_TABLE_NAME, where, whereArg
[all...]
/packages/apps/Messaging/tests/src/com/android/messaging/
H A DFakeContentProvider.java40 private final String where; field in class:FakeContentProvider.ContentOverride
45 ContentOverride(final String uri, final String where, final String args, argument
48 this.where = where;
54 boolean match(final String uri, final String where, final String[] args) { argument
55 if (!this.uri.equals(uri) || !TextUtils.equals(this.where, where)) {
88 public void addOverrideData(final Uri uri, final String where, final String args, argument
90 mOverrides.add(new ContentOverride(uri.toString(), where, args, columns, data));
114 + " 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/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/Messaging/src/com/android/messaging/datamodel/
H A DParticipantRefresh.java345 final int subscriptionColor, final String subscriptionName, final String where) {
348 slotId, subscriptionColor, subscriptionName, where);
344 getUpdateSelfParticipantSubscriptionInfoSql(final int slotId, final int subscriptionColor, final String subscriptionName, final String where) argument
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java255 public int delete(Uri uri, String where, String[] whereArgs) { argument
260 count = db.delete(USERDICT_TABLE_NAME, where, whereArgs);
266 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs);
284 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) { argument
289 count = db.update(USERDICT_TABLE_NAME, values, where, whereArgs);
295 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs);
/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:
H A DBluetoothMapIMProvider.java196 public int delete(Uri uri, String where, String[] selectionArgs) { argument
372 * For the message table the selection (where clause) can only include the following columns:
391 * For the Conversation table the selection (where clause) can only include
440 * For the ConvoContact table the selection (where clause) can only include the
651 * where the IM application is installed, it should still be possible to show an active status.
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherProvider.java111 if (TextUtils.isEmpty(args.where)) {
127 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
144 db.delete(args.table, args.where, args.args);
188 int count = db.delete(args.table, args.where, args.args);
199 int count = db.update(args.table, values, args.where, args.args);
332 // In the case where neither onCreate nor onUpgrade gets called, we read the maxId from
1265 * Build a query string that will match any row where the column matches
1281 public final String where; field in class:LauncherProvider.SqlArguments
1284 SqlArguments(Uri url, String where, String[] args) { argument
1287 this.where
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherProvider.java111 if (TextUtils.isEmpty(args.where)) {
153 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
320 String widgetSelection = TextUtils.isEmpty(args.where) ? "1=1" : args.where;
338 int count = db.delete(args.table, args.where, args.args);
353 int count = db.update(args.table, values, args.where, args.args);
608 // In the case where neither onCreate nor onUpgrade gets called, we read the maxId from
1101 public final String where; field in class:LauncherProvider.SqlArguments
1104 SqlArguments(Uri url, String where, String[] args) { argument
1107 this.where
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DGridSizeMigrationTask.java418 // The first row in the grid from where the placement should start.
791 protected Cursor queryWorkspace(String[] columns, String where) { argument
793 columns, where, null, null, null);
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadProvider.java192 * This class encapsulates a SQL where clause and its parameters. It makes it possible for
1036 String where = Downloads.Impl.RequestHeaders.COLUMN_DOWNLOAD_ID + "="
1040 return db.query(Downloads.Impl.RequestHeaders.HEADERS_DB_TABLE, projection, where,
1047 private void deleteRequestHeaders(SQLiteDatabase db, String where, String[] whereArgs) { argument
1049 Cursor cursor = db.query(DB_TABLE, projection, where, whereArgs, null, null, null, null);
1076 final String where, final String[] whereArgs) {
1078 Helpers.validateSelection(where, sAppReadableColumnsSet);
1142 final SqlSelection selection = getWhereClause(uri, where, whereArgs, match);
1194 private SqlSelection getWhereClause(final Uri uri, final String where, final String[] whereArgs, argument
1197 selection.appendClause(where, whereArg
1075 update(final Uri uri, final ContentValues values, final String where, final String[] whereArgs) argument
1216 delete(final Uri uri, final String where, final String[] whereArgs) argument
[all...]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsSmsDatabaseHelper.java420 public static void updateAllThreads(SQLiteDatabase db, String where, String[] whereArgs) { argument
423 if (where == null) {
424 where = "";
426 where = "WHERE (" + where + ")";
429 "(SELECT DISTINCT thread_id FROM sms " + where + ")";
444 "_id NOT IN (SELECT DISTINCT thread_id FROM sms where thread_id NOT NULL " +
445 "UNION SELECT DISTINCT thread_id FROM pdu where thread_id NOT NULL)", null);
H A DSmsProvider.java649 public int delete(Uri url, String where, String[] whereArgs) { argument
656 count = db.delete(TABLE_SMS, where, whereArgs);
659 MmsSmsDatabaseHelper.updateAllThreads(db, where, whereArgs);
685 where = DatabaseUtils.concatenateWhere("thread_id=" + threadID, where);
686 count = db.delete(TABLE_SMS, where, whereArgs);
693 count = db.update(TABLE_RAW, cv, where, whereArgs);
701 count = db.delete(TABLE_RAW, where, whereArgs);
709 count = db.delete("sr_pending", where, whereArgs);
751 public int update(Uri url, ContentValues values, String where, Strin argument
[all...]
H A DTelephonyProvider.java809 String where = queryValFirst(NUMERIC) +
909 log("deleteRow: where: " + where);
918 db.delete(CARRIERS_TABLE, where, whereArgs);
1582 String where = TextUtils.join("=? and ", CARRIERS_UNIQUE_FIELDS) + "=?";
1595 Cursor c = db.query(CARRIERS_TABLE, new String[]{"_id"}, where, whereArgs, null, null,
1925 public synchronized int delete(Uri url, String where, String[] whereArgs) argument
1961 count = db.delete(CARRIERS_TABLE, "(" + where + userOrCarrierEdited, whereArgs);
1963 count += db.update(CARRIERS_TABLE, cv, "(" + where + notUserOrCarrierEdited,
1984 count = db.delete(CARRIERS_TABLE, "(" + where
2067 update(Uri url, ContentValues values, String where, 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/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarProvider2Test.java1122 final String where = Colors.ACCOUNT_NAME + "=? AND " + Colors.ACCOUNT_TYPE + "=? AND "
1134 addSyncQueryParams(uri, DEFAULT_ACCOUNT, DEFAULT_ACCOUNT_TYPE), cv, where,
1797 String where = Instances.SELF_ATTENDEE_STATUS + "!=" +
1842 "search", where, null, orderBy);
1854 "purple", where, null, orderBy);
1866 "puurple", where, null, orderBy);
1878 "purple lasers", where, null, orderBy);
1890 "lasers kapow", where, null, orderBy);
1902 "\"search purple\"", where, null, orderBy);
1914 "\"purple search\"", where, nul
2224 testQueryCount(Uri uri, String where, int wanted) argument
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java299 String where = FileColumns.STORAGE_ID + "=?";
304 db.update("files", values, where, whereArgs);
307 int numpurged = db.delete("files", where, whereArgs);
1093 "SELECT _id FROM audio where mime_type='audio/mp4' AND " +
1592 "DELETE from files where _id=old._id;" +
1593 "DELETE from audio_playlists_map where audio_id=old._id;" +
1594 "DELETE from audio_genres_map where audio_id=old._id;" +
2044 * @param values the content values, where the bucked id name and bucket display name are updated.
2068 * @param values the content values, where the display name is updated.
2084 * @param values the content values, where take
3976 public String where; field in class:MediaProvider.GetTableAndWhereOutParameter
[all...]
/packages/apps/Email/provider_src/com/android/email/provider/
H A DEmailProvider.java324 Message.UPDATED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
328 Message.UPDATED_TABLE_NAME + " where " + BaseColumns._ID + '=';
331 Message.DELETED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
339 " where " + BodyColumns.MESSAGE_KEY + " in " + '(' + ORPHAN_BODY_MESSAGE_ID_SELECT + ')';
342 " where " + BodyColumns.MESSAGE_KEY + '=';
418 * delete from <table> where <column> not in (select <foreignColumn> from <foreignTable>)
454 // update mailbox set parentKey = (select _id from mailbox as b where
458 + "(select " + Mailbox._ID + " from " + Mailbox.TABLE_NAME + " as b where "
468 // update mailbox set parentKey = -1 where parentKey=0 or parentKey is null;
470 + "=" + Mailbox.NO_MAILBOX + " where "
1568 whereWith(String where, String selection) argument
[all...]

Completed in 1194 milliseconds