/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 | 320 public static int getPhoneNumberFormat(final int vcardType) { 321 if (VCardConfig.isJapaneseDevice(vcardType)) { 369 final int vcardType) { 378 if (VCardConfig.isVersion40(vcardType)) { 380 } else if (VCardConfig.isVersion30(vcardType)) { 383 if (!VCardConfig.isVersion21(vcardType)) { 789 public static final VCardParser getAppropriateParser(int vcardType) 791 if (VCardConfig.isVersion21(vcardType)) { 793 } else if (VCardConfig.isVersion30(vcardType)) { 795 } 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/ |
BluetoothPbapCallLogComposer.java | 137 final int vcardType = (vcardVer21 ? VCardConfig.VCARD_TYPE_V21_GENERIC : 140 final VCardBuilder builder = new VCardBuilder(vcardType); 176 final int vcardType = (vcardVer21 ? 180 final VCardBuilder builder = new VCardBuilder(vcardType);
|
BluetoothPbapVcardManager.java | 440 int vcardType; 442 vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC; 444 vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC; 446 vcardType |= VCardConfig.FLAG_REFRAIN_IMAGE_EXPORT; 448 composer = new VCardComposer(mContext, vcardType, true);
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
ExportProcessor.java | 122 final int vcardType; 124 vcardType = VCardConfig.getVCardTypeFromString( 127 vcardType = VCardConfig.getVCardTypeFromString(exportType); 130 composer = new VCardComposer(mService, vcardType, true); 133 // int vcardType = (VCardConfig.VCARD_TYPE_V21_GENERIC | 135 // 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));
|