7280 Commits

Author SHA1 Message Date
Chris Wren
00ba32cdc8 Merge "add missing tablet asset for heads up" 2014-03-03 19:19:59 +00:00
Chris Wren
ee39eb59b1 add missing tablet asset for heads up
Bug: 13280212
Change-Id: I8af2ba7dd2efba6bcb55e0e7d65dae49850aed06
2014-03-03 14:13:06 -05:00
John Spurlock
756fa2ab9f Handle non-exact measure passes in ZenModeView.
Bug:13245581
Change-Id: I2c5f6632fde6559849e6f429d66c4d28d4d3a890
2014-03-03 13:38:01 -05:00
Adrian Roos
6d22d75cba Keyguard Analytics: Remove unused constant.
Change-Id: I6fce6640e391d5f78468212aac7d14a8a6170115
2014-03-03 17:53:44 +01:00
Adrian Roos
58b58fe68b Add session analytics to Keyguard.
On eng and userdebug builds, adds the possibility to track touch and sensor events on the Keyguard.

Change-Id: I9ff9fe5545cb9b7e6833a6af0b5a97a6c204dbd2
2014-03-03 17:09:27 +01:00
Chris Wren
1cdd7dda61 enable heads up notifications
Bug: 13208692
Change-Id: I3682ecb30c6997c578b76a578b79a8d13a6e6323
2014-03-03 10:15:53 -05:00
Chris Wren
10d82dfbfb rename heads up global setting: base part
Bug: 13208692
Change-Id: Ia020e4d63552ab4b8cbb8a37622c36776800a790
2014-03-03 10:15:53 -05:00
John Spurlock
454a038470 Merge "Wire up SystemUI zen mode config to new settings panel." 2014-02-28 23:05:49 +00:00
John Spurlock
de547008d1 Wire up SystemUI zen mode config to new settings panel.
Change-Id: I949b31be0b31c02ab736799f9080601fb0fd79d1
2014-02-28 17:50:39 -05:00
Chris Wren
7bd2412332 add a setting for the heads up: base part
also fix a crash if the feature is disabled and then enabled
while a heads up is active.

Bug: 13208692
Change-Id: I6847f7a5f275aee2f608de0237dab0e45c39b33f
2014-02-28 17:37:51 -05:00
Chris Wren
9f6a372ca0 Merge "create a synthetic 2U heads up notification" 2014-02-28 16:28:53 +00:00
Chris Wren
595c2c58d5 Merge "use ticker text as a criterion for heads up" 2014-02-28 16:28:39 +00:00
Chris Wren
8fd39ec46b create a synthetic 2U heads up notification
combine the 1U with the action buttons to make a mid-sized notification
bounded to 128dp by the system ui
used for the heads up

Bug: 13208692
Change-Id: I382bb0bd1ce73f35295f05ca2606195986cff1d3
2014-02-28 11:20:11 -05:00
John Spurlock
110e5b10d7 Disable zen mode UI until provisioned.
Change-Id: Ib7fb9a793176ec38c4958dba7ee546ee1f47fba1
2014-02-27 13:09:35 -05:00
John Spurlock
dfae159bb8 Merge "Introduce zen mode." 2014-02-27 17:29:55 +00:00
John Spurlock
e677d7113f Introduce zen mode.
- New global zen mode setting with three values:
   ZEN_MODE_OFF, ZEN_MODE_LIMITED, ZEN_MODE_FULL
 - Status bar icon (on lhs)  when in _LIMITED / _FULL
 - Rules are hardcoded for now:
   _LIMITED = intercept all notifications except calls/alarms
   _FULL = intercept everything
 - UI affordance in shade to set mode
 - Only one exit condition: "Until you delete this"
 - Intercepted notifications:
   - appear darker in the shade
   - do not cause sound/vibration
   - do not fire fullScreenIntents
   - do not contribute an icon to the status bar

Change-Id: Ic36c95982b483432006bf9dab102a31370382aa9
2014-02-27 11:53:30 -05:00
Chris Wren
22ae46efdd use ticker text as a criterion for heads up
Bug: 13208692
Change-Id: I83831c059cb4582b16ce877af58be9fb3a5bec8d
2014-02-27 11:38:22 -05:00
Chris Wren
9924e13037 improvements to heads up interface
remove shadow
quick hack to open shade from HUN
over status bar instead of under and below it
dismiss by pushing up
tablets: shadow remains on left, right, and bottom

