/packages/apps/Dialer/java/com/android/contacts/common/model/account/ |
D | ExchangeAccountType.java | 82 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 …]
|
D | SamsungAccountType.java | 87 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 …]
|
D | BaseAccountType.java | 160 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 …]
|
D | GoogleAccountType.java | 83 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 …]
|
D | AccountType.java | 281 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/ |
D | ExchangeAccountType.java | 84 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 …]
|
D | SamsungAccountType.java | 90 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 …]
|
D | BaseAccountType.java | 152 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 …]
|
D | GoogleAccountType.java | 87 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 …]
|
D | SimAccountType.java | 73 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 …]
|
D | AccountType.java | 334 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/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
D | AddressListParserTokenManager.java | 42 private final int jjStopAtPos(int pos, int kind) in jjStopAtPos() argument 44 jjmatchedKind = kind; in jjStopAtPos() 48 private final int jjStartNfaWithStates_0(int pos, int kind, int state) in jjStartNfaWithStates_0() argument 50 jjmatchedKind = kind; in jjStartNfaWithStates_0() 125 int j, kind = 0x7fffffff; in jjMoveNfa_0() local 140 if (kind > 14) in jjMoveNfa_0() 141 kind = 14; in jjMoveNfa_0() 146 if (kind > 10) in jjMoveNfa_0() 147 kind = 10; in jjMoveNfa_0() 154 kind = 10; in jjMoveNfa_0() [all …]
|
D | AddressListParser.java | 540 …if (t.image.charAt(t.image.length() - 1) != '.' || t.kind == AddressListParserConstants.QUOTEDSTRI… in local_part() 791 final private Token jj_consume_token(int kind) throws ParseException { in jj_consume_token() argument 796 if (token.kind == kind) { in jj_consume_token() 811 jj_kind = kind; in jj_consume_token() 817 final private boolean jj_scan_token(int kind) { in jj_scan_token() argument 831 if (tok != null) jj_add_error_token(kind, i); in jj_scan_token() 833 if (jj_scanpos.kind != kind) return true; in jj_scan_token() 857 return (jj_ntk = (token.next=token_source.getNextToken()).kind); in jj_ntk() 859 return (jj_ntk = jj_nt.kind); in jj_ntk() 868 private void jj_add_error_token(int kind, int pos) { in jj_add_error_token() argument [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | ContentTypeParserTokenManager.java | 43 private final int jjStopAtPos(int pos, int kind) in jjStopAtPos() argument 45 jjmatchedKind = kind; in jjStopAtPos() 49 private final int jjStartNfaWithStates_0(int pos, int kind, int state) in jjStartNfaWithStates_0() argument 51 jjmatchedKind = kind; in jjStartNfaWithStates_0() 119 int j, kind = 0x7fffffff; in jjMoveNfa_0() local 134 if (kind > 21) in jjMoveNfa_0() 135 kind = 21; in jjMoveNfa_0() 140 if (kind > 6) in jjMoveNfa_0() 141 kind = 6; in jjMoveNfa_0() 146 if (kind > 20) in jjMoveNfa_0() [all …]
|
D | ContentTypeParser.java | 187 final private Token jj_consume_token(int kind) throws ParseException { in jj_consume_token() argument 192 if (token.kind == kind) { in jj_consume_token() 197 jj_kind = kind; in jj_consume_token() 220 return (jj_ntk = (token.next=token_source.getNextToken()).kind); in jj_ntk() 222 return (jj_ntk = jj_nt.kind); in jj_ntk()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactModifier.java | 88 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/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/ |
D | DateTimeParserTokenManager.java | 62 private final int jjStopAtPos(int pos, int kind) in jjStopAtPos() argument 64 jjmatchedKind = kind; in jjStopAtPos() 68 private final int jjStartNfaWithStates_0(int pos, int kind, int state) in jjStartNfaWithStates_0() argument 70 jjmatchedKind = kind; in jjStartNfaWithStates_0() 303 int j, kind = 0x7fffffff; in jjMoveNfa_0() local 318 if (kind > 46) in jjMoveNfa_0() 319 kind = 46; in jjMoveNfa_0() 324 if (kind > 36) in jjMoveNfa_0() 325 kind = 36; in jjMoveNfa_0() 330 if (kind > 24) in jjMoveNfa_0() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/ |
D | DataItemTests.java | 68 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/ |
D | DataItem.java | 130 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/ |
D | EventFieldEditorView.java | 109 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 …]
|
D | ViewIdGenerator.java | 71 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()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/ |
D | ExternalAccountTypeTest.java | 185 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/ |
D | DataItem.java | 137 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/ |
D | FilterUtils.java | 194 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/ |
D | DataAction.java | 75 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()
|