History log of /packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1167da421b68952a590b050c32def7e0eff7cca6 03-Aug-2011 Jeff Hamilton <jham@android.com> Move the notification logic out to a listener
so there can be an Activity based version
of the listener as well for NFC VCARD imports.

Removed the now unused showImmediatley from
ImportRequest.

Change-Id: I37292676239444516bcc11486fc53e69b869dfa6
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
e967f7cb12e02f7c852670c315a284aed1310dc1 30-Jun-2011 Jeff Hamilton <jham@android.com> Allow importing vcards directly from NFC.

There is no longer a need for a content provider
to hold the vcard data, it is processed directly
from the inbound NFC intent.

Upon successful import the contact is opened.

Change-Id: Ib49305d36d2448097af60206eab49133ebca655f
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
53d4b8eef85ccdc2e750a36307492c97cfbb225c 01-Jul-2011 Flavio Lerda <flerda@google.com> Uses a tag for vCard-related notifications.

Currently, we are adding notifications for vCard events using an
identifier. However, these identifiers need to be unique within the
application, which is not easy in this case since an unbounded number of
identifier can be used (i.e., they are based on the job id of the vCard
being imported).

Instead, add a tag to the notification, so that notifications for vCard
cannot conflict (and replace) notifications coming from somewhere else
in the application.

Change-Id: Ia544fc4e11c43799222c30cece9330478208fd46
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
6d42e4933d42fc2805f921adf3a5e65d64e16238 07-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make multi import one request

VCardService may exit after processing the first request for
multiple imports, in which the user may see strange "rejected"
messages. We should pack those multiple import into one message,
which forces VCardService to process after all the requests.

Bug: 4540627
Change-Id: I4d645eb3a04e35da465b0c4181cbff5bf7ebf029
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
fcc7e386cf027b1fe31fe551f365843218f6fb35 15-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Let MediaScanner know an exported file.

Bug: 3452599
Change-Id: Iad8f00360a816e32bf322b4e167800e3d49810d1
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
e9ec5ddb542787b7b5d94d9ea59b05d1f405c5aa 16-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Handle null in vCard import

PendingIntent#getActivity() doesn't accept null while
the method allows null.

Bug: 3360839
Change-Id: Ibebaab64b6091679c553f942a48215a8d5b05d3d
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
ddf4270c7c09562dc4eff6f66940ceb89ac8995f 10-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show Notification when parsing vCard failed.

Bug: 3330767
Change-Id: Ide850c72a49deef50b8ab547abb33ff8738adc22
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
ffc16e6a713cc877e1fa0686ae84e6261fccb3e8 28-Dec-2010 Daisuke Miyakawa <dmiyakawa@google.com> Detect unknown filename in importing.

Bug: 3304661
Change-Id: I05e92cf01f91cf4ba1bce7fe5b6a7ed1ced48d7f
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
783a09a8770f4322a45cee456adefbbc71218ece 22-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix bugs around vCard export and use new APIs

1) let vCard exporter select correct destination.
Multiple vCard exports don't select different destination:
if users request "export", "import" and "export", they will have
just one exported vCard with imported data, not two (one without
import result and another with the result). This is because
each vCard exporter independently refers to existing files in USB
storage.

This changes make vCard service check available files and remember
file names already reserved.

2) use new Notification.Builder API
3) show user-friendly message when there's no vCard on USB storage

Bug: 3219880
Bug: 3219906
Change-Id: I159d25439023eb10934729a00f4da6d157e44b09
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
ab59660a17e896593f2a07c2e1191c2c23e3e353 19-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Allow users to cancel each import/export.

- add cancel capability for vCard export.
- use jobId for Notification id, so that users can cancel each
vCard import/export request.

Note:
As for Notification id, it may conflict with each other when
VCardService is shutdown.

Minor changes:
- add file name to each notification: users can see "xxx.vcf
is successfully imported" instead of "vcard is successfully
imported"
- rename mCancelled to mCanceled. strings.xml has "canceled",
so inconsistent inside the app. Ignore the inconsistency
between the spell in the app and Future#isCancelled().

Bug: 3215008
Change-Id: I7532e3d1b35a8bbeb694e47077554e36190482ed
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
910d3e7854e657d20ab8c3a5a330b2a3188b1c74 17-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Simplify vCard implementation.

- make ImportProcessor/ExportProcessor implement both Runnable and
Future (as FutureRunnable, introduced in 1.6). Getter capability
for Future interface is disabled.
- use just one hash map instead of managing three different ones.
Now that both processors are also Future<Object>, it is much
easier to do so.

Change-Id: Ia9deba6f4063eaae48d42a295d2ce84aca0a424f
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
f219f6ee48c503bb2b628c3f2aeff53b15c5a947 17-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make VCardService stop when appropriate.

- introduce stopServiceWhenNoJob()
- make the service use it when some job is finished or canceled

Bug: 3201525
Change-Id: I4e07446c310a6296adead6e7baae91c71e52d569
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
7c819a1a434e02c54f6d216aa3b1a0d08cc93f50 09-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Rewrite vCard importer/exporter.

- stop using ServiceConnection inside ImportProcessor/ExportProcessor.
Just using methods in VCardService would be much less complicated.
- make VCardService responsible for concurrent import/export requests.
Previously ImportProcessor/ExportProcessor were responsible for them,
which made the code unnecessary complex.
- use Java concurrent library instead of manually managing requests.
- remove immature test. We need to rewrite it in the future.
- add logs.

Bug: 3064531
Bug: 3188526
Change-Id: I2565d91fb7557d786df42da4b8755cd5311434b9
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
aba4353bcf77ba91463cfd079feec3b6c6f59c5c 03-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix vCard importer flow.

- call startService() before bindService() to suppress connection
leakage
- make cancel operation work properly
- take care of cache files appropriately
- add useful logs
- show Toast every time when import started

Note: I still see some connection leakage in ImportVCardActivity.

Bug: 3150402
Bug: 3159855
Change-Id: Iaec6d4e5d8ebcda84e2df5571f87bd3c59e5b264
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
55663c5a40f34891727e2415eee11caab53b45bd 10-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix "Service not registered" bug.

When reusing existing ServiceConnection object, which is once
bound and unbound, the system does'nt allow the second bind()
request and crash the whole app.

Bug: 3060589
Change-Id: Ie66bb7e09a6cf03789b2ea72f1fe9085435d9a48
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
f6536030ea4125a33deee1243c26aecc84772b95 29-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let VCardService handle cancel before import

Bug: 3041048
Change-Id: I37a6f5a264fe0699108e49cd754d0ece667c55e0
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
18b5190d6ed37be04d153a5d6f205076b38ac479 19-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add Cancel capability toward vCard import procedure.

Bug: 2801638

Change-Id: Ia563fa4aed48ad01a6fbb29b350a35c46b7085a3
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java
d8fb81a0024d30c027ea6ebf57d29d3ff10453fb 09-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactoring vCard importer/exporter.

Rename ImportVCardService to VCardService and make it responsible for all the import/export works.
The service itself asks ImportProcessor/ExportProcessor to handle each request.
This implementation seems much more easier to be tested than the previous ones.

Bug: 2733143

Change-Id: I7b7d391e4ba294f74c8bbcdfb053368b61b498ca
/packages/apps/Contacts/src/com/android/contacts/vcard/VCardService.java