Commit Graph

11899 Commits

Author SHA1 Message Date
Adrian Roos
36216e9e75 A11y: Prevent utterance from resetting RemoteInputView am: f17c86b833 am: f7cf9b14c1
am: 5faf36df28

Change-Id: Ib599d3ce5b4e5f85efe8ca1825de9f1d9ed05437
2016-09-07 23:17:26 +00:00
Adrian Roos
5faf36df28 A11y: Prevent utterance from resetting RemoteInputView am: f17c86b833
am: f7cf9b14c1

Change-Id: I2123ccc05c685f12fc14b83d7cb5469fe2a27482
2016-09-07 23:04:47 +00:00
Adrian Roos
f7cf9b14c1 A11y: Prevent utterance from resetting RemoteInputView
am: f17c86b833

Change-Id: I3f8b99e1177cc6893e540149718a76dacf1a669d
2016-09-07 22:59:10 +00:00
Adrian Roos
f17c86b833 A11y: Prevent utterance from resetting RemoteInputView
Fixes a bug where the RemoteInputView would issue an
utterance upon resetting the view because it was not
hidden at that point.

Change-Id: I3f80b903c0b3e55c308bda8d4f18aa0b586aa328
Fixes: 30103313
2016-09-07 14:19:07 -07:00
TreeHugger Robot
a14864c78a Merge "Refactored INetworkPolicyListener callbacks." 2016-09-07 17:42:27 +00:00
TreeHugger Robot
e9eb001e88 Merge "Set always opaque flag on CarNavigationBar." 2016-09-07 01:30:20 +00:00
Jaewan Kim
65ac555c84 Keep the PIP at the shifted position when the Settings is shown am: 177801c273 am: df20aed9f7
am: 512bf0aa25

Change-Id: I066e30605dd89e195ced2257b29f3706d918e8b1
2016-09-06 23:16:23 +00:00
Jaewan Kim
512bf0aa25 Keep the PIP at the shifted position when the Settings is shown am: 177801c273
am: df20aed9f7

Change-Id: I77806cbc2a12759c118e56fa4a91a337e065eb5d
2016-09-06 22:41:46 +00:00
Jaewan Kim
177801c273 Keep the PIP at the shifted position when the Settings is shown
Some top level Settings menus launch activities from other packages.
In that case, they should be considered as a part of the Settings
if they follow the Leanback's side panel style.

Add such activities to the whitelist to keep the PIP position.

Bug: 31142005
Change-Id: I12cab611b346154048cbd61f6a678f23b5a10c00
2016-09-06 14:09:07 -07:00
Felipe Leme
0ecfcd1e3a Refactored INetworkPolicyListener callbacks.
Methods onRestrictBackgroundWhitelistChanged() and
onRestrictBackgroundBlacklistChanged() were replaced by a more generic
onUidPoliciesChanged().

Test: m javac-check RUN_ERROR_PRONE=true
Test: m -j32 FrameworksServicesTests && adb install -r -g ${ANDROID_PRODUCT_OUT}/data/app/FrameworksServicesTests/FrameworksServicesTests.apk && adb shell am instrument -e class "com.android.server.NetworkPolicyManagerServiceTest" -w "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

BUG: 28791717
Change-Id: I18b2ee4af06802e0d23822b153d1be9b429d5811
2016-09-06 12:49:48 -07:00
Muyuan Li
af69525d7b resolve merge conflicts of 1dfb41c to master
Change-Id: If389fa5e9139005766e694bc83ec6a07c025da1b
2016-09-05 19:53:52 -07:00
Jorim Jaggi
1dfb41cc83 Only do slow unlock transition if real home is not running am: 031f79560f
am: eb2d50dd0d

Change-Id: Ia00cfe414741f8a1898266fb8bdc528dae77c288
2016-09-04 01:52:19 +00:00
Jorim Jaggi
eb2d50dd0d Only do slow unlock transition if real home is not running
am: 031f79560f

