/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardParserTests.java | 16 package com.android.vcard.tests; 18 import com.android.vcard.VCardInterpreter; 19 import com.android.vcard.VCardParser; 20 import com.android.vcard.VCardParser_V21; 21 import com.android.vcard.VCardProperty; 22 import com.android.vcard.exception.VCardException; 119 .addExpectedOrder(Order.START_ENTRY) // First nested vCard begins 122 .addExpectedOrder(Order.END_ENTRY) // First nested vCard ends 123 .addExpectedOrder(Order.START_ENTRY) // Second nested vCard begins 126 .addExpectedOrder(Order.END_ENTRY) // Second nested vCard end [all...] |
VCardImporterNestTests.java | 16 package com.android.vcard.tests; 18 import com.android.vcard.tests.testutils.VCardTestsBase; 21 * Test cases specific for nested vCard.
|
VCardTestRunner.java | 16 package com.android.vcard.tests; 24 * Usage: adb shell am instrument -w com.android.vcard.tests/.VCardTestRunnerTestRunner
|
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardEntryCounter.java | 16 package com.android.vcard; 19 * The class which just counts the number of vCard entries in the specified input.
|
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 142 * vcard = [group "."] "BEGIN" ":" "VCARD" 1 * CRLF 144 * ;A vCard object MUST include the VERSION, FN and N types. 145 * [group "."] "END" ":" "VCARD" 1 * CRLF 149 // TODO: vCard 3.0 supports group [all...] |
VCardParserImpl_V40.java | 16 package com.android.vcard; 23 * Basic implementation parsing vCard 4.0. 26 * vCard 4.0 is not published yet. Also this implementation is premature. 60 // TODO: more strictly, vCard 4.0 requires different type of unescaping rule
|
VCardEntryConstructor.java | 16 package com.android.vcard; 30 * to easily handle each vCard entry. 33 * This class understand details inside vCard and translates it to {@link VCardEntry}. 39 * If you want to know the detail inside vCard, it would be better to implement 48 * Represents current stack of VCardEntry. Used to support nested vCard (vCard 2.1).
|
VCardProperty.java | 16 package com.android.vcard; 29 * Represents vCard's property, or logical "one line" of each vCard entry. 32 * Given a vCard below, objects for <code>N:name</code>, <code>TEL:1111111111</code> are 36 * BEGIN:VCARD 39 * END:VCARD 42 * vCard's property has three elements: name, parameter (or param), and value. Name is the name 52 * which are same as "TYPE=WORK" and "TYPE=VOICE". In vCard 3.0, we can even express them as 58 * separable or not is specified by vCard specs.
|
VCardSourceDetector.java | 16 package com.android.vcard; 28 * The class which tries to detects the source of a vCard file from its contents. 31 * The specification of vCard (including both 2.1 and 3.0) is not so strict as to 34 * Also we cannot store all vCard entries in memory, while there's no specification 35 * how big the vCard entry would become after the parse. 38 * This class is usually used for the "first scan", in which we can understand which vCard 64 * constant when you don't want to let a vCard parser rely on estimation for parse type. 69 // We confirmed they usually use UTF-8, but not sure about vCard type. 139 * @return The available type can be used with vCard parser. You probably need to
|
/frameworks/opt/vcard/java/com/android/vcard/exception/ |
VCardNestedException.java | 17 package com.android.vcard.exception; 20 * VCardException thrown when VCard is nested without VCardParser's being notified.
|
VCardVersionException.java | 16 package com.android.vcard.exception; 19 * VCardException used only when the version of the vCard is different.
|
VCardNotSupportedException.java | 16 package com.android.vcard.exception; 19 * The exception which tells that the input VCard is probably valid from the view of 23 * It may be good to ask users to send a report with the VCard example
|
/frameworks/opt/vcard/tests/res/raw/ |
v21_japanese_2.vcf | 1 BEGIN:VCARD
10 END:VCARD
|
v21_base64_no_2_crlf.vcf | 1 BEGIN:VCARD
78 END:VCARD
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
VCardVerifier.java | 16 package com.android.vcard.tests.testutils; 18 import com.android.vcard.VCardComposer; 19 import com.android.vcard.VCardConfig; 20 import com.android.vcard.VCardEntryConstructor; 21 import com.android.vcard.VCardInterpreter; 22 import com.android.vcard.VCardParser; 23 import com.android.vcard.VCardUtils; 24 import com.android.vcard.exception.VCardException; 45 * The class lets users checks that given expected vCard data are same as given actual vCard data 352 final String vcard = composer.createOneEntry(mockGetEntityIteratorMethod); local [all...] |
ContentValuesVerifier.java | 16 package com.android.vcard.tests.testutils; 20 import com.android.vcard.VCardEntry; 21 import com.android.vcard.VCardEntryHandler;
|
LineVerifier.java | 16 package com.android.vcard.tests.testutils; 42 public void verify(String vcard) { 48 lineVerifier.verify(vcard);
|
PropertyNodesVerifier.java | 16 package com.android.vcard.tests.testutils; 20 import com.android.vcard.VCardParser; 21 import com.android.vcard.VCardUtils; 22 import com.android.vcard.exception.VCardException;
|
PropertyNode.java | 16 package com.android.vcard.tests.testutils; 20 import com.android.vcard.VCardEntry; 33 * Previously used in main vCard handling code but now exists only for testing. 38 * interpretation of the content of each vCard. We cannot know whether vCard parser or 55 * defined in vCard 3.0 (See also RFC 2426). multiple-values are stored as 64 /** Store group values. Used only in VCard. */ 115 // vCard may contain more than one same line in one entry, while HashSet or any other
|
/packages/providers/ContactsProvider/ |
proguard.flags | 5 -keep class com.android.vcard.VCardComposer {
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
NfcImportVCardActivity.java | 17 package com.android.contacts.vcard; 22 import com.android.vcard.VCardEntry; 23 import com.android.vcard.VCardEntryCounter; 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.VCardSourceDetector; 28 import com.android.vcard.exception.VCardException; 29 import com.android.vcard.exception.VCardNestedException; 30 import com.android.vcard.exception.VCardVersionException [all...] |
ProcessorBase.java | 16 package com.android.contacts.vcard; 24 * A base processor class. One instance processes vCard one import/export request (imports a given 25 * vCard or exports a vCard). Expected to be used with {@link ExecutorService}.
|
ThreadStarter.java | 16 package com.android.contacts.vcard;
|
/packages/apps/Contacts/ |
Android.mk | 10 com.android.vcard \
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
BluetoothPbapVcardManager.java | 51 import com.android.vcard.VCardComposer; 52 import com.android.vcard.VCardConfig; 54 import com.android.vcard.VCardPhoneNumberTranslationCallback; 111 String vcard = composer.composeVCardForPhoneOwnNumber(Phone.TYPE_MOBILE, name, number, local 113 return vcard; 439 // Currently only support Generic Vcard 2.1 and 3.0 450 // done by vCard library by default. 457 // so use those when exporting phone numbers via vCard. 476 String vcard = composer.createOneEntry(); local 477 if (vcard == null) 514 String vcard = composer.createOneEntry(vcardType21); local [all...] |