3807 Commits

Author SHA1 Message Date
John Spurlock
bd95740648 Transparent system ui flags -> Translucent WM flags.
Migrate View.SYSTEM_UI_FLAG_TRANSPARENT_(STATUS/NAVIGATION) to
WindowManager.LayoutParams.FLAG_TRANSLUCENT_(STATUS|NAVIGATION).

Add associated public attrs for both new window flags:
  windowTranslucentStatus
  windowTranslucentNavigation

Introduce convenient four new themes that set translucent decor:
  Theme.Holo.NoActionBar.TranslucentDecor
  Theme.Holo.Light.NoActionBar.TranslucentDecor
  Theme.DeviceDefault.NoActionBar.TranslucentDecor
  Theme.DeviceDefault.Light.NoActionBar.TranslucentDecor

Update PhoneWindowManager mechanism to plumb these values back to
SystemUI to drive bar mode state.

The new translucent flags come from the top fullscreen window, not
the focused window, so translucency does not change when opening
dialogs.

Imply some window-level system-ui visibility if one or both of these
new flags are present, specifically:
  FLAG_TRANSLUCENT_STATUS implies LAYOUT_STABLE, LAYOUT_FULLSCREEN
  FLAG_TRANSLUCENT_NAVIGATION implies LAYOUT STABLE, LAYOUT_HIDE_NAV

Rename all associated variable & resource names to use the term
translucent instead of transparent. (Retain the term semi-transparent
for the transient bar style).

Recents activity allowed to inherit translucent decor state via the
new PRIVATE_FLAG_INHERIT_TRANSLUCENT_DECOR.  Compensating changes
to use the full screen area more appropriately.

Update keyguard to use new WM flags.

Update docs and various api artifacts.

Sanity-check fixes:
 - Toasts and alerts given stable layout.
 - Suppress nu-gradient when in transient (hidey) mode.
 - New translucent flags use top-fullscreen window, dialogs don't clear.

Bug:10674960
Bug:11062108
Bug:10987178
Bug:10786445
Bug:10781433
Change-Id: If667a55bea4cf5e008549524b9899197fab55ebe
2013-10-06 16:03:53 -04:00
Jim Miller
158fbd3ab8 Fix bug where pebble app triggers accessibility mode in navbar camera
Apparently the Pebble application uses accessibility.  This was
triggering the navbar to resort to accessibility mode for launching
the camera.  The fix is to also require touch exploration to be
enabled.

Fixes bug 11061505

Change-Id: I2245bd37eef9e68911862ce86147b1343816f1a4
2013-10-05 19:01:00 -07:00
Jim Miller
7dc10595e5 am bb93ee73: am d479396d: am ed887bff: Merge "Replace searchlight asset with new new asset" into klp-dev
* commit 'bb93ee731c7056769b10371caf0be7a12c6db78c':
  Replace searchlight asset with new new asset
2013-10-04 17:37:18 -07:00
Jim Miller
bb93ee731c am d479396d: am ed887bff: Merge "Replace searchlight asset with new new asset" into klp-dev
* commit 'd479396d2d3cc6470c5774863827ccc9cb3133e1':
  Replace searchlight asset with new new asset
2013-10-04 16:51:52 -07:00
Jim Miller
ed887bff6e Merge "Replace searchlight asset with new new asset" into klp-dev 2013-10-04 23:48:24 +00:00
Jim Miller
93cc6106be Replace searchlight asset with new new asset
Fixes bug 11030712

Change-Id: I8361c74e344ec3f9c7176635face84af2d754973
2013-10-04 16:41:34 -07:00
Baligh Uddin
2dbc82fd6f Merge "Import translations. DO NOT MERGE" 2013-10-04 22:55:47 +00:00
Alan Viverette
467e4ffbbc Merge "Add accessibility display adjustments to Quick Settings" 2013-10-04 22:38:18 +00:00
Baligh Uddin
061d045a17 Import translations. DO NOT MERGE
Change-Id: I3530c584e8597199bccf03abb98f25feaa1101ba
Auto-generated-cl: translation import
2013-10-04 12:54:44 -07:00
Baligh Uddin
57c8f4f259 Import translations. DO NOT MERGE
Change-Id: I17e711092eecfea0af5f133185672b729f8d4bf1
Auto-generated-cl: translation import
2013-10-04 12:50:57 -07:00
Jim Miller
f5d35c9bd0 am 84e0766c: am 43bd3f24: am 3d61bf45: Merge "Replace searchlight asset" into klp-dev
* commit '84e0766cbe75c88055298081b52a409ab14db256':
  Replace searchlight asset
2013-10-04 11:10:27 -07:00
John Spurlock
528e60be6b am 89862d73: am c20988e1: am 0ea4a5fb: Merge "Replace linear GradientDrawable with asset-based approach." into klp-dev
* commit '89862d73ceee0db93821df8c53afb3031ef06ed9':
  Replace linear GradientDrawable with asset-based approach.
2013-10-04 09:10:29 -07:00
Jim Miller
84e0766cbe am 43bd3f24: am 3d61bf45: Merge "Replace searchlight asset" into klp-dev
* commit '43bd3f2459642f38f88e9aa90a05a50ea21ba010':
  Replace searchlight asset
