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);
H A DBrowserProvider.java941 public int delete(Uri url, String where, String[] whereArgs) { argument
955 if (where != null && where.length() > 0) {
957 sb.append(where);
963 where = sb.toString();
982 int count = db.delete(TABLE_NAMES[match % 10], where, whereArgs);
988 public int update(Uri url, ContentValues values, String where, argument
999 if (where != null && where.length() > 0) {
1001 sb.append(where);
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DAgendaAdapter.java46 TextView where; field in class:AgendaAdapter.ViewHolder
75 holder.where = (TextView) view.findViewById(R.id.where);
88 TextView where = holder.where;
151 where.setVisibility(View.VISIBLE);
152 where.setText(whereString);
154 where.setVisibility(View.GONE);
162 String where = String.format(REMINDERS_WHERE, eventId);
164 Cursor remindersCursor = cr.query(uri, REMINDERS_PROJECTION, where, nul
[all...]
/packages/apps/AlarmClock/src/com/android/alarmclock/
H A DAlarmProvider.java142 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
212 public int delete(Uri url, String where, String[] whereArgs) { argument
218 count = db.delete("alarms", where, whereArgs);
223 if (TextUtils.isEmpty(where)) {
224 where = "_id=" + segment;
226 where = "_id=" + segment + " AND (" + where + ")";
228 count = db.delete("alarms", where, whereArgs);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmProvider.java141 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
183 public int delete(Uri url, String where, String[] whereArgs) { argument
189 count = db.delete("alarms", where, whereArgs);
194 if (TextUtils.isEmpty(where)) {
195 where = "_id=" + segment;
197 where = "_id=" + segment + " AND (" + where + ")";
199 count = db.delete("alarms", where, whereArgs);
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java196 public int delete(Uri uri, String where, String[] whereArgs) { argument
201 count = db.delete(USERDICT_TABLE_NAME, where, whereArgs);
207 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs);
220 public int update(Uri uri, ContentValues values, String where, String[] whereArgs) { argument
225 count = db.update(USERDICT_TABLE_NAME, values, where, whereArgs);
231 + (!TextUtils.isEmpty(where) ? " AND (" + where + ')' : ""), whereArgs);
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadProvider.java521 final String where, final String[] whereArgs) {
523 Helpers.validateSelection(where, sAppReadableColumnsSet);
562 if (where != null) {
564 myWhere = "( " + where + " )";
566 myWhere = "( " + where + " ) AND ";
609 public int delete(final Uri uri, final String where, argument
612 Helpers.validateSelection(where, sAppReadableColumnsSet);
621 if (where != null) {
623 myWhere = "( " + where + " )";
625 myWhere = "( " + where
520 update(final Uri uri, final ContentValues values, final String where, final String[] whereArgs) argument
[all...]
/packages/providers/DrmProvider/src/com/android/providers/drm/
H A DDrmProvider.java275 public String where; field in class:DrmProvider.GetTableAndWhereOutParameter
283 String where = null;
291 where = "_id=" + uri.getPathSegments().get(1);
300 where = "_id=" + uri.getPathSegments().get(1);
310 if (!TextUtils.isEmpty(where)) {
311 out.where = where + " AND (" + userWhere + ")";
313 out.where = userWhere;
316 out.where = where;
[all...]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsSmsDatabaseHelper.java319 public static void updateAllThreads(SQLiteDatabase db, String where, String[] whereArgs) { argument
320 if (where == null) {
321 where = "";
323 where = "WHERE (" + where + ")";
326 "(SELECT DISTINCT thread_id FROM sms " + where + ")";
H A DTelephonyProvider.java487 public int delete(Uri url, String where, String[] whereArgs) argument
499 count = db.delete(CARRIERS_TABLE, where, whereArgs);
505 count = db.delete(CARRIERS_TABLE, where, whereArgs);
542 public int update(Uri url, ContentValues values, String where, String[] whereArgs) argument
554 count = db.update(CARRIERS_TABLE, values, where, whereArgs);
560 count = db.update(CARRIERS_TABLE, values, where, whereArgs);
566 if (where != null || whereArgs != null) {
568 "Cannot update URL " + url + " with a where clause");
H A DSmsProvider.java522 public int delete(Uri url, String where, String[] whereArgs) { argument
528 count = db.delete(TABLE_SMS, where, whereArgs);
531 MmsSmsDatabaseHelper.updateAllThreads(db, where, whereArgs);
557 where = DatabaseUtils.concatenateWhere("thread_id=" + threadID, where);
558 count = db.delete(TABLE_SMS, where, whereArgs);
563 count = db.delete("raw", where, whereArgs);
567 count = db.delete("sr_pending", where, whereArgs);
607 public int update(Uri url, ContentValues values, String where, String[] whereArgs) { argument
667 where
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherProvider.java94 if (TextUtils.isEmpty(args.where)) {
110 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
155 int count = db.delete(args.table, args.where, args.args);
166 int count = db.update(args.table, values, args.where, args.args);
858 * Build a query string that will match any row where the column matches
874 public final String where; field in class:LauncherProvider.SqlArguments
877 SqlArguments(Uri url, String where, String[] args) { argument
880 this.where = where;
884 } else if (!TextUtils.isEmpty(where)) {
[all...]
/packages/apps/Email/src/com/android/email/provider/
H A DEmailProvider.java164 Message.UPDATED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
168 Message.UPDATED_TABLE_NAME + " where " + EmailContent.RECORD_ID + '=';
171 Message.DELETED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
175 " where " + BodyColumns.MESSAGE_KEY + " in " + "(select " + BodyColumns.MESSAGE_KEY +
180 " where " + BodyColumns.MESSAGE_KEY + '=';
188 " where " + MessageColumns.MAILBOX_KEY + "=old." + EmailContent.RECORD_ID +
190 " where " + MessageColumns.MAILBOX_KEY + "=old." + EmailContent.RECORD_ID +
192 " where " + MessageColumns.MAILBOX_KEY + "=old." + EmailContent.RECORD_ID +
348 " where " + AttachmentColumns.MESSAGE_KEY + "=old." + EmailContent.RECORD_ID +
358 " where "
1127 whereWith(String where, String selection) argument
[all...]
H A DEmailContent.java1259 static private long getDefaultAccountWhere(Context context, String where) { argument
1262 where, null, null);
1294 * where ID = account id (used on Eclair, Android 2.0-2.1) or UUID, and return _id of
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarProvider2Test.java1287 testQueryCount(Calendar.Calendars.CONTENT_URI, null /* where */, 2);
1288 testQueryCount(Calendar.Events.CONTENT_URI, null /* where */, 2);
1295 testQueryCount(Calendar.Calendars.CONTENT_URI, null /* where */, 1);
1296 testQueryCount(Calendar.Events.CONTENT_URI, null /* where */, 1);
1304 testQueryCount(Calendar.Calendars.CONTENT_URI, null /* where */, 0);
1305 testQueryCount(Calendar.Events.CONTENT_URI, null /* where */, 0);
1447 * @param where The where string or null.
1450 private void testQueryCount(Uri uri, String where, int wanted) { argument
1451 Cursor cursor = mResolver.query(uri, null/* projection */, where, nul
[all...]
/packages/apps/IM/src/com/android/im/provider/
H A DImpsProvider.java192 * The where clause for filtering out blocked contacts
229 PRESENCE_CONTACT_ID + " where " + PRESENCE_CONTACT_ID + " IS NULL)";
1090 log("query " + url + ", match " + match + ", where " + selection);
1823 buf.append(" where ");
1905 buf.append(" where ");
2493 " on " + PRESENCE_CONTACT_ID + '=' + CONTACT_ID + " where " + CONTACT_ID + " IS NULL)";
2498 " on " + CHATS_CONTACT_ID + '=' + CONTACT_ID + " where " + CONTACT_ID + " IS NULL)";
2504 " on " + GROUP_MEMBER_ID + '=' + CONTACT_ID + " where " + CONTACT_ID + " IS NULL)";
2510 GROUP_MESSAGES_ID + '=' + CONTACT_ID + " where " + CONTACT_ID + " IS NULL)";
2550 buf.append(" where ");
3302 appendWhere(StringBuilder where, String columnName, String condition, Object value) argument
3313 appendWhere(StringBuilder where, String clause) argument
[all...]
H A DImps.java765 String[] projection, String where, String orderBy) {
766 return cr.query(CONTENT_URI, projection, where,
2317 * persistent ids. These are used in the RMQ2 protocol, where in the login request, the
764 query(ContentResolver cr, String[] projection, String where, String orderBy) argument
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java209 * might seem like overkill, but it is useful in the case where the user
486 mDb.delete("Instances", null /* where clause */, null /* where args */);
1008 * or with Exchange, where ids are not unique between calendars.
1777 mDb.execSQL("UPDATE Events SET _sync_dirty=1 where _id=?", new Integer[] {eventId});
2040 String where = "_id =?";
2041 qb.appendWhere(where);
2044 String where = "_sync_id = ? OR originalEvent = ?";
2045 qb.appendWhere(where);
2086 String where
2549 deleteMatchingCalendars(String where) argument
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java671 "SELECT _id FROM audio where mime_type='audio/mp4' AND " +
982 "DELETE from audio_meta where _id=old._id;" +
983 "DELETE from audio_playlists_map where audio_id=old._id;" +
984 "DELETE from audio_genres_map where audio_id=old._id;" +
1056 * @param values the content values, where the bucked id name and bucket display name are updated.
1081 * @param values the content values, where the display name is updated.
1097 * @param values the content values, where taken time is updated.
1501 String where = "";
1504 where = "match LIKE ?";
1506 where
2020 public String where; field in class:MediaProvider.GetTableAndWhereOutParameter
[all...]

Completed in 1164 milliseconds