Bug: 13208692
Change-Id: Ie3abb762fb1388be68353c7e3111fe4708ab8110
2014-02-27 11:38:21 -05:00
Baligh Uddin
00941b1f3b Import translations. DO NOT MERGE
Change-Id: I3c777c8e830dd7339e4b5e235756bf10a49a0627
Auto-generated-cl: translation import
2014-02-26 09:12:17 -08:00
Jim Miller
cfa68b977c Disable simple keyguard when notifications enabled.
Enabling notifications on keyguard tripped keyguard into simple
mode which isn't ready for prime-time.  Disabled with variable.

Fixes bug 13172958

Change-Id: Ia281b06d754cd62455010f9e31c0ee81e4937977
2014-02-25 15:36:13 -08:00
Dan Sandler
2b733f85e2 Merge "Fix boot crash on devices defaulting to landscape." 2014-02-25 18:59:31 +00:00
Dan Sandler
ef1bcec0f5 Fix boot crash on devices defaulting to landscape.
This is probably not what keyguard_simple_host_view should
look like in landscape, but we need the resource.

Bug: 13185323
Change-Id: Ib044db1f86510128d27ecf45546398c7c1b81aa4
2014-02-25 12:11:05 -05:00
Baligh Uddin
dfbd5b750f Merge "Import translations. DO NOT MERGE" 2014-02-25 17:04:44 +00:00
John Spurlock
81de6716a5 Remove unused animations.
Change-Id: I7c34732c6bc8263c42461325437c90a06214d04a
2014-02-25 11:08:35 -05:00
Kenny Guy
e21c52a8c9 Merge "Hide managed profiles from user switchers." 2014-02-25 13:01:38 +00:00
Dan Sandler
ada31d3d38 Merge "Default Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS=1." 2014-02-25 12:34:13 +00:00
John Spurlock
362fafe68f Remove tabs from NotificationData.
Change-Id: I1993c48816ffc953045e3ef29a1063b89af4a546
2014-02-24 16:56:42 -05:00
Kenny Guy
1a447535ce Hide managed profiles from user switchers.
Hide managed profiles from lockscreen user switcher on tablets.
Hide managed profiles from power menu user switcher on phones.
Add flag to enable multi user ui turned off by default.

Change-Id: I4c69a6f7b0f39c249fc85fd940318df1ddab073f
2014-02-24 19:24:42 +00:00
Baligh Uddin
c4c48004f4 Import translations. DO NOT MERGE
Change-Id: I707b289c4e770cd216105dfb6452b9517fd1cf3c
Auto-generated-cl: translation import
2014-02-24 11:10:00 -08:00
Dan Sandler
82a6c5c5ff Default Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS=1.
Change-Id: I849d4def1dcf220c226349f1591a8ba00b603854
2014-02-24 01:28:44 +00:00
Baligh Uddin
74b51c86a4 Import translations. DO NOT MERGE
Change-Id: Ie210515c79f6745c99c98e7db2df9026c7a9b9b3
Auto-generated-cl: translation import
2014-02-19 12:06:50 -08:00
Dan Sandler
83b34efe9e Merge "Make some notifications public (safe for secure lockscreens):" 2014-02-19 02:26:12 +00:00
Dan Sandler
5d7c3cc66c Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS.
$ adb shell settings put global lock_screen_show_notifications 1

Previously a per-user secure setting
(Settings.Secure.LOCK_SCREEN_ALLOW_NOTIFICATIONS), but this
doesn't really make a lot of sense since this behavior
pertains to areas of the system (keyguard, status bar) that
exist outside of any one user.

This setting now effectively enables notifications on the
secure lockscreen for all users.

Change-Id: I9c5179498dbbba9343184efdedb1587ea862cf96
2014-02-18 17:35:15 -05:00
Dan Sandler
fd16d56419 Allow a user to elect to see private notifications in public.
Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, if
set and nonzero, will show that user's notifications on the
secure lockscreen (assuming LOCK_SCREEN_ALLOW_NOTIFICATIONS
is also set). Note that this applies only to a particular
user's notifications, so if multiple users' notifications
are shown at once (currently this only applies to the
current user and USER_ALL) only that user's notifications
are affected.