2013-10-03 21:30:39 -07:00
Jim Miller
43bd3f2459 am 3d61bf45: Merge "Replace searchlight asset" into klp-dev
* commit '3d61bf45e559e084fa173bd50e2e7d7286dc9a35':
  Replace searchlight asset
2013-10-03 21:27:20 -07:00
Jim Miller
d34de7304c Replace searchlight asset
Fixes bug 11030712

Change-Id: Ia25dec35dd3a8d59f98521e579bc1d269518c395
2013-10-03 19:20:58 -07:00
John Spurlock
89862d73ce am c20988e1: am 0ea4a5fb: Merge "Replace linear GradientDrawable with asset-based approach." into klp-dev
* commit 'c20988e16b5a1129c28ca4d378456bbdc60e19e3':
  Replace linear GradientDrawable with asset-based approach.
2013-10-03 15:38:58 -07:00
John Spurlock
c20988e16b am 0ea4a5fb: Merge "Replace linear GradientDrawable with asset-based approach." into klp-dev
* commit '0ea4a5fb8de62acb057651a4821af9b8699d9fcf':
  Replace linear GradientDrawable with asset-based approach.
2013-10-03 12:18:36 -07:00
Baligh Uddin
778c2de060 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-03 03:45:22 +00:00
Baligh Uddin
19db520069 Merge "Import translations. DO NOT MERGE" 2013-10-03 03:42:39 +00:00
John Spurlock
7057d2c3a9 Replace linear GradientDrawable with asset-based approach.
And disallow fully transparent nav bar when vertical.

Bug: 10967264
Change-Id: I42adf6de1eeb91e1b1a24dc6c7a64c8d86017b2d
2013-10-02 22:24:12 -04:00
Baligh Uddin
b2bebdbc30 Import translations. DO NOT MERGE
Change-Id: I0b272f5a1d1072d7a45a474bbfa7758c07490020
Auto-generated-cl: translation import
2013-10-02 12:30:39 -07:00
Baligh Uddin
ee379ac3f3 Import translations. DO NOT MERGE
Change-Id: Ibc6ea940342fcfa81edfed6efc2d8f50d3106398
Auto-generated-cl: translation import
2013-10-02 12:28:22 -07:00
Daniel Sandler
51ae2297cf am 484b80a4: am 6812b03e: am 7eb5ce03: Merge "Update date format in panel on locale change." into klp-dev
* commit '484b80a4568acb3075217dae01a77f1ce1d59185':
  Update date format in panel on locale change.
2013-10-02 09:43:13 -07:00
Daniel Sandler
484b80a456 am 6812b03e: am 7eb5ce03: Merge "Update date format in panel on locale change." into klp-dev
* commit '6812b03ee313a346c2216f4a2d7a51cf88733b57':
  Update date format in panel on locale change.
2013-10-02 09:34:39 -07:00
Daniel Sandler
36d02b17e6 am 026dc143: Merge "Fix configuration changes in status bars." into klp-dev
* commit '026dc1432ef70308ef44dafcc28998436e304e75':
  Fix configuration changes in status bars.
2013-10-01 18:45:25 -07:00
Jim Miller
d273cae2c4 resolved conflicts for merge of fb2e3c8d to master
Change-Id: Ic9fe2674e0eb82d071f9b547b6089acacf705576
2013-10-01 15:42:45 -07:00
Elliott Hughes
7fce50eb7c am ad8ec14f: am 7fb64c6e: Merge "more locale-appropriate screenshot share text"
* commit 'ad8ec14f85c4ae7cd7e5c916a7e8d8c1edd2759e':
  more locale-appropriate screenshot share text
2013-10-01 14:36:17 -07:00
Victoria Lease
e733a4012d more locale-appropriate screenshot share text
The SimpleDateFormat version of this produces very poor results in
locales other than en_US. Trusting DateFormat to do its thing
produces more consistently-pleasing results across all locales.

(cherry-pick of e45e1f2efe69ba931efa88c6e33879fbc8d8c4c1.)

Change-Id: I7f1714446bb50285d851e8e313e7f32a0a822bf2
2013-10-01 14:25:39 -07:00
Victoria Lease
e45e1f2efe more locale-appropriate screenshot share text
The SimpleDateFormat version of this produces very poor results in
locales other than en_US. Trusting DateFormat to do its thing
produces more consistently-pleasing results across all locales.

Change-Id: I2eca2b035dfe5282cfc506080db2780bedd15dd4
2013-10-01 11:10:12 -07:00
Daniel Sandler
6812b03ee3 am 7eb5ce03: Merge "Update date format in panel on locale change." into klp-dev
* commit '7eb5ce03d9697caa2e9caf0437036a937d081e90':
  Update date format in panel on locale change.
2013-09-30 20:55:06 -07:00
Daniel Sandler
7eb5ce03d9 Merge "Update date format in panel on locale change." into klp-dev 2013-10-01 02:57:45 +00:00
Baligh Uddin
46ee429a68 Merge "Import translations. DO NOT MERGE" 2013-10-01 02:44:05 +00:00
Daniel Sandler
0caebb5078 am 026dc143: Merge "Fix configuration changes in status bars." into klp-dev
* commit '026dc1432ef70308ef44dafcc28998436e304e75':
  Fix configuration changes in status bars.
