/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardSourceDetector.java | 110 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 …]
|
D | VCardBuilder.java | 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() 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 …]
|
D | VCardConfig.java | 30 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
|
D | VCardUtils.java | 295 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()
|
D | VCardComposer.java | 164 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()
|
D | VCardParserImpl_V21.java | 157 this(VCardConfig.VCARD_TYPE_DEFAULT); in VCardParserImpl_V21() 161 mIntermediateCharset = VCardConfig.DEFAULT_INTERMEDIATE_CHARSET; in VCardParserImpl_V21() 575 final String sourceCharset = VCardConfig.DEFAULT_INTERMEDIATE_CHARSET; 581 targetCharset = VCardConfig.DEFAULT_IMPORT_CHARSET; 659 if (getVersion() == VCardConfig.VERSION_21) { 959 return VCardConfig.VERSION_21;
|
D | VCardParserImpl_V40.java | 43 return VCardConfig.VERSION_40; in getVersion()
|
D | VCardParserImpl_V30.java | 54 return VCardConfig.VERSION_30; in getVersion() 273 paramValue, VCardConfig.DEFAULT_INTERMEDIATE_CHARSET, "UTF-8"); in encodeParamValue()
|
D | VCardEntryConstructor.java | 59 this(VCardConfig.VCARD_TYPE_V21_GENERIC, null, null); in VCardEntryConstructor()
|
D | VCardEntryCommitter.java | 63 if (VCardConfig.showPerformanceLog()) { in onEnd()
|
D | VCardEntry.java | 612 if (VCardConfig.isJapaneseDevice(vcardType)) { in getFormattedAddress() 1767 this(VCardConfig.VCARD_TYPE_V21_GENERIC); in VCardEntry() 1786 if (type == Phone.TYPE_PAGER || VCardConfig.refrainPhoneNumberFormatting(mVCardType)) { in addPhone() 2009 if (VCardConfig.isVersion30(mVCardType) in tryHandleSortAsName() 2306 if (VCardConfig.isVersion40(mVCardType)) { in addProperty()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardJapanizationTests.java | 25 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 …]
|
D | VCardTestUtilsTests.java | 21 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()
|
D | VCardBuilderTest.java | 23 import com.android.vcard.VCardConfig; 42 final VCardBuilder builder = new VCardBuilder(VCardConfig.VCARD_TYPE_DEFAULT); in testVCardNameFieldFromDisplayName()
|
D | VCardImporterTests.java | 33 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() 777 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_JAPANESE, R.raw.v21_japanese_1); in testV21Japanese1_Parsing() 813 R.raw.v21_japanese_1, VCardConfig.VCARD_TYPE_V21_GENERIC, false); in testV21Japanese1_Type_Generic_Utf8() 822 R.raw.v21_japanese_1, VCardConfig.VCARD_TYPE_V21_JAPANESE, true); in testV21Japanese1_Type_Japanese_Sjis() 832 R.raw.v21_japanese_1, VCardConfig.VCARD_TYPE_V21_JAPANESE, true); in testV21Japanese1_Type_Japanese_Utf8() 836 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_JAPANESE, R.raw.v21_japanese_2); in testV21Japanese2_Parsing() 893 mVerifier.initForImportTest(VCardConfig.VCARD_TYPE_V21_JAPANESE, R.raw.v21_japanese_3); in testV21Japanese3_Parsing() [all …]
|
D | VCardExporterTests.java | 19 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 …]
|
D | VCardEntryTests.java | 18 import com.android.vcard.VCardConfig; 241 VCardConfig.VCARD_TYPE_DEFAULT); in testEntryElementIterator()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | VCardTestsBase.java | 21 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;
|
D | VCardVerifier.java | 28 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()
|
D | LineVerifierElem.java | 21 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()
|
D | VNodeBuilder.java | 18 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()
|