HomeSort by relevance Sort by last modified time
    Searched defs:ValuesDelta (Results 1 - 8 of 8) sorted by null

  /packages/apps/Contacts/tests/src/com/android/contacts/model/
RawContactDeltaTests.java 37 * Tests for {@link RawContactDelta} and {@link ValuesDelta}. These tests
105 source.addEntry(ValuesDelta.fromAfter(phone));
118 final ValuesDelta child = source.getEntry(TEST_PHONE_ID);
132 final ValuesDelta child = source.getEntry(TEST_PHONE_ID);
145 final ValuesDelta values = ValuesDelta.fromBefore(before);
181 source.addEntry(ValuesDelta.fromAfter(phone));
224 source.addEntry(ValuesDelta.fromAfter(phone));
266 final ValuesDelta child = source.getEntry(TEST_PHONE_ID);
328 final ValuesDelta values = ValuesDelta.fromAfter(after)
    [all...]
RawContactModifierTests.java 352 final ValuesDelta values = ValuesDelta.fromAfter(after);
364 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
427 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
453 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
484 state.addEntry(ValuesDelta.fromBefore(before));
517 final ValuesDelta child = state.getEntry(TEST_ID);
648 final ValuesDelta child = state.getEntry(TEST_ID);
    [all...]
RawContactDeltaListTests.java 106 final ValuesDelta values = ValuesDelta.fromAfter(after);
133 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact));
135 after.addEntry(ValuesDelta.fromAfter(entry));
164 match.addEntry(ValuesDelta.fromAfter(values));
167 static ValuesDelta getPhone(RawContactDeltaList set, long rawContactId, long dataId) {
254 static ContentValues buildDataInsert(ValuesDelta values, long rawContactId) {
264 static ContentProviderOperation buildOper(Uri uri, int type, ValuesDelta values) {
384 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED);
409 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED)
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/model/
GoogleSource.java 20 import com.android.loaderapp.model.EntityDelta.ValuesDelta;
162 final ValuesDelta stateValues = state.getValues();
257 state.addEntry(ValuesDelta.fromAfter(values));
EntityDelta.java 65 private ValuesDelta mValues;
71 private HashMap<String, ArrayList<ValuesDelta>> mEntries = Maps.newHashMap();
76 public EntityDelta(ValuesDelta values) {
86 entity.mValues = ValuesDelta.fromBefore(before.getEntityValues());
89 entity.addEntry(ValuesDelta.fromBefore(namedValues.values));
102 final ValuesDelta remoteValues = remote.mValues;
117 local.mValues = ValuesDelta.mergeAfter(local.mValues, remote.mValues);
120 for (ArrayList<ValuesDelta> mimeEntries : remote.mEntries.values()) {
121 for (ValuesDelta remoteEntry : mimeEntries) {
125 final ValuesDelta localEntry = local.getEntry(childId)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/model/
RawContactDelta.java 64 private ValuesDelta mValues;
76 private final HashMap<String, ArrayList<ValuesDelta>> mEntries = Maps.newHashMap();
81 public RawContactDelta(ValuesDelta values) {
91 rawContactDelta.mValues = ValuesDelta.fromBefore(before.getValues());
94 rawContactDelta.addEntry(ValuesDelta.fromBefore(values));
107 final ValuesDelta remoteValues = remote.mValues;
122 local.mValues = ValuesDelta.mergeAfter(local.mValues, remote.mValues);
125 for (ArrayList<ValuesDelta> mimeEntries : remote.mEntries.values()) {
126 for (ValuesDelta remoteEntry : mimeEntries) {
130 final ValuesDelta localEntry = local.getEntry(childId)
    [all...]
ValuesDelta.java 40 public class ValuesDelta implements Parcelable {
49 * we can concretely reference this {@link ValuesDelta} before it has
54 protected ValuesDelta() {
58 * Create {@link ValuesDelta}, using the given object as the
61 public static ValuesDelta fromBefore(ContentValues before) {
62 final ValuesDelta entry = new ValuesDelta();
69 * Create {@link ValuesDelta}, using the given object as the "after"
72 public static ValuesDelta fromAfter(ContentValues after) {
73 final ValuesDelta entry = new ValuesDelta()
    [all...]
RawContactModifier.java 111 public static ValuesDelta ensureKindExists(
122 final ValuesDelta child = insertChild(state, kind);
194 final List<ValuesDelta> mimeEntries = state.getMimeEntries(kind.mimeType);
198 for (ValuesDelta entry : mimeEntries) {
223 * {@link ValuesDelta} row, assuming the given {@link DataKind} dictates
226 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) {
330 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind) {
346 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind, EditType type) {
364 final ValuesDelta child = ValuesDelta.fromAfter(after)
    [all...]

Completed in 316 milliseconds