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

1 2

  /packages/apps/Contacts/src/com/android/contacts/editor/
KindSectionData.java 20 import com.android.contacts.common.model.ValuesDelta;
51 public List<ValuesDelta> getValuesDeltas() {
52 final List<ValuesDelta> valuesDeltas = mRawContactDelta.getMimeEntries(mDataKind.mimeType);
53 return valuesDeltas == null ? new ArrayList<ValuesDelta>() : valuesDeltas;
57 public List<ValuesDelta> getVisibleValuesDeltas() {
58 final ArrayList<ValuesDelta> valuesDeltas = new ArrayList<> ();
59 for (ValuesDelta valuesDelta : getValuesDeltas()) {
61 if (valuesDelta.isVisible() && !valuesDelta.isDelete())
    [all...]
KindSectionDataList.java 19 import com.android.contacts.common.model.ValuesDelta;
56 * Returns the primary KindSectionData and ValuesDelta that should be written for this List.
58 public Pair<KindSectionData,ValuesDelta> getEntryToWrite(long id,
68 final ValuesDelta valuesDelta = kindSectionData.getValuesDeltaById(id);
69 if (valuesDelta != null) {
71 return new Pair<>(kindSectionData, valuesDelta);
80 final ValuesDelta valuesDelta = kindSectionData.getSuperPrimaryValuesDelta();
81 if (valuesDelta != null)
    [all...]
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.
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,
StructuredNameEditorView.java 33 import com.android.contacts.common.model.ValuesDelta;
71 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly,
134 ValuesDelta values = getValues();
159 ValuesDelta values = getValues();
182 private Map<String, String> valuesToStructuredNameMap(ValuesDelta values) {
190 private void eraseFullName(ValuesDelta values) {
194 private void rebuildFullName(ValuesDelta values) {
201 private void eraseStructuredName(ValuesDelta values) {
207 private void rebuildStructuredName(ValuesDelta values) {
237 final ValuesDelta valuesDelta = getValues()
    [all...]
KindSectionView.java 32 import com.android.contacts.common.model.ValuesDelta;
170 for (ValuesDelta entry : mState.getMimeEntries(mKind.mimeType)) {
186 private View createEditorView(ValuesDelta entry) {
211 private boolean isEmptyNoop(ValuesDelta item) {
259 final ValuesDelta values = RawContactModifier.insertChild(mState, mKind);
RawContactReadOnlyEditorView.java 44 import com.android.contacts.common.model.ValuesDelta;
140 ValuesDelta primary;
165 final ArrayList<ValuesDelta> phones = state.getMimeEntries(Phone.CONTENT_ITEM_TYPE);
170 for (ValuesDelta phone : phones) {
190 final ArrayList<ValuesDelta> emails = state.getMimeEntries(Email.CONTENT_ITEM_TYPE);
195 for (ValuesDelta email : emails) {
RawContactEditorView.java 44 import com.android.contacts.common.model.ValuesDelta;
57 * Internal updates are performed against {@link ValuesDelta} so that the
261 final ValuesDelta primary = state.getPrimaryEntry(mimeType);
273 ValuesDelta primaryNickNameEntry = state.getPrimaryEntry(nickNameKind.mimeType);
286 final ValuesDelta primary = state.getPrimaryEntry(mimeType);
338 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE);
340 for (ValuesDelta values : entries) {
352 ValuesDelta entry = RawContactModifier.insertChild(mState, mGroupMembershipKind);
CompactKindSectionView.java 22 import com.android.contacts.common.model.ValuesDelta;
56 private final ValuesDelta mValuesDelta;
60 public StructuredNameEditorListener(ValuesDelta valuesDelta, long rawContactId,
62 mValuesDelta = valuesDelta;
292 ValuesDelta primaryValuesDelta) {
313 private void rebuildFromState(ValuesDelta primaryValuesDelta) {
333 for (ValuesDelta valuesDelta : kindSectionData.getVisibleValuesDeltas()) {
335 kindSectionData.getDataKind(), valuesDelta, editorListener)
    [all...]
GroupMembershipView.java 45 import com.android.contacts.common.model.ValuesDelta;
371 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE);
373 for (ValuesDelta entry : entries) {
390 ValuesDelta entry = RawContactModifier.insertChild(mState, mKind);
416 ArrayList<ValuesDelta> entries = mState.getMimeEntries(GroupMembership.CONTENT_ITEM_TYPE);
418 for (ValuesDelta values : entries) {
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}.
CompactRawContactsEditorView.java 24 import com.android.contacts.common.model.ValuesDelta;
98 * @param valuesDelta The values from the underlying {@link RawContactDelta}.
100 public void onNameFieldChanged(long rawContactId, ValuesDelta valuesDelta);
356 private ValuesDelta mPhotoValuesDelta;
358 private Pair<KindSectionData, ValuesDelta> mPrimaryNameKindSectionData;
494 for (ValuesDelta valuesDelta : kindSectionData.getNonEmptyValuesDeltas()) {
495 valuesDelta.setSuperPrimary(false);
534 final List<ValuesDelta> valuesDeltas = kindSectionData.getNonEmptyValuesDeltas()
    [all...]
  /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) {
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
RawContactDelta.java 36 import com.android.contacts.common.model.ValuesDelta;
67 private ValuesDelta mValues;
79 private final HashMap<String, ArrayList<ValuesDelta>> mEntries = Maps.newHashMap();
84 public RawContactDelta(ValuesDelta values) {
94 rawContactDelta.mValues = ValuesDelta.fromBefore(before.getValues());
97 rawContactDelta.addEntry(ValuesDelta.fromBefore(values));
110 final ValuesDelta remoteValues = remote.mValues;
125 local.mValues = ValuesDelta.mergeAfter(local.mValues, remote.mValues);
128 for (ArrayList<ValuesDelta> mimeEntries : remote.mEntries.values()) {
129 for (ValuesDelta remoteEntry : mimeEntries)
    [all...]
ValuesDelta.java 41 public class ValuesDelta implements Parcelable {
50 * we can concretely reference this {@link ValuesDelta} before it has
55 protected ValuesDelta() {
59 * Create {@link ValuesDelta}, using the given object as the
62 public static ValuesDelta fromBefore(ContentValues before) {
63 final ValuesDelta entry = new ValuesDelta();
70 * Create {@link ValuesDelta}, using the given object as the "after"
73 public static ValuesDelta fromAfter(ContentValues after) {
74 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);
196 final List<ValuesDelta> mimeEntries = state.getMimeEntries(kind.mimeType);
200 for (ValuesDelta entry : mimeEntries) {
225 * {@link ValuesDelta} row, assuming the given {@link DataKind} dictates
228 public static EditType getCurrentType(ValuesDelta entry, DataKind kind) {
332 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind) {
348 public static ValuesDelta insertChild(RawContactDelta state, DataKind kind, EditType type) {
366 final ValuesDelta child = ValuesDelta.fromAfter(after)
    [all...]
RawContactDeltaList.java 35 import com.android.contacts.common.model.ValuesDelta;
422 final ValuesDelta values = delta.getValues();
472 public ValuesDelta getSuperPrimaryEntry(final String mimeType) {
473 ValuesDelta primary = null;
474 ValuesDelta randomEntry = null;
476 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType);
479 for (ValuesDelta entry : mimeEntries) {
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
ValuesDeltaTests.java 32 * Tests for {@link ValuesDelta}. These tests
48 final ValuesDelta values = ValuesDelta.fromAfter(after);
59 * Test that {@link ValuesDelta#buildDiff(android.net.Uri)} is correctly
68 final ValuesDelta values = ValuesDelta.fromBefore(before);
80 final ValuesDelta values = ValuesDelta.fromBefore(before);
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
RawContactDeltaTests.java 35 import com.android.contacts.common.model.ValuesDelta;
41 * Tests for {@link RawContactDelta} and {@link ValuesDelta}. These tests
109 source.addEntry(ValuesDelta.fromAfter(phone));
122 final ValuesDelta child = source.getEntry(TEST_PHONE_ID);
136 final ValuesDelta child = source.getEntry(TEST_PHONE_ID);
149 final ValuesDelta values = ValuesDelta.fromBefore(before);
185 source.addEntry(ValuesDelta.fromAfter(phone));
228 source.addEntry(ValuesDelta.fromAfter(phone));
270 final ValuesDelta child = source.getEntry(TEST_PHONE_ID)
    [all...]
RawContactModifierTests.java 42 import com.android.contacts.common.model.ValuesDelta;
360 final ValuesDelta values = ValuesDelta.fromAfter(after);
372 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
435 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
461 final ValuesDelta values = RawContactModifier.insertChild(state, kindPhone, typeHome);
492 state.addEntry(ValuesDelta.fromBefore(before));
525 final ValuesDelta child = state.getEntry(TEST_ID);
656 final ValuesDelta child = state.getEntry(TEST_ID);
    [all...]
RawContactDeltaListTests.java 37 import com.android.contacts.common.model.ValuesDelta;
115 final ValuesDelta values = ValuesDelta.fromAfter(after);
142 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact));
144 after.addEntry(ValuesDelta.fromAfter(entry));
173 match.addEntry(ValuesDelta.fromAfter(values));
176 static ValuesDelta getPhone(RawContactDeltaList set, long rawContactId, long dataId) {
263 static ContentValues buildDataInsert(ValuesDelta values, long rawContactId) {
273 static ContentProviderOperation buildOper(Uri uri, int type, ValuesDelta values) {
393 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 574 milliseconds

1 2