History log of /packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.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/ExportProcessor.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/ExportProcessor.java
9856fcee477d04f51bdbcbfdf632876c6b8a1173 01-Jun-2011 Katherine Kuan <katherinekuan@google.com> New People activity

- This is part 1 of bringing up the new People app
- Rename ContactBrowserActivity and related XMLs to PeopleActivity
- Change Contacts to People app launcher icon
- Create new task affinity for phone app activities
- Get rid of ContactsFrontDoor activity because it doesn't need
to distinguish between Dialtacts and ContactBrowserActivity anymore

Change-Id: I8c5e1ed540b294c1bda85409ca1499f88d4459ee
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
91a7d98ea5204b10082f7dd3654614969eb3a7a9 17-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use new interface for vCard export

Bug: 4066223
Change-Id: Ie1eb516a8163febd4438e19df5bc0892726942cb
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
35fef5aa9be18ed5164765028eb1bb392f13ab38 10-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use old version of vCard composition method

Must be after I91b65f881e1712ecf82c2e119a92bc70c43c623c

Bug: 4066223
Change-Id: Ibaafdf4e0e1e01713b721d216102ae711db7ba74
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
460ca43c0dd40259ac6f8e59c3b76f1e609927ae 09-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop using initWithRawContactsEntityUri()

Given we may need selection args, adding another init()
variants doesn't make sense.

Must be after Ib533a435cac3b4e4fa31527d02b0657fc4bd0377

Change-Id: Ifa775e06a7848bbf24860933b5d13a0038dca839
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
c3529cdd8bce4f1a4ebcf9cda378cb190ae8ff61 03-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use "export only" flag when exporting contact list

Must be with Iaf952a333b3818a76193d185f3036ea03ffc7f32

Bug: 3143497
Change-Id: I4b529a8805b1b0e219c16e93242b102659e8f2e7
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
82aff211e6ec2cec3bc92621c3261f46cdfc56f9 17-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop showing duplicate notification."
d063e3b982c443e20fafce53b42e096acad17747 17-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing duplicate notification.

Bug: 3440788
Change-Id: I11ecd04f77b1172b6460fc9e041417e51d379ccb
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.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/ExportProcessor.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/ExportProcessor.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/ExportProcessor.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/ExportProcessor.java
9706f4692b850ee7a612297b074e50bf5ab00811 16-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let importer/exporter show progress correctly.

Bug: 3201670
Change-Id: Ibb4b91e025ba89ed202c7919a89ecd8c9bd7e24a
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.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/ExportProcessor.java
58c066fa5c947fe8c17b17132edacfa421269466 13-Jul-2010 Daisuke Miyakawa <dmiyakawa@google.com> Supress Exception thrown by vCard exporter.

Change-Id: I252c14b5393c66bd1b1b9fd2c4bb1c6c83ae17b8
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
cfa39004ed111f131bfb7d8841d5b9a9ee8221fb 10-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming ContactListActivity to ContactBrowserActivity

Change-Id: I641eade0ede0e07bf6e7ec2c3a3430b4131b97c0
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
27834b2ae8bb5a65dfc20c212844d98d1c252cae 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving ContactsListActivity to a different package

Change-Id: Ia8b850ed0be700458e741461ab9ea48508bbbf0b
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
4db8cbc0c46d6abf23186aacce3e37bd5583cd3a 01-Jul-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix RemoteViewException.

Bug: 2801654
Change-Id: I335e40b56981b55dac35a8d35e357d1d30c0ce9a
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
b73b880e35221d994c1dd739268741baeabe3f9c 22-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Notification fix 2.

Bug: 2733143
Change-Id: I369ca66f4fdb4d29fb20b8d8c451e6f1cf1e5f22
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.java
32acae5f2aeafea8181aea97604eec88b648e340 22-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Modify notification procedure.

Bug: 2733143
Change-Id: Id1982857288301f56f51a958b3176adecf45959b
/packages/apps/Contacts/src/com/android/contacts/vcard/ExportProcessor.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/ExportProcessor.java