Home
last modified time | relevance | path

Searched refs:toDelete (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/gesture/
DLearner.java68 final ArrayList<Instance> toDelete = new ArrayList<Instance>(); in removeInstances() local
77 toDelete.add(instance); in removeInstances()
80 instances.removeAll(toDelete); in removeInstances()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java2702 int toDelete = spanEnd; in removeChip() local
2709 while (toDelete >= 0 && toDelete < text.length() && text.charAt(toDelete) == ' ') { in removeChip()
2710 toDelete++; in removeChip()
2713 if (spanStart >= 0 && toDelete > 0) { in removeChip()
2714 text.delete(spanStart, toDelete); in removeChip()
2866 DrawableRecipientChip toDelete = repl[0]; in onTextChanged() local
2869 int deleteStart = editable.getSpanStart(toDelete); in onTextChanged()
2870 int deleteEnd = editable.getSpanEnd(toDelete) + 1; in onTextChanged()
2875 mRecipientChipDeletedListener.onRecipientChipDeleted(toDelete.getEntry()); in onTextChanged()
2877 editable.removeSpan(toDelete); in onTextChanged()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java292 final int toDelete = mSortedStatFiles[i].size() - MAX_FILES_PER_INTERVAL_TYPE[i]; in indexFilesLocked() local
293 if (toDelete > 0) { in indexFilesLocked()
294 for (int j = 0; j < toDelete; j++) { in indexFilesLocked()
298 Slog.d(TAG, "Deleted " + toDelete + " stat files for interval " + i); in indexFilesLocked()
DUsageStatsService.java359 ArraySet<String> toDelete = new ArraySet<>(); in cleanUpRemovedUsersLocked() local
366 toDelete.addAll(Arrays.asList(fileNames)); in cleanUpRemovedUsersLocked()
371 toDelete.remove(Integer.toString(userInfo.id)); in cleanUpRemovedUsersLocked()
374 final int deleteCount = toDelete.size(); in cleanUpRemovedUsersLocked()
376 deleteRecursively(new File(mUsageStatsDir, toDelete.valueAt(i))); in cleanUpRemovedUsersLocked()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpStorageManagerTest.java977 File toDelete = createNewFileNonZero(copiedDir, deletedFile.getName()); in testCopyObjectSuccessRecursive() local
979 Assert.assertTrue(toDelete.delete()); in testCopyObjectSuccessRecursive()