Home
last modified time | relevance | path

Searched refs:VCardConfig (Results 1 – 21 of 21) sorted by relevance

/frameworks/opt/vcard/java/com/android/vcard/
DVCardSourceDetector.java110 mVersion = VCardConfig.VERSION_21; in onPropertyCreated()
112 mVersion = VCardConfig.VERSION_30; in onPropertyCreated()
114 mVersion = VCardConfig.VERSION_40; in onPropertyCreated()
145 return VCardConfig.VCARD_TYPE_DOCOMO; in getEstimatedType()
147 return VCardConfig.VCARD_TYPE_V21_JAPANESE_MOBILE; in getEstimatedType()
151 if (mVersion == VCardConfig.VERSION_21) { in getEstimatedType()
152 return VCardConfig.VCARD_TYPE_V21_GENERIC; in getEstimatedType()
153 } else if (mVersion == VCardConfig.VERSION_30) { in getEstimatedType()
154 return VCardConfig.VCARD_TYPE_V30_GENERIC; in getEstimatedType()
155 } else if (mVersion == VCardConfig.VERSION_40) { in getEstimatedType()
[all …]
DVCardBuilder.java137 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()
147 mUsesAndroidProperty = VCardConfig.usesAndroidSpecificProperty(vcardType); in VCardBuilder()
148 mUsesDefactProperty = VCardConfig.usesDefactProperty(vcardType); in VCardBuilder()
149 mRefrainsQPToNameProperties = VCardConfig.shouldRefrainQPToNameProperties(vcardType); in VCardBuilder()
150 mAppendTypeParamName = VCardConfig.appendTypeParamName(vcardType); in VCardBuilder()
[all …]
DVCardConfig.java30 public class VCardConfig { class
449 return (VCardConfig.LOG_LEVEL & VCardConfig.LOG_LEVEL_PERFORMANCE_MEASUREMENT) != 0; in showPerformanceLog()
488 private VCardConfig() { in VCardConfig() method in VCardConfig
DVCardUtils.java295 final int nameOrderType = VCardConfig.getNameOrderType(nameOrder); in sortNameElements()
297 case VCardConfig.NAME_ORDER_JAPANESE: { in sortNameElements()
310 case VCardConfig.NAME_ORDER_EUROPE: { in sortNameElements()
327 if (VCardConfig.isJapaneseDevice(vcardType)) { in getPhoneNumberFormat()
384 if (VCardConfig.isVersion40(vcardType)) { in constructListFromValue()
386 } else if (VCardConfig.isVersion30(vcardType)) { in constructListFromValue()
389 if (!VCardConfig.isVersion21(vcardType)) { in constructListFromValue()
821 if (VCardConfig.isVersion21(vcardType)) { in getAppropriateParser()
823 } else if (VCardConfig.isVersion30(vcardType)) { in getAppropriateParser()
825 } else if (VCardConfig.isVersion40(vcardType)) { in getAppropriateParser()
DVCardComposer.java164 this(context, VCardConfig.VCARD_TYPE_DEFAULT, null, true); in VCardComposer()
211 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); in VCardComposer()
213 charset = (TextUtils.isEmpty(charset) ? VCardConfig.DEFAULT_EXPORT_CHARSET : charset); in VCardComposer()
215 VCardConfig.isVersion30(vcardType) && UTF_8.equalsIgnoreCase(charset)); in VCardComposer()
610 if ((mVCardType & VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT) == 0) { in buildVCard()
DVCardParserImpl_V21.java157 this(VCardConfig.VCARD_TYPE_DEFAULT); in VCardParserImpl_V21()
161 mIntermediateCharset = VCardConfig.DEFAULT_INTERMEDIATE_CHARSET; in VCardParserImpl_V21()
574 final String sourceCharset = VCardConfig.DEFAULT_INTERMEDIATE_CHARSET;
580 targetCharset = VCardConfig.DEFAULT_IMPORT_CHARSET;
658 if (getVersion() == VCardConfig.VERSION_21) {
958 return VCardConfig.VERSION_21;
DVCardParserImpl_V30.java54 return VCardConfig.VERSION_30; in getVersion()
263 paramValue, VCardConfig.DEFAULT_INTERMEDIATE_CHARSET, "UTF-8"); in encodeParamValue()
DVCardParserImpl_V40.java43 return VCardConfig.VERSION_40; in getVersion()
DVCardEntryConstructor.java59 this(VCardConfig.VCARD_TYPE_V21_GENERIC, null, null); in VCardEntryConstructor()
DVCardEntryCommitter.java63 if (VCardConfig.showPerformanceLog()) { in onEnd()
DVCardEntry.java600 if (VCardConfig.isJapaneseDevice(vcardType)) { in getFormattedAddress()
1755 this(VCardConfig.VCARD_TYPE_V21_GENERIC); in VCardEntry()
1774 if (type == Phone.TYPE_PAGER || VCardConfig.refrainPhoneNumberFormatting(mVCardType)) { in addPhone()
1997 if (VCardConfig.isVersion30(mVCardType) in tryHandleSortAsName()
2294 if (VCardConfig.isVersion40(mVCardType)) { in addProperty()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardJapanizationTests.java25 import com.android.vcard.VCardConfig;
45 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null); in testNameUtf8Common()
56 testNameUtf8Common(VCardConfig.VCARD_TYPE_V21_JAPANESE); in testNameUtf8V21()
60 testNameUtf8Common(VCardConfig.VCARD_TYPE_V30_JAPANESE); in testNameUtf8V30()
64 mVerifier.initForExportTest(VCardConfig.VCARD_TYPE_V30_JAPANESE, "Shift_JIS"); in testNameShiftJis()
86 mVerifier.initForExportTest(VCardConfig.VCARD_TYPE_DOCOMO, "Shift_JIS"); in testNameDoCoMo()
121 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndSJis : in testPhoneticNameCommon()
123 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null)); in testPhoneticNameCommon()
132 if (!VCardConfig.isVersion21(vcardType)) { in testPhoneticNameCommon()
148 testPhoneticNameCommon(VCardConfig.VCARD_TYPE_V21_JAPANESE, null); in testPhoneticNameForJapaneseV21Utf8()
[all …]
DVCardTestUtilsTests.java21 import com.android.vcard.VCardConfig;
40 verifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_GENERIC, R.raw.v21_backslash); in testShouldFailAtPropertyNodeVerification()
58 verifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_GENERIC, R.raw.v21_backslash); in testShouldFailAtContentValueVerification()
79 verifier.initForExportTest(VCardConfig.VCARD_TYPE_V30_GENERIC); in testShouldFailAtLineVerification()
DVCardBuilderTest.java23 import com.android.vcard.VCardConfig;
42 final VCardBuilder builder = new VCardBuilder(VCardConfig.VCARD_TYPE_DEFAULT); in testVCardNameFieldFromDisplayName()
DVCardExporterTests.java19 import com.android.vcard.VCardConfig;
244 if (VCardConfig.isVersion40(vcardType)) { in testStructuredNamePhoneticNameCommon()
262 if (VCardConfig.isVersion30(vcardType)) { in testStructuredNamePhoneticNameCommon()
343 if (VCardConfig.isVersion40(vcardType)) { in testStructuredNameComplicatedCommon()
361 if (VCardConfig.isVersion30(vcardType)) { in testStructuredNameComplicatedCommon()
411 if (VCardConfig.isVersion40(vcardType)) { in testPhoneBasicCommon()
433 mVerifier.initForExportTest(V21 | VCardConfig.FLAG_REFRAIN_PHONE_NUMBER_FORMATTING); in testPhoneRefrainFormatting()
497 if (VCardConfig.isVersion40(vcardType)) { in testPhoneVariousTypeSupport()
570 if (VCardConfig.isVersion40(vcardType)) { in testPhonePrefHandlingCommon()
632 if (VCardConfig.isVersion40(vcardType)) { in testMiscPhoneTypeHandling()
[all …]
DVCardImporterTests.java33 import com.android.vcard.VCardConfig;
418 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_GENERIC, R.raw.v21_simple_1); in testV21SimpleCase1_Type_Generic()
427 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_JAPANESE, R.raw.v21_simple_1); in testV21SimpleCase1_Type_Japanese()
439 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_JAPANESE, R.raw.v21_simple_2); in testV21SimpleCase2()
757 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_JAPANESE, R.raw.v21_japanese_1); in testV21Japanese1_Parsing()
793 R.raw.v21_japanese_1, VCardConfig.VCARD_TYPE_V21_GENERIC, false); in testV21Japanese1_Type_Generic_Utf8()
802 R.raw.v21_japanese_1, VCardConfig.VCARD_TYPE_V21_JAPANESE, true); in testV21Japanese1_Type_Japanese_Sjis()
812 R.raw.v21_japanese_1, VCardConfig.VCARD_TYPE_V21_JAPANESE, true); in testV21Japanese1_Type_Japanese_Utf8()
816 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_JAPANESE, R.raw.v21_japanese_2); in testV21Japanese2_Parsing()
873 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_JAPANESE, R.raw.v21_multiple_entry); in testV21MultipleEntryCase_Parse()
[all …]
DVCardEntryTests.java18 import com.android.vcard.VCardConfig;
241 VCardConfig.VCARD_TYPE_DEFAULT); in testEntryElementIterator()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardTestsBase.java21 import com.android.vcard.VCardConfig;
29 public static final int V21 = VCardConfig.VCARD_TYPE_V21_GENERIC;
30 public static final int V30 = VCardConfig.VCARD_TYPE_V30_GENERIC;
31 public static final int V40 = VCardConfig.VCARD_TYPE_V40_GENERIC;
DVCardVerifier.java28 import com.android.vcard.VCardConfig;
111 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); in initForImportTest()
127 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); in initForExportTest()
177 if (VCardConfig.isVersion21(mVCardType)) { in addPropertyNodesVerifierElem()
179 } else if (VCardConfig.isVersion30(mVCardType)) { in addPropertyNodesVerifierElem()
181 } else if (VCardConfig.isVersion40(mVCardType)) { in addPropertyNodesVerifierElem()
196 if (VCardConfig.isVersion40(mVCardType)) { in addPropertyNodesVerifierElemWithEmptyName()
198 } else if (VCardConfig.isVersion30(mVCardType)) { in addPropertyNodesVerifierElemWithEmptyName()
DLineVerifierElem.java21 import com.android.vcard.VCardConfig;
70 } else if ((VCardConfig.isVersion21(mVCardType) ? "VERSION:2.1" : in verify()
71 (VCardConfig.isVersion30(mVCardType) ? "VERSION:3.0" : in verify()
DVNodeBuilder.java18 import com.android.vcard.VCardConfig;
64 this(VCardConfig.DEFAULT_IMPORT_CHARSET, false); in VNodeBuilder()
68 mSourceCharset = VCardConfig.DEFAULT_INTERMEDIATE_CHARSET; in VNodeBuilder()
72 mTargetCharset = VCardConfig.DEFAULT_IMPORT_CHARSET; in VNodeBuilder()