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

1 2

  /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 170 public VCardComposer(Context context, int vcardType) {
171 this(context, vcardType, null, true);
174 public VCardComposer(Context context, int vcardType, String charset) {
175 this(context, vcardType, charset, true);
181 public VCardComposer(final Context context, final int vcardType,
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,
196 this(context, context.getContentResolver(), vcardType, charset, careHandlerErrors);
205 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 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) {
600 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);
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
CustomVCardEntryConstructor.java 73 public CustomVCardEntryConstructor(final int vcardType) {
74 this(vcardType, null);
77 public CustomVCardEntryConstructor(final int vcardType, final Account account) {
78 mVCardType = vcardType;
VCardRequest.java 155 int vcardType = detector.getEstimatedType();
156 if (vcardType == VCardConfig.VCARD_TYPE_UNKNOWN) {
157 vcardType = VCardConfig.getVCardTypeFromString(DEFAULT_VCARD_TYPE);
160 new CustomVCardEntryConstructor(vcardType, null);
164 if (!readOneVCardFile(uri, vcardType, builder, false, null)) {
175 private boolean readOneVCardFile(final Uri uri, final int vcardType,
185 vCardParser = new VCardParser_V21(vcardType);
204 vCardParser = new VCardParser_V30(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...]
  /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 115 int vcardType;
117 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC;
119 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC;
123 vcardType |= VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT;
126 return BluetoothPbapUtils.createProfileVCard(mContext, vcardType,filter);
540 int vcardType;
542 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC;
544 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC;
547 vcardType |= VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT;
552 composer = BluetoothPbapUtils.createFilteredVCardComposer(mContext, vcardType, null)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
ExportProcessor.java 139 final int vcardType;
141 vcardType = VCardConfig.getVCardTypeFromString(
144 vcardType = VCardConfig.getVCardTypeFromString(exportType);
147 composer = new VCardComposer(mService, vcardType, true);
150 // int vcardType = (VCardConfig.VCARD_TYPE_V21_GENERIC |
152 // 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 355 milliseconds

1 2