5051 Commits

Author SHA1 Message Date
Jim Miller
14cabdabac Merge "Add setting to disable keyguard widgets" into klp-dev 2013-08-24 01:28:28 +00:00
Jim Miller
f45bb40388 Add setting to disable keyguard widgets
This allows disabling keyguard widgets through Settings.
On new devices, the setting is turned off by default.  If the
user currently has widgets in keyguard, then we keep them
and re-enable the setting.

Change-Id: I7258921231d439925ac8627105710efa99309094
2013-08-23 17:36:30 -07:00
Jeff Sharkey
365768fd35 Merge "Return EXIF thumbnails when available." into klp-dev 2013-08-23 23:18:11 +00:00
Jeff Sharkey
98d6212327 Merge "Add CancellationSignal support to file operations." into klp-dev 2013-08-23 23:17:47 +00:00
Baligh Uddin
4f5e080486 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-23 21:26:48 +00:00
Svetoslav Ganov
826debf5f8 Merge "Print UI bug fixing and printer discovery refactoring." into klp-dev 2013-08-23 20:00:29 +00:00
Jeff Sharkey
6398343e83 Return EXIF thumbnails when available.
Adds new ExifInterface method to extract the thumbnail range from
a larger image file, and use that to return an AssetFileDescriptor.

When decoding an AssetFileDescriptor thumbnail with offsets, read out
the raw data entirely, since Skia uses lseek() aggressively.

Bug: 10412208
Change-Id: I7906cdf82c0c3794cec7043c801a86f66efeb143
2013-08-23 12:19:19 -07:00
Baligh Uddin
8a2df16745 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-23 18:59:50 +00:00
Baligh Uddin
e1f9e2f60d Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-23 18:59:33 +00:00
Svetoslav Ganov
44720af55a Print UI bug fixing and printer discovery refactoring.
1. Added support for selecting a printer from the all printers activity
   that is not in the initial printer selection drop down. The user
   initially sees a sub set of the printers in the drop down and the
   last option is to see all printers in a separate activity. Some
   of the printers in the all printers activity are not shown in the
   initial drop down.

2. Refactored printer discovery by adding (private for now) printer
   discovery app facing APIs. These APIs are needed to support multiple
   printer selection activities (print dialog and all printers activities)
   and also the settings for showing all printers for a service.

   Now multiple apps can request observing for printers and there is
   a centralized mediator that ensures the same printer discovery
   session is used. The mediator dispatches printer discovery specific
   requests to print services. It also aggregates discovered printers
   and delivers them to the interested apps. The mediator minimizes
   printer discovery session creation and starting and stopping discovery
   by sharing the same discovery session and discovery window with
   multiple apps. Lastly, the mediator takes care of print services
   enabled during discovery by bringing them up to the current
   discovery state (create discovery session and start discovery if
   needed). The mediator also reports disappearing of the printers
   of a service removed during discovery and notifies a newly
   registered observers for the currnet printers if the observers are
   added during an active printer discovery session.

3. Fixed bugs in the print UI and implemented some UX tweaks.

Change-Id: I4d0b0c5a6c6f1809b2ba5dbc8e9d63ab3d48f1ef
2013-08-23 18:36:33 +00:00
Jeff Sharkey
bd3b902567 Add CancellationSignal support to file operations.
Since ContentProvider file operations can end up doing substantial
network I/O before returning the file, allow clients to cancel their
file requests with CancellationSignal.

Ideally this would only be needed for openFile(), but ContentResolver
heavily relies on openAssetFile() and openTypedAssetFile() for common
cases.

Also improve documentation to mention reliable ParcelFileDescriptors
and encourage developers to move away from "rw" combination modes,
since they restrict provider flexibility.  Mention more about places
where pipes or socket pairs could be returned.

Improve DocumentsContract documentation.

Bug: 10329944
Change-Id: I49b2825ea433eb051624c4da3b77612fe3ffc99c
2013-08-23 11:27:25 -07:00
Jason Monk
4359d56420 Merge "System binds PAC Local Proxy instead of self start" into klp-dev 2013-08-23 17:53:33 +00:00
Baligh Uddin
3f6cb532c5 Import translations. DO NOT MERGE
Change-Id: Ieca373df9de5971c95e6954d6262c618420d2eb3
Auto-generated-cl: translation import
2013-08-23 10:10:53 -07:00
Baligh Uddin
7e361bcf7f Import translations. DO NOT MERGE
Change-Id: I7cb875bb18871021fb9972b427713440c8e95be6
Auto-generated-cl: translation import
2013-08-23 10:09:45 -07:00
Baligh Uddin
20e4beea1c Import translations. DO NOT MERGE
Change-Id: Ibbd7d5bc59126933bbcf0370cbdcd590f89d0ad7
Auto-generated-cl: translation import
2013-08-23 10:08:48 -07:00
John Spurlock
17f832296c Revert GPS status bar icon to the correct size.
Bug:10452779
Change-Id: Idfb5097e33d10be1106c0a10be3d5794388f7d08
2013-08-23 08:49:14 -04:00
John Spurlock
d28cb3e757 Merge "Remove more unused icons." into klp-dev 2013-08-23 12:22:53 +00:00
John Spurlock
b77edbfdab Improve transparent bar transitions.
1. Migrate transparent transitions to the new optimized
background color animations.