USER_ALL is assumed to always allow private notifications in
public (because they can't be user-specific).

Change-Id: I32bb7939066c4919191e74161ca48ead01a88c7f
2014-02-18 15:50:44 -05:00
Baligh Uddin
ad88948eb2 Import translations. DO NOT MERGE
Change-Id: I735b0a0de031b145b54b9cf643b7e91bb40c426d
Auto-generated-cl: translation import
2014-02-17 14:09:14 -08:00
John Spurlock
f6475c7204 Merge "Fix NPE in BaseStatusBar." 2014-02-13 14:47:53 +00:00
John Spurlock
70cf4c104c Fix NPE in BaseStatusBar.
Bug:12996414
Change-Id: Icded809ce14ca6fc5d11bee1c2470152d507cee2
2014-02-13 09:39:14 -05:00
Baligh Uddin
bc95e990bd Merge "Import translations. DO NOT MERGE" 2014-02-13 05:14:33 +00:00
John Spurlock
5bb5467d6c Remove unused output array in QuickSettingsModel.
Change-Id: I0e9ce2ee1f20f5bf03f838a7ca965a71270b97d4
2014-02-12 17:44:41 -05:00
Baligh Uddin
b88ed5ccba Import translations. DO NOT MERGE
Change-Id: I7aef0ba2b5f45b3e60d7840408176c6a61d9d8ee
Auto-generated-cl: translation import
2014-02-12 10:34:22 -08:00
Chris Wren
ad8e18d490 Merge topic 'hun'
* changes:
  use private notification for the heads up
  explicitly handle clicks on the heads up notification
2014-02-12 13:52:22 +00:00
Chris Wren
464c7efcbc use private notification for the heads up
HUN only shows if the device is on and unlocked

Change-Id: Ib3f11bb9267b95c88ddb8bef0b321db79d68841b
2014-02-11 16:50:43 -05:00
Chris Wren
f29c3b4997 explicitly handle clicks on the heads up notification
Bug: 11900055
Change-Id: I45c955f7ac91dc9f59528e382e9df490f0f96be5
2014-02-11 16:49:52 -05:00
Baligh Uddin
2e1ff903b8 Merge "Import translations. DO NOT MERGE" 2014-02-11 21:17:39 +00:00
Baligh Uddin
a23bfb2ac6 Import translations. DO NOT MERGE
Change-Id: I797c2904ef13592103408b2fdb5a3059192aea21
Auto-generated-cl: translation import
2014-02-10 13:13:21 -08:00
Baligh Uddin
c930575caa Import translations. DO NOT MERGE
Change-Id: I15f658b513fd0e34b14211aa61d5d1e44d970964
Auto-generated-cl: translation import
2014-02-10 12:41:12 -08:00
John Spurlock
876e359b48 Merge "Make QS battery composite color match others." 2014-02-07 19:25:20 +00:00
Jim Miller
ba7d94b8f3 Fix problem where input wasn't being requested
This fixes a bug where input wasn't being enabled when the security
method changed.  The solution is to propagate changes back to the parent

Add missing copyright header to simplified keyguard view.

Bugs 12135931, 12879769

Change-Id: I0fc6cf8ef3b628c96a045797a5b9cdecd3a1007a
2014-02-06 16:13:42 -08:00
Jim Miller
5e612cf078 Add KeyguardSimpleHostView and make it the default
This adds a simplified KeyguardHostView that's intended to
be used as an overlay or dialog for asking the user's
credentials.

Bug 12135931

Change-Id: Iecede0715d671e88024e7bb77e7432cd1c7ec356
2014-02-06 16:13:42 -08:00
Jim Miller
3eb4971b67 Move launch, verification and menu logic to base class
- Add simplified KeyguardHostView
- Move common functions to KeyguardViewBase.java
- Create new KeyguardSimpleHostView class for simplified view
implementation.

Bug 12135931

Change-Id: I8d6b0a61c36a0c7ceb87da4da54b1dfbed0054ff
2014-02-06 16:13:41 -08:00