/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactModifierTests.java | 44 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 …]
|
D | RawContactDeltaListTests.java | 39 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/ |
D | RawContactEditorView.java | 45 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()
|
D | KindSectionView.java | 31 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()
|
D | ContactEditorBaseFragment.java | 35 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()
|
D | LabeledEditorView.java | 50 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()
|
D | RawContactReadOnlyEditorView.java | 42 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()
|
D | KindSectionDataList.java | 22 import com.android.contacts.common.model.RawContactModifier; 108 RawContactModifier.ensureKindExists(kindSectionData.getRawContactDelta(), in getEntryToWrite()
|
D | CompactKindSectionView.java | 21 import com.android.contacts.common.model.RawContactModifier; 549 || !RawContactModifier.canInsert(rawContactDelta, dataKind) in updateEmptyNonNameEditors() 560 final ValuesDelta values = RawContactModifier.insertChild(rawContactDelta, dataKind); in updateEmptyNonNameEditors()
|
D | GroupMembershipView.java | 46 import com.android.contacts.common.model.RawContactModifier; 390 ValuesDelta entry = RawContactModifier.insertChild(mState, mKind); in onItemClick()
|
D | BaseRawContactEditorView.java | 36 import com.android.contacts.common.model.RawContactModifier;
|
D | CompactRawContactsEditorView.java | 23 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/ |
D | RawContactModifier.java | 79 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/ |
D | DataItem.java | 41 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/ |
D | InvisibleContactUtil.java | 13 import com.android.contacts.common.model.RawContactModifier; 87 final ValuesDelta entry = RawContactModifier.insertChild(rawContactEntityDelta, in addToDefaultGroup()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ConfirmAddDetailActivity.java | 72 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()
|
D | AttachPhotoActivity.java | 48 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/ |
D | PhotoSelectionHandler.java | 42 import com.android.contacts.common.model.RawContactModifier; 226 final ValuesDelta child = RawContactModifier.ensureKindExists( in getDeltaForAttachingPhotoToContact()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | TypePrecedence.java | 26 import com.android.contacts.common.model.RawContactModifier;
|
D | ContactSaveService.java | 58 import com.android.contacts.common.model.RawContactModifier; 415 RawContactModifier.trimEmpty(state, accountTypes); in saveContact()
|