3471 Commits

Author SHA1 Message Date
Alan Viverette
3ed2ba3e76 Merge "Avoid creating new objects when DateView updates time" 2013-08-06 18:18:06 +00:00
John Spurlock
e1f366faf8 Introduce new transparent bars sysui flags.
Two new public sysui flags for views to request transparent
bars:
  View.SYSTEM_UI_FLAG_TRANSPARENT_STATUS
  View.SYSTEM_UI_FLAG_TRANSPARENT_NAVIGATION

This first change simply introduces the flags at the framework
level, and makes the requisite layout tweaks to WM.

As part of this change, expunge the term "hideybars" from the
codebase. The flag to declare support for transient bars is called:
  View.SYSTEM_UI_FLAG_ALLOW_TRANSIENT

Final visuals/transitions between opaque/transparent bars will be
done as a subsequent change. Right now the transparent style is
identical to the transient bars.

Change-Id: I5ead9c5e7b77f212df5b2a5f6e770596cd2226f3
2013-08-06 14:17:22 -04:00
Baligh Uddin
7f29a1642f Import translations. DO NOT MERGE
Change-Id: I0c6999034ab12cf0a9e6b7344e03b8b866406fde
Auto-generated-cl: translation import
2013-08-05 20:46:27 -07:00
David Christie
c90896a602 Revert icon changes in "Modify quicksettings to have new location behavior." (b/10184973)
This reverts icon changes in commit 03ed0127dae141d99b003ede9ba3ea937128e471.

Change-Id: I78e3af4a745dd4f182369edd9df9c296854e7762
2013-08-05 14:36:58 -07:00
Baligh Uddin
ec4d2aa50d Import translations. DO NOT MERGE
Change-Id: I0799c647e037d672f16c11d39489926a4938e71f
Auto-generated-cl: translation import
2013-08-05 09:47:33 -07:00
John Spurlock
32230ef4e6 Merge "Collapse/disable shade when hiding status bar window." 2013-08-05 13:18:54 +00:00
David Christie
03ed0127da Modify quicksettings to have new location behavior.
Location tile is always present, and long pressing
toggles the master location enabled switch.

Change-Id: I54d5ccaa3b04e14ebebd68f5fafa8e65311debb4
2013-08-02 13:10:10 -07:00
Baligh Uddin
b291b5e0b7 Import translations. DO NOT MERGE
Change-Id: I412cb6d16cfd7efb9befa89fbaaf46aba6839b46
Auto-generated-cl: translation import
2013-08-01 10:54:29 -07:00
John Spurlock
9764218ff9 Collapse/disable shade when hiding status bar window.
Provide system bar window visibility (showing/hiding) to sysui,
information it did not have before.

Use this new info to disable shade interaction when bars are hiding.

Bug: 8682123
Change-Id: I4105b789866f847582af1c68a703240d773fa71e
2013-07-31 14:54:03 -04:00
Chris Wren
c743dfd5a9 Merge "insistent heads up should not time out" 2013-07-30 15:37:46 +00:00
Chris Wren
eda110fdf1 insistent heads up should not time out
Bug: 10000289
Change-Id: Ic263d9d6e90a61cc766844a8394c71d281f93976
2013-07-30 11:32:52 -04:00
Alan Viverette
6e9b0477f9 Avoid creating new objects when DateView updates time
Change-Id: I74f8b44a58cf5c88dd6ead781acf36e1f51d847a
2013-07-29 13:46:43 -07:00
Craig Mautner
211cb86ab2 Move Recents task to back when hiding view.
Whenever the Recents activity actively hides itself move its task
to the back of the activity stack behind the home task. Otherwise
we get into a loop of the bck key returning to the Recents task
when it is intended to move to the home app.

Fixes bug 9750207.

Change-Id: I7d69f28368db148cb493bf54867df084907910ec
2013-07-28 17:59:09 -07:00
John Spurlock
9deaa286d8 Dismiss hideybars on touch outside.
When the system bars are revealed in auto-hiding mode, the user
should be able to dismiss them before the timeout by interacting
with the underlying activity.

Bug:8682187
Change-Id: I79169005baafda27fb5ad9c29ab1ec67600b2eb6
2013-07-25 14:42:48 -04:00
John Spurlock
a5baf89102 Remove obsolete optimization.
Reverts JB optimization I7ae978caa1f28932ee56f65484b18330a4406b80
made obsolete by I2f9b0591d44599b07bd83f03c4e09e6dd98e1448 in MR1.

Change-Id: I8a738624f9a902648e317f2eac25fd56c3b47a46
2013-07-25 13:15:42 -04:00
Chris Wren
51c7510e49 allow rich notifications in the heads up.
new shouldInterrupt logic: screen on, not locked, not dreaming, and
  priority above HIGH and noisy, or has fullscreen intent
draft of API allowing devs to give hints about head up display