2013-09-30 17:11:03 -07:00
Jim Miller
a192253bf2 am fb2e3c8d: Merge "Fix permissions on WindowManagerService.showAssistant()" into klp-dev
* commit 'fb2e3c8d47c162166a029a97d68ad3bedff89cce':
  Fix permissions on WindowManagerService.showAssistant()
2013-09-30 17:10:11 -07:00
Daniel Sandler
c6f82e9d05 am a9cf1de4: Merge "Would you like a dessert?" into klp-dev
* commit 'a9cf1de470db5910a38f733f4cd089a44d3162c5':
  Would you like a dessert?
2013-09-30 17:07:20 -07:00
Jim Miller
3d4e30ba97 am 398d7f61: Merge "Update navbar camera icon and widget background assets in keyguard." into klp-dev
* commit '398d7f61866baab65e69b9107c36ba32bf824353':
  Update navbar camera icon and widget background assets in keyguard.
2013-09-30 16:42:26 -07:00
Alan Viverette
da0cc3e8ea Add accessibility display adjustments to Quick Settings
BUG: 9057596
Change-Id: I5bb4513c3b3c59d1948ff5e8df2416ec6448534b
2013-09-30 15:38:16 -07:00
Daniel Sandler
7efdabbe26 am a9cf1de4: Merge "Would you like a dessert?" into klp-dev
* commit 'a9cf1de470db5910a38f733f4cd089a44d3162c5':
  Would you like a dessert?
2013-09-30 14:13:57 -07:00
Jim Miller
a3b60f56f7 am 398d7f61: Merge "Update navbar camera icon and widget background assets in keyguard." into klp-dev
* commit '398d7f61866baab65e69b9107c36ba32bf824353':
  Update navbar camera icon and widget background assets in keyguard.
2013-09-30 14:12:17 -07:00
Daniel Sandler
b478a71625 Update date format in panel on locale change.
The logic that updated the locale was only running at times
the DateView should have been updating its display, namely,
when the view was visible on-screen.

The new version trades a small amount of efficiency (the
broadcast receiver is now active at all times, and the date
is re-formatted each TIME_TICK) in exchange for simplicity
and correctness.

Bug: 10725912
Change-Id: I2f0988ed478374ed0eb0c76c3d8caed6c86eb8df
2013-09-30 15:33:36 -04:00
Baligh Uddin
b847cfd3d4 Import translations. DO NOT MERGE
Change-Id: I83133df76de5f55bf5b7cba6dd1ba69e07f75c96
Auto-generated-cl: translation import
2013-09-30 10:32:21 -07:00
Baligh Uddin
37e9fe7202 Import translations. DO NOT MERGE
Change-Id: I5096e6fda19418f0b61829ccc25cc98ba3d09dfe
Auto-generated-cl: translation import
2013-09-30 10:29:59 -07:00
Daniel Sandler
777dcdeeb6 Fix configuration changes in status bars.
- Make sure SystemBars calls onConfigurationChanged on the
  status bar
- Remove redundant ACTION_CONFIGURATION_CHANGED receiver in
  BaseStatusBar & move this code into onConfigurationChanged
- Force locale refresh even if a configuration change
  touches only the layout direction

Bug: 10113357
Change-Id: I92902d25cbae77f2558cfb85482484b11dc7294e
2013-09-30 10:44:12 -04:00
Jim Miller
fb2e3c8d47 Merge "Fix permissions on WindowManagerService.showAssistant()" into klp-dev 2013-09-28 01:18:17 +00:00
Jim Miller
6c9df5054a Fix permissions on WindowManagerService.showAssistant()
Since binder call permissions are not transitive by design,
the proper way to fix this is to have the call talk directly
to keyguard from the navigation bar.

Fixes bug 9409008

Change-Id: Ibd90a79bb638c969b514455a2ad93c6ff668222d
2013-09-27 16:29:36 -07:00
Daniel Sandler
a9cf1de470 Merge "Would you like a dessert?" into klp-dev 2013-09-27 03:10:38 +00:00
Jim Miller
398d7f6186 Merge "Update navbar camera icon and widget background assets in keyguard." into klp-dev 2013-09-26 22:27:15 +00:00
John Spurlock
aeec058e6a am a77be202: am 91949b20: Merge "New battery meter view bolt shape + color." into klp-dev
* commit 'a77be2025e992df2bfec85afca40a546a5154d93':
  New battery meter view bolt shape + color.
2013-09-26 13:16:02 -07:00
John Spurlock
a77be2025e am 91949b20: Merge "New battery meter view bolt shape + color." into klp-dev
* commit '91949b20c9e430eaba8cf2cf21abe403eb298a94':
  New battery meter view bolt shape + color.
2013-09-26 13:13:00 -07:00
John Spurlock
91949b20c9 Merge "New battery meter view bolt shape + color." into klp-dev 2013-09-26 20:10:20 +00:00