Home
last modified time | relevance | path

Searched refs:whereClause (Results 1 – 25 of 27) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDbModifierWithNotification.java165 public int update(Uri uri, String table, ContentValues values, String whereClause, in update() argument
167 Set<String> packagesModified = getModifiedPackages(whereClause, whereArgs); in update()
179 updateLastModified(table, whereClause, whereArgs); in update()
199 int count = mDb.update(table, values, whereClause, whereArgs); in update()
249 private void updateLastModified(String table, String whereClause, String[] whereArgs) { in updateLastModified() argument
254 DbQueryUtils.concatenateClauses(NOT_DELETED_SELECTION, whereClause), in updateLastModified()
259 public int delete(String table, String whereClause, String[] whereArgs) { in delete() argument
260 Set<String> packagesModified = getModifiedPackages(whereClause, whereArgs); in delete()
277 count = mDb.update(table, values, whereClause, whereArgs); in delete()
279 count = mDb.delete(table, whereClause, whereArgs); in delete()
[all …]
DDatabaseModifier.java46 String whereClause, String[] whereArgs); in update() argument
51 public abstract int delete(String table, String whereClause, String[] whereArgs); in delete() argument
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DDatabaseResultTask.java173 final String whereClause = buildSingleWordWhereClause(matchColumns); in firstWordQuery() local
177 return query(whereClause, selection, baseRank); in firstWordQuery()
189 final String whereClause = buildSingleWordWhereClause(matchColumns); in secondaryWordQuery() local
193 return query(whereClause, selection, baseRank); in secondaryWordQuery()
205 final String whereClause = buildTwoWordWhereClause(matchColumns); in anyWordQuery() local
208 return query(whereClause, selection, baseRank); in anyWordQuery()
219 private Set<SearchResult> query(String whereClause, String[] selection, int baseRank) { in query() argument
223 whereClause, in query() argument
/packages/apps/Settings/src/com/android/settings/slices/
DSlicesDatabaseAccessor.java98 final String whereClause; in getSliceKeys() local
101 whereClause = IndexColumns.PLATFORM_SLICE + " = 1"; in getSliceKeys()
103 whereClause = IndexColumns.PLATFORM_SLICE + " = 0"; in getSliceKeys()
110 try (final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, columns, whereClause, in getSliceKeys() argument
127 final String whereClause = buildKeyMatchWhereClause(); in getIndexedSliceData() local
131 whereClause, selection, null /* groupBy */, null /* having */, null /* orderBy */); in getIndexedSliceData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSlicesDatabaseAccessor.java98 final String whereClause; in getSliceKeys() local
101 whereClause = IndexColumns.PLATFORM_SLICE + " = 1"; in getSliceKeys()
103 whereClause = IndexColumns.PLATFORM_SLICE + " = 0"; in getSliceKeys()
110 try (final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, columns, whereClause, in getSliceKeys() argument
127 final String whereClause = buildKeyMatchWhereClause(); in getIndexedSliceData() local
131 whereClause, selection, null /* groupBy */, null /* having */, null /* orderBy */); in getIndexedSliceData()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionDbHelper.java89 String whereClause = in getUntranscribedVoicemails() local
99 try (Cursor cursor = contentResolver.query(uri, PROJECTION, whereClause, whereArgs, null)) { in getUntranscribedVoicemails() argument
116 String whereClause = VoicemailCompat.TRANSCRIPTION_STATE + "=?"; in getTranscribingVoicemails() local
118 try (Cursor cursor = contentResolver.query(uri, PROJECTION, whereClause, whereArgs, null)) { in getTranscribingVoicemails() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapUtils.java248 String whereClause = Data.CONTACT_ID + "=?"; in updateSecondaryVersionCounter() local
254 fetchAndSetContacts(context, handler, dataProjection, whereClause, selectionArgs, in updateSecondaryVersionCounter()
279 .query(Data.CONTENT_URI, dataProjection, whereClause, selectionArgs, null); in updateSecondaryVersionCounter()
309 .query(Data.CONTENT_URI, dataProjection, whereClause, selectionArgs, null); in updateSecondaryVersionCounter()
410 String whereClause, String[] selectionArgs, boolean isLoad) { in fetchAndSetContacts() argument
413 .query(Data.CONTENT_URI, projection, whereClause, selectionArgs, null); in fetchAndSetContacts()
/packages/apps/Gallery/src/com/android/camera/gallery/
DVideoList.java90 whereClause(), whereClauseArgs(), sortOrder()); in getBucketIds()
102 protected String whereClause() { in whereClause() method in VideoList
116 whereClause(), whereClauseArgs(), sortOrder()); in createCursor()
DImageList.java46 whereClause(), whereClauseArgs(), null); in getBucketIds()
71 protected String whereClause() { in whereClause() method in ImageList
91 whereClause(), whereClauseArgs(), sortOrder()); in createCursor()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DDatabaseIndexingManager.java271 final String whereClause = getKeyWhereClause(key); in updateDataInDatabase() local
272 database.update(TABLE_PREFS_INDEX, enabledToDisabledValue, whereClause, null); in updateDataInDatabase()
295 final String whereClause = getKeyWhereClause(key); in updateDataInDatabase() local
296 database.update(TABLE_PREFS_INDEX, disabledToEnabledValue, whereClause, null); in updateDataInDatabase()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java110 StringBuilder whereClause = new StringBuilder("profileId != ?"); in sanitizeDB() local
112 whereClause.append(" AND profileId != ?"); in sanitizeDB()
115 int itemsDeleted = db.delete(Favorites.TABLE_NAME, whereClause.toString(), profileIds); in sanitizeDB()
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DVoicemailStatusQueryHelper.java93 String whereClause = in isFieldEqualTo() local
101 cursor = contentResolver.query(sourceUri, PROJECTION, whereClause, whereArgs, null); in isFieldEqualTo()
DVoicemailsQueryHelper.java214 String whereClause = in isVoicemailUnique() local
222 cursor = contentResolver.query(sourceUri, PROJECTION, whereClause, whereArgs, null); in isVoicemailUnique()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java39 public void delete(String whereClause, String[] whereArgs) { in delete() argument
44 mOpenHelper.getWritableDatabase().delete(mTableName, whereClause, whereArgs); in delete()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DPackageReplacedReceiver.java100 String whereClause = Calls.TYPE + " = " + Calls.VOICEMAIL_TYPE; in doInBackground() local
102 context.getContentResolver().query(uri, PROJECTION, whereClause, null, null)) { in doInBackground() argument
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DMutationApplier.java109 String whereClause = in applyToDatabaseInternal() local
120 .withSelection(whereClause, whereArgs) in applyToDatabaseInternal()
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetProvider.java201 String whereClause = String.format("%s=%d", FIELD_APPWIDGET_ID, in deletePhoto() local
203 db.delete(TABLE_PHOTOS, whereClause, null); in deletePhoto()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java358 public int delete(final String table, final String whereClause, final String[] whereArgs) { in delete() argument
366 count = mDatabase.delete(table, whereClause, whereArgs); in delete()
374 whereClause, count)); in delete()
DBugleDatabaseOperations.java1914 final String whereClause = rowKey + "=?" + " AND (" + sb.toString() + ")"; in updateRowIfExists() local
1916 final int count = db.update(table, values, whereClause, whereValuesArray); in updateRowIfExists()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java327 String whereClause = columnName + "=?"; in markBroadcastRead() local
330 … int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, whereArgs); in markBroadcastRead()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DCarrierProviderTest.java316 String whereClause = "mcc=? and mnc=?"; in testDelete() local
318 … numRowsDeleted = mContentResolver.delete(CarrierProvider.CONTENT_URI, whereClause, whereArgs); in testDelete()
DCarrierIdProviderTest.java231 String whereClause = CarrierId.All.MCCMNC + "=?"; in testDeleteCarrierInfo() local
234 whereClause, whereArgs); in testDeleteCarrierInfo()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DDataModel.java415 public Builder setWhereClause(String whereClause) { in setWhereClause() argument
416 mWhereClause = whereClause; in setWhereClause()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java491 String whereClause = (Calls._ID + " in (") + TextUtils.join(",", questionMarks) + ")"; in getIdsFromSystemCallLogThatMatch() local
504 whereClause, in getIdsFromSystemCallLogThatMatch() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContent.java1445 String whereClause = "_id=" + threadId; in getCanonicalAddressSms() local
1447 Log.v(TAG, "whereClause is " + whereClause); in getCanonicalAddressSms()
1450 cr = r.query(sAllThreadsUri, RECIPIENT_ID_PROJECTION, whereClause, null, null); in getCanonicalAddressSms()
1456 + "selection: " + whereClause); in getCanonicalAddressSms()
1470 whereClause = ""; in getCanonicalAddressSms()
1473 if (whereClause.length() != 0) { in getCanonicalAddressSms()
1474 whereClause += " OR "; in getCanonicalAddressSms()
1476 whereClause += "_id=" + id; in getCanonicalAddressSms()
1479 Log.v(TAG, "whereClause is " + whereClause); in getCanonicalAddressSms()
1482 cr = r.query(sAllCanonical, null, whereClause, null, null); in getCanonicalAddressSms()

12