Home
last modified time | relevance | path

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

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java44 import com.android.contacts.common.model.RawContactModifier;
210 final EditType typeHome = RawContactModifier.getType(kindPhone, Phone.TYPE_HOME); in testValidTypes()
211 final EditType typeWork = RawContactModifier.getType(kindPhone, Phone.TYPE_WORK); in testValidTypes()
212 final EditType typeOther = RawContactModifier.getType(kindPhone, Phone.TYPE_OTHER); in testValidTypes()
218 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
219 RawContactModifier.insertChild(state, kindPhone, typeWork); in testValidTypes()
222 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
228 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
231 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
237 RawContactModifier.insertChild(state, kindPhone, typeHome); in testValidTypes()
[all …]
DRawContactDeltaListTests.java39 import com.android.contacts.common.model.RawContactModifier;
590 RawContactModifier.ensureKindExists(bobContact, source, Phone.CONTENT_ITEM_TYPE); in testMergeAfterEnsureAndTrim()
601 RawContactModifier.trimEmpty(bobContact, source); in testMergeAfterEnsureAndTrim()
/packages/apps/Contacts/src/com/android/contacts/editor/
DRawContactEditorView.java45 import com.android.contacts.common.model.RawContactModifier;
201 RawContactModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE); in setState()
233 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); in setState()
275 primaryNickNameEntry = RawContactModifier.insertChild(state, nickNameKind); in setState()
352 ValuesDelta entry = RawContactModifier.insertChild(mState, mGroupMembershipKind); in addToDefaultGroupIfNeeded()
DKindSectionView.java31 import com.android.contacts.common.model.RawContactModifier;
252 } else if (!RawContactModifier.canInsert(mState, mKind)) { in updateEmptyEditors()
259 final ValuesDelta values = RawContactModifier.insertChild(mState, mKind); in updateEmptyEditors()
DContactEditorBaseFragment.java35 import com.android.contacts.common.model.RawContactModifier;
1029 return RawContactModifier.hasChanges(mState, accountTypes, excludedMimeTypes); in hasPendingRawContactChanges()
1236 RawContactModifier.parseExtras(mContext, accountType, result, mIntentExtras); in createNewRawContactDelta()
1238 RawContactModifier.migrateStateForNewContact( in createNewRawContactDelta()
1244 RawContactModifier.ensureKindExists(result, accountType, Phone.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1245 RawContactModifier.ensureKindExists(result, accountType, Email.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1246 RawContactModifier.ensureKindExists(result, accountType, Organization.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1247 RawContactModifier.ensureKindExists(result, accountType, Event.CONTENT_ITEM_TYPE); in createNewRawContactDelta()
1248 RawContactModifier.ensureKindExists(result, accountType, in createNewRawContactDelta()
1433 RawContactModifier.parseExtras(mContext, type, state, extras); in setIntentExtras()
DLabeledEditorView.java50 import com.android.contacts.common.model.RawContactModifier;
406 final boolean hasTypes = RawContactModifier.hasEditTypes(kind); in setValues()
412 mType = RawContactModifier.getCurrentType(entry, kind); in setValues()
447 RawContactModifier.getValidTypes(mState, mKind, null, true, null, true); in createCustomDialog()
587 addAll(RawContactModifier.getValidTypes(mState, mKind, mType, true, null, false)); in EditTypeAdapter()
DRawContactReadOnlyEditorView.java42 import com.android.contacts.common.model.RawContactModifier;
113 RawContactModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE); in setState()
145 RawContactModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE); in setState()
DKindSectionDataList.java22 import com.android.contacts.common.model.RawContactModifier;
108 RawContactModifier.ensureKindExists(kindSectionData.getRawContactDelta(), in getEntryToWrite()
DCompactKindSectionView.java21 import com.android.contacts.common.model.RawContactModifier;
549 || !RawContactModifier.canInsert(rawContactDelta, dataKind) in updateEmptyNonNameEditors()
560 final ValuesDelta values = RawContactModifier.insertChild(rawContactDelta, dataKind); in updateEmptyNonNameEditors()
DGroupMembershipView.java46 import com.android.contacts.common.model.RawContactModifier;
390 ValuesDelta entry = RawContactModifier.insertChild(mState, mKind); in onItemClick()
DBaseRawContactEditorView.java36 import com.android.contacts.common.model.RawContactModifier;
DCompactRawContactsEditorView.java23 import com.android.contacts.common.model.RawContactModifier;
661 RawContactModifier.ensureKindExists( in setState()
665 RawContactModifier.ensureKindExists( in setState()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java79 public class RawContactModifier { class
80 private static final String TAG = RawContactModifier.class.getSimpleName();
100 if (RawContactModifier.hasEditTypes(kind)) { in hasValidTypes()
438 if (RawContactModifier.isEmpty(entry, kind) && !isGooglePhoto) { in trimEmpty()
560 if (hasOrg && RawContactModifier.canInsert(state, kindOrg)) { in parseExtras()
561 final ValuesDelta child = RawContactModifier.insertChild(state, kindOrg); in parseExtras()
577 if (hasNotes && RawContactModifier.canInsert(state, kindNotes)) { in parseExtras()
578 final ValuesDelta child = RawContactModifier.insertChild(state, kindNotes); in parseExtras()
596 RawContactModifier.ensureKindExists(state, accountType, StructuredName.CONTENT_ITEM_TYPE); in parseStructuredNameExtra()
909 final boolean canInsert = RawContactModifier.canInsert(state, kind); in parseExtras()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DDataItem.java41 import com.android.contacts.common.model.RawContactModifier;
205 RawContactModifier.getTypePrecedence(thisKind, getKindTypeColumn(thisKind)) in collapseWith()
207 RawContactModifier.getTypePrecedence(thatKind, that.getKindTypeColumn(thatKind))) { in collapseWith()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java13 import com.android.contacts.common.model.RawContactModifier;
87 final ValuesDelta entry = RawContactModifier.insertChild(rawContactEntityDelta, in addToDefaultGroup()
/packages/apps/Contacts/src/com/android/contacts/activities/
DConfirmAddDetailActivity.java72 import com.android.contacts.common.model.RawContactModifier;
617 RawContactModifier.parseExtras(this, mEditableAccountType, mRawContactDelta, in setEntityDeltaList()
656 final ValuesDelta newName = RawContactModifier.ensureKindExists(entityDelta, in addEditableRawContact()
821 RawContactModifier.trimEmpty(state, mAccountTypeManager); in doInBackground()
DAttachPhotoActivity.java48 import com.android.contacts.common.model.RawContactModifier;
321 RawContactModifier.ensureKindExists(raw, account, Photo.CONTENT_ITEM_TYPE); in saveToContact()
/packages/apps/Contacts/src/com/android/contacts/detail/
DPhotoSelectionHandler.java42 import com.android.contacts.common.model.RawContactModifier;
226 final ValuesDelta child = RawContactModifier.ensureKindExists( in getDeltaForAttachingPhotoToContact()
/packages/apps/Contacts/src/com/android/contacts/
DTypePrecedence.java26 import com.android.contacts.common.model.RawContactModifier;
DContactSaveService.java58 import com.android.contacts.common.model.RawContactModifier;
415 RawContactModifier.trimEmpty(state, accountTypes); in saveContact()