reuse inflateViews()
add an expand helper to the heads up space
move some things into Entry for reuse

don't allow touches in first second
delay decay if touched
make decay time a resource

add a custom viewgroup for notification rows to get view management
out of the NotificationData class.

Change-Id: I36464f110cfa0dabc3f35db7db6c35c27e8ee2ba
2013-07-23 11:38:56 -04:00
Baligh Uddin
94edfc99c8 Merge "Import translations. DO NOT MERGE" 2013-07-19 17:19:20 +00:00
Satoshi Kataoka
c0743ec466 Merge "Fix an issue on hardcoded alarm settings intent" 2013-07-19 03:26:53 +00:00
Baligh Uddin
25a78901fd Import translations. DO NOT MERGE
Change-Id: I9a868474b1fa886a461c5f5d81126aabc8d98bef
Auto-generated-cl: translation import
2013-07-18 11:45:05 -07:00
John Spurlock
209bede6b9 Remove trailing whitespace from system ui.
Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
2013-07-17 12:23:27 -04:00
Chris Wren
574a55e9ee unify variable naming scheme.
inflateViews() and updateNotification() reference the same objects
with different names, and it was confusing.  #cleanup

Bug: 6497005
Change-Id: I0d9a94d7ec156b6bfcf4b85c777f9b58311d07d0
2013-07-16 14:34:46 -04:00
Chris Wren
157026f820 heads up notifications, v0.1
1. re-name intruder alerts to heads up notifications
2. use interrupt for the verb form, instead of intrude
3. new policy: no full screen, high priority, screen on, not locked or dreaming
4. controlled by global setting, with an observer
5. only content view for now, expandable is a todo

to turn it on:
  adb  shell settings put global heads_up_enabled 1
calendar notifications (not pop-up) work well.

Change-Id: I253418c217d0a5cf81dc2fa001f4bad90fafcce5
2013-07-09 11:12:49 -04:00
Satoshi Kataoka
c44f7a251a Fix an issue on hardcoded alarm settings intent
This change fixes a TODO to fix the behavior that the quick settings directly specifies a class of AOSP desk clock.
Currently the quick settings can't work with other alarm clocks and that's fixed by calling "android.intent.action.SET_ALARM" instead.

Change-Id: I028b8a320e945921c096fdc776b52441e7d07202
2013-07-08 18:14:40 +09:00
Baligh Uddin
e323299498 Import translations. DO NOT MERGE
Change-Id: Ief9384906e7c86d91998bc55d74107d9ade5e6c1
Auto-generated-cl: translation import
2013-07-03 11:52:42 -07:00
John Spurlock
4db614dbed Add sanity check inside ServiceMonitor's setting observer.
When registering for a specific setting key uri, the observer
can also be called back for "parent uri" updates.  e.g.
adb shell content update --uri content://settings/secure will
trigger onChange with uri=content://settings/secure.

Add a quick setting value recheck, and avoid restarting if
the setting value change will have no impact.

Bug: 9595731
Change-Id: I4c71f6a4be3b655b31d2535e809bb42edd931cd6
2013-06-27 10:21:39 -04:00
John Spurlock
95e6aea367 Merge "Remove unused services module dependency from sysui." 2013-06-25 19:47:21 +00:00
John Spurlock
5845b80190 Merge "Decouple storage notification from status bar." 2013-06-25 19:46:46 +00:00
Baligh Uddin
6bbe11a24e Merge "Import translations. DO NOT MERGE" 2013-06-25 19:32:02 +00:00
John Spurlock
f7abb08794 Remove unused services module dependency from sysui.
Change-Id: I9ac1040bece7755478d57c44f48b1e31bff6bf57
2013-06-25 15:09:36 -04:00
John Spurlock
3e309b2edc Decouple storage notification from status bar.
Hoist the usb storage notification listener to a top-level
system ui service, not dependent on a status bar implementation.

Change-Id: Ic9e7fba1e5bfd758d72226f6d796c2f04f6b17e6
2013-06-25 11:12:41 -04:00
John Spurlock
bf991a8f42 Move battery stats call from SystemUI to system server.
The UPDATE_DEVICE_STATS permission is no longer required in sysui.

Change-Id: Icc3120b7873563e3727e56bed9f3b4767da0606d
2013-06-25 10:21:11 -04:00
Baligh Uddin
23265b193a Import translations. DO NOT MERGE
Change-Id: I7533d17db79b24818bb5870f2b6839ab233e110c
Auto-generated-cl: translation import
2013-06-24 17:20:56 -07:00
John Spurlock
3f43c4e642 Merge "Decouple recents from status bar." 2013-06-24 20:43:22 +00:00
John Spurlock
d08de37a22 Decouple recents from status bar.
Remove remaining references to recents package from status bar.

Introduce in-process "components" to the existing SystemUI base class
to make component boundaries explicit, and implement Recents as the
first component.

