/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardConfig.java | 420 public static boolean isVersion21(final int vcardType) { argument 421 return (vcardType & VERSION_MASK) == VERSION_21; 424 public static boolean isVersion30(final int vcardType) { argument 425 return (vcardType & VERSION_MASK) == VERSION_30; 428 public static boolean isVersion40(final int vcardType) { argument 429 return (vcardType & VERSION_MASK) == VERSION_40; 432 public static boolean shouldUseQuotedPrintable(final int vcardType) { argument 433 return !isVersion30(vcardType); 436 public static int getNameOrderType(final int vcardType) { argument 437 return vcardType 440 usesAndroidSpecificProperty(final int vcardType) argument 444 usesDefactProperty(final int vcardType) argument 452 shouldRefrainQPToNameProperties(final int vcardType) argument 457 appendTypeParamName(final int vcardType) argument 465 isJapaneseDevice(final int vcardType) argument 472 refrainPhoneNumberFormatting(final int vcardType) argument 476 needsToConvertPhoneticString(final int vcardType) argument 480 onlyOneNoteFieldIsAvailable(final int vcardType) argument 484 isDoCoMo(final int vcardType) argument [all...] |
H A D | VCardEntryConstructor.java | 62 public VCardEntryConstructor(final int vcardType) { argument 63 this(vcardType, null, null); 66 public VCardEntryConstructor(final int vcardType, final Account account) { argument 67 this(vcardType, account, null); 75 public VCardEntryConstructor(final int vcardType, final Account account, argument 77 mVCardType = vcardType;
|
H A D | VCardParserImpl_V40.java | 37 public VCardParserImpl_V40(final int vcardType) { argument 38 super(vcardType);
|
H A D | VCardParser_V21.java | 97 public VCardParser_V21(int vcardType) { argument 98 mVCardParserImpl = new VCardParserImpl_V21(vcardType);
|
H A D | VCardParser_V30.java | 76 public VCardParser_V30(int vcardType) { argument 77 mVCardParserImpl = new VCardParserImpl_V30(vcardType);
|
H A D | VCardParser_V40.java | 64 public VCardParser_V40(int vcardType) { argument 65 mVCardParserImpl = new VCardParserImpl_V40(vcardType);
|
H A D | VCardComposer.java | 170 public VCardComposer(Context context, int vcardType) { argument 171 this(context, vcardType, null, true); 174 public VCardComposer(Context context, int vcardType, String charset) { argument 175 this(context, vcardType, charset, true); 181 public VCardComposer(final Context context, final int vcardType, argument 183 this(context, vcardType, null, careHandlerErrors); 190 * @param vcardType The type of vCard, typically available via {@link VCardConfig}. 194 public VCardComposer(final Context context, final int vcardType, String charset, argument 196 this(context, context.getContentResolver(), vcardType, charset, careHandlerErrors); 205 final int vcardType, Strin 204 VCardComposer(final Context context, ContentResolver resolver, final int vcardType, String charset, final boolean careHandlerErrors) argument [all...] |
H A D | VCardUtils.java | 326 public static int getPhoneNumberFormat(final int vcardType) { argument 327 if (VCardConfig.isJapaneseDevice(vcardType)) { 375 final int vcardType) { 384 if (VCardConfig.isVersion40(vcardType)) { 386 } else if (VCardConfig.isVersion30(vcardType)) { 389 if (!VCardConfig.isVersion21(vcardType)) { 819 public static final VCardParser getAppropriateParser(int vcardType) argument 821 if (VCardConfig.isVersion21(vcardType)) { 823 } else if (VCardConfig.isVersion30(vcardType)) { 825 } else if (VCardConfig.isVersion40(vcardType)) { 374 constructListFromValue(final String value, final int vcardType) argument [all...] |
H A D | VCardParserImpl_V30.java | 48 public VCardParserImpl_V30(int vcardType) { argument 49 super(vcardType);
|
H A D | VCardBuilder.java | 53 * <pre class="prettyprint">final VCardBuilder builder = new VCardBuilder(vcardType); 124 public VCardBuilder(final int vcardType) { argument 126 this(vcardType, null); 130 * @param vcardType 134 public VCardBuilder(final int vcardType, String charset) { argument 135 mVCardType = vcardType; 137 if (VCardConfig.isVersion40(vcardType)) { 142 mIsV30OrV40 = VCardConfig.isVersion30(vcardType) || VCardConfig.isVersion40(vcardType); 143 mShouldUseQuotedPrintable = VCardConfig.shouldUseQuotedPrintable(vcardType); [all...] |
H A D | VCardEntry.java | 507 boolean isPrimary, int vcardType) { 518 mVCardType = vcardType; 525 final int type, final String label, boolean isPrimary, int vcardType) { 550 dataArray[4], dataArray[5], dataArray[6], type, label, isPrimary, vcardType); 594 public String getFormattedAddress(final int vcardType) { argument 600 if (VCardConfig.isJapaneseDevice(vcardType)) { 1758 public VCardEntry(int vcardType) { argument 1759 this(vcardType, null); 1762 public VCardEntry(int vcardType, Account account) { argument 1763 mVCardType = vcardType; 505 PostalData(String pobox, String extendedAddress, String street, String localty, String region, String postalCode, String country, int type, String label, boolean isPrimary, int vcardType) argument 524 constructPostalData(final List<String> propValueList, final int type, final String label, boolean isPrimary, int vcardType) argument [all...] |
H A D | VCardParserImpl_V21.java | 160 public VCardParserImpl_V21(int vcardType) { argument
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | PropertyNodesVerifier.java | 46 public void verify(int resId, int vcardType) throws IOException, VCardException { argument 47 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), vcardType); 50 public void verify(int resId, int vcardType, final VCardParser parser) argument 53 vcardType, parser); 56 public void verify(InputStream is, int vcardType) throws IOException, VCardException { argument 57 final VCardParser parser = VCardUtils.getAppropriateParser(vcardType); 58 verify(is, vcardType, parser); 61 public void verify(InputStream is, int vcardType, final VCardParser parser) argument
|
H A D | LineVerifier.java | 30 public LineVerifier(AndroidTestCase androidTestCase, int vcardType) { argument 33 mVCardType = vcardType;
|
H A D | LineVerifierElem.java | 32 public LineVerifierElem(AndroidTestCase androidTestCase, int vcardType) { argument 33 mVCardType = vcardType;
|
H A D | VCardVerifier.java | 106 public void initForImportTest(int vcardType, int resId) { argument 110 mVCardType = vcardType; 111 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); 117 public void initForExportTest(int vcardType) { argument 118 initForExportTest(vcardType, "UTF-8"); 121 public void initForExportTest(int vcardType, String charset) { argument 126 mVCardType = vcardType; 127 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType);
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
H A D | VCardExporterTests.java | 62 private void testStructuredNameBasic(int vcardType) { argument 63 mVerifier.initForExportTest(vcardType); 99 private void testStructuredNameUsePrimaryCommon(int vcardType) { argument 100 mVerifier.initForExportTest(vcardType); 159 private void testStructuredNameUseSuperPrimaryCommon(int vcardType) { argument 160 mVerifier.initForExportTest(vcardType); 229 private void testStructuredNamePhoneticNameCommon(int vcardType) { argument 230 mVerifier.initForExportTest(vcardType); 244 if (VCardConfig.isVersion40(vcardType)) { 262 if (VCardConfig.isVersion30(vcardType)) { 294 testStructuredNameComplicatedCommon(int vcardType) argument 406 testPhoneBasicCommon(int vcardType) argument 445 testPhoneVariousTypeSupport(int vcardType) argument 552 testPhonePrefHandlingCommon(int vcardType) argument 597 testMiscPhoneTypeHandling(int vcardType) argument 676 testEmailBasicCommon(int vcardType) argument 696 testEmailVariousTypeSupportCommon(int vcardType) argument 730 testEmailPrefHandlingCommon(int vcardType) argument 758 testPostalAddressCommon(int vcardType) argument 793 testPostalAddressNonNeighborhood(int vcardType) argument 814 testPostalAddressNonCity(int vcardType) argument 835 testPostalOnlyWithFormattedAddressCommon(int vcardType) argument 863 testPostalWithBothStructuredAndFormattedCommon(int vcardType) argument 888 testOrganizationCommon(int vcardType) argument 929 testImVariousTypeSupportCommon(int vcardType) argument 985 testImPrefHandlingCommon(int vcardType) argument 1014 testWebsiteCommon(int vcardType) argument 1053 testEventCommon(int vcardType) argument 1099 testNoteCommon(int vcardType) argument 1124 testPhotoCommon(int vcardType) argument 1156 testRelationCommon(int vcardType) argument 1220 testPickUpNonEmptyContentValuesCommon(int vcardType) argument [all...] |
H A D | VCardJapanizationTests.java | 35 private void testNameUtf8Common(int vcardType) { argument 36 mVerifier.initForExportTest(vcardType); 45 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null); 111 private void testPhoneticNameCommon(int vcardType, String charset) { argument 112 mVerifier.initForExportTest(vcardType, charset); 121 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndSJis : 123 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null)); 132 if (!VCardConfig.isVersion21(vcardType)) { 204 private void testPostalAddressWithJapaneseCommon(int vcardType, String charset) { argument 205 mVerifier.initForExportTest(vcardType, charse 362 testJapanesePhoneNumberCommon(int vcardType) argument [all...] |
H A D | VCardImporterTests.java | 770 private void testV21Japanese1Common(int resId, int vcardType, boolean japanese) { argument 771 mVerifier.initForImportTest(vcardType, resId);
|