/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
D | ExchangeAccountType.java | 82 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName() local 84 kind.actionHeader = new SimpleInflater(R.string.nameLabelsGroup); in addDataKindStructuredName() 85 kind.actionBody = new SimpleInflater(Nickname.NAME); in addDataKindStructuredName() 87 kind.typeOverallMax = 1; in addDataKindStructuredName() 89 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredName() 90 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, in addDataKindStructuredName() 92 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, in addDataKindStructuredName() 94 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, in addDataKindStructuredName() 96 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, in addDataKindStructuredName() 98 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 | GoogleAccountType.java | 85 final DataKind kind = super.addDataKindPhone(context); in addDataKindPhone() local 87 kind.typeColumn = Phone.TYPE; in addDataKindPhone() 88 kind.typeList = Lists.newArrayList(); in addDataKindPhone() 89 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); in addDataKindPhone() 90 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); in addDataKindPhone() 91 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); in addDataKindPhone() 92 kind.typeList.add(buildPhoneType(Phone.TYPE_MAIN)); in addDataKindPhone() 93 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)); in addDataKindPhone() 94 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true)); in addDataKindPhone() 95 kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true)); in addDataKindPhone() [all …]
|
D | BaseAccountType.java | 150 DataKind kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in addDataKindStructuredName() local 152 kind.actionHeader = new SimpleInflater(R.string.nameLabelsGroup); in addDataKindStructuredName() 153 kind.actionBody = new SimpleInflater(Nickname.NAME); in addDataKindStructuredName() 154 kind.typeOverallMax = 1; in addDataKindStructuredName() 156 kind.fieldList = Lists.newArrayList(); in addDataKindStructuredName() 157 kind.fieldList.add(new EditField(StructuredName.DISPLAY_NAME, in addDataKindStructuredName() 159 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, in addDataKindStructuredName() 161 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family, in addDataKindStructuredName() 163 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle, in addDataKindStructuredName() 165 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given, in addDataKindStructuredName() [all …]
|
D | AccountType.java | 331 public DataKind addKind(DataKind kind) throws DefinitionException { in addKind() argument 332 if (kind.mimeType == null) { in addKind() 335 if (mMimeKinds.get(kind.mimeType) != null) { in addKind() 337 "mime type '" + kind.mimeType + "' is already registered"); in addKind() 340 kind.resourcePackageName = this.resourcePackageName; in addKind() 341 this.mKinds.add(kind); in addKind() 342 this.mMimeKinds.put(kind.mimeType, kind); in addKind() 343 return kind; in addKind()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ExchangeSource.java | 66 final DataKind kind = super.inflateStructuredName(context, ContactsSource.LEVEL_MIMETYPES); in inflateStructuredName() local 71 kind.typeOverallMax = 1; in inflateStructuredName() 73 kind.fieldList = Lists.newArrayList(); in inflateStructuredName() 74 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, in inflateStructuredName() 77 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, in inflateStructuredName() 79 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, in inflateStructuredName() 81 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, in inflateStructuredName() 83 kind.fieldList.add(new EditField(StructuredName.SUFFIX, in inflateStructuredName() 85 kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME, in inflateStructuredName() 87 kind.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME, in inflateStructuredName() [all …]
|
D | FallbackSource.java | 106 DataKind kind = getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE); in inflateStructuredName() local 107 if (kind == null) { in inflateStructuredName() 108 kind = addKind(new DataKind(StructuredName.CONTENT_ITEM_TYPE, in inflateStructuredName() 116 kind.fieldList = Lists.newArrayList(); in inflateStructuredName() 117 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix, in inflateStructuredName() 120 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family, in inflateStructuredName() 122 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle, in inflateStructuredName() 124 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given, in inflateStructuredName() 126 kind.fieldList.add(new EditField(StructuredName.SUFFIX, R.string.name_suffix, in inflateStructuredName() 128 kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME, in inflateStructuredName() [all …]
|
D | GoogleSource.java | 84 final DataKind kind = super.inflatePhone(context, ContactsSource.LEVEL_MIMETYPES); in inflatePhone() local 87 kind.typeColumn = Phone.TYPE; in inflatePhone() 88 kind.typeList = Lists.newArrayList(); in inflatePhone() 89 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); in inflatePhone() 90 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); in inflatePhone() 91 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); in inflatePhone() 92 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)); in inflatePhone() 93 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true)); in inflatePhone() 94 kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true)); in inflatePhone() 95 kind.typeList.add(buildPhoneType(Phone.TYPE_OTHER)); in inflatePhone() [all …]
|
D | ExternalSource.java | 148 final DataKind kind = new DataKind(); in inflate() local 150 kind.mimeType = a in inflate() 152 kind.iconRes = a.getResourceId( in inflate() 159 kind.actionHeader = new FallbackSource.SimpleInflater(summaryColumn); in inflate() 170 kind.actionBodySocial = true; in inflate() 175 kind.actionBody = new FallbackSource.SimpleInflater(detailColumn); in inflate() 178 addKind(kind); in inflate()
|
/packages/services/Telephony/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 …]
|
/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 …]
|
/packages/services/Telephony/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 …]
|
/packages/services/Telephony/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/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/ContactsCommon/src/com/android/contacts/common/model/ |
D | RawContactModifier.java | 90 public static boolean canInsert(RawContactDelta state, DataKind kind) { in canInsert() argument 92 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true); in canInsert() 93 final boolean validTypes = hasValidTypes(state, kind); in canInsert() 94 final boolean validOverall = (kind.typeOverallMax == -1) in canInsert() 95 || (visibleCount < kind.typeOverallMax); in canInsert() 99 public static boolean hasValidTypes(RawContactDelta state, DataKind kind) { in hasValidTypes() argument 100 if (RawContactModifier.hasEditTypes(kind)) { in hasValidTypes() 101 return (getValidTypes(state, kind, null, true, null, true).size() > 0); in hasValidTypes() 115 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists() local 118 if (kind != null) { in ensureKindExists() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/ |
D | DataItemTests.java | 72 private List<DataItem> createDataItemsAndCollapse(DataKind kind, ContentValues... values) { in createDataItemsAndCollapse() argument 76 data.setDataKind(kind); in createDataItemsAndCollapse() 93 final DataKind kind = new DataKind("test.mimetype", 0, 0, false); in testDataItemCollapsing_genericDataItemFields() local 94 kind.actionBody = new BaseAccountType.SimpleInflater(0); in testDataItemCollapsing_genericDataItemFields() 95 kind.typeList = new ArrayList<>(); in testDataItemCollapsing_genericDataItemFields() 96 kind.typeList.add(new EditType(1, -1)); in testDataItemCollapsing_genericDataItemFields() 97 kind.typeList.add(new EditType(2, -1)); in testDataItemCollapsing_genericDataItemFields() 98 kind.typeColumn = Data.DATA2; in testDataItemCollapsing_genericDataItemFields() 100 mValues1.put(kind.typeColumn, 2); in testDataItemCollapsing_genericDataItemFields() 101 mValues2.put(kind.typeColumn, 1); in testDataItemCollapsing_genericDataItemFields() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
D | ExternalAccountTypeTest.java | 174 DataKind kind = type.getKindForMimetype("vnd.android.cursor.item/a.b.c"); in testReadOnlyDefinition() local 175 assertNotNull(kind); in testReadOnlyDefinition() 177 assertEquals("data1", ((BaseAccountType.SimpleInflater) kind.actionHeader) in testReadOnlyDefinition() 179 assertEquals("data2", ((BaseAccountType.SimpleInflater) kind.actionBody) in testReadOnlyDefinition() 182 kind = type.getKindForMimetype("vnd.android.cursor.item/d.e.f"); in testReadOnlyDefinition() 183 assertNotNull(kind); in testReadOnlyDefinition() 184 assertEquals("data3", ((BaseAccountType.SimpleInflater) kind.actionHeader) in testReadOnlyDefinition() 186 assertEquals("data4", ((BaseAccountType.SimpleInflater) kind.actionBody) in testReadOnlyDefinition() 189 kind = type.getKindForMimetype("vnd.android.cursor.item/xyz"); in testReadOnlyDefinition() 190 assertNotNull(kind); in testReadOnlyDefinition() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/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() 162 public String buildDataString(Context context, DataKind kind) { in buildDataString() argument 163 if (kind.actionBody == null) { in buildDataString() 166 CharSequence actionBody = kind.actionBody.inflateUsing(context, mContentValues); in buildDataString() 177 public String buildDataStringForDisplay(Context context, DataKind kind) { in buildDataStringForDisplay() argument 178 return buildDataString(context, kind); in buildDataStringForDisplay() 181 public void setDataKind(DataKind kind) { in setDataKind() argument [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
D | ContactFragment.java | 367 final DataKind kind = sources.getKindOrFallback(accountType, mimeType, in buildEntries() local 369 if (kind == null) continue; in buildEntries() 371 final ViewEntry entry = ViewEntry.fromValues(context, mimeType, kind, in buildEntries() 396 if (kind.iconAltRes > 0) { in buildEntries() 397 entry.secondaryActionIcon = kind.iconAltRes; in buildEntries() 492 final boolean hasSocial = kind.actionBodySocial && status != null; in buildEntries() 505 static String buildActionString(DataKind kind, ContentValues values, boolean lowerCase, in buildActionString() argument 507 if (kind.actionHeader == null) { in buildActionString() 510 CharSequence actionHeader = kind.actionHeader.inflateUsing(context, values); in buildActionString() 517 static String buildDataString(DataKind kind, ContentValues values, Context context) { in buildDataString() argument [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | EventFieldEditorView.java | 110 public void setValues(DataKind kind, ValuesDelta entry, RawContactDelta state, boolean readOnly, in setValues() argument 112 if (kind.fieldList.size() != 1) throw new IllegalStateException("kind must have 1 field"); in setValues() 113 super.setValues(kind, entry, state, readOnly, vig); in setValues() 166 final DataKind kind = getKind(); in onLabelRebuilt() local 176 final Date date2 = kind.dateFormatWithoutYear.parse(oldValue, position); in onLabelRebuilt() 186 onFieldChanged(column, kind.dateFormatWithYear.format(calendar.getTime())); in onLabelRebuilt() 197 final DataKind kind = getKind(); in createDatePickerDialog() local 244 resultString = kind.dateFormatWithoutYear.format(outCalendar.getTime()); in createDatePickerDialog() 246 resultString = kind.dateFormatWithYear.format(outCalendar.getTime()); in createDatePickerDialog()
|
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()
|
D | KindSectionView.java | 135 public void setState(DataKind kind, RawContactDelta state, boolean readOnly, in setState() argument 137 mKind = kind; in setState() 142 setId(mViewIdGenerator.getId(state, kind, null, ViewIdGenerator.NO_VIEW_INDEX)); in setState() 145 final String titleString = (kind.titleRes == -1 || kind.titleRes == 0) in setState() 147 : getResources().getString(kind.titleRes); in setState() 150 mIcon.setImageDrawable(EditorUiUtils.getMimeTypeDrawable(getContext(), kind.mimeType)); in setState()
|
/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()
|