Change-Id: Ieefd386379a1f46806b31f68a4cacd76c093aea4
2013-06-24 14:30:12 -04:00
John Spurlock
20f573c9fc Remove obsolete recents layout params.
Change-Id: I20d12a63f4449ba73911cbe219446f3d1cd089e9
2013-06-24 11:32:48 -04:00
John Spurlock
e539ee865f Merge "Introduce SystemUI-managed alternative system bars." 2013-06-21 21:34:38 +00:00
John Spurlock
5c4541246c Introduce SystemUI-managed alternative system bars.
If a service component is defined in a new secure setting,
SystemUI will attempt to use that service as the status bar
provider.

Falls back to the existing in-process implementation configured
in the product config if the setting is missing or invalid.

Nothing changes yet from a permission point of view.  Alternative
system bar implementations still require the status bar permission.

Also nothing changes from an api point of view.  Alternative
system bar implementations use the existing IStatusBar interface.

This simply enables testing alternative system bar implementations
installed from other trusted, platform-signed packages.

Known caveat: the setting is stored per user, multi-user changes
will be handled in a future CL.

Change-Id: I0413df185f7e75f77ad2ae1bc3689306d5e6e0fb
2013-06-21 17:31:25 -04:00
Wink Saville
44bd61efbf am f77a7877: am d446dd75: am 446792ba: Merge "The config_show4GForLTe is dynamic use latest value." into jb-mr2-dev
* commit 'f77a7877cd5e6850b52c2b9beae714b22352b4a0':
  The config_show4GForLTe is dynamic use latest value.
2013-06-21 08:53:58 -07:00
Wink Saville
c06462c1ad The config_show4GForLTe is dynamic use latest value.
Previously this was updated only at construction time,
but the value isn't even set at that time and can change
at anytime. So instead read the current value when needed.

Bug: 9513380
Change-Id: I50c676beadf5df8190897a9f6ab94c098e8d7e71
2013-06-20 18:15:20 -07:00
Wink Saville
1f54f9246e am 42a6682e: am a5dc5846: am cc892d68: Merge "Change default for config_show4GForLte to true." into jb-mr2-dev
* commit '42a6682ec62b4470f2c783c015d95fdc6f64610b':
  Change default for config_show4GForLte to true.
2013-06-19 10:17:03 -07:00
Baligh Uddin
04c6aa9289 Merge "Import translations. DO NOT MERGE" 2013-06-19 16:45:27 +00:00
Wink Saville
65a90d0709 Change default for config_show4GForLte to true.
Bug: 9265217
Change-Id: I962910de7826ce9825de2d2dfb9e50b84d0e7c75
2013-06-18 14:47:14 -07:00
Christopher Tate
ccbf84f44c Some system apps are more system than others
"signatureOrSystem" permissions are no longer available to all apps
residing en the /system partition.  Instead, there is a new /system/priv-app
directory, and only apps whose APKs are in that directory are allowed
to use signatureOrSystem permissions without sharing the platform cert.
This will reduce the surface area for possible exploits of system-
bundled applications to try to gain access to permission-guarded
operations.

The ApplicationInfo.FLAG_SYSTEM flag continues to mean what it is
says in the documentation: it indicates that the application apk was
bundled on the /system partition.  A new hidden flag FLAG_PRIVILEGED
has been introduced that reflects the actual right to access these
permissions.

At some point the "system" permission category will be
renamed to "privileged".

Bug 8765951

Change-Id: I6f0fd9cdb9170e076dfc66d83ecea76f8dd7335d
2013-06-17 12:47:35 -07:00
Baligh Uddin
b052b9139a Import translations. DO NOT MERGE
Change-Id: I070b09bc5d8bac8f0d5b36da87fe97cc205c0de2
Auto-generated-cl: translation import
2013-06-17 07:29:56 -07:00
John Spurlock
72b29c3abb Merge "More hideytoast stabilization." 2013-06-16 15:36:37 +00:00
Baligh Uddin
3db7115886 Merge "Import translations. DO NOT MERGE" 2013-06-16 02:17:36 +00:00
John Spurlock
743356ad1a More hideytoast stabilization.
Back to Gravity.TOP workaround to keep the hideybar confirmation
toast stable during navbar enter/exit animation.

Reverts part of Ifa380e387389ed9917336ad19dfde49f67a5fb10

Change-Id: I1e2e54851f2030603d43df611a616101f19bdab3
2013-06-15 11:58:08 -04:00
John Spurlock
de44c828b5 Merge "Remove more unused statusbar.policy items." 2013-06-15 13:03:46 +00:00
John Spurlock
0f6006405d Merge "Remove unused TrackingPatternView." 2013-06-15 13:02:40 +00:00
John Spurlock
5da2651914 Merge "Remove unused CloseDragHandle." 2013-06-15 13:01:44 +00:00