HomeSort by relevance Sort by last modified time
    Searched refs:ValuesDelta (Results 1 - 25 of 35) sorted by null

1 2

  /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...]
RawContactDeltaList.java 33 import com.android.contacts.common.model.ValuesDelta;
302 final ValuesDelta values = delta.getValues();
352 public ValuesDelta getSuperPrimaryEntry(final String mimeType) {
353 ValuesDelta primary = null;
354 ValuesDelta randomEntry = null;
356 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType);
359 for (ValuesDelta entry : mimeEntries) {
  /packages/experimental/LoaderApp/src/com/android/loaderapp/model/
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...]
EntitySet.java 19 import com.android.loaderapp.model.EntityDelta.ValuesDelta;
247 final ValuesDelta values = delta.getValues();
275 public ValuesDelta getSuperPrimaryEntry(final String mimeType) {
276 ValuesDelta primary = null;
277 ValuesDelta randomEntry = null;
279 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType);
282 for (ValuesDelta entry : mimeEntries) {
GoogleSource.java 20 import com.android.loaderapp.model.EntityDelta.ValuesDelta;
162 final ValuesDelta stateValues = state.getValues();
257 state.addEntry(ValuesDelta.fromAfter(values));
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
ValuesDeltaTests.java 31 * Tests for {@link ValuesDelta}. These tests
47 final ValuesDelta values = ValuesDelta.fromAfter(after);
56 * Test that {@link ValuesDelta#buildDiff(android.net.Uri)} is correctly
65 final ValuesDelta values = ValuesDelta.fromBefore(before);
77 final ValuesDelta values = ValuesDelta.fromBefore(before);
  /packages/apps/Contacts/src/com/android/contacts/editor/
Editor.java 22 import com.android.contacts.common.model.ValuesDelta;
27 * {@link ValuesDelta} object.
63 * Prepares this editor for the given {@link ValuesDelta}, which
67 public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly,
84 * Marks the underlying ValuesDelta as deleted, but does not update the view.
90 * marking the underlying ValuesDelta as deleted and updating the view.
StructuredNameEditorView.java 28 import com.android.contacts.common.model.ValuesDelta;
65 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
116 ValuesDelta values = getValues();
141 ValuesDelta values = getValues();
164 private Map<String, String> valuesToStructuredNameMap(ValuesDelta values) {
172 private void eraseFullName(ValuesDelta values) {
176 private void rebuildFullName(ValuesDelta values) {
183 private void eraseStructuredName(ValuesDelta values) {
189 private void rebuildStructuredName(ValuesDelta values) {
214 final ValuesDelta valuesDelta = getValues()
    [all...]
PhoneticNameEditorView.java 24 import com.android.contacts.common.model.ValuesDelta;
34 private static class PhoneticValuesDelta extends ValuesDelta {
35 private ValuesDelta mValues;
38 public PhoneticValuesDelta(ValuesDelta values) {
105 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
145 ValuesDelta entry = getEntry();
ViewIdGenerator.java 24 import com.android.contacts.common.model.ValuesDelta;
67 * @param values {@link ValuesDelta} associated with the view, or null if none exists.
71 public int getId(RawContactDelta entity, DataKind kind, ValuesDelta values,
84 private static String getMapKey(RawContactDelta entity, DataKind kind, ValuesDelta values,
CompactRawContactsEditorView.java 24 import com.android.contacts.common.model.ValuesDelta;
78 * @param valuesDelta The values from the underlying {@link RawContactDelta}.
80 public void onNameFieldChanged(long rawContactId, ValuesDelta valuesDelta);
95 private final ValuesDelta mValuesDelta;
99 public NameEditorListener(ValuesDelta valuesDelta, long rawContactId,
101 mValuesDelta = valuesDelta;
144 // The ValuesDelta for the non super primary name that was displayed to the user.
145 private ValuesDelta mNameValuesDelta
    [all...]
RawContactReadOnlyEditorView.java 44 import com.android.contacts.common.model.ValuesDelta;
138 ValuesDelta primary;
163 final ArrayList<ValuesDelta> phones = state.getMimeEntries(Phone.CONTENT_ITEM_TYPE);
168 for (ValuesDelta phone : phones) {
188 final ArrayList<ValuesDelta> emails = state.getMimeEntries(Email.CONTENT_ITEM_TYPE);
193 for (ValuesDelta email : emails) {
RawContactEditorView.java 43 import com.android.contacts.common.model.ValuesDelta;
56 * Internal updates are performed against {@link ValuesDelta} so that the
248 final ValuesDelta primary = state.getPrimaryEntry(mimeType);
260 ValuesDelta primaryNickNameEntry = state.getPrimaryEntry(nickNameKind.mimeType);
273 final ValuesDelta primary = state.getPrimaryEntry(mimeType);
326 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE);
328 for (ValuesDelta values : entries) {
340 ValuesDelta entry = RawContactModifier.insertChild(mState, mGroupMembershipKind);
KindSectionView.java 45 import com.android.contacts.common.model.ValuesDelta;
147 * {@link Editor}, i.e. {@link com.android.contacts.common.model.ValuesDelta#markDeleted()}
223 for (ValuesDelta entry : mState.getMimeEntries(mKind.mimeType)) {
239 private View createEditorView(ValuesDelta entry) {
270 private boolean isEmptyNoop(ValuesDelta item) {
318 final ValuesDelta values = RawContactModifier.insertChild(mState, mKind);
GroupMembershipView.java 45 import com.android.contacts.common.model.ValuesDelta;
358 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE);
360 for (ValuesDelta entry : entries) {
377 ValuesDelta entry = RawContactModifier.insertChild(mState, mKind);
403 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE);
405 for (ValuesDelta values : entries) {
CompactPhotoEditorView.java 25 import com.android.contacts.common.model.ValuesDelta;
70 private ValuesDelta mValuesDelta;
117 public void setValues(DataKind dataKind, ValuesDelta valuesDelta,
120 mValuesDelta = valuesDelta;
131 setId(viewIdGenerator.getId(rawContactDelta, dataKind, valuesDelta, /* viewIndex =*/ 0));
133 setPhoto(valuesDelta);
137 * Sets the photo bitmap on this view from the given ValuesDelta. Note that the
143 public void setPhoto(ValuesDelta valuesDelta) {
    [all...]
PhotoEditorView.java 38 import com.android.contacts.common.model.ValuesDelta;
51 private ValuesDelta mEntry;
115 public void setValues(DataKind kind, ValuesDelta values, RawContactDelta state, boolean readOnly,
172 * {@link ValuesDelta}. We may as well bind a thumbnail to the UI while we are at it.
205 * Bind the {@param photoUri}'s photo to editor's UI. This doesn't affect {@link ValuesDelta}.
AggregationSuggestionEngine.java 40 import com.android.contacts.common.model.ValuesDelta;
173 public void onNameChange(ValuesDelta values) {
200 private Uri buildAggregationSuggestionUri(ValuesDelta values) {
236 private void appendValue(StringBuilder sb, ValuesDelta values, String column) {
  /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/apps/Contacts/src/com/android/contacts/quickcontact/
InvisibleContactUtil.java 14 import com.android.contacts.common.model.ValuesDelta;
87 final ValuesDelta entry = RawContactModifier.insertChild(rawContactEntityDelta,
  /packages/apps/Contacts/src/com/android/contacts/activities/
AttachPhotoActivity.java 51 import com.android.contacts.common.model.ValuesDelta;
320 ValuesDelta values =
375 = new RawContactDelta(ValuesDelta.fromAfter(after));

Completed in 2468 milliseconds

1 2