Change-Id: I61f8a3d7458898ac139189920ec58607a570b813
2016-09-04 01:44:28 +00:00
TreeHugger Robot
dc77fbca27 Merge changes I955f9dfa,Ibfbb9d67 into nyc-mr1-dev
* changes:
  Only show optimizing storage dialog if dex opt dialog was shown
  Only do slow unlock transition if real home is not running
2016-09-04 01:39:32 +00:00
Winson
70f21570bf Fixing issue with old tasks being visible in Overview am: b258f6a4bd am: f4806c80ca
am: 2a4cd1518e

Change-Id: I8a229f3515bebca4cd8456afae963bb97dac96d6
2016-09-02 22:22:43 +00:00
Winson
2a4cd1518e Fixing issue with old tasks being visible in Overview am: b258f6a4bd
am: f4806c80ca

Change-Id: I87bb9656b8d766ea4b2763f529bbf1d8873479f4
2016-09-02 22:15:06 +00:00
Winson
f4806c80ca Fixing issue with old tasks being visible in Overview
am: b258f6a4bd

Change-Id: I27ba3d057147b5200ac75b9f079d26423c9d0b05
2016-09-02 22:08:33 +00:00
Winson Chung
a8c0fe6606 Merge "Fixing issue with old tasks being visible in Overview" into nyc-mr1-dev 2016-09-02 21:49:13 +00:00
Rakesh Iyer
3e142540f9 Set always opaque flag on CarNavigationBar.
The navigation bar is more like a set of shortcuts on auto and
it doesn't make much sense for the application to be able to set
it to translucent.

Change-Id: Ibe0bcdd43b7b1c968a414bfe7de024a8422ee883
2016-09-02 20:04:47 +00:00
Jason Monk
be14cbf18e Add branded VPN messages to go along with branded icons am: 802bc6ee06 am: 57bf03152c
am: cd72f9a1ce

Change-Id: Iad0153394159f46ef3838087a3749b57d60b3986
2016-09-02 19:59:51 +00:00
Jason Monk
cd72f9a1ce Add branded VPN messages to go along with branded icons am: 802bc6ee06
am: 57bf03152c

Change-Id: Ib35414d8234ca086c2a7e629ea756a5dd2c3cd5b
2016-09-02 17:41:17 +00:00
Jorim Jaggi
031f79560f Only do slow unlock transition if real home is not running
Test: Tested the first unlock on both FDE and non-FDE device.

Change-Id: Ibfbb9d67fb83456acd7b12bbe2d03a961a998ba9
Fixes: 31203310
2016-09-01 16:57:25 -07:00
Geoffrey Pitsch
af2076afb3 Mock PackageManager for TileLifecycleManagerTests
Slices ~10 seconds off the systemui target test time.

Wrapped calls to the different PackageManager APIs with
PackageManagerAdapter, which should change to a cleaner
abstraction as we write more tests.

Change-Id: I91ac9959de05a06ed484e49648203729159a482e
2016-09-01 15:16:06 -04:00
Jason Monk
802bc6ee06 Add branded VPN messages to go along with branded icons
Change-Id: Id2089d50581a958ebab6af1d5b172ec61b1aced3
Fixes: 31019697
2016-09-01 10:45:08 -04:00
Jason Monk
dd61f8b505 Fix QS CTS failure caused by tile backup am: 34f6cbc288 am: 89fb99c8e9 am: 0318c9a681
am: 10bd4997bc

Change-Id: Ia150821cf25bdf4494a3202c7632557a9858284d
2016-09-01 01:11:10 +00:00
Jeff Sharkey
aae09a8e8e DO NOT MERGE. Update lockscreen message when user unlocked. am: 99e1bca91a
am: be4949f489

Change-Id: Ic44fb8c9ce8462e24891c72ddbb265f494b6d4f1
2016-08-31 23:47:31 +00:00
Jeff Sharkey
99e1bca91a DO NOT MERGE. Update lockscreen message when user unlocked.
If a user doesn't have credentials, we start the unlock process
automatically, but that races with the UI binding process.  Fix by
rebinding the UI once we hear the user is unlocked.

