Home
last modified time | relevance | path

Searched refs:RawContactModifier (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java202 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypes()
203 final EditType typeWork = RawContactModifier.getType(kindPhone, Phone.TYPE_WORK); in testValidTypes()
204 final EditType typeOther = RawContactModifier.getType(kindPhone, Phone.TYPE_OTHER); in testValidTypes()
210 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
211 RawContactModifier.insertChild(state, kindPhone, typeWork); in testValidTypes()
214 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
220 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
223 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
229 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
230 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
[all …]
DRawContactDeltaListTests.java581 RawContactModifier.ensureKindExists(bobContact, source, Phone.CONTENT_ITEM_TYPE); in testMergeAfterEnsureAndTrim()
592 RawContactModifier.trimEmpty(bobContact, source); in testMergeAfterEnsureAndTrim()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java77 public class RawContactModifier { class
78 private static final String TAG = RawContactModifier.class.getSimpleName();
98 if (RawContactModifier.hasEditTypes(kind)) { in hasValidTypes()
436 if (RawContactModifier.isEmpty(entry, kind) && !isGooglePhoto) { in trimEmpty()
558 if (hasOrg && RawContactModifier.canInsert(state, kindOrg)) { in parseExtras()
559 final ValuesDelta child = RawContactModifier.insertChild(state, kindOrg); in parseExtras()
575 if (hasNotes && RawContactModifier.canInsert(state, kindNotes)) { in parseExtras()
576 final ValuesDelta child = RawContactModifier.insertChild(state, kindNotes); in parseExtras()
594 RawContactModifier.ensureKindExists(state, accountType, StructuredName.CONTENT_ITEM_TYPE); in parseStructuredNameExtra()
907 final boolean canInsert = RawContactModifier.canInsert(state, kind); in parseExtras()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DLabeledEditorView.java50 import com.android.contacts.model.RawContactModifier;
420 final boolean hasTypes = RawContactModifier.hasEditTypes(kind); in setValues()
426 mType = RawContactModifier.getCurrentType(entry, kind); in setValues()
460 RawContactModifier.getValidTypes(mState, mKind, null, true, null, true); in createCustomDialog()
602 addAll(RawContactModifier.getValidTypes(mState, mKind, mType, true, null, false)); in EditTypeAdapter()
DContactEditorFragment.java80 import com.android.contacts.model.RawContactModifier;
975 return RawContactModifier.hasChanges(mState, accountTypes, excludedMimeTypes); in hasPendingRawContactChanges()
1167 RawContactModifier.parseExtras(mContext, accountType, result, mIntentExtras); in createNewRawContactDelta()
1169 RawContactModifier.migrateStateForNewContact( in createNewRawContactDelta()
1175 RawContactModifier.ensureKindExists(result, accountType, StructuredName.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1176 RawContactModifier.ensureKindExists(result, accountType, Phone.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1177 RawContactModifier.ensureKindExists(result, accountType, Email.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1178 RawContactModifier.ensureKindExists(result, accountType, Organization.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1179 RawContactModifier.ensureKindExists(result, accountType, Event.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1180 RawContactModifier.ensureKindExists(result, accountType, in createNewRawContactDelta()
DRawContactEditorView.java59 import com.android.contacts.model.RawContactModifier;
493 RawContactModifier.ensureKindExists( in setState()
497 RawContactModifier.ensureKindExists( in setState()
582 RawContactModifier.parseExtras(getContext(), type, mCurrentRawContactDelta, mIntentExtras); in applyIntentExtras()
653 RawContactModifier.ensureKindExists( in addReadOnlyRawContactEditorViews()
DKindSectionView.java35 import com.android.contacts.model.RawContactModifier;
544 || !RawContactModifier.canInsert(rawContactDelta, dataKind) in updateEmptyNonNameEditors()
555 final ValuesDelta values = RawContactModifier.insertChild(rawContactDelta, dataKind); in updateEmptyNonNameEditors()
DGroupMembershipView.java44 import com.android.contacts.model.RawContactModifier;
437 ValuesDelta entry = RawContactModifier.insertChild(mState, mKind); in onItemClick()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java39 import com.android.contacts.model.RawContactModifier;
198 RawContactModifier.getTypePrecedence(thisKind, getKindTypeColumn(thisKind)) in collapseWith()
200 RawContactModifier.getTypePrecedence(thatKind, that.getKindTypeColumn(thatKind))) { in collapseWith()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java15 import com.android.contacts.model.RawContactModifier;
101 final ValuesDelta entry = RawContactModifier.insertChild(rawContactEntityDelta, in markAddToDefaultGroup()
/packages/apps/Contacts/src/com/android/contacts/detail/
DPhotoSelectionHandler.java44 import com.android.contacts.model.RawContactModifier;
227 final ValuesDelta child = RawContactModifier.ensureKindExists( in getDeltaForAttachingPhotoToContact()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java50 import com.android.contacts.model.RawContactModifier;
331 RawContactModifier.ensureKindExists(raw, account, Photo.CONTENT_ITEM_TYPE); in saveToContact()
/packages/apps/Contacts/src/com/android/contacts/
DTypePrecedence.java26 import com.android.contacts.model.RawContactModifier;
DContactSaveService.java65 import com.android.contacts.model.RawContactModifier;
502 RawContactModifier.trimEmpty(state, accountTypes); in saveContact()
/packages/apps/Contacts/
Dproguard.flags80 -keep class com.android.contacts.model.RawContactModifier { *; }