Commit Graph

1132 Commits

Author SHA1 Message Date
Flavio Lerda
31b594e129 Add IS_READ field to CallLog and VoicemailContract.
We had initially decided to merge the NEW field (from the call log) and
IS_READ field (from the voicemail contract) into the single NEW field
already present in the call log.

However, it turned out that the meaning of the two fields is slightly
different: NEW means the items has just been inserted (and the user is
not aware of it) while IS_READ represents whether the user has read this
specific message (or heard, in case of voicemails).

This change makes the IS_READ field public, as well as deletes the NEW
field from the voicemail contract, since it is no longer needed there.
The NEW field in the voicemail contract (in fact the entire voicemail
contract) has never been released (this feature is new in ICS).

Bug: 5036195
Change-Id: I740c51c1a8e6d2460050eaab9943fb38b1565058
2011-07-26 20:19:48 +01:00
Makoto Onuki
1bfe9a9b02 Merge "Add new contacts intent action for the "invite" feature" 2011-07-26 09:24:06 -07:00
Svetoslav Ganov
71f14a4e23 Merge "Touch exploration state set to clients asynchronously and depended on talking service being enabled." 2011-07-25 12:08:08 -07:00
Ben Murdoch
63d050034d Merge "Add a System.Secure setting for the Autofill server URL." 2011-07-25 09:41:46 -07:00
Flavio Lerda
72a3a86efe Merge "Add IS_READ column in call log and voicemail providers." 2011-07-25 07:44:02 -07:00
Flavio Lerda
651212d37d Add IS_READ column in call log and voicemail providers.
Initially we had exposed NEW in the voicemail provider instead of the
IS_READ field. However, NEW is already used in the call log to represent
a missed call for which a notification needs to be shown to the user.

On the other hand, voicemail need both be shown in a notification and
retain their own read/unread state, which is determined by whether the
user has opened the details of the voicemail.

This change introduces the IS_READ field for voicemails and exposes it
also via the call log content provider.

The NEW column in the voicemail content provider will be removed in a
follow-up.

Bug: 5036195
Change-Id: I2f8c04685a82cbf77f4778cf057ff62c7da1256a
2011-07-25 02:19:47 +01:00
Daisuke Miyakawa
15dec3967e Introduce param/column for group count
Bug: 5039532
Change-Id: Ibc604770cb61ca9fd92280e58f1cd1bbf30c216a
2011-07-24 17:43:03 -07:00
Svetoslav Ganov
00aabf7d18 Touch exploration state set to clients asynchronously and depended on talking service being enabled.
1. Upon registration of an accessibility client the latter received only
   the accessiiblity state and waiting for the touch exploration state
   to be sent by the system in async manner. This led the very first
   check of touch exploration state is checked a wrong value to be reported.
   Now a state of the accessibility layer is returned to the client
   upon registration.

2. Removing the dependency on talking accessibility service to be enabled
   for getting into touch exploration mode. What if the user wants to use
   an accessibility service that shows a dialog with the text of the touched
   view?

bug:5051546

Change-Id: Ib377babb3f560929ee73bd3d8b0d277341ba23f7
2011-07-22 17:38:54 -07:00
Daisuke Miyakawa
40c4321df4 Merge "Introduce hidden API Contacts.CONTENT_FREQUENT_URI" 2011-07-22 08:05:55 -07:00
satok
988323c57b Create TextServiceManager and SpellCheckerService
Bug: 4176026

This CL inherits https://android-git.corp.google.com/g/112600

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
    for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Iaa425c7915fe70767ad0b17bf6c6fbcd2a1200b2
2011-07-22 14:52:21 +09:00
Makoto Onuki
85a01a6b46 Add new contacts intent action for the "invite" feature
Bug 5061956

Change-Id: Iaf9926108db51adb3a8742130b1f0418186090c2
2011-07-21 15:37:12 -07:00
Daisuke Miyakawa
3604bc5020 Introduce hidden API Contacts.CONTENT_FREQUENT_URI
Required to support frequent view in Contacts app.

Bug: 5050315
Change-Id: Ia670229e4d3e793446b0a0dce2590e20709ee18c
2011-07-21 14:01:31 -07:00
Isaac Levy
d7b3e6a39b WifiWatchdogSM notification for first wifi disable
Also moved customizable settings into Settings.Secure and
added listeners for setting changes into the state machine.