2. Ensure sysui animation transparent -> opaque has enough
time to run before window manager crops off the content area.

3. Lose the individual alpha on each status bar icon if the bars
are not opaque.  Animate the alpha if visible, make sure they
play together.

4. Documentation typo fix found in AnimatorSet.

Bug:10344949
Change-Id: I615668ce3c552d3df15dbba5cdeeca67549a0220
2013-08-23 08:08:24 -04:00
John Spurlock
9320645164 Remove more unused icons.
By also removing their obsolete layout referents.

Bug:10344949
Change-Id: Iff8bf686507c63239f058de82ebc776d27480b4f
2013-08-23 08:07:11 -04:00
Jason Monk
da205a749f System binds PAC Local Proxy instead of self start
The PAC Local Proxy priviously caught proxy broadcasts and started itself
when needed.  Now it is bound by the system the same way the pac processing
service is started.

Bug: 10425091
Change-Id: I746daa21645a11aa18ef464f00c8cb5536d8c86f
2013-08-22 16:33:26 -04:00
Geoffrey Borggaard
f4e8eb8342 Merge "Notify the users if a user installed SSL CA Cert is present." into klp-dev 2013-08-22 18:13:53 +00:00
Geoffrey Borggaard
348fc4867e Notify the users if a user installed SSL CA Cert is present.
Adds a tile to quick settings when a cert is present.  Message varies
depending on if this device is managed or a consumer device.
Bug: 10105918
Change-Id: Ifbe78c10638ef6e2a4661e8d18b44b8913a2cf9d
2013-08-22 18:09:57 +00:00
Chris Wren
6d15a364f2 use ONGOING as the signal not to auto-hide heads up
instead of INSISTENT or NO_CLEAR
required some disambiguation in places where ONGOING is already used.

Bug: 10412149
Change-Id: Iea7d698846c76a464cae511a3a8e3908b114edfe
2013-08-22 10:45:32 -04:00
Chris Wren
e03f4e1fae handle updates to the notification in the heads up
Bug: 10226356
Change-Id: I5bc9aecc3849617092e863868a6df610c615048b
2013-08-22 10:45:31 -04:00
John Spurlock
83208e34f6 Remove obsolete sysbar icons and layouts.
Remove icons no longer referenced in source or layout files.
Some icons are referenced in obsolete layouts, remove those
as well.

Bug:10344949
Change-Id: Ifc2e4c01534499b687cebd3e32db61e9c7a92e4a
2013-08-22 09:41:39 -04:00
David Christie
8b525e75a0 Merge "Switch QuickSettings to new LocationMode setting api." into klp-dev 2013-08-21 17:40:43 +00:00
John Spurlock
b06b8b0267 Merge "Improve transient bar transitions." into klp-dev 2013-08-21 13:36:36 +00:00
Jason Monk
ff796e5a24 Merge "Change PacProcessor to Android Service" into klp-dev 2013-08-20 23:35:26 +00:00
David Christie
448baa08d0 Switch QuickSettings to new LocationMode setting api.
Change-Id: Ie3981741ae422562e9c703b76d10278f285739c6
2013-08-20 15:22:33 -07:00
Sandeep Siddhartha
aed96e1b2b Merge "Add hotword detection in insecure keyguard" into klp-dev 2013-08-20 21:41:44 +00:00
Jason Monk
9ced3cd9d6 Change PacProcessor to Android Service
This switches the PacProcessor over to an Android Service.  The service
is bound and unbound by the PacManager, which also adds it to the
ServiceManager, allowing for Context-Free access by the PacProxySelector
in all DVMs.

bug:10182711
Change-Id: Id1ff7660be56e8976cdcccd76e041feb47a17a61
2013-08-20 17:36:39 -04:00
Sandeep Siddhartha
f4d922b2d9 Add hotword detection in insecure keyguard
- This talks to a service that's implemented by the Search app
- The AIDL interface may be moved to the framework in a later CL

Change-Id: I26553e46f7d17ba4ac7a952c871b28b261cba975
2013-08-20 14:17:02 -07:00
Jason Monk
b7ac0d02d6 Merge "Fix ProxyHandler to only run when needed" into klp-dev 2013-08-20 21:13:24 +00:00
Svetoslav
d30921672c Merge "Implemented advanced printer selection and API refactoring." into klp-dev 2013-08-20 20:42:05 +00:00
John Spurlock
5b9145bf99 Improve transient bar transitions.
1. If app clears transient flag w/ a gesture, the touch-outside
listener would always win, causing an unsightly hide + immediate
reshow.  Instead, give the app some time to clear the flag, then
perform a smooth transition in place.

