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

  /frameworks/opt/vcard/java/com/android/vcard/
VCardConfig.java 420 public static boolean isVersion21(final int vcardType) {
421 return (vcardType & VERSION_MASK) == VERSION_21;
424 public static boolean isVersion30(final int vcardType) {
425 return (vcardType & VERSION_MASK) == VERSION_30;
428 public static boolean isVersion40(final int vcardType) {
429 return (vcardType & VERSION_MASK) == VERSION_40;
432 public static boolean shouldUseQuotedPrintable(final int vcardType) {
433 return !isVersion30(vcardType);
436 public static int getNameOrderType(final int vcardType) {
437 return vcardType & NAME_ORDER_MASK
    [all...]
VCardEntryConstructor.java 62 public VCardEntryConstructor(final int vcardType) {
63 this(vcardType, null, null);
66 public VCardEntryConstructor(final int vcardType, final Account account) {
67 this(vcardType, account, null);
75 public VCardEntryConstructor(final int vcardType, final Account account,
77 mVCardType = vcardType;
VCardParserImpl_V40.java 37 public VCardParserImpl_V40(final int vcardType) {
38 super(vcardType);
VCardParser_V21.java 97 public VCardParser_V21(int vcardType) {
98 mVCardParserImpl = new VCardParserImpl_V21(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);
VCardComposer.java 168 public VCardComposer(Context context, int vcardType) {
169 this(context, vcardType, null, true);
172 public VCardComposer(Context context, int vcardType, String charset) {
173 this(context, vcardType, charset, true);
179 public VCardComposer(final Context context, final int vcardType,
181 this(context, vcardType, null, careHandlerErrors);
188 * @param vcardType The type of vCard, typically available via {@link VCardConfig}.
192 public VCardComposer(final Context context, final int vcardType, String charset,
194 this(context, context.getContentResolver(), vcardType, charset, careHandlerErrors);
203 final int vcardType, String charset, final boolean careHandlerErrors)
    [all...]
VCardUtils.java 326 public static int getPhoneNumberFormat(final int vcardType) {
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)
821 if (VCardConfig.isVersion21(vcardType)) {
823 } else if (VCardConfig.isVersion30(vcardType)) {
825 } else if (VCardConfig.isVersion40(vcardType)) {
    [all...]
VCardParserImpl_V30.java 48 public VCardParserImpl_V30(int vcardType) {
49 super(vcardType);
VCardBuilder.java 53 * <pre class="prettyprint">final VCardBuilder builder = new VCardBuilder(vcardType);
124 public VCardBuilder(final int vcardType) {
126 this(vcardType, null);
130 * @param vcardType
134 public VCardBuilder(final int vcardType, String charset) {
135 mVCardType = vcardType;
137 if (VCardConfig.isVersion40(vcardType)) {
142 mIsV30OrV40 = VCardConfig.isVersion30(vcardType) || VCardConfig.isVersion40(vcardType);
143 mShouldUseQuotedPrintable = VCardConfig.shouldUseQuotedPrintable(vcardType);
    [all...]
VCardEntry.java 506 boolean isPrimary, int vcardType) {
517 mVCardType = vcardType;
524 final int type, final String label, boolean isPrimary, int vcardType) {
549 dataArray[4], dataArray[5], dataArray[6], type, label, isPrimary, vcardType);
593 public String getFormattedAddress(final int vcardType) {
599 if (VCardConfig.isJapaneseDevice(vcardType)) {
    [all...]
VCardParserImpl_V21.java 160 public VCardParserImpl_V21(int vcardType) {
    [all...]
  /frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
PropertyNodesVerifier.java 46 public void verify(int resId, int vcardType) throws IOException, VCardException {
47 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), vcardType);
50 public void verify(int resId, int vcardType, final VCardParser parser)
53 vcardType, parser);
56 public void verify(InputStream is, int vcardType) throws IOException, VCardException {
57 final VCardParser parser = VCardUtils.getAppropriateParser(vcardType);
58 verify(is, vcardType, parser);
61 public void verify(InputStream is, int vcardType, final VCardParser parser)
LineVerifier.java 30 public LineVerifier(AndroidTestCase androidTestCase, int vcardType) {
33 mVCardType = vcardType;
LineVerifierElem.java 32 public LineVerifierElem(AndroidTestCase androidTestCase, int vcardType) {
33 mVCardType = vcardType;
VCardVerifier.java 106 public void initForImportTest(int vcardType, int resId) {
110 mVCardType = vcardType;
111 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType);
117 public void initForExportTest(int vcardType) {
118 initForExportTest(vcardType, "UTF-8");
121 public void initForExportTest(int vcardType, String charset) {
126 mVCardType = vcardType;
127 mIsDoCoMo = VCardConfig.isDoCoMo(vcardType);
  /frameworks/opt/vcard/tests/src/com/android/vcard/tests/
VCardExporterTests.java 62 private void testStructuredNameBasic(int vcardType) {
63 mVerifier.initForExportTest(vcardType);
99 private void testStructuredNameUsePrimaryCommon(int vcardType) {
100 mVerifier.initForExportTest(vcardType);
159 private void testStructuredNameUseSuperPrimaryCommon(int vcardType) {
160 mVerifier.initForExportTest(vcardType);
229 private void testStructuredNamePhoneticNameCommon(int vcardType) {
230 mVerifier.initForExportTest(vcardType);
244 if (VCardConfig.isVersion40(vcardType)) {
262 if (VCardConfig.isVersion30(vcardType)) {
    [all...]
VCardJapanizationTests.java 35 private void testNameUtf8Common(int vcardType) {
36 mVerifier.initForExportTest(vcardType);
45 (VCardConfig.isVersion21(vcardType) ? mContentValuesForQPAndUtf8 : null);
111 private void testPhoneticNameCommon(int vcardType, String charset) {
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) {
205 mVerifier.initForExportTest(vcardType, charset)
    [all...]
VCardImporterTests.java     [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
BluetoothPbapUtils.java 109 final int vcardType, final byte[] filter) {
110 int vType = vcardType;
155 public static final String createProfileVCard(Context ctx, final int vcardType,final byte[] filter) {
159 composer = createFilteredVCardComposer(ctx, vcardType, filter);
BluetoothPbapCallLogComposer.java 137 final int vcardType = (vcardVer21 ? VCardConfig.VCARD_TYPE_V21_GENERIC :
140 final VCardBuilder builder = new VCardBuilder(vcardType);
174 final int vcardType = (vcardVer21 ?
178 final VCardBuilder builder = new VCardBuilder(vcardType);
BluetoothPbapVcardManager.java 117 int vcardType;
119 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC;
121 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC;
125 vcardType |= VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT;
128 return BluetoothPbapUtils.createProfileVCard(mContext, vcardType,filter);
530 int vcardType;
532 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC;
534 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC;
537 vcardType |= VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT;
541 composer = BluetoothPbapUtils.createFilteredVCardComposer(mContext, vcardType,null)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
ExportProcessor.java 125 final int vcardType;
127 vcardType = VCardConfig.getVCardTypeFromString(
130 vcardType = VCardConfig.getVCardTypeFromString(exportType);
133 composer = new VCardComposer(mService, vcardType, true);
136 // int vcardType = (VCardConfig.VCARD_TYPE_V21_GENERIC |
138 // composer = new VCardComposer(ExportVCardActivity.this, vcardType, true);
ImportProcessor.java 215 private boolean readOneVCard(InputStream is, int vcardType, String charset,
234 new VCardParser_V30(vcardType) :
235 new VCardParser_V21(vcardType));

Completed in 2148 milliseconds