/packages/apps/Email/src/com/android/exchange/adapter/ |
D | FolderSyncParser.java | 153 public void deleteParser(ArrayList<ContentProviderOperation> ops) throws IOException { in deleteParser() argument 163 ops.add(ContentProviderOperation.newDelete( in deleteParser() 179 public void addParser(ArrayList<ContentProviderOperation> ops) throws IOException { in addParser() argument 253 ops.add(ContentProviderOperation in addParser() 260 public void updateParser(ArrayList<ContentProviderOperation> ops) throws IOException { in updateParser() argument 295 ops.add(ContentProviderOperation.newUpdate( in updateParser() 307 ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); in changesParser() local 311 addParser(ops); in changesParser() 313 deleteParser(ops); in changesParser() 315 updateParser(ops); in changesParser() [all …]
|
D | CalendarSyncAdapter.java | 296 private void addOrganizerToAttendees(CalendarOperations ops, long eventId, in addOrganizerToAttendees() argument 311 ops.newAttendee(attendeeCv); in addOrganizerToAttendees() 313 ops.updatedAttendee(attendeeCv, eventId); in addOrganizerToAttendees() 384 public void addEvent(CalendarOperations ops, String serverId, boolean update) in addEvent() argument 433 ops.add(ContentProviderOperation.newDelete(ATTENDEES_URI) in addEvent() 440 deleteOffset = ops.newDelete(id, serverId); in addEvent() 443 eventOffset = ops.newEvent(PLACEHOLDER_OPERATION); in addEvent() 447 eventOffset = ops.newEvent(PLACEHOLDER_OPERATION); in addEvent() 453 eventOffset = ops.newEvent(PLACEHOLDER_OPERATION); in addEvent() 475 attendeeValues = attendeesParser(ops, eventId); in addEvent() [all …]
|
D | ContactsSyncAdapter.java | 329 ContactOperations ops = new ContactOperations(); field in ContactsSyncAdapter.EasContactsSyncParser 342 public void addData(String serverId, ContactOperations ops, Entity entity) in addData() argument 368 ops.newContact(serverId); in addData() 404 ops.addPhone(entity, Phone.TYPE_MMS, getValue()); in addData() 407 ops.addPhone(entity, Phone.TYPE_FAX_WORK, getValue()); in addData() 410 ops.addPhone(entity, Phone.TYPE_COMPANY_MAIN, getValue()); in addData() 413 ops.addPhone(entity, Phone.TYPE_FAX_HOME, getValue()); in addData() 420 ops.addPhone(entity, Phone.TYPE_MOBILE, getValue()); in addData() 423 ops.addPhone(entity, Phone.TYPE_CAR, getValue()); in addData() 426 ops.addPhone(entity, Phone.TYPE_RADIO, getValue()); in addData() [all …]
|
D | EmailSyncAdapter.java | 531 ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); in commit() local 536 msg.addSaveOps(ops); in commit() 539 ops.add(ContentProviderOperation.newDelete( in commit() 553 ops.add(ContentProviderOperation.newUpdate( in commit() 563 ops.add(ContentProviderOperation.newUpdate( in commit() 567 addCleanupOps(ops); in commit() 573 mContentResolver.applyBatch(EmailProvider.EMAIL_AUTHORITY, ops); in commit() 602 private void addCleanupOps(ArrayList<ContentProviderOperation> ops) { in addCleanupOps() argument 605 ops.add(ContentProviderOperation.newDelete( in addCleanupOps() 610 ops.add(ContentProviderOperation.newDelete( in addCleanupOps() [all …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistanceTest.java | 46 EditOperation[] ops = distance.getTargetOperations(); in verifyTargetOperations() local 47 assertEquals(expectedOps.length, ops.length); in verifyTargetOperations() 48 for (int i = 0; i < ops.length; ++i) { in verifyTargetOperations() 50 expectedOps[i], ops[i].getType()); in verifyTargetOperations() 52 assertEquals(source[ops[i].getPosition()], target[i]); in verifyTargetOperations() 54 assertFalse(source[ops[i].getPosition()].equals(target[i])); in verifyTargetOperations()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistance.java | 108 final EditOperation[] ops = new EditOperation[trgLen]; in getTargetOperations() local 120 ops[targetPos] = new EditOperation(editType, sourcePos); in getTargetOperations() 126 ops[targetPos] = new EditOperation(editType, sourcePos); in getTargetOperations() 131 return ops; in getTargetOperations()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | LevenshteinSuggestionFormatter.java | 87 LevenshteinDistance.EditOperation[] ops = table.getTargetOperations(); in findMatches() local 89 if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) { in findMatches() 90 result[i] = ops[i].getPosition(); in findMatches()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EditEvent.java | 1641 ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); in save() local 1668 eventIdIndex = ops.size(); in save() 1670 ops.add(b.build()); in save() 1677 ops.add(ContentProviderOperation.newUpdate(uri).withValues(values).build()); in save() 1684 ops.add(ContentProviderOperation.newUpdate(uri).withValues(values).build()); in save() 1696 eventIdIndex = ops.size(); in save() 1698 ops.add(b.build()); in save() 1711 ops.add(ContentProviderOperation.newDelete(uri).build()); in save() 1715 updatePastEvents(ops, uri); in save() 1717 eventIdIndex = ops.size(); in save() [all …]
|
D | EventInfoActivity.java | 586 ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(3); in onPause() local 587 boolean changed = EditEvent.saveReminders(ops, mEventId, reminderMinutes, mOriginalMinutes, in onPause() 591 cr.applyBatch(Calendars.CONTENT_URI.getAuthority(), ops); in onPause() local 802 ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); in createExceptionResponse() local 803 int eventIdIndex = ops.size(); in createExceptionResponse() 805 ops.add(ContentProviderOperation.newInsert(Events.CONTENT_URI).withValues( in createExceptionResponse() 812 addAttendee(values, ops, eventIdIndex, attendee, in createExceptionResponse() 816 addAttendee(values, ops, eventIdIndex, attendee, in createExceptionResponse() 820 addAttendee(values, ops, eventIdIndex, attendee, in createExceptionResponse() 825 values, ops, eventIdIndex, attendee, Attendees.ATTENDEE_STATUS_NONE); in createExceptionResponse() [all …]
|
/packages/apps/Email/src/com/android/email/provider/ |
D | EmailContent.java | 712 ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); in save() local 713 addSaveOps(ops); in save() 716 context.getContentResolver().applyBatch(EmailProvider.EMAIL_AUTHORITY, ops); in save() 744 public void addSaveOps(ArrayList<ContentProviderOperation> ops) { in addSaveOps() argument 747 ops.add(b.withValues(toContentValues()).build()); in addSaveOps() 772 int messageBackValue = ops.size() - 1; in addSaveOps() 774 ops.add(b.withValueBackReferences(backValues).build()); in addSaveOps() 779 ops.add(ContentProviderOperation.newInsert(Attachment.CONTENT_URI) in addSaveOps() 1376 ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); in update() local 1380 ops.add(ContentProviderOperation.newUpdate(CONTENT_URI).withValues(cv1).build()); in update() [all …]
|
/packages/experimental/procstatlog/ |
D | procstatreport.py | 458 ops = partition_ops.setdefault(partition, {}) 460 ops.setdefault(var, {})[when] = value 464 for num, (partition, ops) in enumerate(sorted(partition_ops.iteritems())): 465 totals = [sum(ops.get(var, {}).values()) for var in yaffs_vars] 470 [ops.get(var, {}) for var in yaffs_vars],
|