Commit Graph

18788 Commits

Author SHA1 Message Date
Jason Monk
8e9440efde resolve merge conflicts of 9600df0 to stage-aosp-master am: f120cf3d88 am: 99db203f29
am: 14e55354c2

Change-Id: Icf3490bfe111607ae1711ceef8ade55ed0b35ec9
2016-12-06 16:55:15 +00:00
Jason Monk
14e55354c2 resolve merge conflicts of 9600df0 to stage-aosp-master am: f120cf3d88
am: 99db203f29

Change-Id: I908b554d4ec2adcec6c6d95c768153bcab569cbf
2016-12-06 16:49:54 +00:00
Jason Monk
99db203f29 resolve merge conflicts of 9600df0 to stage-aosp-master
am: f120cf3d88

Change-Id: Id2c5d4905fed661466929ed93e08e7b079c8c51d
2016-12-06 16:43:38 +00:00
Jason Monk
f120cf3d88 resolve merge conflicts of 9600df0 to stage-aosp-master
Change-Id: I139c64bb2440d64312d7e763e53bdb13dcb9f1aa
2016-12-06 11:34:12 -05:00
TreeHugger Robot
7fe7a43a21 Merge "Import translations. DO NOT MERGE" 2016-12-06 15:38:07 +00:00
Jason Monk
9600df035b Merge "Fix Hotspot tile is shown on Guest user" 2016-12-06 15:11:19 +00:00
Bartosz Fabianowski
b272e91202 Merge "Link from Quick Settings to Enterprise Privacy page" 2016-12-06 15:09:31 +00:00
Bill Yi
25e686ed27 Import translations. DO NOT MERGE
Change-Id: I2e4b98dd89aea3f467b999027dd0b3f330fdcd18
Auto-generated-cl: translation import
2016-12-06 03:44:40 -08:00
Bartosz Fabianowski
46bea2e685 Link from Quick Settings to Enterprise Privacy page
This CL updates the information shown in Quick Settings when a device
is managed by a Device Owner and adds a "learn more" link that takes
the user to the Enterprise Privacy page in Settings.

Bug: 32692748
Bug: 25779452
Test: runtest --path frameworks/base/packages/SystemUI/tests &
      runtest --path frameworks/base/core/tests/coretests

Change-Id: I8cbb6f2bb5c6da29ae581b6dcf7a01b1a4f2af2b
2016-12-06 08:13:30 +01:00
TreeHugger Robot
e2812604b8 Merge "DozeMachine: Improve resilience against out-of-order pulse requests" 2016-12-06 00:22:54 +00:00
Adrian Roos
923e706576 Lockscreen: Restrict double taps to prevent falsing
am: ac75cddcf5

Change-Id: I25fe91c23f79d8f54cfa106966dbf4a820dd4c6b
2016-12-05 23:43:05 +00:00
Adrian Roos
b84dc1866a DozeMachine: Improve resilience against out-of-order pulse requests
Fixes a class of bugs that arise from requesting to pulse at
inopportune times. Also improves logging such that we know what
state transition failed to validate.

Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Change-Id: If0bbe003c4805fd180d013dadbc28addc5bb0dd4
Fixes: 32869355
2016-12-05 22:09:25 +00:00
Xiaohui Chen
fe4413b214 sysui: fix navbar button view orientation
am: 7917006430

Change-Id: I94127b0eba0f0abf47558131218dd21b5a82e089
2016-12-05 21:31:45 +00:00
TreeHugger Robot
ee7e88218d Merge "Revert "Import translations. DO NOT MERGE"" 2016-12-05 20:52:51 +00:00
Xiaohui Chen
110dd5f426 Fix vertical nav button direction issue
am: 854bc8ea1e

Change-Id: Ic1a9a82c4c2c89a2c89430495b6f751b9e6ba717
2016-12-05 19:25:54 +00:00
Bill Yi
6f41b38689 Revert "Import translations. DO NOT MERGE"
This reverts commit 78eec3c16c.

Change-Id: I682a6b06533dde6d59ada6d83931af0d0d617976
2016-12-05 19:03:58 +00:00
Xiaohui Chen
11f1368733 Merge changes from topic 'xc_m_vertical'
* changes:
  sysui: fix navbar button view orientation
  Fix vertical nav button direction issue
2016-12-05 17:41:53 +00:00
Jorim Jaggi
5968660525 Merge "Don't disable search on Keyguard" 2016-12-05 10:44:35 +00:00
Jean-Michel Trivi
ce8617c0df Merge "Volume dialog controller: make loading of stream names more robust" 2016-12-03 19:29:17 +00:00
Bill Yi
78eec3c16c Import translations. DO NOT MERGE
Change-Id: Icfa72328868f0261156d4a234e4eddbeb29428b9
Auto-generated-cl: translation import
2016-12-02 21:31:57 -08:00
Jean-Michel Trivi
4c7394a854 Volume dialog controller: make loading of stream names more robust
The loading of the stream type volume names assumes there are
  as many read as declared stream types. Verify this is the
  case, if not, complete the array of names with empty strings,
  or remove unneeded entries.

