HomeSort by relevance Sort by last modified time
    Searched defs:vcard (Results 51 - 75 of 75) sorted by null

1 23

  /packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
BluetoothPbapUtils.java 26 import com.android.vcard.VCardComposer;
27 import com.android.vcard.VCardConfig;
42 import com.android.vcard.VCardComposer;
43 import com.android.vcard.VCardConfig;
60 // For vcard 2.0: VERSION,N,TEL is mandatory
61 // For vcard 3.0, VERSION,N,FN,TEL is mandatory
157 String vcard = null; local
165 vcard = composer.createOneEntry();
168 "Unable to create profile vcard. Error initializing composer: "
172 Log.e(TAG, "Unable to create profile vcard.", t)
    [all...]
BluetoothPbapVcardManager.java 53 import com.android.vcard.VCardComposer;
54 import com.android.vcard.VCardConfig;
55 import com.android.vcard.VCardPhoneNumberTranslationCallback;
111 * Create an owner vcard from the configured profile
116 // Currently only support Generic Vcard 2.1 and 3.0
132 //Owner vCard enhancement: Use "ME" profile if configured
134 String vcard = getOwnerPhoneNumberVcardFromProfile(vcardType21, filter); local
135 if (vcard != null && vcard.length() != 0) {
136 return vcard;
144 String vcard = composer.composeVCardForPhoneOwnNumber(Phone.TYPE_MOBILE, name, number, local
569 String vcard = composer.createOneEntry(); local
614 String vcard = composer.createOneEntry(vcardType21); local
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
CancelActivity.java 16 package com.android.contacts.common.vcard;
34 * The Activity for canceling vCard import/export.
SelectAccountActivity.java 16 package com.android.contacts.common.vcard;
ExportVCardActivity.java 16 package com.android.contacts.common.vcard;
43 * Shows a dialog confirming the export and asks actual vCard export to {@link VCardService}
63 Log.i(LOG_TAG, "Message returned from vCard server contains error code.");
74 Log.w(LOG_TAG, "Message returned from vCard server doesn't contain valid path");
80 Log.w(LOG_TAG, "Destination file name coming from vCard service is empty.");
177 Log.e(LOG_TAG, "Failed to start vCard service");
184 Log.e(LOG_TAG, "Failed to connect to vCard service.");
NfcImportVCardActivity.java 17 package com.android.contacts.common.vcard;
37 import com.android.vcard.VCardEntry;
38 import com.android.vcard.VCardEntryCounter;
39 import com.android.vcard.VCardParser;
40 import com.android.vcard.VCardParser_V21;
41 import com.android.vcard.VCardParser_V30;
42 import com.android.vcard.VCardSourceDetector;
43 import com.android.vcard.exception.VCardException;
44 import com.android.vcard.exception.VCardNestedException;
45 import com.android.vcard.exception.VCardVersionException
    [all...]
NotificationImportExportListener.java 17 package com.android.contacts.common.vcard;
34 import com.android.vcard.VCardEntry;
40 /** The tag used by vCard-related notifications. */
43 * The tag used by vCard-related failure notifications.
82 // We just want to show notification for the first vCard.
196 * @param totalCount The number of vCard entries to be imported. Used to show progress bar.
198 * @param currentCount The index of current vCard. Used to show progress bar.
207 // expect (for each vCard import/export request).
277 * Constructs a Notification telling the vCard import has failed.
ExportProcessor.java 16 package com.android.contacts.common.vcard;
31 import com.android.vcard.VCardComposer;
32 import com.android.vcard.VCardConfig;
99 if (DEBUG) Log.d(LOG_TAG, String.format("vCard export (id: %d) has started.", mJobId));
147 Log.e(LOG_TAG, "initialization of vCard composer failed: " + errorReason);
168 Log.i(LOG_TAG, "Export request is cancelled during composing vCard");
185 // vCard export is quite fast (compared to import), and frequent notifications
192 Log.i(LOG_TAG, "Successfully finished exporting vCard " + request.destUri);
ImportProcessor.java 16 package com.android.contacts.common.vcard;
23 import com.android.vcard.VCardEntry;
24 import com.android.vcard.VCardEntryCommitter;
25 import com.android.vcard.VCardEntryConstructor;
26 import com.android.vcard.VCardEntryHandler;
27 import com.android.vcard.VCardInterpreter;
28 import com.android.vcard.VCardParser;
29 import com.android.vcard.VCardParser_V21;
30 import com.android.vcard.VCardParser_V30;
31 import com.android.vcard.exception.VCardException
    [all...]
VCardService.java 16 package com.android.contacts.common.vcard;
47 * The class responsible for handling vCard import/export requests.
118 /* ** vCard exporter params ** */
136 /* ** end of vCard exporter params ** */
148 if (DEBUG) Log.d(LOG_TAG, "vCard Service is being created.");
404 Log.d(LOG_TAG, String.format("Received vCard import finish notification (id: %d). "
414 Log.d(LOG_TAG, String.format("Received vCard export finish notification (id: %d). "
461 * Returns an appropriate file name for vCard export. Returns null when impossible.
463 * @return destination path for a vCard file to be exported. null on error and mErrorReason
479 * There may not be any appropriate file name. If there are 99999 vCard files in th
    [all...]
ImportVCardActivity.java 17 package com.android.contacts.common.vcard;
52 import com.android.vcard.VCardEntryCounter;
53 import com.android.vcard.VCardParser;
54 import com.android.vcard.VCardParser_V21;
55 import com.android.vcard.VCardParser_V30;
56 import com.android.vcard.VCardSourceDetector;
57 import com.android.vcard.exception.VCardException;
58 import com.android.vcard.exception.VCardNestedException;
59 import com.android.vcard.exception.VCardVersionException;
80 * The class letting users to import vCard. This includes the UI part for letting them selec
    [all...]
  /frameworks/opt/vcard/java/com/android/vcard/
VCardComposer.java 16 package com.android.vcard;
57 * The class for composing vCard from Contacts information.
87 * Users have to manually take care of memory efficiency. Even one vCard may contain
91 * {@link VCardBuilder} is used to build each vCard.
105 "The vCard composer object is not correctly initialized";
109 "The Uri vCard composer received is not supported by the composer.";
114 // since usual vCard devices for Japanese devices already use it.
136 * Used only when {@link #mIsDoCoMo} is true. Set to true when the first vCard for DoCoMo
137 * vCard is emitted.
185 * Constructs for supporting call log entry vCard composing
450 final String vcard = createOneEntryInternal(mCursor.getString(mIdColumn), local
    [all...]
VCardParserImpl_V21.java 16 package com.android.vcard;
22 import com.android.vcard.exception.VCardAgentNotSupportedException;
23 import com.android.vcard.exception.VCardException;
24 import com.android.vcard.exception.VCardInvalidCommentLineException;
25 import com.android.vcard.exception.VCardInvalidLineException;
26 import com.android.vcard.exception.VCardVersionException;
41 * Basic implementation achieving vCard parsing. Based on vCard 2.1.
113 * "Encoding" in vCard is different from "Charset". It is mainly used for
135 * Set for storing unkonwn TYPE attributes, which is not acceptable in vCard
    [all...]
VCardParserImpl_V30.java 16 package com.android.vcard;
20 import com.android.vcard.exception.VCardException;
27 * Basic implementation achieving vCard 3.0 parsing.
30 * This class inherits vCard 2.1 implementation since technically they are similar,
74 * vCard 3.0 requires that the line with space at the beginning of the line
119 * vcard = [group "."] "BEGIN" ":" "VCARD" 1 * CRLF
121 * ;A vCard object MUST include the VERSION, FN and N types.
122 * [group "."] "END" ":" "VCARD" 1 * CRLF
126 // TODO: vCard 3.0 supports group
    [all...]
VCardConfig.java 16 package com.android.vcard;
27 * The class representing VCard related configurations. Useful static methods are not in this class
46 * We cannot determine which charset should be used to interpret lines in vCard,
51 * In order to avoid "misinterpretation" of charset and lose any data in vCard,
66 * encode the binary given from vCard.
88 * The flag indicating the vCard composer will add some "X-" properties used only in Android
89 * when the formal vCard specification does not have appropriate fields for that data.
92 * For example, Android accepts nickname information while vCard 2.1 does not.
93 * When this flag is on, vCard composer emits alternative "X-" property (like "X-NICKNAME")
97 * vCard parser code automatically parses the field emitted even when this flag is off
    [all...]
VCardConstants.java 16 package com.android.vcard;
22 /* package */ static final String LOG_TAG = "vCard";
48 public static final String PROPERTY_IMPP = "IMPP"; // RFC 4770 (vCard 3.0) and vCard 4.0
69 // Available in vCard 3.0. Shoud not use when composing vCard 2.1 file.
76 // Properties both ContactsStruct and de-fact vCard extensions
77 // Shown in http://en.wikipedia.org/wiki/VCard support are defined here.
95 // Properties for DoCoMo vCard.
114 // Abbreviation of "prefered" according to vCard 2.1 specification
    [all...]
VCardUtils.java 16 package com.android.vcard;
25 import com.android.vcard.exception.VCardException;
41 * Utilities for VCard handling codes.
121 // vCard and current (as of 2009-08-07) Contacts structure.
153 // OTHER (default in Android) should correspond to VOICE (default in vCard).
227 // prefer more specific types specified in the vCard. Note that OTHER and
228 // the other different types may appear simultaneously here, since vCard
390 // Unknown vCard type
391 Log.w(LOG_TAG, "Unknown vCard type");
438 * or not, which is required by vCard 2.1
    [all...]
VCardBuilder.java 16 package com.android.vcard;
37 import com.android.vcard.VCardUtils.PhoneNumberUtilsPort;
51 * The class which lets users create their own vCard String. Typical usage is as follows:
84 private static final String VCARD_DATA_VCARD = "VCARD";
138 Log.w(LOG_TAG, "Should not use vCard 4.0 when building vCard. " +
153 // vCard 2.1 requires charset.
154 // vCard 3.0 does not allow it but we found some devices use it to determine
199 Log.w(LOG_TAG, "Unknown vCard version detected.");
269 * properties for vCard 4.0
    [all...]
VCardEntry.java 17 package com.android.vcard;
19 import com.android.vcard.VCardUtils.PhoneNumberUtilsPort;
55 * Represents one vCard entry, which should start with "BEGIN:VCARD" and end
56 * with "END:VCARD". This class is for bridging between real vCard data and
57 * Android's {@link ContactsContract}, which means some aspects of vCard are
58 * dropped before this object being constructed. Raw vCard data should be first
63 * should contain them when it cannot convert vCard as a string to Android's
113 // TODO: vCard 4.0 logically has multiple formatted names and we need t
    [all...]
  /frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
VCardVerifier.java 16 package com.android.vcard.tests.testutils;
27 import com.android.vcard.VCardComposer;
28 import com.android.vcard.VCardConfig;
29 import com.android.vcard.VCardEntryConstructor;
30 import com.android.vcard.VCardParser;
31 import com.android.vcard.VCardUtils;
32 import com.android.vcard.exception.VCardException;
43 * The class lets users checks that given expected vCard data are same as given actual vCard data.
44 * Able to verify both vCard importer/exporter
364 final String vcard = composer.createOneEntry(mockGetEntityIteratorMethod); local
    [all...]
ImportTestProvider.java 16 package com.android.vcard.tests.testutils;
95 // just check whether vCard importer correctly inserts rellevent data.
  /frameworks/opt/bluetooth/src/android/bluetooth/client/map/
BluetoothMapBmessageParser.java 21 import com.android.vcard.VCardEntry;
22 import com.android.vcard.VCardEntryConstructor;
23 import com.android.vcard.VCardEntryHandler;
24 import com.android.vcard.VCardParser;
25 import com.android.vcard.VCardParser_V21;
26 import com.android.vcard.VCardParser_V30;
27 import com.android.vcard.exception.VCardException;
28 import com.android.vcard.exception.VCardVersionException;
47 private final static Property BEGIN_VCARD = new Property("BEGIN", "VCARD");
48 private final static Property END_VCARD = new Property("END", "VCARD");
128 StringBuilder vcard = new StringBuilder(); local
224 StringBuilder vcard = new StringBuilder(); local
363 VCardEntry vcard; field in class:BluetoothMapBmessageParser.VcardHandler
380 VCardEntry vcard = null; local
    [all...]
  /frameworks/opt/vcard/tests/src/com/android/vcard/tests/
VCardEntryTests.java 16 package com.android.vcard.tests;
18 import com.android.vcard.VCardConfig;
19 import com.android.vcard.VCardConstants;
20 import com.android.vcard.VCardEntry;
21 import com.android.vcard.VCardEntry.AndroidCustomData;
22 import com.android.vcard.VCardEntry.AnniversaryData;
23 import com.android.vcard.VCardEntry.BirthdayData;
24 import com.android.vcard.VCardEntry.EmailData;
25 import com.android.vcard.VCardEntry.EntryElement;
26 import com.android.vcard.VCardEntry.EntryLabel
    [all...]
VCardImporterTests.java 16 package com.android.vcard.tests;
33 import com.android.vcard.VCardConfig;
34 import com.android.vcard.tests.testutils.ContentValuesVerifier;
35 import com.android.vcard.tests.testutils.ContentValuesVerifierElem;
36 import com.android.vcard.tests.testutils.PropertyNodesVerifierElem.TypeSet;
37 import com.android.vcard.tests.testutils.VCardTestsBase;
    [all...]
VCardExporterTests.java 17 package com.android.vcard.tests;
19 import com.android.vcard.VCardConfig;
20 import com.android.vcard.tests.testutils.ContactEntry;
21 import com.android.vcard.tests.testutils.PropertyNodesVerifierElem;
22 import com.android.vcard.tests.testutils.PropertyNodesVerifierElem.TypeSet;
23 import com.android.vcard.tests.testutils.VCardTestsBase;
43 * Tests for the code related to vCard exporter, inculding vCard composer.
44 * This test class depends on vCard importer code, so if tests for vCard importer fail
    [all...]

Completed in 1531 milliseconds

1 23