Home
last modified time | relevance | path

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

12345678910>>...22

/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DRcsProviderDeleteTest.java129 assertThat(mContentResolver.delete(Uri.parse("content://rcs/p2p_thread/1"), null, in testDelete1To1ThreadWithId()
136 assertThat(mContentResolver.delete(Uri.parse("content://rcs/p2p_thread"), in testDelete1To1ThreadWithSelection()
143 assertThat(mContentResolver.delete(Uri.parse("content://rcs/group_thread/2"), null, in testDeleteGroupThreadWithId()
150 assertThat(mContentResolver.delete(Uri.parse("content://rcs/group_thread"), in testDeleteGroupThreadWithSelection()
157 assertThat(mContentResolver.delete(Uri.parse("content://rcs/participant/1"), null, in testDeleteParticipantWithIdWhileParticipatingInAThread()
164 assertThat(mContentResolver.delete(Uri.parse("content://rcs/group_thread/2/participant/1"), in testDeleteParticipantAfterLeavingThreads()
168 assertThat(mContentResolver.delete(Uri.parse("content://rcs/participant/1"), null, in testDeleteParticipantAfterLeavingThreads()
172 assertThat(mContentResolver.delete(Uri.parse("content://rcs/p2p_thread/1"), null, in testDeleteParticipantAfterLeavingThreads()
176 assertThat(mContentResolver.delete(Uri.parse("content://rcs/participant/1"), null, in testDeleteParticipantAfterLeavingThreads()
184 mContentResolver.delete(Uri.parse("content://rcs/participant"), "rcs_alias=\"Bob\"", in testDeleteParticipantWithSelectionFails()
[all …]
DTelephonyProviderTest.java467 int numRowsDeleted = mContentResolver.delete(uri, selectionToDelete, selectionArgsToDelete); in doSimpleTestForUri()
524 int numRowsDeleted = mContentResolver.delete(Carriers.CONTENT_URI, in testOwnedBy()
592 int numRowsDeleted = mContentResolver.delete(SubscriptionManager.CONTENT_URI, in testSimTable()
720 int numRowsDeleted = mContentResolver.delete(URI_TELEPHONY, selection, selectionArgs); in testEnforceManagedUri()
723 numRowsDeleted = mContentResolver.delete( in testEnforceManagedUri()
802 int numRowsDeleted = mContentResolver.delete(URI_TELEPHONY, selection, selectionArgs); in testTelephonyUriDpcRecordAccessControl()
812 numRowsDeleted = mContentResolver.delete( in testTelephonyUriDpcRecordAccessControl()
881 int numRowsDeleted = mContentResolver.delete( in testDpcUri()
884 numRowsDeleted = mContentResolver.delete( in testDpcUri()
890 int numRowsDeleted = mContentResolver.delete( in testDpcUri()
[all …]
/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/Dialer/java/com/android/dialer/calldetails/
DCallDetailsFooterViewHolder.java42 private final View delete; field in CallDetailsFooterViewHolder
56 delete = view.findViewById(R.id.call_detail_action_delete); in CallDetailsFooterViewHolder()
60 delete.setOnClickListener(this); in CallDetailsFooterViewHolder()
91 } else if (view == delete) { in onClick()
92 deleteCallDetailsListener.delete(); in onClick()
113 void delete(); in delete() method
/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/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/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/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java181 db.delete( in setGrant()
190 db.delete(TABLE_GRANTS, SELECTION_GRANTS_BY_ALIAS, new String[] {alias}); in removeAliasInformation()
191 db.delete(TABLE_SELECTABLE, SELECTION_GRANTS_BY_ALIAS, new String[] {alias}); in removeAliasInformation()
196 db.delete(TABLE_GRANTS, null /* whereClause */, null /* whereArgs */); in removeAllAliasesInformation()
197 db.delete(TABLE_SELECTABLE, null /* whereClause */, null /* whereArgs */); in removeAllAliasesInformation()
215 db.delete( in purgeOldGrants()
/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/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/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntryDatabaseHelper.java259 public void delete(ImmutableList<Long> ids) { in delete() method in SpeedDialEntryDatabaseHelper
265 delete(db, ids); in delete()
269 private void delete(SQLiteDatabase writeableDatabase, ImmutableList<Long> ids) { in delete() method in SpeedDialEntryDatabaseHelper
277 writeableDatabase.delete( in delete()
298 delete(db, entriesToDelete); in insertUpdateAndDelete()
313 db.delete(TABLE_NAME, /* whereClause=*/ null, null); in deleteAll()
/packages/apps/Car/Radio/src/com/android/car/radio/storage/
DRadioDatabase.java59 void delete(int primaryIdType, long primaryIdValue); in delete() method
61 default void delete(@NonNull ProgramSelector.Identifier id) { in delete() method
62 delete(id.getType(), id.getValue()); in delete()
99 favoriteDao().delete(sel.getPrimaryId()); in removeFavorite()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailProviderTest.java294 mResolver.delete(ownVoicemail, null, null); in testDeleteOwnPackageVoicemail_DeletesRow()
307 mResolver.delete(anotherVoicemail, null, null); in testDeleteOtherPackageVoicemail_SetsDirtyStatus()
320 int count = mResolver.delete(voicemailUri(), Voicemails._ID + "=" in testDelete()
334 mResolver.delete(anotherVoicemail, null, null); in testUpdateAfterDelete_lastModifiedNotChanged()
399 mResolver.delete(Voicemails.CONTENT_URI, null, null); in assertBaseUriThrowsSecurityExceptions()
472 mResolver.delete(anotherVoicemail, null, null); in testPermissions_UpdateAndDelete()
485 mResolver.delete(withSourcePackageParam(ownVoicemail), null, null); in assertOnlyOwnVoicemailsCanBeUpdatedAndDeleted()
497 mResolver.delete(anotherVoicemail, null, null); in assertOnlyOwnVoicemailsCanBeUpdatedAndDeleted()
606 mResolver.delete(uri, null, null); in checkHasUpdateAndDeleteAccessToUri()
619 mResolver.delete(uri, null, null); in checkHasNoWriteAccessToUri()
[all …]
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java178 mResolver.delete(uri, null, null); in testChangesNotified()
222 mResolver.delete(u1, null, null); in testDelete()
226 mResolver.delete(u2, "1=1", null); in testDelete()
232 mResolver.delete(u2, null, null); in testDelete()
235 mResolver.delete(BlockedNumbers.CONTENT_URI, in testDelete()
242 mResolver.delete(BlockedNumbers.CONTENT_URI, "; DROP TABLE blocked; ", null); in testDelete()
248 mResolver.delete(BlockedNumbers.CONTENT_URI, null, null); in testDelete()
437 mResolver.delete(BlockedNumbers.CONTENT_URI, null, null); in testRegularAppCannotAccessApis()
654 mResolver.delete(BlockedNumbers.CONTENT_URI, null, null); in testPrivilegedAppAccessingApisAsSecondaryUser()
692 mResolver.delete(BlockedNumbers.CONTENT_URI, null, null); in testRegularAppAccessingApisAsSecondaryUser()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunk.java262 static void release(SampleChunk chunk, boolean delete) { in release() argument
263 chunk.release(delete); in release()
403 private void release(boolean delete) { in release() argument
413 if (delete) { in release()
414 mFile.delete(); in release()
/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/unit/src/com/android/bluetooth/
DFileSystemWriteTest.java40 file.delete(); in testBluetoothDirWrite()
51 file.delete(); in testBluedroidDirWrite()
62 file.delete(); in testBluetoothLogsDirWrite()
/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/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1080 db.delete("Calendars", null, null); in wipeAndInitData()
1081 db.delete("Events", null, null); in wipeAndInitData()
1082 db.delete("EventsRawTimes", null, null); in wipeAndInitData()
1083 db.delete("Instances", null, null); in wipeAndInitData()
1084 db.delete("CalendarMetaData", null, null); in wipeAndInitData()
1085 db.delete("CalendarCache", null, null); in wipeAndInitData()
1086 db.delete("Attendees", null, null); in wipeAndInitData()
1087 db.delete("Reminders", null, null); in wipeAndInitData()
1088 db.delete("CalendarAlerts", null, null); in wipeAndInitData()
1089 db.delete("ExtendedProperties", null, null); in wipeAndInitData()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java70 mSchemaFile.delete(); in testDowngradeSchemaMatchesVersion()
85 mSchemaFile.delete(); in testUpdateSchemaFile()
159 mSchemaFile.delete(); in setupTestDb()
160 mDbFile.delete(); in setupTestDb()
/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/providers/TvProvider/src/com/android/providers/tv/
DTransientRowHelper.java87 db.delete(TvProvider.PREVIEW_PROGRAMS_TABLE, PreviewPrograms.COLUMN_TRANSIENT + "=1", null); in ensureOldTransientRowsDeleted()
88 db.delete(TvProvider.CHANNELS_TABLE, Channels.COLUMN_TRANSIENT + "=1", null); in ensureOldTransientRowsDeleted()
89 db.delete(TvProvider.WATCH_NEXT_PROGRAMS_TABLE, WatchNextPrograms.COLUMN_TRANSIENT + "=1", in ensureOldTransientRowsDeleted()
/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/Launcher3/robolectric_tests/src/com/android/launcher3/logging/
DFileLogTest.java40 new File(mTempDir, "log-0").delete(); in tearDown()
41 new File(mTempDir, "log-1").delete(); in tearDown()
42 mTempDir.delete(); in tearDown()
/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()

12345678910>>...22