Test: boot in non en-US language
Bug: 33260083

Change-Id: I6632eadd34c4b8af2c8fd01ae7eae45fc513b3e1
2016-12-02 16:13:06 -08:00
Xiaohui Chen
7917006430 sysui: fix navbar button view orientation
Before navbar assumes rotation 0 means portrait and rotation 90
means landscape.  This is not necessarily true, in certain devices
the natural orientation (0) is landscape.  Here we removed that
assumption and make sure we use the right inflater at all times.

Bug: 32516898
Change-Id: I325b8f61877827b19aa5b7b5cda49cb3523d2ed6
Merged-in: I3db44dcb35d8511fb9d42b147b2bd137ff0750f7
2016-12-02 14:21:06 -08:00
Xiaohui Chen
854bc8ea1e Fix vertical nav button direction issue
Bug: 32516898
Change-Id: I00d5478b9bef87918d59f3021a9368fd3f2e0c20
Test: locally on device
Merged-In: Id94f08c066db101f630e69874bcdefb177e6f0f5
2016-12-02 14:20:07 -08:00
Xiaohui Chen
40e978e0d1 sysui: fix navbar button view orientation
Before navbar assumes rotation 0 means portrait and rotation 90
means landscape.  This is not necessarily true, in certain devices
the natural orientation (0) is landscape.  Here we removed that
assumption and make sure we use the right inflater at all times.

Bug: 32516898
Test: Locally on test device
Change-Id: I3db44dcb35d8511fb9d42b147b2bd137ff0750f7
2016-12-02 13:51:49 -08:00
Xiaohui Chen
9efa5ded71 Fix vertical nav button direction issue
Bug: 32516898
Test: locally on device
Change-Id: Id94f08c066db101f630e69874bcdefb177e6f0f5
2016-12-02 13:51:29 -08:00
TreeHugger Robot
04a7a5370c Merge "Split home stack into home and recents stack" 2016-12-02 19:12:23 +00:00
TreeHugger Robot
66bb266ce8 Merge changes I8b9b4fea,Ic6054b1d
* changes:
  Grant Uri permissions for new screenshots.
  Detect content:// leaving apps without grants.
2016-12-02 01:50:52 +00:00
Adrian Roos
097e285536 DO NOT MERGE Show keyguard when SIM is removed
am: fd61f22210

Change-Id: I3ace21a3f5b66ab4395b5511701caf102a6546ef
2016-12-02 00:41:27 +00:00
Jeff Sharkey
72b84a23c9 Grant Uri permissions for new screenshots.
The receiving app may not have the needed permissions to see the
screenshot when launched.

Test: builds, boots, no longer logs
Bug: 33275110
Change-Id: I8b9b4fea2f78f37af543a90309cb34994366850b
2016-12-01 17:10:29 -07:00
Adrian Roos
fd61f22210 DO NOT MERGE Show keyguard when SIM is removed
If the device has a secure lockscreen and the device'
SIM card is removed, lock the device.

Change-Id: I0369af81297169d65254b85bc9a056e4f4a02b7b
Merged-In: I5b0deea8851b38781059732a3cf6fa0a4a00e3ca
Fixes: 30997251
2016-12-01 22:49:50 +00:00
Adrian Roos
1381047f42 Merge "Lockscreen: Restrict double taps to prevent falsing" 2016-12-01 22:28:24 +00:00
Matthew Ng
ae1ff4f85f Split home stack into home and recents stack
Refactored functionality of home stack (HOME_STACK_ID) in the code
base to home stack and recents stack (RECENTS_STACK_ID). Also changed
function and variable names from homeStack to homeOrRecentsStack.

Differentiating home and recents stack will allow readablilty and
managing logic between home and recents stacks. For example, for
multi-window minimized dock state, the home and recents stacks can
be set to different rects where the home stack needs to be a fixed
large size while the recents stack is hidden and the dock stack is
animating to be minimized.

Fixes: 32839371
Test: ./run-test android.server.cts and manually tested split and
rotation
Change-Id: I7603359c2dc20e35924664178634eb761e0367a6
2016-12-01 14:20:56 -08:00
TreeHugger Robot
0886400bc7 Merge "Show keyguard when SIM is removed" 2016-12-01 21:14:13 +00:00
Selim Cinek
f7c77a3cae Merge changes Ifac2b821,I80140e91,I255aa969,I2c372243
* changes:
  Fixed the clipTopAmount when transforming into the shelf
  Fixed the backgroundclipping with the clipbottom amount
  Improved the clipping of notification groups
  Fixed a bug with the maximum number of notifications
2016-12-01 20:17:49 +00:00
TreeHugger Robot
38d20cc5c9 Merge "Revert addition of a11y stream in VolumeDialogController" 2016-12-01 19:43:22 +00:00
Adrian Roos
1cffe3c31f Show keyguard when SIM is removed
If the device has a secure lockscreen and the device'
SIM card is removed, lock the device.

