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

  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
RawContactDeltaTests.java 37 import com.android.contacts.common.model.ValuesDelta;
43 * Tests for {@link RawContactDelta} and {@link ValuesDelta}. These tests
111 source.addEntry(ValuesDelta.fromAfter(phone));
124 final ValuesDelta child = source.getEntry(TEST_PHONE_ID);
138 final ValuesDelta child = source.getEntry(TEST_PHONE_ID);
151 final ValuesDelta values = ValuesDelta.fromBefore(before);
185 source.addEntry(ValuesDelta.fromAfter(phone));
225 source.addEntry(ValuesDelta.fromAfter(phone));
263 final ValuesDelta child = source.getEntry(TEST_PHONE_ID)
    [all...]
RawContactModifierTests.java 44 import com.android.contacts.common.model.ValuesDelta;
322 final ValuesDelta values = ValuesDelta.fromAfter(after);
334 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
393 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
419 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
450 state.addEntry(ValuesDelta.fromBefore(before));
483 final ValuesDelta child = state.getEntry(TEST_ID);
608 final ValuesDelta child = state.getEntry(TEST_ID);
674 final ValuesDelta child = state.getEntry(TEST_ID)
    [all...]
RawContactDeltaListTests.java 40 import com.android.contacts.common.model.ValuesDelta;
112 final ValuesDelta values = ValuesDelta.fromAfter(after);
139 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact));
141 after.addEntry(ValuesDelta.fromAfter(entry));
170 match.addEntry(ValuesDelta.fromAfter(values));
173 static ValuesDelta getPhone(RawContactDeltaList set, long rawContactId, long dataId) {
257 static ContentValues buildDataInsert(ValuesDelta values, long rawContactId) {
267 static ContentProviderOperation buildOper(Uri uri, int type, ValuesDelta values) {
378 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/ContactsCommon/src/com/android/contacts/common/model/
RawContactDelta.java 33 import com.android.contacts.common.model.ValuesDelta;
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)
    [all...]
ValuesDelta.java 39 public class ValuesDelta implements Parcelable {
48 * we can concretely reference this {@link ValuesDelta} before it has
53 protected ValuesDelta() {
57 * Create {@link ValuesDelta}, using the given object as the
60 public static ValuesDelta fromBefore(ContentValues before) {
61 final ValuesDelta entry = new ValuesDelta();
68 * Create {@link ValuesDelta}, using the given object as the "after"
71 public static ValuesDelta fromAfter(ContentValues after) {
72 final ValuesDelta entry = new ValuesDelta()
    [all...]
RawContactModifier.java 51 import com.android.contacts.common.model.ValuesDelta;
113 public static ValuesDelta ensureKindExists(
124 final ValuesDelta child = insertChild(state, kind);
213 final List<ValuesDelta> mimeEntries = state.getMimeEntries(kind.mimeType);
217 for (ValuesDelta entry : mimeEntries) {
242 * {@link ValuesDelta} row, assuming the given {@link DataKind} dictates
245 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) {
349 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind) {
365 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind, EditType type) {
383 final ValuesDelta child = ValuesDelta.fromAfter(after)
    [all...]

Completed in 103 milliseconds