Change-Id: Id678b97aa6120ba78088fb6cf4c2a65d129e98a3
Test: none
Bug: 30840626
(cherry picked from commit 181001379f)
2016-08-31 21:42:21 +00:00
Jorim Jaggi
32cbdcc8c0 resolve merge conflicts of c5bafe2 to master
Change-Id: I19dd5c88c664313c2f8b47d8f8fd556f630c8bf1
2016-08-31 13:51:50 -07:00
Jason Monk
10bd4997bc Fix QS CTS failure caused by tile backup am: 34f6cbc288 am: 89fb99c8e9
am: 0318c9a681

Change-Id: If715e04a98d64fe4fd78c935224b5bb3bc631493
2016-08-31 01:46:25 +00:00
Jason Monk
89fb99c8e9 Fix QS CTS failure caused by tile backup
am: 34f6cbc288

Change-Id: Ic82ccc386b8ab81797e748893b831601c34c12ce
2016-08-31 01:36:54 +00:00
Winson
b258f6a4bd Fixing issue with old tasks being visible in Overview
- This CL does two things, firstly, it ensures that all first & last
  active times are monotonically increasing and independent of the
  current system time.  This allows us to better keep track of which
  tasks are historical and should be hidden, and which are not.
  Secondly, this CL moves the tracking of the last visible active time
  into the system (per user) where it can be adjusted along with the
  task active times when they are loaded.
- Following this CL, all active times in the future will be adjusted on
  boot such that old tasks are made relative to the current boot time.
  It’s not important exactly what time they are, only that they are
  adjusted along with the last visible task active time so that we
  always keep track of what is visible.

Bug: 28908500
Change-Id: I4f789df3a6bd825517cf3a70e26fb60deff89d06
2016-08-30 15:01:49 -07:00
Jason Monk
34f6cbc288 Fix QS CTS failure caused by tile backup
The CTS tests weren't receiving the onTileAdded callbacks since the
shade was not in the listening state when tiles were added. This is
not possible for users (since tiles are added while the UI is
listening), but add a flushMessagesAndUnbind call to make sure the
tiles always receive onTileAdded.

Since now flushMessagesAndUnbind can be called before a real call
to setBindService(true), add a clause that will clear out its
immediate unbind state.

Change-Id: Idd13c432a4af5741813da9a9b1b292a47fd9443b
Fixes: 31147742
2016-08-30 20:37:04 +00:00
Jorim Jaggi
994e5909d1 Play sound on ACTION_DOWN for navigation keys am: 05bce15da9 am: 9bdfbd7c82
am: 214f2fe7b4

Change-Id: I5cd28d2b4c1d903fa76a8bae0edec93d7d047282
2016-08-30 17:20:17 +00:00
Jason Monk
90a788e29b resolve merge conflicts of d70ed99 to master
Change-Id: I3a8d3708e050b3fb963dd057c0be9d2d249d037a
2016-08-30 10:54:03 -04:00
Jorim Jaggi
c5bafe26cb Add animation when unoccluding windows (1/2) am: 6626f54e65
am: 314c05db45

Change-Id: I0e9d85e8f90d00fe835c0622438ac5b6afd2b52d
2016-08-30 02:33:24 +00:00
Jorim Jaggi
6626f54e65 Add animation when unoccluding windows (1/2)
Before there was a jump-cut when a window that was occluding Keyguard
was going away, leading to an ugly flicker. To fix this, we do the
following.

- Always show windows with FLAG_SHOW_WHEN_LOCKED above lockscreen, even
if they don't "match" the currently occluding app (which is null in the
animation case)
- Move wallpaper behind last window that is not hidden by policy, so the
window doesn't get occluded by the wallpaper.
- Add a flag in the setOccluded call whether to animate or not. SystemUI
then plays a nice animation when it's set.
- Override the animation to always be the animation that happens when we
exit a window which is revealing the wallpaper behind, to make it
consistent with the home screen case.