Change-Id: I5b0deea8851b38781059732a3cf6fa0a4a00e3ca
Fixes: 30997251
Test: set up lock screen, insert SIM card, unlock phone, remove SIM card, observe that screen is locked
2016-12-01 09:40:38 -08:00
Amith Yamasani
f81df2d5e5 Merge "Secure MATCH_UNINSTALLED_PACKAGES across users" 2016-12-01 17:01:07 +00:00
Jean-Michel Trivi
82a6655714 Revert addition of a11y stream in VolumeDialogController
Revert addition of STREAM_ACCESSIBILITY as R.array.volume_stream_titles
  needs to contain STREAMS.length entries in all languages,
  whereas this had only been done for the default system language.

Test: boot in a different language than en-US
Bug: 33260083
Change-Id: If869c5f913bb42b94eeb3fa2e1b6f575a6f7ca70
2016-12-01 08:49:19 -08:00
Jorim Jaggi
4161a104b1 Fix deadzone in seascape orientation
am: c8d6603644

Change-Id: Ic02394700b6fc6ea07f17f8ef39d7a4d50344422
2016-12-01 14:02:40 +00:00
TreeHugger Robot
0d471e614b Merge "Add enterprise disclosure to Keyguard screen" 2016-12-01 13:30:43 +00:00
Jorim Jaggi
c8d6603644 Fix deadzone in seascape orientation
Test: Enable config_dead_zone_flash, make sure deadzone gets drawn
on the right side in seascape/landscape/portrait and deadzone is
consuming clicks on the right side.

Change-Id: Icc88967cfa7bf8ba7f6f3b797ca001eba78e5cdc
Fixes: 32870901
(cherry picked from commit 7aaa3d7d19)
2016-12-01 12:24:27 +00:00
Jorim Jaggi
7aaa3d7d19 Fix deadzone in seascape orientation
Test: Enable config_dead_zone_flash, make sure deadzone gets drawn
on the right side in seascape/landscape/portrait and deadzone is
consuming clicks on the right side.

Change-Id: Icc88967cfa7bf8ba7f6f3b797ca001eba78e5cdc
Fixes: 32870901
2016-12-01 12:23:15 +00:00
Bartosz Fabianowski
5f045007e0 Add enterprise disclosure to Keyguard screen
With this CL, a disclosure text is shown on the Keyguard screen when
a Device Owner is managing the device.

Bug: 32692748
Test: runtest --path frameworks/base/packages/SystemUI/tests

Change-Id: I7a48df7dc010c39b2db94fcd26b75313a7ceee08
2016-12-01 10:36:18 +01:00
TreeHugger Robot
bfabae34f6 Merge "Import translations. DO NOT MERGE" 2016-12-01 06:14:30 +00:00
Selim Cinek
5a41fe93da Fixed a bug where notifications were stale while collapsing
An update to the icons wasn't applied if the shade was currently
collapsing.
We now ensure that the two states are always in sync.

Test: 1) download AndroidBvtTests.apk from data/app from build artefacts
2) adb install -g -r pathToAndroidBvtTests.apk
3) adb shell am instrument -w -e class com.android.androidbvt.SysUINotificationShadeTests#testBundledNotifications com.android.androidbvt/android.support.test.runner.AndroidJUnitRunner
Bug: 32437839

Change-Id: I26c097bdda251b4dfddb6dbf0deee74c30560873
2016-12-01 03:22:02 +00:00
Bill Yi
2d1f3571fa Import translations. DO NOT MERGE
Change-Id: I61bf134aeced89a0d2f6666bd2c8e4074f367234
Auto-generated-cl: translation import
2016-11-30 19:21:09 -08:00
Selim Cinek
7e7c6e2c8e Fixed the clipTopAmount when transforming into the shelf
The clipTopAmount shouldn't apply to notifications in the shelf,
since otherwise the background may flicker.

Change-Id: Ifac2b821896eaaeea81e44847579d8ec0ced816d
Test: expand notification, such that the background appears when being gone before, observe no clipping.
Bug: 32437839
2016-11-30 15:34:10 -08:00
Selim Cinek
c519dcf1fb Fixed the backgroundclipping with the clipbottom amount
The clipping was applied after the minimizing to the height,
but it should have been applied before.

Change-Id: I80140e91dd08505feb8fd2256fb6ff4c7e31a139
Test: Add group, expand it, observe correct clipping of the background on the bottom
Bug: 32437839
2016-11-30 15:34:10 -08:00
Selim Cinek
b3dadccbc5 Improved the clipping of notification groups
Groups now correctly respect the clipBottomAmount and
animations work much better when swiping things away.

Also removed the group measuring logic when expanding,
Since we're now not shrinking the first notification anymore!

This also fixed a bug where a child could be invisible

Test: Add group, swipe children away
Bug: 32437839
Bug: 33203156
Change-Id: I255aa9695086e64eb10c7dccdc6122d8a8572bb5
2016-11-30 15:33:31 -08:00
Selim Cinek
1f8c21c116 Fixed a bug with the maximum number of notifications
The shelf size was accounted for twice.

Test: add notifications, observe overflow behavior on lockscreen
Bug: 32437839
Change-Id: I2c372243cbc4fcd9223715f398f3ec233b87f9db
2016-11-30 14:37:31 -08:00