2. When the transient bars are hidden, we do not know ahead of time
which background will be used on reshow (if transient bars are
revealed, the background is semi-transparent, if transient bars
are cleared, the background is opaque).  Window manager is responsible
for showing windows, but sysui is responsible for setting the view
background.  Therefore, we need some level of coordination between
the two in this case.  Introduce two new non-public sysui flags
that represent the window manager's request to reshow the hidden
bars, but do not reshow until sysui acknowledges (by clearing the flag).
This gives sysui whatever time is necessary to prepare itself for
reshow, avoiding unsightly blip from opaque -> transparent during
the enter animation.

3. When both system bars are hidden, any low-profile changes are
moot.  Avoid unsightly low-profile animations during bar reshow
by suppressing the flag in this case.

4. Improve transient bar home -> launcher transition by cancelling
the -> opaque animation.  This also fixes a bug where hitting
home from the transient bar would leave you with a semi-transparent
bar in a non-transient state.

Bug:10284800
Change-Id: I238210561d8d5f70c1a517283b986c9105a1ec75
2013-08-20 15:37:03 -04:00
Jason Monk
433ba46fcc Fix ProxyHandler to only run when needed
Changes ProxyHandler service to only be active when needed for PAC services.

Bug: 10260877
Change-Id: If42e53e805488fd08381baa96409ba3027661c70
2013-08-20 15:27:51 -04:00
Lorenzo Colitti
743218d7a1 Merge "Display signal strength on data-only SIMs." into klp-dev 2013-08-20 01:17:31 +00:00
Svetoslav
269403b032 Implemented advanced printer selection and API refactoring.
1. Added past printer history tracking and merging favorite printers
   with discovered printers.

2. Added save as PDF support.

3. Added all printers activity with search capability and optional
   add printers chooser (if any print service provides add printers
   activity)

4. Refactored the printer discovery session APIs. Now one session
   can have multiple window discovery windows and the session stores
   the printers found during past discovery periods.

5. Merged the print spooler and the print spooler service - much
   simpler and easier to maintain.

Change-Id: I4830b0eb6367e1c748b768a5ea9ea11baf36cfad
2013-08-19 13:24:11 -07:00
Jeff Sharkey
6b73eb28d7 Merge "Request more documents when EXTRA_HAS_MORE." into klp-dev 2013-08-19 19:58:56 +00:00
Jeff Sharkey
f7e2a2e963 Merge "Management actions, invalidate caches." into klp-dev 2013-08-19 19:55:20 +00:00
Baligh Uddin
7e7f8d48a6 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-19 18:38:51 +00:00
Baligh Uddin
541b77c866 Import translations. DO NOT MERGE
Change-Id: I7fcd9d781a4d960b3edf245a4ee19f1a6b6bd35c
Auto-generated-cl: translation import
2013-08-19 08:23:40 -07:00
John Spurlock
f01f1e9b9e Merge "Use panel tracking as signal preventing auto-collapse." into klp-dev 2013-08-19 14:35:20 +00:00
John Spurlock
91bab13b00 Merge "Transition bars to opaque on user interaction." into klp-dev 2013-08-19 14:34:27 +00:00
John Spurlock
9bf6f5b05a Merge "Lose navigation bar icon alpha in transparent modes." into klp-dev 2013-08-19 14:33:52 +00:00
John Spurlock
3b139a9ed0 Transition bars to opaque on user interaction.
When the transient bars are revealed, smoothly transition the
bar style to opaque to blend with the other panel chrome.

Bug:8706719
Change-Id: I65e5b22e2f91a3db0394c0f571127397ba692f46
2013-08-19 10:22:28 -04:00
Lorenzo Colitti
2ee168ea02 Display signal strength on data-only SIMs.
On SIM cards that support data but not voice, we currently
display a null signal strength icon, which is confusing because
data is actually working.

Fix this by displaying signal bars as well as showing the
"emergency calls only" or "no service" text which indicates that
voice service is not available.

Bug: 3339315
Change-Id: I7d888721e8dc5e22fefd1b8fa85ba046d46a8fba
2013-08-19 20:46:15 +09:00
Jeff Sharkey
b448660a22 Request more documents when EXTRA_HAS_MORE.
Implement EXTRA_HAS_MORE and EXTRA_REQUEST_MORE contract with
document providers.  Providers can include EXTRA_HAS_MORE when
additional data is available with additional cost, such as a network
request.

Listen to content changes based on returned cursor instead of
original Uri.  Include a test backend to exercise.  UX still under
development.

Bug: 10350207
Change-Id: Iaa8954df55a1a1c0aa96eb8a4fd288e12c2fbb01
2013-08-18 22:32:02 -07:00
Jeff Sharkey
4eb407a832 Management actions, invalidate caches.
In manage mode, touching launches a VIEW intent for the file.  Also
adds actions for sharing and deleting.

Move roots and thumbnail caches into Application object, and flush
cache when thumbnail size changes.  Listen for package changes and
broadcasts that should invalidate our roots cache.

Pick default grid/list mode based on provider hint.

Bug: 10329983, 10330210, 10378834, 10330069
Change-Id: I75afb1c58ab71bb9d55852b1059da7257a376248
2013-08-18 21:14:02 -07:00
Jeff Sharkey
5851493762 Merge "Resized thumbnails; async; extend MatrixCursor." into klp-dev 2013-08-18 20:53:29 +00:00