Home
last modified time | relevance | path

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

12

/aosp12/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardConfig.java421 return (vcardType & VERSION_MASK) == VERSION_21; in isVersion21()
425 return (vcardType & VERSION_MASK) == VERSION_30; in isVersion30()
429 return (vcardType & VERSION_MASK) == VERSION_40; in isVersion40()
433 return !isVersion30(vcardType); in shouldUseQuotedPrintable()
437 return vcardType & NAME_ORDER_MASK; in getNameOrderType()
453 return (!shouldUseQuotedPrintable(vcardType) || in shouldRefrainQPToNameProperties()
458 return (isVersion30(vcardType) || ((vcardType & FLAG_APPEND_TYPE_PARAM) != 0)); in appendTypeParamName()
469 return sJapaneseMobileTypeSet.contains(vcardType); in isJapaneseDevice()
481 return vcardType == VCARD_TYPE_DOCOMO; in onlyOneNoteFieldIsAvailable()
484 public static boolean isDoCoMo(final int vcardType) { in isDoCoMo() argument
[all …]
H A 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()
H A 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
205 final int vcardType, String charset, final boolean careHandlerErrors) { in VCardComposer() argument
208 mVCardType = vcardType; in VCardComposer()
211 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); in VCardComposer()
[all …]
H A 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()
H A DVCardParserImpl_V40.java37 public VCardParserImpl_V40(final int vcardType) { in VCardParserImpl_V40() argument
38 super(vcardType); in VCardParserImpl_V40()
H A DVCardParser_V30.java76 public VCardParser_V30(int vcardType) { in VCardParser_V30() argument
77 mVCardParserImpl = new VCardParserImpl_V30(vcardType); in VCardParser_V30()
H A DVCardParser_V40.java64 public VCardParser_V40(int vcardType) { in VCardParser_V40() argument
65 mVCardParserImpl = new VCardParserImpl_V40(vcardType); in VCardParser_V40()
H A DVCardParser_V21.java97 public VCardParser_V21(int vcardType) { in VCardParser_V21() argument
98 mVCardParserImpl = new VCardParserImpl_V21(vcardType); in VCardParser_V21()
H A 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()
144 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType); in VCardBuilder()
147 mUsesAndroidProperty = VCardConfig.usesAndroidSpecificProperty(vcardType); in VCardBuilder()
148 mUsesDefactProperty = VCardConfig.usesDefactProperty(vcardType); in VCardBuilder()
150 mAppendTypeParamName = VCardConfig.appendTypeParamName(vcardType); in VCardBuilder()
[all …]
H A DVCardParserImpl_V30.java48 public VCardParserImpl_V30(int vcardType) { in VCardParserImpl_V30() argument
49 super(vcardType); in VCardParserImpl_V30()
H A 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()
/aosp12/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
H A DVCardExporterTests.java63 mVerifier.initForExportTest(vcardType); in testStructuredNameBasic()
100 mVerifier.initForExportTest(vcardType); in testStructuredNameUsePrimaryCommon()
160 mVerifier.initForExportTest(vcardType); in testStructuredNameUseSuperPrimaryCommon()
230 mVerifier.initForExportTest(vcardType); in testStructuredNamePhoneticNameCommon()
295 mVerifier.initForExportTest(vcardType); in testStructuredNameComplicatedCommon()
407 mVerifier.initForExportTest(vcardType); in testPhoneBasicCommon()
446 mVerifier.initForExportTest(vcardType); in testPhoneVariousTypeSupport()
553 mVerifier.initForExportTest(vcardType); in testPhonePrefHandlingCommon()
598 mVerifier.initForExportTest(vcardType); in testMiscPhoneTypeHandling()
677 mVerifier.initForExportTest(vcardType); in testEmailBasicCommon()
[all …]
H A 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()
132 if (!VCardConfig.isVersion21(vcardType)) { in testPhoneticNameCommon()
205 mVerifier.initForExportTest(vcardType, charset); in testPostalAddressWithJapaneseCommon()
221 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndSJis : in testPostalAddressWithJapaneseCommon()
223 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : in testPostalAddressWithJapaneseCommon()
362 private void testJapanesePhoneNumberCommon(int vcardType) { in testJapanesePhoneNumberCommon() argument
[all …]
H A 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()
/aosp12/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A 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
H A 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()
H A DLineVerifier.java30 public LineVerifier(AndroidTestCase androidTestCase, int vcardType) { in LineVerifier() argument
33 mVCardType = vcardType; in LineVerifier()
H A DLineVerifierElem.java32 public LineVerifierElem(AndroidTestCase androidTestCase, int vcardType) { in LineVerifierElem() argument
33 mVCardType = vcardType; in LineVerifierElem()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DVCardRequest.java155 int vcardType = detector.getEstimatedType(); in doActuallyReadOneVCard() local
156 if (vcardType == VCardConfig.VCARD_TYPE_UNKNOWN) { in doActuallyReadOneVCard()
157 vcardType = VCardConfig.getVCardTypeFromString(DEFAULT_VCARD_TYPE); in doActuallyReadOneVCard()
160 new CustomVCardEntryConstructor(vcardType, null); in doActuallyReadOneVCard()
164 if (!readOneVCardFile(uri, vcardType, builder, false, null)) { in doActuallyReadOneVCard()
175 private boolean readOneVCardFile(final Uri uri, final int vcardType, in readOneVCardFile() argument
185 vCardParser = new VCardParser_V21(vcardType); in readOneVCardFile()
204 vCardParser = new VCardParser_V30(vcardType); in readOneVCardFile()
H A DCustomVCardEntryConstructor.java73 public CustomVCardEntryConstructor(final int vcardType) { in CustomVCardEntryConstructor() argument
74 this(vcardType, null); in CustomVCardEntryConstructor()
77 public CustomVCardEntryConstructor(final int vcardType, final Account account) { in CustomVCardEntryConstructor() argument
78 mVCardType = vcardType; in CustomVCardEntryConstructor()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapVcardManager.java120 int vcardType; in getOwnerPhoneNumberVcardFromProfile() local
122 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC; in getOwnerPhoneNumberVcardFromProfile()
124 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC; in getOwnerPhoneNumberVcardFromProfile()
128 vcardType |= VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT; in getOwnerPhoneNumberVcardFromProfile()
313 int vcardType; in getSelectedPhonebookNameList() local
316 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC; in getSelectedPhonebookNameList()
318 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC; in getSelectedPhonebookNameList()
722 int vcardType; in composeContactsAndSendVCards() local
724 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC; in composeContactsAndSendVCards()
728 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC; in composeContactsAndSendVCards()
[all …]
H A DBluetoothPbapCallLogComposer.java143 final int vcardType = (vcardVer21 ? VCardConfig.VCARD_TYPE_V21_GENERIC in createOneCallLogEntryInternal() local
146 final VCardBuilder builder = new VCardBuilder(vcardType); in createOneCallLogEntryInternal()
180 final int vcardType = (vcardVer21 ? VCardConfig.VCARD_TYPE_V21_GENERIC in composeVCardForPhoneOwnNumber() local
183 final VCardBuilder builder = new VCardBuilder(vcardType); in composeVCardForPhoneOwnNumber()
H A DBluetoothPbapUtils.java113 static VCardComposer createFilteredVCardComposer(final Context ctx, final int vcardType, in createFilteredVCardComposer() argument
115 int vType = vcardType; in createFilteredVCardComposer()
141 static String createProfileVCard(Context ctx, final int vcardType, final byte[] filter) { in createProfileVCard() argument
145 composer = createFilteredVCardComposer(ctx, vcardType, filter); in createProfileVCard()
/aosp12/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DExportProcessor.java137 final int vcardType; in runInternal() local
139 vcardType = VCardConfig.getVCardTypeFromString( in runInternal()
142 vcardType = VCardConfig.getVCardTypeFromString(exportType); in runInternal()
145 composer = new VCardComposer(mService, vcardType, true); in runInternal()
H A DImportProcessor.java216 private boolean readOneVCard(InputStream is, int vcardType, String charset, in readOneVCard() argument
235 new VCardParser_V30(vcardType) : in readOneVCard()
236 new VCardParser_V21(vcardType)); in readOneVCard()

12