/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardConfig.java | 420 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 …]
|
D | VCardEntryConstructor.java | 62 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()
|
D | VCardComposer.java | 170 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 …]
|
D | VCardParserImpl_V40.java | 37 public VCardParserImpl_V40(final int vcardType) { in VCardParserImpl_V40() argument 38 super(vcardType); in VCardParserImpl_V40()
|
D | VCardParser_V30.java | 76 public VCardParser_V30(int vcardType) { in VCardParser_V30() argument 77 mVCardParserImpl = new VCardParserImpl_V30(vcardType); in VCardParser_V30()
|
D | VCardParser_V40.java | 64 public VCardParser_V40(int vcardType) { in VCardParser_V40() argument 65 mVCardParserImpl = new VCardParserImpl_V40(vcardType); in VCardParser_V40()
|
D | VCardUtils.java | 326 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()
|
D | VCardParser_V21.java | 97 public VCardParser_V21(int vcardType) { in VCardParser_V21() argument 98 mVCardParserImpl = new VCardParserImpl_V21(vcardType); in VCardParser_V21()
|
D | VCardBuilder.java | 124 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 …]
|
D | VCardParserImpl_V30.java | 48 public VCardParserImpl_V30(int vcardType) { in VCardParserImpl_V30() argument 49 super(vcardType); in VCardParserImpl_V30()
|
D | VCardEntry.java | 507 boolean isPrimary, int vcardType) { in PostalData() argument 518 mVCardType = vcardType; in PostalData() 525 final int type, final String label, boolean isPrimary, int vcardType) { in constructPostalData() argument 550 dataArray[4], dataArray[5], dataArray[6], type, label, isPrimary, vcardType); in constructPostalData() 594 public String getFormattedAddress(final int vcardType) { in getFormattedAddress() argument 600 if (VCardConfig.isJapaneseDevice(vcardType)) { in getFormattedAddress() 1758 public VCardEntry(int vcardType) { in VCardEntry() argument 1759 this(vcardType, null); in VCardEntry() 1762 public VCardEntry(int vcardType, Account account) { in VCardEntry() argument 1763 mVCardType = vcardType; in VCardEntry()
|
D | VCardParserImpl_V21.java | 160 public VCardParserImpl_V21(int vcardType) { in VCardParserImpl_V21() argument
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardExporterTests.java | 62 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 …]
|
D | VCardJapanizationTests.java | 35 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 …]
|
D | VCardImporterTests.java | 562 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()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | PropertyNodesVerifier.java | 46 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
|
D | VCardVerifier.java | 106 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()
|
D | LineVerifier.java | 30 public LineVerifier(AndroidTestCase androidTestCase, int vcardType) { in LineVerifier() argument 33 mVCardType = vcardType; in LineVerifier()
|
D | LineVerifierElem.java | 32 public LineVerifierElem(AndroidTestCase androidTestCase, int vcardType) { in LineVerifierElem() argument 33 mVCardType = vcardType; in LineVerifierElem()
|