HomeSort by relevance Sort by last modified time
    Searched refs:vcardType (Results 1 - 25 of 35) sorted by null

1 2

  /frameworks/base/core/java/android/pim/vcard/
VCardConfig.java 435 public static boolean isVersion21(final int vcardType) {
436 return (vcardType & VERSION_MASK) == VERSION_21;
439 public static boolean isVersion30(final int vcardType) {
440 return (vcardType & VERSION_MASK) == VERSION_30;
443 public static boolean isVersion40(final int vcardType) {
444 return (vcardType & VERSION_MASK) == VERSION_40;
447 public static boolean shouldUseQuotedPrintable(final int vcardType) {
448 return !isVersion30(vcardType);
451 public static int getNameOrderType(final int vcardType) {
452 return vcardType & NAME_ORDER_MASK
    [all...]
VCardEntryConstructor.java 71 public VCardEntryConstructor(final int vcardType) {
72 this(vcardType, null, null, false);
75 public VCardEntryConstructor(final int vcardType, final Account account) {
76 this(vcardType, account, null, false);
79 public VCardEntryConstructor(final int vcardType, final Account account,
81 this(vcardType, account, inputCharset, false);
87 public VCardEntryConstructor(final int vcardType, final Account account,
95 mVCardType = vcardType;
VCardParserImpl_V40.java 37 public VCardParserImpl_V40(final int vcardType) {
38 super(vcardType);
VCardParser_V30.java 75 public VCardParser_V30(int vcardType) {
76 mVCardParserImpl = new VCardParserImpl_V30(vcardType);
VCardParser_V40.java 64 public VCardParser_V40(int vcardType) {
65 mVCardParserImpl = new VCardParserImpl_V40(vcardType);
VCardParser_V21.java 97 public VCardParser_V21(int vcardType) {
98 mVCardParserImpl = new VCardParserImpl_V21(vcardType);
VCardUtils.java 209 public static String[] sortNameElements(final int vcardType,
212 final int nameOrderType = VCardConfig.getNameOrderType(vcardType);
243 public static int getPhoneNumberFormat(final int vcardType) {
244 if (VCardConfig.isJapaneseDevice(vcardType)) {
260 public static void insertStructuredPostalDataUsingContactsStruct(int vcardType,
293 postalData.getFormattedAddress(vcardType));
299 public static String constructNameFromElements(final int vcardType,
301 return constructNameFromElements(vcardType, familyName, middleName, givenName,
305 public static String constructNameFromElements(final int vcardType,
309 final String[] nameList = sortNameElements(vcardType, familyName, middleName, givenName)
    [all...]
VCardComposer.java 287 public VCardComposer(Context context, int vcardType) {
288 this(context, vcardType, null, true);
291 public VCardComposer(Context context, int vcardType, String charset) {
292 this(context, vcardType, charset, true);
298 public VCardComposer(final Context context, final int vcardType,
300 this(context, vcardType, null, careHandlerErrors);
307 * @param vcardType The type of vCard, typically available via {@link VCardConfig}.
313 public VCardComposer(final Context context, final int vcardType, String charset,
316 mVCardType = vcardType;
320 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType);
    [all...]
VCardParserImpl_V30.java 47 public VCardParserImpl_V30(int vcardType) {
48 super(vcardType);
  /packages/apps/Tag/src/com/android/vcard/
VCardConfig.java 441 public static boolean isVersion21(final int vcardType) {
442 return (vcardType & VERSION_MASK) == VERSION_21;
445 public static boolean isVersion30(final int vcardType) {
446 return (vcardType & VERSION_MASK) == VERSION_30;
449 public static boolean isVersion40(final int vcardType) {
450 return (vcardType & VERSION_MASK) == VERSION_40;
453 public static boolean shouldUseQuotedPrintable(final int vcardType) {
454 return !isVersion30(vcardType);
457 public static int getNameOrderType(final int vcardType) {
458 return vcardType & NAME_ORDER_MASK
    [all...]
VCardEntryConstructor.java 71 public VCardEntryConstructor(final int vcardType) {
72 this(vcardType, null, null, false);
75 public VCardEntryConstructor(final int vcardType, final Account account) {
76 this(vcardType, account, null, false);
79 public VCardEntryConstructor(final int vcardType, final Account account,
81 this(vcardType, account, inputCharset, false);
87 public VCardEntryConstructor(final int vcardType, final Account account,
95 mVCardType = vcardType;
VCardParserImpl_V40.java 37 public VCardParserImpl_V40(final int vcardType) {
38 super(vcardType);
VCardParser_V30.java 76 public VCardParser_V30(int vcardType) {
77 mVCardParserImpl = new VCardParserImpl_V30(vcardType);
VCardParser_V40.java 64 public VCardParser_V40(int vcardType) {
65 mVCardParserImpl = new VCardParserImpl_V40(vcardType);
VCardParser_V21.java 97 public VCardParser_V21(int vcardType) {
98 mVCardParserImpl = new VCardParserImpl_V21(vcardType);
VCardUtils.java 249 public static String[] sortNameElements(final int vcardType,
252 final int nameOrderType = VCardConfig.getNameOrderType(vcardType);
283 public static int getPhoneNumberFormat(final int vcardType) {
284 if (VCardConfig.isJapaneseDevice(vcardType)) {
300 public static void insertStructuredPostalDataUsingContactsStruct(int vcardType,
333 postalData.getFormattedAddress(vcardType));
339 public static String constructNameFromElements(final int vcardType,
341 return constructNameFromElements(vcardType, familyName, middleName, givenName,
345 public static String constructNameFromElements(final int vcardType,
349 final String[] nameList = sortNameElements(vcardType, familyName, middleName, givenName)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
PropertyNodesVerifier.java 45 public void verify(int resId, int vcardType) throws IOException, VCardException {
46 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), vcardType);
49 public void verify(int resId, int vcardType, final VCardParser parser)
52 vcardType, parser);
55 public void verify(InputStream is, int vcardType) throws IOException, VCardException {
56 final VCardParser parser = VCardUtils.getAppropriateParser(vcardType);
57 verify(is, vcardType, parser);
60 public void verify(InputStream is, int vcardType, final VCardParser parser)
ContentValuesVerifierElem.java 50 public void verify(int resId, int vcardType)
52 verify(mTestCase.getContext().getResources().openRawResource(resId), vcardType);
55 public void verify(InputStream is, int vcardType) throws IOException, VCardException {
56 final VCardParser vCardParser = VCardUtils.getAppropriateParser(vcardType);
57 final VCardEntryConstructor builder = new VCardEntryConstructor(vcardType, null);
LineVerifier.java 32 public LineVerifier(AndroidTestCase androidTestCase, int vcardType) {
35 mVCardType = vcardType;
LineVerifierElem.java 31 public LineVerifierElem(AndroidTestCase androidTestCase, int vcardType) {
32 mVCardType = vcardType;
VCardVerifier.java 110 public void initForImportTest(int vcardType, int resId) {
114 mVCardType = vcardType;
115 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType);
121 public void initForExportTest(int vcardType) {
122 initForExportTest(vcardType, "UTF-8");
125 public void initForExportTest(int vcardType, String charset) {
130 mVCardType = vcardType;
131 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType);
  /frameworks/base/core/tests/coretests/src/android/pim/vcard/
VCardExporterTests.java 59 private void testStructuredNameBasic(int vcardType) {
60 mVerifier.initForExportTest(vcardType);
96 private void testStructuredNameUsePrimaryCommon(int vcardType) {
97 mVerifier.initForExportTest(vcardType);
156 private void testStructuredNameUseSuperPrimaryCommon(int vcardType) {
157 mVerifier.initForExportTest(vcardType);
226 private void testStructuredNamePhoneticNameCommon(int vcardType) {
227 mVerifier.initForExportTest(vcardType);
241 if (VCardConfig.isVersion40(vcardType)) {
259 if (VCardConfig.isVersion30(vcardType)) {
    [all...]
VCardJapanizationTests.java 33 private void testNameUtf8Common(int vcardType) {
34 mVerifier.initForExportTest(vcardType);
43 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null);
109 private void testPhoneticNameCommon(int vcardType, String charset) {
110 mVerifier.initForExportTest(vcardType, charset);
119 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndSJis :
121 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null));
130 if (!VCardConfig.isVersion21(vcardType)) {
202 private void testPostalAddressWithJapaneseCommon(int vcardType, String charset) {
203 mVerifier.initForExportTest(vcardType, charset)
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
BluetoothPbapCallLogComposer.java 192 final int vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC |
194 final VCardBuilder builder = new VCardBuilder(vcardType);
223 final int vcardType = (vcardVer21 ?
227 final VCardBuilder builder = new VCardBuilder(vcardType);
BluetoothPbapVcardManager.java 436 int vcardType;
438 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC;
440 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC;
442 vcardType |= VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT;
443 vcardType |= VCardConfig.FLAG_REFRAIN_PHONE_NUMBER_FORMATTING;
445 composer = new VCardComposer(mContext, vcardType, true);

Completed in 795 milliseconds

1 2