Searched refs:delete (Results 226 - 250 of 461) sorted by relevance

1234567891011>>

/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
H A DTelephonyProviderTest.java57 * Uses a MockContentResolver to get permission WRITE_APN_SETTINGS in order to test insert/delete
265 // delete test content
270 int numRowsDeleted = mContentResolver.delete(Carriers.CONTENT_URI,
323 // delete test content
328 int numRowsDeleted = mContentResolver.delete(SubscriptionManager.CONTENT_URI,
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DDictionaryBackupAgent.java261 getContentResolver().delete(contentUri, Words.WORD + "=? and "
264 getContentResolver().delete(contentUri, Words.WORD + "=? and "
/packages/apps/Dialer/java/com/android/dialer/database/
H A DDialerDatabaseHelper.java357 db.delete(
359 db.delete(Tables.PREFIX_TABLE, PrefixColumns.CONTACT_ID + "=" + deleteContactId, null);
382 * previous instance of the dialer was destroyed for some reason. For data integrity, we delete
389 db.delete(
403 db.delete(
423 db.delete(Tables.SMARTDIAL_TABLE, SmartDialDbColumns.CONTACT_ID + "=" + contactId, null);
424 db.delete(Tables.PREFIX_TABLE, PrefixColumns.CONTACT_ID + "=" + contactId, null);
631 * If the database did not exist before, jump through deletion as there is nothing to delete.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsProvider.java555 db.delete(table, Rate.SENT_TIME + "<=" + oneHourAgo, null);
612 public int delete(Uri uri, String selection, method in class:MmsProvider
679 deletedRows = db.delete(table, finalSelection, selectionArgs);
709 int count = db.delete(TABLE_PDU, selection, selectionArgs);
751 new File(path).delete();
761 return db.delete(table, selection, selectionArgs);
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
H A DMailboxTests.java110 * Test delete mailbox
115 Account account1 = ProviderTestUtils.setupAccount("mailbox-delete", true, c);
129 // now delete one of them
131 c.getContentResolver().delete(uri, null, null);
137 // now delete the other one
139 c.getContentResolver().delete(uri, null, null);
288 // delete account 1 and confirm no mailboxes are returned
289 context.getContentResolver().delete(
334 * Test for the message count triggers (insert/delete/move mailbox), and also
416 // 3. Check the delete trigge
[all...]
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DCalculatorExpr.java39 * The add() method adds a token to the end of the expression. The delete method() removes one.
227 public void delete() { method in class:CalculatorExpr.Constant
467 * for unambiguous consecutive binary operators, in which case we delete the first
484 delete();
539 delete();
571 public void delete() { method in class:CalculatorExpr
579 c.delete();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DMetadataDbHelper.java768 * - DELETING: this should be returned to LatinIME so that it can actually delete the file.
838 * @param clientId the ID of the client to delete.
848 if (0 == defaultDb.delete(CLIENT_TABLE_NAME,
969 // We start by gathering the names of the files we should delete.
997 db.delete(METADATA_TABLE_NAME,
1006 f.delete();
1008 // No permissions to delete. Um. Can't do anything.
1029 db.delete(METADATA_TABLE_NAME, PENDINGID_COLUMN + " = ? AND " + STATUS_COLUMN + " = ?",
1044 db.delete(METADATA_TABLE_NAME, WORDLISTID_COLUMN + " = ? AND " + VERSION_COLUMN + " = ?",
H A DDictionaryProvider.java310 // This is how we "delete" the files. It allows Android Keyboard to fake deleting
432 * @see android.content.ContentProvider#delete(Uri, String, String[])
435 public int delete(final Uri uri, final String selection, final String[] selectionArgs) method in class:DictionaryProvider
447 // Unsupported URI for delete
476 // f.delete() returns true if the file was successfully deleted, false otherwise
477 return f.delete() ? 1 : 0;
479 Log.e(TAG, "Attempt to delete a file whose status is " + status);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputConnection.java174 internal.delete(0, internal.length() - actualLength);
379 // heavy pressing of delete, for example DEFAULT_TEXT_CACHE_SIZE - 5 times or so.
422 s.delete(0, s.length() - n);
493 // delete. Only delete what is there, and update the end with the amount deleted.
529 mCommittedTextBeforeComposingText.delete(
534 mComposingText.delete(mComposingText.length() - 1, mComposingText.length());
674 internal.delete(0, internal.length() - checkLength);
/packages/apps/Email/provider_src/com/android/email/service/
H A DEmailServiceStub.java347 // Never, ever delete special mailboxes
357 mContext.getContentResolver().delete(uri, null, null);
489 // 4. move to sent, or delete
495 // If this is a forwarded message and it has attachments, delete them, as they
515 resolver.delete(uri, null, null);
516 resolver.delete(syncedUri, null, null);
H A DImapService.java545 // Note that this complicates deletion: It's not okay to delete anything that is in the
713 // Attachment & Body records are auto-deleted when we delete the Message record
719 resolver.delete(uriToDelete, null, null);
724 resolver.delete(updateRowToDelete, null, null);
727 resolver.delete(deleteRowToDelete, null, null);
846 // Finally, delete the update
849 context.getContentResolver().delete(uri, null, null);
856 LogUtils.d(Logging.LOG_TAG, "Unable to process pending delete for id="
1005 // Finally, delete the update
1008 resolver.delete(ur
[all...]
/packages/apps/TV/src/com/android/tv/tuner/cc/
H A DCaptionWindowLayout.java562 mBuilder.delete(0, mBuilder.length() - truncatedText.length());
584 trim.delete(end + 1, last + 1);
587 trim.delete(0, start);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactMetadataProviderTest.java349 int numOfDeletion = mResolver.delete(MetadataSync.CONTENT_URI, SELECTION_BY_TEST_ACCOUNT1,
436 // metadata_entry for TEST_ACCOUNT1; delete metadata_entry of TEST_ACCOUNT2
491 mResolver.delete(MetadataSyncState.CONTENT_URI, selection, args);
515 mResolver.delete(MetadataSyncState.CONTENT_URI, selection, args);
H A DLegacyContactsProviderTest.java117 mResolver.delete(personId, null, null);
182 mResolver.delete(orgUri1, null, null);
190 mResolver.delete(orgUri2, null, null);
232 mResolver.delete(phoneUri1, null, null);
240 mResolver.delete(phoneUri2, null, null);
305 mResolver.delete(emailUri1, null, null);
313 mResolver.delete(emailUri2, null, null);
872 mResolver.delete(personUri, null, null);
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
H A DPartnerBookmarksProvider.java151 db.delete(TABLE_BOOKMARKS, null, null);
154 db.delete(TABLE_BOOKMARKS, null, null);
442 public int delete(Uri uri, String selection, String[] selectionArgs) { method in class:PartnerBookmarksProvider
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppProvider.java414 public int delete(Uri uri, String selection, String[] selectionArgs) { method in class:BluetoothOppProvider
437 count = db.delete(DB_TABLE, myWhere, selectionArgs);
442 throw new UnsupportedOperationException("Cannot delete URI: " + uri);
/packages/apps/Gallery/src/com/android/camera/
H A DImageManager.java453 f.delete();
458 f.delete();
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DLocalImage.java266 public void delete() { method in class:LocalImage
271 contentResolver.delete(baseUri, "_id=?",
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBugleDatabaseOperations.java479 dbWrapper.delete(DatabaseHelper.MESSAGES_TABLE,
484 dbWrapper.delete(DatabaseHelper.MESSAGES_TABLE,
489 // Delete any draft message. The delete above may not always include the draft,
493 // devices, it's important that we never delete all the messages in a conversation
495 dbWrapper.delete(DatabaseHelper.MESSAGES_TABLE,
512 + " cannot delete all messages in a conversation"
521 final int count = dbWrapper.delete(DatabaseHelper.CONVERSATIONS_TABLE,
1190 // Check message still exists (sms sync or delete might have purged it)
1230 final int cnt = dbWrapper.delete(DatabaseHelper.PARTS_TABLE,
1253 count = dbWrapper.delete(DatabaseHelpe
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DMessagePartData.java422 * If application owns content associated with this part delete it (on background thread)
430 Factory.get().getApplicationContext().getContentResolver().delete(
438 * If application owns content associated with this part delete it
443 Factory.get().getApplicationContext().getContentResolver().delete(
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarAlarmManager.java106 * the user corrects it we might delete good alarms that appear to be old
297 int rowsDeleted = db.delete(
499 db.delete(CalendarAlerts.TABLE_NAME, CalendarAlerts.STATE + "="
H A DCalendarProvider2.java1365 // safely delete all the entries in the Instances table.
3064 return mDbHelper.getSyncState().delete(mDb, selection, selectionArgs);
3072 return mDbHelper.getSyncState().delete(mDb, selectionWithId,
3086 // Query this event to get the ids to delete.
3121 return mDb.delete(Tables.ATTENDEES, selection, selectionArgs);
3131 return mDb.delete(Tables.ATTENDEES, SQL_WHERE_ID,
3150 return mDb.delete(Tables.EXTENDED_PROPERTIES, selection, selectionArgs);
3160 return mDb.delete(Tables.EXTENDED_PROPERTIES, SQL_WHERE_ID,
3170 return mDb.delete(Tables.CALENDAR_ALERTS, selection, selectionArgs);
3181 return mDb.delete(Table
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDbModifierWithNotification.java226 public int delete(String table, String whereClause, String[] whereArgs) { method in class:DbModifierWithNotification
231 // this means that the user deleted the voicemail. However, we do not want to delete it from
234 // Once the changes are synced to the server, delete will be called again, this time
237 // CP2 (cleanup after uninstall), then we don't need to wait for sync, so just delete it.
246 count = mDb.delete(table, whereClause, whereArgs);
/packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/
H A DAllUriTest.java59 * TODO Add test for delete/update/insert too.
70 // "d" : supports delete.
676 checkExecutable("insert -> delete", newUri, true, () -> {
677 mResolver.delete(newUri, null, null);
684 checkExecutable("delete", uri, supportsDelete(path), () -> {
685 mResolver.delete(uri, "1=2", null);
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DWiFiInstaller.java154 context.getContentResolver().delete(uri, null, null);
157 Log.e(TAG, "could not delete document " + uri);

Completed in 4392 milliseconds

1234567891011>>