Home
last modified time | relevance | path

Searched refs:kind (Results 1 – 25 of 58) sorted by relevance

123

/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DExchangeAccountType.java82 DataKind kind = in addDataKindStructuredName() local
86 kind.actionHeader = new SimpleInflater(R.string.nameLabelsGroup); in addDataKindStructuredName()
87 kind.actionBody = new SimpleInflater(Nickname.NAME); in addDataKindStructuredName()
89 kind.typeOverallMax = 1; in addDataKindStructuredName()
91 kind.fieldList = new ArrayList<>(); in addDataKindStructuredName()
92 kind.fieldList.add( in addDataKindStructuredName()
95 kind.fieldList.add( in addDataKindStructuredName()
97 kind.fieldList.add( in addDataKindStructuredName()
99 kind.fieldList.add( in addDataKindStructuredName()
101 kind.fieldList.add( in addDataKindStructuredName()
[all …]
DSamsungAccountType.java87 final DataKind kind = super.addDataKindStructuredPostal(context); in addDataKindStructuredPostal() local
91 kind.typeColumn = StructuredPostal.TYPE; in addDataKindStructuredPostal()
92 kind.typeList = new ArrayList<>(); in addDataKindStructuredPostal()
93 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK).setSpecificMax(1)); in addDataKindStructuredPostal()
94 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME).setSpecificMax(1)); in addDataKindStructuredPostal()
95 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER).setSpecificMax(1)); in addDataKindStructuredPostal()
97 kind.fieldList = new ArrayList<>(); in addDataKindStructuredPostal()
99 kind.fieldList.add( in addDataKindStructuredPostal()
102 kind.fieldList.add( in addDataKindStructuredPostal()
104 kind.fieldList.add( in addDataKindStructuredPostal()
[all …]
DBaseAccountType.java160 DataKind kind = in addDataKindStructuredName() local
164 kind.actionHeader = new SimpleInflater(R.string.nameLabelsGroup); in addDataKindStructuredName()
165 kind.actionBody = new SimpleInflater(Nickname.NAME); in addDataKindStructuredName()
166 kind.typeOverallMax = 1; in addDataKindStructuredName()
168 kind.fieldList = new ArrayList<>(); in addDataKindStructuredName()
169 kind.fieldList.add( in addDataKindStructuredName()
171 kind.fieldList.add( in addDataKindStructuredName()
174 kind.fieldList.add( in addDataKindStructuredName()
177 kind.fieldList.add( in addDataKindStructuredName()
180 kind.fieldList.add( in addDataKindStructuredName()
[all …]
DGoogleAccountType.java83 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone() local
85 kind.typeColumn = Phone.TYPE; in addDataKindPhone()
86 kind.typeList = new ArrayList<>(); in addDataKindPhone()
87 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); in addDataKindPhone()
88 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); in addDataKindPhone()
89 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); in addDataKindPhone()
90 kind.typeList.add(buildPhoneType(Phone.TYPE_MAIN)); in addDataKindPhone()
91 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)); in addDataKindPhone()
92 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true)); in addDataKindPhone()
93 kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true)); in addDataKindPhone()
[all …]
DAccountType.java281 public DataKind addKind(DataKind kind) throws DefinitionException { in addKind() argument
282 if (kind.mimeType == null) { in addKind()
285 if (mMimeKinds.get(kind.mimeType) != null) { in addKind()
286 throw new DefinitionException("mime type '" + kind.mimeType + "' is already registered"); in addKind()
289 kind.resourcePackageName = this.resourcePackageName; in addKind()
290 this.mKinds.add(kind); in addKind()
291 this.mMimeKinds.put(kind.mimeType, kind); in addKind()
292 return kind; in addKind()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DExchangeAccountType.java84 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName() local
86 kind.actionHeader = new SimpleInflater(R.string.nameLabelsGroup); in addDataKindStructuredName()
87 kind.actionBody = new SimpleInflater(Nickname.NAME); in addDataKindStructuredName()
89 kind.typeOverallMax = 1; in addDataKindStructuredName()
91 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredName()
92 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, in addDataKindStructuredName()
94 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, in addDataKindStructuredName()
96 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, in addDataKindStructuredName()
98 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, in addDataKindStructuredName()
100 kind.fieldList.add(new EditField(StructuredName.SUFFIX, in addDataKindStructuredName()
[all …]
DSamsungAccountType.java90 final DataKind kind = super.addDataKindStructuredPostal(context); in addDataKindStructuredPostal() local
94 kind.typeColumn = StructuredPostal.TYPE; in addDataKindStructuredPostal()
95 kind.typeList = Lists.newArrayList(); in addDataKindStructuredPostal()
96 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_WORK).setSpecificMax(1)); in addDataKindStructuredPostal()
97 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_HOME).setSpecificMax(1)); in addDataKindStructuredPostal()
98 kind.typeList.add(buildPostalType(StructuredPostal.TYPE_OTHER).setSpecificMax(1)); in addDataKindStructuredPostal()
100 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredPostal()
102 kind.fieldList.add(new EditField(StructuredPostal.COUNTRY, in addDataKindStructuredPostal()
104 kind.fieldList.add(new EditField(StructuredPostal.POSTCODE, in addDataKindStructuredPostal()
106 kind.fieldList.add(new EditField(StructuredPostal.REGION, in addDataKindStructuredPostal()
[all …]
DBaseAccountType.java152 final DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName() local
154 kind.actionHeader = new SimpleInflater(R.string.nameLabelsGroup); in addDataKindStructuredName()
155 kind.actionBody = new SimpleInflater(Nickname.NAME); in addDataKindStructuredName()
156 kind.typeOverallMax = 1; in addDataKindStructuredName()
158 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredName()
159 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, in addDataKindStructuredName()
161 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given, in addDataKindStructuredName()
163 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle, in addDataKindStructuredName()
165 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family, in addDataKindStructuredName()
167 kind.fieldList.add(new EditField(StructuredName.SUFFIX, R.string.name_suffix, in addDataKindStructuredName()
[all …]
DGoogleAccountType.java87 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone() local
89 kind.typeColumn = Phone.TYPE; in addDataKindPhone()
90 kind.typeList = Lists.newArrayList(); in addDataKindPhone()
91 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); in addDataKindPhone()
92 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); in addDataKindPhone()
93 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); in addDataKindPhone()
94 kind.typeList.add(buildPhoneType(Phone.TYPE_MAIN)); in addDataKindPhone()
95 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)); in addDataKindPhone()
96 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true)); in addDataKindPhone()
97 kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true)); in addDataKindPhone()
[all …]
DSimAccountType.java73 final DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName() local
75 kind.actionHeader = new SimpleInflater(R.string.nameLabelsGroup); in addDataKindStructuredName()
76 kind.actionBody = new SimpleInflater(Nickname.NAME); in addDataKindStructuredName()
77 kind.typeOverallMax = 1; in addDataKindStructuredName()
80 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredName()
81 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given, in addDataKindStructuredName()
83 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family, in addDataKindStructuredName()
86 return kind; in addDataKindStructuredName()
91 final DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_NAME, in addDataKindName() local
93 kind.actionHeader = new SimpleInflater(R.string.nameLabelsGroup); in addDataKindName()
[all …]
DAccountType.java334 public DataKind addKind(DataKind kind) throws DefinitionException { in addKind() argument
335 if (kind.mimeType == null) { in addKind()
338 if (mMimeKinds.get(kind.mimeType) != null) { in addKind()
340 "mime type '" + kind.mimeType + "' is already registered"); in addKind()
343 kind.resourcePackageName = this.resourcePackageName; in addKind()
344 this.mKinds.add(kind); in addKind()
345 this.mMimeKinds.put(kind.mimeType, kind); in addKind()
346 return kind; in addKind()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java88 public static boolean canInsert(RawContactDelta state, DataKind kind) { in canInsert() argument
90 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true); in canInsert()
91 final boolean validTypes = hasValidTypes(state, kind); in canInsert()
92 final boolean validOverall = (kind.typeOverallMax == -1) in canInsert()
93 || (visibleCount < kind.typeOverallMax); in canInsert()
97 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) { in hasValidTypes() argument
98 if (RawContactModifier.hasEditTypes(kind)) { in hasValidTypes()
99 return (getValidTypes(state, kind, null, true, null, true).size() > 0); in hasValidTypes()
113 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists() local
116 if (kind != null) { in ensureKindExists()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java68 private List<DataItem> createDataItemsAndCollapse(DataKind kind, ContentValues... values) { in createDataItemsAndCollapse() argument
72 data.setDataKind(kind); in createDataItemsAndCollapse()
83 final DataKind kind = new DataKind("test.mimetype", 0, 0, false); in testDataItemCollapsing_genericDataItemFields() local
84 kind.actionBody = new BaseAccountType.SimpleInflater(0); in testDataItemCollapsing_genericDataItemFields()
85 kind.typeList = new ArrayList<>(); in testDataItemCollapsing_genericDataItemFields()
86 kind.typeList.add(new EditType(1, -1)); in testDataItemCollapsing_genericDataItemFields()
87 kind.typeList.add(new EditType(2, -1)); in testDataItemCollapsing_genericDataItemFields()
88 kind.typeColumn = Data.DATA2; in testDataItemCollapsing_genericDataItemFields()
90 mValues1.put(kind.typeColumn, 2); in testDataItemCollapsing_genericDataItemFields()
91 mValues2.put(kind.typeColumn, 1); in testDataItemCollapsing_genericDataItemFields()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java130 public boolean hasKindTypeColumn(DataKind kind) { in hasKindTypeColumn() argument
131 final String key = kind.typeColumn; in hasKindTypeColumn()
137 public int getKindTypeColumn(DataKind kind) { in getKindTypeColumn() argument
138 final String key = kind.typeColumn; in getKindTypeColumn()
156 public String buildDataString(Context context, DataKind kind) { in buildDataString() argument
157 if (kind.actionBody == null) { in buildDataString()
160 CharSequence actionBody = kind.actionBody.inflateUsing(context, mContentValues); in buildDataString()
171 public String buildDataStringForDisplay(Context context, DataKind kind) { in buildDataStringForDisplay() argument
172 return buildDataString(context, kind); in buildDataStringForDisplay()
179 public void setDataKind(DataKind kind) { in setDataKind() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java109 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues() argument
111 if (kind.fieldList.size() != 1) throw new IllegalStateException("kind must have 1 field"); in setValues()
112 super.setValues(kind, entry, state, readOnly, vig); in setValues()
164 final DataKind kind = getKind(); in onLabelRebuilt() local
174 final Date date2 = kind.dateFormatWithoutYear == null in onLabelRebuilt()
175 ? null : kind.dateFormatWithoutYear.parse(oldValue, position); in onLabelRebuilt()
185 final String formattedDate = kind.dateFormatWithYear == null in onLabelRebuilt()
186 ? null : kind.dateFormatWithYear.format(calendar.getTime()); in onLabelRebuilt()
200 final DataKind kind = getKind(); in createDatePickerDialog() local
247 resultString = kind.dateFormatWithoutYear == null in createDatePickerDialog()
[all …]
DViewIdGenerator.java71 public int getId(RawContactDelta entity, DataKind kind, ValuesDelta values, in getId() argument
73 final String k = getMapKey(entity, kind, values, viewIndex); in getId()
84 private static String getMapKey(RawContactDelta entity, DataKind kind, ValuesDelta values, in getMapKey() argument
90 if (kind != null) { in getMapKey()
92 sWorkStringBuilder.append(kind.mimeType); in getMapKey()
DTextFieldsEditorView.java260 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues() argument
262 super.setValues(kind, entry, state, readOnly, vig); in setValues()
271 int fieldCount = kind.fieldList == null ? 0 : kind.fieldList.size(); in setValues()
274 final EditField field = kind.fieldList.get(index); in setValues()
282 fieldView.setId(vig.getId(state, kind, entry, index)); in setValues()
314 if (ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE.equals(kind.mimeType)) { in setValues()
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
DExternalAccountTypeTest.java185 DataKind kind = type.getKindForMimetype("vnd.android.cursor.item/a.b.c"); in testReadOnlyDefinition() local
186 assertNotNull(kind); in testReadOnlyDefinition()
188 assertEquals("data1", ((BaseAccountType.SimpleInflater) kind.actionHeader) in testReadOnlyDefinition()
190 assertEquals("data2", ((BaseAccountType.SimpleInflater) kind.actionBody) in testReadOnlyDefinition()
193 kind = type.getKindForMimetype("vnd.android.cursor.item/d.e.f"); in testReadOnlyDefinition()
194 assertNotNull(kind); in testReadOnlyDefinition()
195 assertEquals("data3", ((BaseAccountType.SimpleInflater) kind.actionHeader) in testReadOnlyDefinition()
197 assertEquals("data4", ((BaseAccountType.SimpleInflater) kind.actionBody) in testReadOnlyDefinition()
200 kind = type.getKindForMimetype("vnd.android.cursor.item/xyz"); in testReadOnlyDefinition()
201 assertNotNull(kind); in testReadOnlyDefinition()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java137 public boolean hasKindTypeColumn(DataKind kind) { in hasKindTypeColumn() argument
138 final String key = kind.typeColumn; in hasKindTypeColumn()
143 public int getKindTypeColumn(DataKind kind) { in getKindTypeColumn() argument
144 final String key = kind.typeColumn; in getKindTypeColumn()
163 public String buildDataString(Context context, DataKind kind) { in buildDataString() argument
164 if (kind.actionBody == null) { in buildDataString()
167 CharSequence actionBody = kind.actionBody.inflateUsing(context, mContentValues); in buildDataString()
178 public String buildDataStringForDisplay(Context context, DataKind kind) { in buildDataStringForDisplay() argument
179 return buildDataString(context, kind); in buildDataStringForDisplay()
182 public void setDataKind(DataKind kind) { in setDataKind() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DFilterUtils.java194 String kind; in newClusterPath() local
197 kind = "time"; in newClusterPath()
200 kind = "location"; in newClusterPath()
203 kind = "tag"; in newClusterPath()
206 kind = "size"; in newClusterPath()
209 kind = "face"; in newClusterPath()
215 return "/cluster/{" + base + "}/" + kind; in newClusterPath()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDataAction.java75 public DataAction(Context context, DataItem item, DataKind kind) { in DataAction() argument
77 mKind = kind; in DataAction()
82 if (item.hasKindTypeColumn(kind)) { in DataAction()
83 final int typeValue = item.getKindTypeColumn(kind); in DataAction()
86 for (EditType type : kind.typeList) { in DataAction()
102 mBody = item.buildDataStringForDisplay(context, kind); in DataAction()
131 mAlternateIconRes = kind.iconAltRes; in DataAction()
132 mAlternateIconDescriptionRes = kind.iconAltDescriptionRes; in DataAction()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java828 DataKind kind = newAccountType.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE); in testMigrateNameFromGoogleToExchange() local
846 RawContactModifier.migrateStructuredName(context, oldState, newState, kind); in testMigrateNameFromGoogleToExchange()
864 DataKind kind = newAccountType.getKindForMimetype(StructuredPostal.CONTENT_ITEM_TYPE); in testMigratePostalFromGoogleToExchange() local
873 RawContactModifier.migratePostal(oldState, newState, kind); in testMigratePostalFromGoogleToExchange()
887 DataKind kind = newAccountType.getKindForMimetype(StructuredPostal.CONTENT_ITEM_TYPE); in testMigratePostalFromExchangeToGoogle() local
900 RawContactModifier.migratePostal(oldState, newState, kind); in testMigratePostalFromExchangeToGoogle()
929 DataKind kind = newAccountType.getKindForMimetype(Event.CONTENT_ITEM_TYPE); in testMigrateEventCommon() local
939 RawContactModifier.migrateEvent(oldState, newState, kind, 1990); in testMigrateEventCommon()
953 DataKind kind = newAccountType.getKindForMimetype(Event.CONTENT_ITEM_TYPE); in testMigrateEventFromGoogleToExchange2() local
970 RawContactModifier.migrateEvent(oldState, newState, kind, 1990); in testMigrateEventFromGoogleToExchange2()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPathMatcher.java32 public void add(String pattern, int kind) { in add() argument
38 current.setKind(kind); in add()
94 void setKind(int kind) { in setKind() argument
95 mKind = kind; in setKind()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java795 int kind) { in startAnimation() argument
797 changed |= mPlatform.doAnimation(targetX, mPlatform.mDefaultY, kind); in startAnimation()
798 changed |= mBoxes.get(0).doAnimation(targetY, targetScale, kind); in startAnimation()
1411 private static float applyInterpolationCurve(int kind, float progress) { in applyInterpolationCurve() argument
1413 switch (kind) { in applyInterpolationCurve()
1502 private boolean doAnimation(int targetX, int targetY, int kind) { in doAnimation() argument
1504 mAnimationKind = kind; in doAnimation()
1510 mAnimationDuration = ANIM_TIME[kind]; in doAnimation()
1660 private boolean doAnimation(int targetY, float targetScale, int kind) { in doAnimation() argument
1664 && kind != ANIM_KIND_CAPTURE) { in doAnimation()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestions_output_utils.cpp260 int kind; in outputShortcuts() local
263 kind = Dictionary::KIND_WHITELIST; in outputShortcuts()
269 kind = Dictionary::KIND_SHORTCUT; in outputShortcuts()
272 std::max(S_INT_MIN + 1, shortcutScore) - 1, kind, NOT_AN_INDEX, in outputShortcuts()

123