Change-Id: Ia6859c71f7edae13062685867959adc423af4643
2011-07-21 10:34:56 -07:00
Ben Murdoch
9999c1d977 Add a System.Secure setting for the Autofill server URL.
The Autofill server is now configured as a system setting. Add
that setting and a method to be called over JNI from the chrome
stack to retrieve it.

See also external/chromium change I3a22ae42402f52207eee2d0d9df64700cb7c9f45

Bug: 4515820
Change-Id: I0aa85c5bef834b1120baaabdc2dd2e4e607a63b6
2011-07-21 18:13:22 +01:00
Dave Santoro
32911e72af Merge "Updates and fixes for the social stream API." 2011-07-20 12:43:26 -07:00
Dave Santoro
040e6b302c Updates and fixes for the social stream API.
- Social stream photo updates should use the new photo storage
  system instead of storing the image content in BLOBs.
- Package names need to be text, not numbers.  The status update
  documentation was incorrect.
- Social stream photos will include a URI the caller can open to
  get the photo content.
- Removed the max photo bytes from the stream item limit query,
  as we'll do appropriate resizing with the photo storage system.

Change-Id: I103ee1340c1a3772ae37add3684b0658c241a49c
2011-07-20 11:33:31 -07:00
Mike Lockwood
e19572ccb5 MediaScanner: Do separate bulk inserts for different media types
This should fix a bunch of problems introduced in the original bulk insert implementation

Also reverted two changes that are no longer necessary:

Revert "MediaScanner: Add virtual NO_MEDIA column to fix support for .nomedia files"

This reverts commit 92e1314ad9.

Revert "MediaScanner: fix breakage in updates"

This reverts commit 45aaa2a345.

Change-Id: Ibed66393467761c2c1ce48deb09bcac505b7d221
2011-07-20 10:58:45 -07:00
Debashish Chatterjee
e8c3986b5c Merge "Voicemail content provider API for api council review." 2011-07-20 05:34:01 -07:00
Dianne Hackborn
31ca854cdb Fix issue #4976176: Font size setting does not persist
Change-Id: Id58caf990bdd3aac5ea97aaba45652ffad1f678a
2011-07-19 14:58:28 -07:00
Debashish Chatterjee
5521e892f8 Voicemail content provider API for api council review.
This is a new content provider implemented to add visual voicemail
support in android.

Voicemail content provider is the central repository for storing
voicemails inserted by various voicemail sources. The content provider
also exposes a status table to let the voicemail source application
convey its current status to the system.

The primary application that reads from this content provider is the phone app.
The phone app shows voicemails along with other call entries within the
call log and optionally any relevent message about the voicemail source
status.

The implementation of this content provider can be found at
https://android-git.corp.google.com/w/?p=platform/packages/providers/ContactsProvider.git;a=blob;f=src/com/android/providers/contacts/VoicemailContentProvider.java

Change-Id: I8ad46aec20c70684f7bfa45530bbb90dd841d81a
2011-07-19 14:42:19 +01:00
Svetoslav Ganov
35bfedeaba Touch exploration separate setting and API to poll the latter state.
1. Seperated touch exploration to be a seperate setting rather being
   magically enabled by the system of accessiiblity is on the there
   is at leas one accessibility service that speaks enabled. Now
   there is a setting for requesting touch exploration but still the
   system will enabled it only if that makes sense i.e. accessibility
   is on and one accessibility service that speaks is enabled.

2. Added public API for checking of touch exploration is enabled.

3. Added description attribute in accessibility service declaration
   which will be shown to the user before enabling the service.

4. Added API for quick cloning of AccessibilityNodeInfo.

5. Added clone functionality to SparseArray, SparseIntArray, and
   SparseBooleanArray.

bug:5034010
bug:5033928

Change-Id: Ia442edbe55c20309244061cd9d24e0545c01b54f
2011-07-18 12:44:08 -07:00
Daniel Lehmann
9eebaf10e9 Merge "Use higher resolution in in-call UI if available." 2011-07-15 17:41:36 -07:00
Mike Lockwood
92e1314ad9 MediaScanner: Add virtual NO_MEDIA column to fix support for .nomedia files
Bug: 5025615

