Searched refs:delete (Results 101 - 125 of 461) sorted by relevance

1234567891011>>

/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
H A DDatabaseAsserts.java33 resolver.delete(uri, null, null);
34 Assert.fail("delete operation should have failed with UnsupportedOperationException on"
82 * Asserts that a contact id was deleted, has a delete log, and that log has a timestamp greater
86 * @param start The timestamp that the delete log should be greater than.
/packages/apps/Camera2/src/com/android/camera/data/
H A DPhotoItem.java91 public boolean delete() { method in class:PhotoItem
93 cr.delete(PhotoDataQuery.CONTENT_URI,
95 return super.delete();
H A DVideoItem.java122 public boolean delete() { method in class:VideoItem
124 cr.delete(VideoDataQuery.CONTENT_URI,
126 return super.delete();
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastContentProvider.java169 public int delete(Uri uri, String selection, String[] selectionArgs) { method in class:CellBroadcastContentProvider
170 throw new UnsupportedOperationException("delete not supported");
213 * Internal method to delete a cell broadcast by row ID and notify observers.
214 * @param rowId the row ID of the broadcast to delete
220 int rowCount = db.delete(CellBroadcastDatabaseHelper.TABLE_NAME,
226 Log.e(TAG, "failed to delete broadcast at row " + rowId);
232 * Internal method to delete all cell broadcasts and notify observers.
238 int rowCount = db.delete(CellBroadcastDatabaseHelper.TABLE_NAME, null, null);
242 Log.e(TAG, "failed to delete all broadcasts");
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
H A DDbDowngradeHelperTest.java69 mSchemaFile.delete();
143 mSchemaFile.delete();
144 mDbFile.delete();
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
H A DRecorder.java90 delete();
122 public void delete() { method in class:Recorder
126 mSampleFile.delete();
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DSavedWallpaperImages.java111 new File(mContext.getFilesDir(), result.getString(0)).delete();
112 new File(mContext.getFilesDir(), result.getString(1)).delete();
116 db.delete(ImageDb.TABLE_NAME,
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandlerForPhoneNumber.java101 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { method in class:DataRowHandlerForPhoneNumber
105 int count = super.delete(db, txContext, c);
117 db.delete(Tables.PHONE_LOOKUP, PhoneLookupColumns.DATA_ID + "=?", mSelectionArgs1);
H A DPhotoStore.java98 mDb.delete(Tables.PHOTO_FILES, null, null);
129 // Not a valid photo store entry - delete the file.
220 // Write failed - will delete the file below.
232 boolean deleted = file.delete();
278 mDb.delete(ContactsDatabaseHelper.Tables.PHOTO_FILES, PhotoFilesColumns.CONCRETE_ID + "=?",
H A DVoicemailContentTable.java202 public int delete(UriData uriData, String selection, String[] selectionArgs) { method in class:VoicemailContentTable
215 Log.w(TAG, "No filename for uri " + uriData.getUri() + ", cannot delete file");
220 boolean success = file.delete();
222 Log.e(TAG, "Failed to delete file: " + file.getAbsolutePath());
230 // Now delete the rows themselves.
231 return getDatabaseModifier(db).delete(mTableName, combinedClause,
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DVoicemailProviderTest.java189 mResolver.delete(ownVoicemail, null, null);
202 mResolver.delete(anotherVoicemail, null, null);
215 int count = mResolver.delete(voicemailUri(), Voicemails._ID + "="
229 mResolver.delete(anotherVoicemail, null, null);
288 mResolver.delete(Voicemails.CONTENT_URI, null, null);
335 // Now give away full permission and check that we can update and delete only
340 mResolver.delete(withSourcePackageParam(ownVoicemail), null, null);
342 // However, attempting to update or delete another-package's voicemail should fail.
352 mResolver.delete(anotherVoicemail, null, null);
368 mResolver.delete(anotherVoicemai
[all...]
H A DCallLogProviderTest.java87 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null);
152 mResolver.delete(uri, null, null);
158 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "="
394 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null);
400 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null);
405 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null);
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadIdleService.java128 resolver.delete(ContentUris.withAppendedId(
177 resolver.delete(ContentUris.withAppendedId(
200 file.file.delete();
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTests.java611 * Test delete account
615 Account account1 = ProviderTestUtils.setupAccount("account-delete-1", true, mMockContext);
617 Account account2 = ProviderTestUtils.setupAccount("account-delete-2", true, mMockContext);
624 // now delete one of them
626 mMockContext.getContentResolver().delete(uri, null, null);
632 // now delete the other one
634 mMockContext.getContentResolver().delete(uri, null, null);
755 * Test delete body.
758 * 3. delete first message.
760 * 5. delete messag
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DDeleteEventHelper.java49 * asking if the user wants to delete just this one instance, or all the
51 * may also cancel the delete.
58 * {@link delete()} methods on this class.
61 * {@link #delete()} multiple times).
75 // the runnable to execute when the delete is confirmed
120 DeleteEventHelper.this.delete(mStartMillis, mEndMillis, mModel, mWhichDelete);
172 // set mWhichDelete to the delete type at that index
176 // events in the series to delete.
198 * a normal event) or a dialog asking which events to delete (if the
209 public void delete(lon method in class:DeleteEventHelper
218 public void delete(long begin, long end, long eventId, int which, Runnable callback) { method in class:DeleteEventHelper
257 public void delete(long begin, long end, CalendarEventModel model, int which) { method in class:DeleteEventHelper
[all...]
/packages/apps/KeyChain/src/com/android/keychain/
H A DKeyChainService.java180 if (!mKeyStore.delete(Credentials.USER_PRIVATE_KEY + alias)) {
181 Log.e(TAG, "Failed to delete private key after certificate importing failed");
223 // delete user-installed CA certs
239 // only Settings should be able to delete
378 db.delete(TABLE_GRANTS, SELECT_GRANTS_BY_UID_AND_ALIAS,
385 db.delete(TABLE_GRANTS, SELECTION_GRANTS_BY_ALIAS, new String[] {alias});
389 db.delete(TABLE_GRANTS, null /* whereClause */, null /* whereArgs */);
446 db.delete(TABLE_GRANTS, SELECTION_GRANTS_BY_UID,
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DSelectedConversationsActionMenu.java129 if (itemId == R.id.delete) {
131 performDestructiveAction(R.id.delete, undoCallback);
270 } else if (settings != null && (action == R.id.archive || action == R.id.delete)) {
271 showDialog = (action == R.id.delete) ? settings.confirmDelete : settings.confirmArchive;
278 if (action == R.id.delete) {
298 * @param actionId the ID of the action: R.id.archive, R.id.delete, ...
305 mUpdater.delete(actionId, target, action, true);
472 final MenuItem trash = menu.findItem(R.id.delete);
474 // We only want to show the discard drafts menu item if we are not showing the delete menu
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
H A DExpandedAlarmViewHolder.java69 public final TextView delete; field in class:ExpandedAlarmViewHolder
79 delete = (TextView) itemView.findViewById(R.id.delete);
112 delete.setCompoundDrawablesRelativeWithIntrinsicBounds(deleteIcon, null, null, null);
159 delete.setOnClickListener(new View.OnClickListener() {
284 ObjectAnimator.ofFloat(delete, TRANSLATION_Y, 0f),
308 delete.setTranslationY(translationY);
374 final Animator deleteAnimation = ObjectAnimator.ofFloat(delete, View.ALPHA, 0f)
448 final Animator deleteAnimation = ObjectAnimator.ofFloat(delete, View.ALPHA, 1f)
511 delete
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
H A DMenuManager.java255 protected void updateDelete(MenuItem delete, SelectionDetails selectionDetails) { argument
257 delete.setVisible(enabled);
258 delete.setEnabled(enabled);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java294 * In support of deleting a message, find all attachments and delete associated attachment
308 // Note, delete() throws no exceptions for basic FS errors (e.g. file not found)
311 attachmentFile.delete();
319 * In support of deleting a message, find all attachments and delete associated cached
335 // Note, delete() throws no exceptions for basic FS errors (e.g. file not found)
338 cachedFile.delete();
347 * In support of deleting a mailbox, find all messages and delete their attachments.
369 * In support of deleting or wiping an account, delete all related attachments.
378 boolean result = file.delete();
380 LogUtils.e(Logging.LOG_TAG, "Failed to delete attachmen
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionarySettings.java169 // in UserDictionaryAddWordFragment (update/delete/insert) to be seen when
284 resolver.delete(UserDictionary.Words.CONTENT_URI, DELETE_SELECTION_SHORTCUT_UNSUPPORTED,
287 resolver.delete(
291 resolver.delete(
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java259 public int delete(Uri uri, String where, String[] whereArgs) { method in class:UserDictionaryProvider
269 count = db.delete(USERDICT_TABLE_NAME, where, whereArgs);
274 count = db.delete(USERDICT_TABLE_NAME, Words._ID + "=" + wordId
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppBatch.java151 new File(info.mFilename).delete();
H A DBluetoothOppHandoverReceiver.java82 context.getContentResolver().delete(contentUri, null, null);
/packages/apps/Camera2/src/com/android/camera/app/
H A DModuleManagerImpl.java64 mRegisteredModuleAgents.delete(moduleId);

Completed in 732 milliseconds

1234567891011>>