Fixes: 30829255
Change-Id: Ib3fe20fc9003a0f9f291c974740f044ed8707e75
2016-08-29 14:15:33 -07:00
Geoffrey Pitsch
b157e7a91d Merge "Convert SysUI tests to use JUnit4" 2016-08-29 15:13:12 +00:00
Adrian Roos
e55bd280f2 DirectReply: Fix bugs when replying from HUNs am: 9550f2e75c am: 079911cb6c
am: 2553f80e8d

Change-Id: Ie9c97a9403ad81231f9d2e83e8941d6f2d7411db
2016-08-26 21:09:44 +00:00
Jorim Jaggi
214f2fe7b4 Play sound on ACTION_DOWN for navigation keys am: 05bce15da9
am: 9bdfbd7c82

Change-Id: Ic36e668f7b5daf6909681f2a671b336667783968
2016-08-26 19:52:09 +00:00
Jorim Jaggi
05bce15da9 Play sound on ACTION_DOWN for navigation keys
Change-Id: I83a39aa9ba2519952cb723d72c66203881c9b3b5
Fixes: 30837708
2016-08-26 19:39:28 +00:00
Geoffrey Pitsch
2c403db659 Convert SysUI tests to use JUnit4
Run tests with android.support.test.runner.AndroidJUnitRunner,
modification to runtest target in separate CL.

No longer inherit from TestCase, stripped unneeded code from
SysuiTestCase, which now assigns mContext via
InstrumentationRegistry.getTargetContext().

Can no longer create Handlers with default constructor,
Looper.myLooper() was never able to receive messages in tests
and it is now enforced that you pass the Looper.getMainLooper().

Change-Id: I13f499175a459cef1a554431911f4b21126e126e
2016-08-26 10:43:08 -04:00
Jason Monk
d70ed997cd Backup system QS tiles am: baade7573f am: 9813cb61dd
am: 8ed8f1e6a1

Change-Id: I74b572422c0e3b3b90c85df036c8593e49db58f7
2016-08-26 13:34:51 +00:00
Jason Monk
9813cb61dd Backup system QS tiles
am: baade7573f

Change-Id: Ie601a706cbdcfdb1e836117d02fec914b4acbab1
2016-08-26 13:24:14 +00:00
Jason Monk
baade7573f Backup system QS tiles
Add QS tiles to the backup list.  Non-system tiles will get removed
since they won't be installed when restore happens.

Change-Id: Iccf6e773384c45bd4d1f10c21aa8af356b3920d2
Bug: 28782938
2016-08-26 13:15:49 +00:00
Winson
62a7c6564a Fixing issue with toasts not showing for guest users. am: 675c5d8e5a am: fcf8f8382b
am: 8a01cd988b

Change-Id: Idc3faee4eaf5aa0bbcce639820db953438fe10ec
2016-08-25 21:51:13 +00:00
Winson
61dfbd5269 Bump up preloading recents on boot up to user unlocked. am: c3eedd972d am: 3174f2931b
am: 420701ee20

Change-Id: Id1cb81a7aeb501bf07d5fa36c04875757f3bc8b1
2016-08-25 21:37:31 +00:00
Adrian Roos
2553f80e8d DirectReply: Fix bugs when replying from HUNs am: 9550f2e75c
am: 079911cb6c

Change-Id: I73f36ce938f9c45dd9638a8f826ba26c54de6a4e
2016-08-24 23:23:44 +00:00
Adrian Roos
079911cb6c DirectReply: Fix bugs when replying from HUNs
am: 9550f2e75c

Change-Id: I0edbb334926eb1147e271e31229279218561332d
2016-08-24 23:14:18 +00:00
TreeHugger Robot
a8cf435e81 Merge "DirectReply: Fix bugs when replying from HUNs" into nyc-mr1-dev 2016-08-24 23:07:35 +00:00
Adrian Roos
190e532c86 DirectReply: Fix bugs when replying from HUNs
Fixes a bug that would re-open the remote input when
it was sent while HUN'd. Also fixes a bug that would
not properly clear a notification if swiped away and
at the same time HUN'd and having a reply active.

Change-Id: I3e8b5f81eaffd8e4b8602f3dbdd025229ba201fa
Fixes: 30454772
2016-08-24 20:41:19 +00:00