Change-Id: Ia910cd1c063292599a03b878755edb2e3cdbbb57
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-15 12:17:33 -04:00
Daniel Lehmann
f5d4652e02 Use higher resolution in in-call UI if available.
In the process, I created a second overload to the function that returns
the photo to allow returning either the high-res or the thumbnail version

Bug:5033899

Change-Id: I7be257eb54b296445e20561d318a70c382d6ade9
2011-07-14 22:16:21 -07:00
Dave Santoro
b6e5e7a740 Merge "Contacts contract update for display photos." 2011-07-13 16:23:44 -07:00
Daniel Lehmann
e6d3d28a6b Allow a sync adapter to provide an OPEN action for a group
Bug:4413120
Change-Id: I17572204dc9fad3406d2505c83586b9dbce177b9
2011-07-13 15:35:05 -07:00
Dave Santoro
a528237b80 Contacts contract update for display photos.
This adds support for storing larger, hi-res photos in the contacts
system.  Thumbnails continue to be stored in the Photo.PHOTO column
as BLOBs, while hi-res versions of the photos are stored in the file
system and referenced via a photo file ID (with metadata stored in
a new table).

See go/large-photo-design for details.

Change-Id: Ie182eaa6a0330e2eca0a732f201f20a91e4dc584
2011-07-13 14:50:22 -07:00
Dave Santoro
d7bdc18f87 Add data_set column for raw contacts and groups.
This provides a way for multiple sync adapters to exist for a single
account type.  Internally, for example, we can use these new columns
to support separate sync adapters (and sourced data) for Focus,
Emerald Sea, and Latitude.

Change-Id: I1b8dfd79e9fb2dfcee6ac6d4adb947093f5c2324
2011-07-11 17:24:45 -07:00
Daniel Lehmann
96fc8269ed Merge "Remove restricted white-listing" 2011-07-11 15:10:04 -07:00
Daniel Lehmann
9b94fd63fa Remove restricted white-listing
Commit after provider changes

Bug:4974334
Change-Id: I66bc3c13165ea86725b769c287475dec396841e2
2011-07-10 15:06:25 -07:00
Jeff Sharkey
104344e507 Cached NTP time for system services.
Uses NTP server and timeout from secure settings, or fallback to
defaults in resources.  Update various system services to use cached
NTP time when fresh enough, or force updates as needed.

Bug: 4517273
Change-Id: Ie1c4c4883836013d02ca0bbd850cf8949f93b34b
2011-07-10 14:25:18 -07:00
RoboErik
3672696dc5 Unhide CalendarContract apis
This exposes the set of apis necessary to unbundle the Calendar
app and sync adapters as well as allowing third party developers
to officially access the calendar provider. This is the current
final set of apis to expose, though changes may occur if we
discover new issues. The documentation and CTS tests are still
in progress.

Change-Id: If77f9a1d49a26725b44b1014e8d088be7ffbc707
2011-07-08 15:18:17 -07:00
RoboErik
58644028f9 Pseudo-final api fixes to CalendarContract
This removes the public projections and makes them arguments
that are passed in instead.

Change-Id: Ic9807d4994a9f2798b0ecf9a63194193715931e0
2011-07-08 13:48:53 -07:00
Daniel Lehmann
fb7a1446c0 Merge "Contacts contract changes for social updates." 2011-07-07 13:35:00 -07:00
Adrian Ludwig
1a65b441b1 Merge "Android security code review." 2011-07-07 08:08:13 -07:00
Gloria Wang
2da9eb7175 Merge "- Retrieve is_drm in MediaMetadataRetriever. - Add one more column in MediaStore to indicate whether a media file is drm-protected. - Remove old DRM code from Ringtone - Use the new DRM code in RingtoneManager" 2011-07-06 09:22:05 -07:00
Debashish Chatterjee
1752ae72ce Introduced a common SOURCE_PACKAGE_FIELD in VoicemailContract class.
This ensures that we use the same field name for both status and
voicemail tables.

