Home
last modified time | relevance | path

Searched refs:delete (Results 1 – 25 of 472) sorted by relevance

12345678910>>...19

/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java510 Delete delete = new Delete(contentUri); in expectDelete() local
511 mExpectedDeletes.add(delete); in expectDelete()
512 return delete; in expectDelete()
613 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() method in MockContentProvider
619 Delete delete = iterator.next(); in delete() local
620 if (delete.equals(uri, selection, selectionArgs)) { in delete()
621 delete.mIsExecuted = true; in delete()
622 if (!delete.mAnyNumberOfTimes) { in delete()
625 return delete.mRowsAffected; in delete()
691 for (Delete delete : mExpectedDeletes) { in verifyDeletes()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/
DGroupsDaoIntegrationTests.java78 assertEquals(1, sut.delete(uri)); in test_deleteEmptyGroup_marksRowDeleted()
96 assertEquals(1, sut.delete(uri)); in test_undoDeleteEmptyGroup_createsGroupWithMatchingTitle()
111 assertEquals(1, sut.delete(groupUri)); in test_deleteNonEmptyGroup_removesGroupAndMembers()
139 sut.delete(groupUri); in test_undoDeleteNonEmptyGroup_restoresGroupAndMembers()
161 sut.delete(uri); in test_captureUndoDataForDeletedGroup_returnsEmptyBundle()
196 sut.delete(groupUri); in test_undoDeleteEmptyGroupWithMissingMembersKey_shouldRecreateGroup()
290 public int delete(Uri groupUri) { in delete() method in GroupsDaoIntegrationTests.GroupsDaoWrapper
291 return mDelegate.delete(groupUri); in delete()
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java626 mMockContext.getContentResolver().delete(uri, null, null); in testAccountDelete()
634 mMockContext.getContentResolver().delete(uri, null, null); in testAccountDelete()
792 resolver.delete(ContentUris.withAppendedId(Message.CONTENT_URI, message1Id), null, null); in testDeleteBody()
798 resolver.delete(ContentUris.withAppendedId(Message.CONTENT_URI, message2Id), null, null); in testDeleteBody()
842 resolver.delete(ContentUris.withAppendedId(Message.CONTENT_URI, message1Id), null, null); in testDeleteOrphanBodies()
845 resolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box2Id), null, null); in testDeleteOrphanBodies()
974 resolver.delete( in testDeleteOrphanMessages()
976 resolver.delete( in testDeleteOrphanMessages()
978 resolver.delete( in testDeleteOrphanMessages()
980 resolver.delete( in testDeleteOrphanMessages()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java76 context.getDatabasePath(dbName).delete(); in deleteFiles()
82 && name.endsWith(FILE_POSTFIX)) file.delete(); in deleteFiles()
111 file.delete(); in store()
117 file.delete(); in store()
150 mDbHelper.getWritableDatabase().delete( in lookup()
236 if (new File(mRootDir, path).delete()) { in freeSomeSpaceIfNeed()
238 mDbHelper.getWritableDatabase().delete(TABLE_NAME, in freeSomeSpaceIfNeed()
299 if (!file.delete()) { in onCreate()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java189 mResolver.delete(ownVoicemail, null, null); in testDeleteOwnPackageVoicemail_DeletesRow()
202 mResolver.delete(anotherVoicemail, null, null); in testDeleteOtherPackageVoicemail_SetsDirtyStatus()
215 int count = mResolver.delete(voicemailUri(), Voicemails._ID + "=" in testDelete()
229 mResolver.delete(anotherVoicemail, null, null); in testUpdateAfterDelete_lastModifiedNotChanged()
288 mResolver.delete(Voicemails.CONTENT_URI, null, null); in testMustUsePackageUriWithoutFullPermission()
340 mResolver.delete(withSourcePackageParam(ownVoicemail), null, null); in testPermissions_UpdateAndDelete()
352 mResolver.delete(anotherVoicemail, null, null); in testPermissions_UpdateAndDelete()
368 mResolver.delete(anotherVoicemail, null, null); in testPermissions_UpdateAndDelete()
480 mResolver.delete(uri, null, null); in checkHasUpdateAndDeleteAccessToUri()
493 mResolver.delete(uri, null, null); in checkHasNoWriteAccessToUri()
[all …]
DCallLogProviderTest.java87 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null); in tearDown()
152 mResolver.delete(uri, null, null); in testDelete()
158 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" in testDelete()
394 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null); in testVoicemailPermissions_Delete()
400 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null); in testVoicemailPermissions_Delete()
405 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null); in testVoicemailPermissions_Delete()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java176 mResolver.delete(uri, null, null); in testChangesNotified()
220 mResolver.delete(u1, null, null); in testDelete()
224 mResolver.delete(u2, "1=1", null); in testDelete()
230 mResolver.delete(u2, null, null); in testDelete()
233 mResolver.delete(BlockedNumbers.CONTENT_URI, in testDelete()
240 mResolver.delete(BlockedNumbers.CONTENT_URI, "; DROP TABLE blocked; ", null); in testDelete()
246 mResolver.delete(BlockedNumbers.CONTENT_URI, null, null); in testDelete()
345 mResolver.delete(BlockedNumbers.CONTENT_URI, null, null); in testRegularAppCannotAccessApis()
544 mResolver.delete(BlockedNumbers.CONTENT_URI, null, null); in testPrivilegedAppAccessingApisAsSecondaryUser()
582 mResolver.delete(BlockedNumbers.CONTENT_URI, null, null); in testRegularAppAccessingApisAsSecondaryUser()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.java69 public final TextView delete; field in ExpandedAlarmViewHolder
79 delete = (TextView) itemView.findViewById(R.id.delete); in ExpandedAlarmViewHolder()
112 delete.setCompoundDrawablesRelativeWithIntrinsicBounds(deleteIcon, null, null, null); in ExpandedAlarmViewHolder()
159 delete.setOnClickListener(new View.OnClickListener() { in ExpandedAlarmViewHolder()
284 ObjectAnimator.ofFloat(delete, TRANSLATION_Y, 0f), in onAnimateChange()
308 delete.setTranslationY(translationY); in setTranslationY()
374 final Animator deleteAnimation = ObjectAnimator.ofFloat(delete, View.ALPHA, 0f) in createCollapsingAnimator()
448 final Animator deleteAnimation = ObjectAnimator.ofFloat(delete, View.ALPHA, 1f) in createExpandingAnimator()
511 delete.setAlpha(alpha); in setChangingViewsAlpha()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DLockableFileWriter.java244 lockFile.delete(); in initWriter()
246 file.delete(); in initWriter()
252 lockFile.delete(); in initWriter()
254 file.delete(); in initWriter()
271 lockFile.delete(); in close()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1001 db.delete("Calendars", null, null); in wipeAndInitData()
1002 db.delete("Events", null, null); in wipeAndInitData()
1003 db.delete("EventsRawTimes", null, null); in wipeAndInitData()
1004 db.delete("Instances", null, null); in wipeAndInitData()
1005 db.delete("CalendarMetaData", null, null); in wipeAndInitData()
1006 db.delete("CalendarCache", null, null); in wipeAndInitData()
1007 db.delete("Attendees", null, null); in wipeAndInitData()
1008 db.delete("Reminders", null, null); in wipeAndInitData()
1009 db.delete("CalendarAlerts", null, null); in wipeAndInitData()
1010 db.delete("ExtendedProperties", null, null); in wipeAndInitData()
[all …]
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunk.java268 static void release(SampleChunk chunk, boolean delete) { in release() argument
269 chunk.release(delete); in release()
401 private void release(boolean delete) { in release() argument
411 if (delete) { in release()
412 mFile.delete(); in release()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DSelectedConversationsActionMenu.java129 if (itemId == R.id.delete) { in onActionItemClicked()
131 performDestructiveAction(R.id.delete, undoCallback); in onActionItemClicked()
270 } else if (settings != null && (action == R.id.archive || action == R.id.delete)) { in performDestructiveAction()
271 showDialog = (action == R.id.delete) ? settings.confirmDelete : settings.confirmArchive; in performDestructiveAction()
278 if (action == R.id.delete) { in performDestructiveAction()
305 mUpdater.delete(actionId, target, action, true); in destroy()
472 final MenuItem trash = menu.findItem(R.id.delete); in onPrepareActionMode()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java257 public int delete(@NonNull Uri uri, String where, String[] whereArgs) { in delete() method in ClockProvider
263 count = db.delete(ALARMS_TABLE_NAME, where, whereArgs); in delete()
272 count = db.delete(ALARMS_TABLE_NAME, where, whereArgs); in delete()
275 count = db.delete(INSTANCES_TABLE_NAME, where, whereArgs); in delete()
284 count = db.delete(INSTANCES_TABLE_NAME, where, whereArgs); in delete()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDebugActivity.java68 mDeleteButton = (Button) findViewById(R.id.delete); in onCreate()
86 case R.id.delete: in onClick()
99 outFile.delete(); in cleanup()
119 outFile.delete(); in doInBackground()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/core/
DFileSystemWriteTest.java14 file.delete(); in testBluetoothDirWrite()
24 file.delete(); in testBluedroidDirWrite()
34 file.delete(); in testBluetoothLogsDirWrite()
/packages/apps/Calendar/src/com/android/calendar/
DDeleteEventHelper.java120 DeleteEventHelper.this.delete(mStartMillis, mEndMillis, mModel, mWhichDelete); in DeleteEventHelper()
209 public void delete(long begin, long end, long eventId, int which) { in delete() method in DeleteEventHelper
218 public void delete(long begin, long end, long eventId, int which, Runnable callback) { in delete() method in DeleteEventHelper
219 delete(begin, end, eventId, which); in delete()
257 public void delete(long begin, long end, CalendarEventModel model, int which) { in delete() method in DeleteEventHelper
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java275 int num = db.delete(TABLE_RAW, "deleted = 1 AND date < " + oldTimestamp, null); in purgeDeletedMessagesInRawTable()
570 db.delete(TABLE_SMS, "thread_id=? AND type=?", in insertInner()
648 public int delete(Uri url, String where, String[] whereArgs) { in delete() method in SmsProvider
655 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
685 count = db.delete(TABLE_SMS, where, whereArgs); in delete()
700 count = db.delete(TABLE_RAW, where, whereArgs); in delete()
708 count = db.delete("sr_pending", where, whereArgs); in delete()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java65 new File(cursor.getString(0)).delete(); in tearDown()
71 resolver.delete(mVideoUri, null, null); in tearDown()
73 if (mFile != null) mFile.delete(); in tearDown()
74 if (mFile2 != null) mFile2.delete(); in tearDown()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java180 if (!mKeyStore.delete(Credentials.USER_PRIVATE_KEY + alias)) {
378 db.delete(TABLE_GRANTS, SELECT_GRANTS_BY_UID_AND_ALIAS, in setGrantInternal()
385 db.delete(TABLE_GRANTS, SELECTION_GRANTS_BY_ALIAS, new String[] {alias}); in removeGrantsForAlias()
389 db.delete(TABLE_GRANTS, null /* whereClause */, null /* whereArgs */); in removeAllGrants()
446 db.delete(TABLE_GRANTS, SELECTION_GRANTS_BY_UID, in purgeOldGrants()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DDefaultWallpaperInfo.java206 new File(c.getFilesDir(), WallpaperFiles.DEFAULT_WALLPAPER_THUMBNAIL_OLD).delete(); in saveDefaultWallpaperThumb()
207 new File(c.getFilesDir(), WallpaperFiles.DEFAULT_WALLPAPER_THUMBNAIL).delete(); in saveDefaultWallpaperThumb()
210 … new File(c.getFilesDir(), i + "_" + WallpaperFiles.DEFAULT_WALLPAPER_THUMBNAIL).delete(); in saveDefaultWallpaperThumb()
221 f.delete(); in saveDefaultWallpaperThumb()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java72 new File(cursor.getString(0)).delete(); in tearDown()
78 resolver.delete(mVideoUri, null, null); in tearDown()
80 if (mFile != null) mFile.delete(); in tearDown()
81 if (mFile2 != null) mFile2.delete(); in tearDown()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTransientRowHelper.java81 db.delete(TvProvider.PREVIEW_PROGRAMS_TABLE, PreviewPrograms.COLUMN_TRANSIENT + "=1", null); in ensureOldTransientRowsDeleted()
82 db.delete(TvProvider.CHANNELS_TABLE, Channels.COLUMN_TRANSIENT + "=1", null); in ensureOldTransientRowsDeleted()
83 db.delete(TvProvider.WATCH_NEXT_PROGRAMS_TABLE, WatchNextPrograms.COLUMN_TRANSIENT + "=1", in ensureOldTransientRowsDeleted()
/packages/apps/Launcher3/tests/src/com/android/launcher3/logging/
DFileLogTest.java33 new File(mTempDir, "log-0").delete(); in tearDown()
34 new File(mTempDir, "log-1").delete(); in tearDown()
35 mTempDir.delete(); in tearDown()
/packages/apps/Email/provider_src/com/android/email/service/
DPop3Service.java299 context.getContentResolver().delete(uri, null, null); in synchronizePop3Mailbox()
432 resolver.delete(attUri, null, null); in synchronizePop3Mailbox()
461 resolver.delete(uriToDelete, null, null); in synchronizePop3Mailbox()
466 resolver.delete(updateRowToDelete, null, null); in synchronizePop3Mailbox()
469 resolver.delete(deleteRowToDelete, null, null); in synchronizePop3Mailbox()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryFileDumper.java280 outputFile.delete(); in installWordListToStaging()
334 if (0 >= providerClient.delete(wordListUriBuilder.build(), null, null)) { in installWordListToStaging()
348 outputFile.delete(); in installWordListToStaging()
378 if (0 >= providerClient.delete(wordListUriBuilder.build(), null, null)) { in reportBrokenFileToDictionaryProvider()
502 client.delete(metadataContentUri, null, null); in reinitializeClientRecordInDictionaryContentProvider()

12345678910>>...19