Home
last modified time | relevance | path

Searched refs:vcardType (Results 1 – 19 of 19) sorted by relevance

/frameworks/opt/vcard/java/com/android/vcard/
DVCardConfig.java420 public static boolean isVersion21(final int vcardType) { in isVersion21() argument
421 return (vcardType & VERSION_MASK) == VERSION_21; in isVersion21()
424 public static boolean isVersion30(final int vcardType) { in isVersion30() argument
425 return (vcardType & VERSION_MASK) == VERSION_30; in isVersion30()
428 public static boolean isVersion40(final int vcardType) { in isVersion40() argument
429 return (vcardType & VERSION_MASK) == VERSION_40; in isVersion40()
432 public static boolean shouldUseQuotedPrintable(final int vcardType) { in shouldUseQuotedPrintable() argument
433 return !isVersion30(vcardType); in shouldUseQuotedPrintable()
436 public static int getNameOrderType(final int vcardType) { in getNameOrderType() argument
437 return vcardType & NAME_ORDER_MASK; in getNameOrderType()
[all …]
DVCardEntryConstructor.java62 public VCardEntryConstructor(final int vcardType) { in VCardEntryConstructor() argument
63 this(vcardType, null, null); in VCardEntryConstructor()
66 public VCardEntryConstructor(final int vcardType, final Account account) { in VCardEntryConstructor() argument
67 this(vcardType, account, null); in VCardEntryConstructor()
75 public VCardEntryConstructor(final int vcardType, final Account account, in VCardEntryConstructor() argument
77 mVCardType = vcardType; in VCardEntryConstructor()
DVCardComposer.java170 public VCardComposer(Context context, int vcardType) { in VCardComposer() argument
171 this(context, vcardType, null, true); in VCardComposer()
174 public VCardComposer(Context context, int vcardType, String charset) { in VCardComposer() argument
175 this(context, vcardType, charset, true); in VCardComposer()
181 public VCardComposer(final Context context, final int vcardType, in VCardComposer() argument
183 this(context, vcardType, null, careHandlerErrors); in VCardComposer()
194 public VCardComposer(final Context context, final int vcardType, String charset, in VCardComposer() argument
196 this(context, context.getContentResolver(), vcardType, charset, careHandlerErrors); in VCardComposer()
205 final int vcardType, String charset, final boolean careHandlerErrors) { in VCardComposer() argument
208 mVCardType = vcardType; in VCardComposer()
[all …]
DVCardParserImpl_V40.java37 public VCardParserImpl_V40(final int vcardType) { in VCardParserImpl_V40() argument
38 super(vcardType); in VCardParserImpl_V40()
DVCardParser_V40.java64 public VCardParser_V40(int vcardType) { in VCardParser_V40() argument
65 mVCardParserImpl = new VCardParserImpl_V40(vcardType); in VCardParser_V40()
DVCardParser_V30.java76 public VCardParser_V30(int vcardType) { in VCardParser_V30() argument
77 mVCardParserImpl = new VCardParserImpl_V30(vcardType); in VCardParser_V30()
DVCardParser_V21.java97 public VCardParser_V21(int vcardType) { in VCardParser_V21() argument
98 mVCardParserImpl = new VCardParserImpl_V21(vcardType); in VCardParser_V21()
DVCardUtils.java326 public static int getPhoneNumberFormat(final int vcardType) { in getPhoneNumberFormat() argument
327 if (VCardConfig.isJapaneseDevice(vcardType)) { in getPhoneNumberFormat()
375 final int vcardType) { in constructListFromValue() argument
384 if (VCardConfig.isVersion40(vcardType)) { in constructListFromValue()
386 } else if (VCardConfig.isVersion30(vcardType)) { in constructListFromValue()
389 if (!VCardConfig.isVersion21(vcardType)) { in constructListFromValue()
819 public static final VCardParser getAppropriateParser(int vcardType) in getAppropriateParser() argument
821 if (VCardConfig.isVersion21(vcardType)) { in getAppropriateParser()
823 } else if (VCardConfig.isVersion30(vcardType)) { in getAppropriateParser()
825 } else if (VCardConfig.isVersion40(vcardType)) { in getAppropriateParser()
DVCardBuilder.java124 public VCardBuilder(final int vcardType) { in VCardBuilder() argument
126 this(vcardType, null); in VCardBuilder()
134 public VCardBuilder(final int vcardType, String charset) { in VCardBuilder() argument
135 mVCardType = vcardType; in VCardBuilder()
137 if (VCardConfig.isVersion40(vcardType)) { in VCardBuilder()
142 mIsV30OrV40 = VCardConfig.isVersion30(vcardType) || VCardConfig.isVersion40(vcardType); in VCardBuilder()
143 mShouldUseQuotedPrintable = VCardConfig.shouldUseQuotedPrintable(vcardType); in VCardBuilder()
144 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); in VCardBuilder()
145 mIsJapaneseMobilePhone = VCardConfig.needsToConvertPhoneticString(vcardType); in VCardBuilder()
146 mOnlyOneNoteFieldIsAvailable = VCardConfig.onlyOneNoteFieldIsAvailable(vcardType); in VCardBuilder()
[all …]
DVCardParserImpl_V30.java48 public VCardParserImpl_V30(int vcardType) { in VCardParserImpl_V30() argument
49 super(vcardType); in VCardParserImpl_V30()
DVCardEntry.java519 boolean isPrimary, int vcardType) { in PostalData() argument
530 mVCardType = vcardType; in PostalData()
537 final int type, final String label, boolean isPrimary, int vcardType) { in constructPostalData() argument
562 dataArray[4], dataArray[5], dataArray[6], type, label, isPrimary, vcardType); in constructPostalData()
606 public String getFormattedAddress(final int vcardType) { in getFormattedAddress() argument
612 if (VCardConfig.isJapaneseDevice(vcardType)) { in getFormattedAddress()
1770 public VCardEntry(int vcardType) { in VCardEntry() argument
1771 this(vcardType, null); in VCardEntry()
1774 public VCardEntry(int vcardType, Account account) { in VCardEntry() argument
1775 mVCardType = vcardType; in VCardEntry()
DVCardParserImpl_V21.java160 public VCardParserImpl_V21(int vcardType) { in VCardParserImpl_V21() argument
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DPropertyNodesVerifier.java46 public void verify(int resId, int vcardType) throws IOException, VCardException { in verify() argument
47 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), vcardType); in verify() local
50 public void verify(int resId, int vcardType, final VCardParser parser) in verify() argument
53 vcardType, parser); in verify() local
56 public void verify(InputStream is, int vcardType) throws IOException, VCardException { in verify() argument
57 final VCardParser parser = VCardUtils.getAppropriateParser(vcardType); in verify()
58 verify(is, vcardType, parser); in verify()
61 public void verify(InputStream is, int vcardType, final VCardParser parser) in verify() argument
DVCardVerifier.java106 public void initForImportTest(int vcardType, int resId) { in initForImportTest() argument
110 mVCardType = vcardType; in initForImportTest()
111 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); in initForImportTest()
117 public void initForExportTest(int vcardType) { in initForExportTest() argument
118 initForExportTest(vcardType, "UTF-8"); in initForExportTest()
121 public void initForExportTest(int vcardType, String charset) { in initForExportTest() argument
126 mVCardType = vcardType; in initForExportTest()
127 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); in initForExportTest()
DLineVerifier.java30 public LineVerifier(AndroidTestCase androidTestCase, int vcardType) { in LineVerifier() argument
33 mVCardType = vcardType; in LineVerifier()
DLineVerifierElem.java32 public LineVerifierElem(AndroidTestCase androidTestCase, int vcardType) { in LineVerifierElem() argument
33 mVCardType = vcardType; in LineVerifierElem()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardExporterTests.java62 private void testStructuredNameBasic(int vcardType) { in testStructuredNameBasic() argument
63 mVerifier.initForExportTest(vcardType); in testStructuredNameBasic()
99 private void testStructuredNameUsePrimaryCommon(int vcardType) { in testStructuredNameUsePrimaryCommon() argument
100 mVerifier.initForExportTest(vcardType); in testStructuredNameUsePrimaryCommon()
159 private void testStructuredNameUseSuperPrimaryCommon(int vcardType) { in testStructuredNameUseSuperPrimaryCommon() argument
160 mVerifier.initForExportTest(vcardType); in testStructuredNameUseSuperPrimaryCommon()
229 private void testStructuredNamePhoneticNameCommon(int vcardType) { in testStructuredNamePhoneticNameCommon() argument
230 mVerifier.initForExportTest(vcardType); in testStructuredNamePhoneticNameCommon()
244 if (VCardConfig.isVersion40(vcardType)) { in testStructuredNamePhoneticNameCommon()
262 if (VCardConfig.isVersion30(vcardType)) { in testStructuredNamePhoneticNameCommon()
[all …]
DVCardJapanizationTests.java35 private void testNameUtf8Common(int vcardType) { in testNameUtf8Common() argument
36 mVerifier.initForExportTest(vcardType); in testNameUtf8Common()
45 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null); in testNameUtf8Common()
111 private void testPhoneticNameCommon(int vcardType, String charset) { in testPhoneticNameCommon() argument
112 mVerifier.initForExportTest(vcardType, charset); in testPhoneticNameCommon()
121 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndSJis : in testPhoneticNameCommon()
123 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null)); in testPhoneticNameCommon()
132 if (!VCardConfig.isVersion21(vcardType)) { in testPhoneticNameCommon()
204 private void testPostalAddressWithJapaneseCommon(int vcardType, String charset) { in testPostalAddressWithJapaneseCommon() argument
205 mVerifier.initForExportTest(vcardType, charset); in testPostalAddressWithJapaneseCommon()
[all …]
DVCardImporterTests.java562 public void testComplicatedCase_Parsing(int vcardType, int resId) { in testComplicatedCase_Parsing() argument
563 mVerifier.initForImportTest(vcardType, resId); in testComplicatedCase_Parsing()
626 public void testComplicatedCase(int vcardType, int resId) { in testComplicatedCase() argument
627 mVerifier.initForImportTest(vcardType, resId); in testComplicatedCase()
790 private void testV21Japanese1Common(int resId, int vcardType, boolean japanese) { in testV21Japanese1Common() argument
791 mVerifier.initForImportTest(vcardType, resId); in testV21Japanese1Common()