Change-Id: I9f699939b8434bd41b5382e49dea63516cfce346
2011-07-05 09:13:30 +01:00
Debashish Chatterjee
9b8dd63445 Got rid of deprecated fields from VoicemailContract api.
No one should now be using these fields. SOURCE_CONTENT_URI was not
marked deprecated, but following a recent change in content provider
this field is also no more in use.

Change-Id: I58bb7872ba2f6cec169499d1a01d755232dde2f0
2011-07-04 15:19:23 +01:00
Debashish Chatterjee
29c1575bf6 Android security code review.
For now only contains a whitespace change per file to enable creating a
valid change list.

Change-Id: I0ea8ed6d44c3b7f0a779bc163f39fd304b4361e1
2011-07-04 09:49:01 +01:00
Gloria Wang
82428a862f - Retrieve is_drm in MediaMetadataRetriever.
- Add one more column in MediaStore to indicate whether a
  media file is drm-protected.
- Remove old DRM code from Ringtone
- Use the new DRM code in RingtoneManager

Change-Id: I1311fd1c04841c2cd47df6c901589966cf55a692
2011-07-01 16:52:28 -07:00
Debashish Chatterjee
f4bf100225 Cleanup VoicemailContract.
Moved constants/methods specific to Voicemails and Status table under
respective classes.

Marked currently used constants as deprecated, which will be deleted
once the apps using it is modified.

Change-Id: I122439c32ac62e9ae83c4c8468f5160a79743335
2011-07-01 19:21:02 +01:00
Debashish Chatterjee
73f0a3a6bd VoicemailContract API change to add voicemail status table fields.
See design doc:
https://docs.google.com/a/google.com/document/pub?id=1FM2cl7Qqt002m9PahbpxUAJNM8rdH1b08IHePi-qaDA

Change-Id: Ib471f50d32ed77eed45a4e0857e3053be8a6582d
2011-07-01 14:08:06 +01:00
RoboErik
5612b3d125 Merge "API updates to respond to comments" 2011-06-30 13:30:15 -07:00
RoboErik
083cd2dfeb API updates to respond to comments
Change-Id: I58597b722fc0c39da53570a45c859372bf4c3782
2011-06-30 13:09:33 -07:00
Dave Santoro
d414f108e7 Contacts contract changes for social updates.
This change adds support for a richer API supporting social status
updates.

The new API supports providing multiple status updates (stream items)
to be associated with a single raw contact, and for multiple photos
(stream item photos) to be associated with each stream item.  A
limited number of stream items will be stored - callers can query for
the limit to optimize calls.  Any inserts beyond the limit will
result in expiration of the oldest item.

Change-Id: Ib46fdf8864472d4a1be250b9051e7d37ec32c089
2011-06-29 23:22:09 -07:00
Flavio Lerda
9ef78f00d2 Constants for accessing call log with voicemails.
Move the constants from the contacts provider implementation to the
framework.

These constants will remain hidden as currently only the system is
allowed access to the voicemail, protected by a signature permission.

Change-Id: I7cdb0fe217603b3d755238067a877f4209f4c26c
2011-06-29 10:51:59 +01:00
Daisuke Miyakawa
64c044f30e Merge "Use new usage feedback API in phone app / strequent" 2011-06-28 14:02:01 -07:00
Daisuke Miyakawa
f468591caf Use new usage feedback API in phone app / strequent
Basiaclly two changes included:

- Let CallLog use new data usage feedback API, so that
  ContactsProvider2 is able to figure out what type of contact
  method is used when a person is contacted.
- introduce phone_only parameter for strequent uri, which enables
  Contacts app to obtain a contact list for recently phone-called
  contacts.

markAsContacted() isn't used anymore, as nhe new API takes care of
old counters (TIMES_CONTACTED/LAST_TIME_CONTACTED) too.

Bug: 4371572
Change-Id: Ie193bb91ee49b18f4a546a1f52be780bb514301d
2011-06-28 11:12:33 -07:00
Debashish Chatterjee
5ba369f4f7 Merge "Got rid of deprecated EXTRA_CHANGED_BY from VoicemailContract." 2011-06-28 09:31:27 -07:00
Narayan Kamath
962402f46a Merge "Make the system global search provider a user setting." 2011-06-28 09:12:53 -07:00