Commit Graph

303 Commits

Author SHA1 Message Date
Fan Zhang
9602831b43 Move summary_empty to settingslib
And use it as summary for SystemUI tuner activity.

Change-Id: I7a36c8aef9e43bff5a6c3a2329ee85478620c533
Fixes: 65612375
Test: rebuild
2017-10-09 13:50:55 -07:00
Winson Chung
9649772461 Merge "Alternative fix for preventing PiP from screenshot sharing." into oc-mr1-dev
am: 6d753c88d9

Change-Id: Iffd473679aab7ca6f92852b664074b82d5198b17
2017-09-08 05:58:59 +00:00
Winson Chung
ed376a36a3 Alternative fix for preventing PiP from screenshot sharing.
- Revert 942a85c6d6
- Use a more specific fix for the triggering of PiP from the SysUI
  screenshot share intent.

Bug: 63984385
Bug: 63581685
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: Click share on the screenshot action, ensure activity below does
      not enter PiP
Change-Id: Id8041d50dd429030c20940dca19e5c62bbc0c6a4
2017-09-07 17:52:37 -07:00
Qingxi Li
36df0e96f5 Merge "Fix problems of SIM lock screen of eSIM" into oc-mr1-dev
am: e8d01e269b

Change-Id: Id87f4ba6162cc1e0a60d13004e3adf586c8f5819
2017-08-16 21:29:04 +00:00
qingxi
ccae10e692 Fix problems of SIM lock screen of eSIM
This CL fixes following issues:
1. The text on the button currently is black (should be white).
2. Clicking on it turns the screen off but doesn't disable the enabled
profile.

Bug: 64227431
Test: E2E
Change-Id: I87eaeb348c32af610a375912ae0aa5c7aa25dba7
2017-08-14 14:48:48 -07:00
Jason Monk
abe21281e5 Merge "Prevent data usage dialog from being displayed again" am: 48e8091eda am: abff77e4aa am: 0119a09bdf
am: c23afeeeee

Change-Id: I38f85d00cd1f75ce6fe0c2a82f621e1cb1d939b2
2017-08-09 22:09:55 +00:00
Jason Monk
c23afeeeee Merge "Prevent data usage dialog from being displayed again" am: 48e8091eda am: abff77e4aa
am: 0119a09bdf

Change-Id: Ia84c713c1cd71d65981642ad6411192be3955445
2017-08-09 18:24:25 +00:00
Jason Monk
abff77e4aa Merge "Prevent data usage dialog from being displayed again"
am: 48e8091eda

Change-Id: Iaf17879b3a708585a2ae4cc7460527a3f998bce4
2017-08-09 17:47:52 +00:00
naoyuki kato
132bb86070 Prevent data usage dialog from being displayed again
The data usage dialog is displayed every time rotating the device.
To solve this issue, prevent NetworkOverLimitActivity from being
re-created when rotating the device.

Bug: 36801016
Test: manual - show NetworkOverLimitActivity and rotate the device

Change-Id: I51429aa49157756107e9b3fa9d450f82f894dcab
2017-08-08 03:44:50 +00:00
Lucas Dupin
ef15776aaf resolve merge conflicts of a1f64b0a91 to oc-mr1-dev
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic2395d055e1f27b186c3b87be5440dc410ee16a3
2017-07-25 12:00:01 -07:00
Lucas Dupin
e17ce5286f Fix jank when switching themes
Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: Ie8860d00dbb0705ed76edf60a9d3030618dd21ca
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x packages/SystemUI/tests/src/com/android/keyguard/KeyguardSecurityContainerTest.java
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
2017-07-24 13:26:22 -07:00
Jorim Jaggi
7f58322d51 Revert "Fix jank when switching themes"
am: 6498f96283

Change-Id: Ie5813f1c04a6db9d5ee291df764873900add5064
2017-07-24 14:14:34 +00:00
Jorim Jaggi
6498f96283 Revert "Fix jank when switching themes"
This reverts commit e5d0b9dddb.

Fixes crashloop with lock pattern

Change-Id: I3721444c91e2be625c59ec3e6ba14f1080badc07
Fixes: 63980375
2017-07-24 15:53:42 +02:00
Lucas Dupin
902ba7bab5 Merge "Fix jank when switching themes" into oc-dr1-dev
am: a74f575ff9

Change-Id: Ibc8fa59cfa6139b03aa7fb08361eb43331484be5
2017-07-22 04:52:31 +00:00
Lucas Dupin
e5d0b9dddb Fix jank when switching themes
Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: I4b5db6234cafebbe8eaa952781c038370a11488b
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
2017-07-20 22:44:36 -07:00
Fan Zhang
1137f872c6 Use new settings preference theme in sysui tuner
- Also removed deprecated activity manifest entry for tuneractivity

Change-Id: Id3a8d25cd9e2bf18c999e273714a2b82fd14ffe8
Fix: 36663882
Test: visual
2017-07-11 14:58:07 -07:00
TreeHugger Robot
f490ae3e59 Merge "PIP: Fix crash when the PIP menu activity is started by intent" 2017-07-10 02:17:17 +00:00
Jaewan Kim
c1d1524b34 PIP: Fix crash when the PIP menu activity is started by intent
This also cleans up unused PIP activities from the Manifest file.

Bug: 37912313
Test: Manual test as follows
  - Checked that my test app crashes when it sends intent to start
    the PIP menu.
  - Checked that starting the PIP menu activity with the am command
    doesn't cause System UI to be crash.
Change-Id: I3a8171fcf6017c2616b8e83ab8a281b5d7e56ab7
2017-07-07 18:35:48 +09:00
Marc Hittinger
bc6a3043a2 Merge "Remove redundant hwaccelerated enabling." 2017-06-15 17:15:42 +00:00
Lucas Dupin
987f1937a0 Change keyguard theme when wallpaper colors change
Bug: 38163994
Bug: 37014702
Bug: 62053168
Test: visual
Change-Id: I5a2da4ef2ad6fc1dab71588f2d0f5bd207731900
2017-06-01 12:14:53 -07:00
Marc Hittinger
fc25704a86 Remove redundant hwaccelerated enabling.
Hardware acceleration is enabled on the application level in the
manifest. This cleanup-only CL removes redundant calls to enable
hardware acceleration on the level of activity, window, or view.

Test: Ran systemUI jank tests checking for lack of jankiness.

Change-Id: I37a9b687be3aaf95f9ba497e99cabd5f8c73ace1
2017-05-30 11:18:36 -07:00
Jason Monk
0ed316b7f1 Merge "Change brightness dialog theme" into oc-dev am: 3b5934b267
am: c4d9ac6d18

Change-Id: I648fc03f0fb1395f6ac0e8bd77b7389afa30891b
2017-05-30 17:04:18 +00:00
Yoshinori Hirano
2dd296f288 Change brightness dialog theme
Added new theme Theme.DeviceDefault.QuickSettings.Dialog and applied it
to the brightness dialog.

Fixes: 62010126
Test: visual

Change-Id: I3bc1116a227d5e62d8624c9a4911771152f3ced0
2017-05-30 10:50:34 -04:00
Todd Kennedy
6312b3c4f5 Merge "Filter package related info" into oc-dev am: 72b7b1f001
am: 36482247ea

Change-Id: I8b5a7d1c08e7d6f822347aaed2b15e4e270d0a49
2017-05-18 19:51:53 +00:00
Todd Kennedy
e6393c9571 Filter package related info
This is one of many CLs to go through the PackageManager API surface
and filter access depending upon the requested information and the caller.
In this change, we filter ActivityInfo, ApplicationInfo and PackageInfo.

Bug: 35871369
Test: bit FrameworksCoreTests:android.content.pm.PackageManagerTests
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Iaefd73f912ab1c7e1844e72625388455f783a362
2017-05-16 16:13:52 -07:00
Rebecca Silberstein
763b36c7eb Merge "SystemUI: add NETWORK_SETTINGS permission" into oc-dev am: 276b63dc9e
am: 75a7b33a1a

Change-Id: I4b793246f4fe1c6ac6fcacb8e1d84cdd9f2e3214
2017-05-12 21:17:48 +00:00
Rebecca Silberstein
a21587481f SystemUI: add NETWORK_SETTINGS permission
Add the NETWORK_SETTINGS permission to the sysui components so we can
properly check for allowed callers in WifiService.

Bug: 36760523
Test: make
Change-Id: Ia054ffad7a9508e0d80f7b3a444691373ad1924f
2017-05-12 15:58:43 +00:00
Winson Chung
6a35c71610 Merge "Allow Recents to rotate freely." into oc-dev am: 05aa65cfb9
am: 0f800e671a

Change-Id: I33099e0c6c2ee76eb6ad12cc41d3f79d542b0358
2017-05-12 08:53:48 +00:00
Winson Chung
6c8536c3a2 Allow Recents to rotate freely.
Bug: 37550022
Test: Switch between landscape apps while the device is in landscape
Change-Id: Ic035a1e929f7da0b0a01b11c219a7146aa36f811
2017-05-11 13:07:10 -07:00
Jason Monk
a63d5a1bbf Merge "Fix brightness dialog background to be light" into oc-dev am: 175f53b2d6
am: aee0dd3ab0

Change-Id: I75f50fea8b504f7058fda5e83320e172ad298649
2017-05-10 18:59:39 +00:00
Jason Monk
4b29f3756e Fix brightness dialog background to be light
Test: visual
Change-Id: I158af3aa79de39d463ac0b26ef7d73b0430df927
Fixes: 37763715
2017-05-10 10:05:02 -04:00
Dianne Hackborn
8a40a4ca27 Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev am: f1a4b50739
am: a766f1d1ec

Change-Id: I82c6b62af3d4eddbd4e97c83b2bb7d4a1657c63d
2017-04-30 17:44:10 +00:00
Dianne Hackborn
83b40f69be Work on issue #36891897: Need to ensure foreground services can't...
...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
2017-04-29 19:41:12 -07:00
Jason Monk
70f6c9990b resolve merge conflicts of a2b0b7381c to master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I85595d8c5b4bd8d09db96115f88e78c215776eb3
2017-04-25 13:16:45 -04:00
Jason Monk
365063f196 Fix crash in plugin settings
Test: Open plugin settings
Change-Id: I4c21505b95661d278f3129527df14dbfa3fbc271
Fixes: 37625271
2017-04-24 13:18:12 -04:00
Christopher Tate
bb9cce5a2f Let SysUI set wake-from-idle alarms with impunity
In an always-on display environment the device may go into doze, but
SysUI will still need to update the display on an ongoing basis.

Bug 36506772
Test: manual

Change-Id: I0b20ba7c352bac7c278f659f0e29496cc342d381
2017-04-20 22:32:50 +00:00
Jason Monk
eaf6b3b193 Merge "Tuner plugin settings updates" into oc-dev 2017-04-07 01:39:28 +00:00
Kang Li
38a6da6473 Add a service to rank apps for ResolverActivity.
bug: 36952725,30982298

Test: used PTP before and after this fix.

Change-Id: I5b249af2dd0d9fe32d1e524e8d2675c863e92b5b
2017-04-06 18:08:14 +00:00
Jason Monk
d2e75262cc Tuner plugin settings updates
Test: manual
Fixes: 33446852
Change-Id: I05c046bb70dff66ea25531503216f121e6618a62
2017-04-06 11:24:20 -04:00
Phil Weaver
f1a9aff962 Fix permission checking for a11y volume.
Adding new permission for changing accessibility volume
to allow system UI to change it. Also providing audio
manager with a whitelist of bound accessibility service
uids so it can allow servics to change the volume.

Bug: 36569297
Test: Adding CTS test in linked CL.
Change-Id: I4f327e3a251fc3780c5957f41217c2ef5bb8b16e
2017-03-27 14:59:26 -07:00
TreeHugger Robot
cef238ed70 Merge "Fix SystemUI intents" 2017-03-24 16:40:00 +00:00
Peeyush Agarwal
d8d1e199cc Fix SystemUI intents
b/35307747 moved these intents from android. to com.android. Change
filters in AndroidManifest so that the new intents are not filtered out
and actually get delivered.

Bug: 36085764
Change-Id: I7120f28e56d71b6bfa19dd59624d992ded79501c
Fixes: 36085764
Test: none
2017-03-24 14:56:01 +00:00
Jean-Michel Trivi
ab2d9315d1 Permission enforcement for A11y volume changes
Make modifying the STREAM_ACCESSIBILITY volume conditional
  to have the BIND_ACCESSIBILITY_SERVICE permission.
Add BIND_ACCESSIBILITY_SERVICE permission to sysUI.

Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioManagerTest#testAccessibilityVolume
Bug: 34379420
Bug: 30448020
Change-Id: I9f26affccd953bd8473d06822857edf92fef4ba8
2017-03-14 00:26:16 +00:00
Sid Soundararajan
7616234117 Merge "RecentsTV : Remove all Recents TV Code" 2017-03-13 17:44:55 +00:00
Phil Weaver
f00cd14f17 Basic accessibility support for picture-in-picture
Exposing actions from the PIP InputConsumer to accessibility,
stripping all actions from a covered PIP app, and adding the
InputConsumer's actions on the PIP app's root view.

We were also using an "undefined" accessibility ID to mean
three different things: a root view, a host view of a virtual
view hierarchy, and a truly undefined view. I've introduced
new values for cases where the id could be defined.

Also gathering all window IDs into one place to reduce the
chance of collisions.

Bug: 34773134
Test: In progress. Current cts passes.
Change-Id: I97269741a292cf406272bf02359c76c396f84640
2017-03-10 15:35:30 -08:00
Sid Soundararajan
0e88d32b96 RecentsTV : Remove all Recents TV Code
This patch will remove the Recents TV Code from SystemUI.

Test: To test this removes the Recents Feature and has no
side effects, try to launch recents with long-press HOME. This
should result in launching the phone version of recents.

BUG: 36035359
Change-Id: I9026b480968575ce08e1ce344512f168fdc5fe87
2017-03-08 16:19:04 -08:00
Adrian Roos
9125068a99 SysUiLeaks: Add GarbageMonitor
Adds a service for monitoring the amount of tracked garbage.
If it exceeds reasonable levels, a notification with a leak
report is posted.

Test: runtest systemui
Change-Id: Ib55281f2aac557743b97c46bc616688261c72e9c
2017-02-11 21:57:10 +01:00
TreeHugger Robot
5841a983e8 Merge "Launch work lock scrim as clear_top not single_top" 2017-01-26 16:41:44 +00:00
Robin Lee
588a333741 Launch work lock scrim as clear_top not single_top
SINGLE_TOP is only guaranteed to work within the current task stack.
If multiple stacks are inactive in the background (eg. temporarily
switching from freeform mode to fullscreen mode by maximising one
activity) some tasks might get missed out and stay visible.

Test: manual -- start two work activities, one in fullscreen & one in freeform. start a personal
Test: activity in freeform too. switch to the fullscreen work app and lock the profile using
Test: `adb shell service call trust 6 i32 $USER_ID i32 1`
Test: __outcome after change__
Test:   a) locking work profile should bring up the work password prompt in fullscreen
Test:   b) skipping the prompt and switching to the personal freeform app should keep the freeform
Test:      work app hidden by WorkLockActivity
Test: __outcome before change__
Test:   Only (a) happened, for step (b) the work app was still visible
Bug: 31001762
Change-Id: I5979c5b12670a21c7bcd59e222fc518d395e3e29
2017-01-25 19:19:34 +00:00
Dianne Hackborn
c3af19a87d Optimize bg check flow.
No longer need to look up the application info, target SDK is
explicitly passed in to the check.  For the external method, we
change this to just checked to see if background is completely
disabled, which doesn't need a target SDK check (and is the only
thing any of the current clients care about).

Now allow SystemUI to put targets of notification pending intents
on the temporary whitelist when they fire, so developers can avoid
dealing with background restrictions in this case (if the user
interacts with their notification, they will temporarily be
considered in the foreground).

Remove any thoughts of enforing restrictions on registerReceiver(),
so we don't need to deal with target SDK versions there (which can't
be done all that efficiently).

Also bring back the old "allow starts coming from foreground apps"
only for the MODE_IGNORE app op, since it should provide some
better compatibility.

Test: ran them.

Change-Id: Id4ea7f992d12ce4bd8e54f1dbaeb4a460a3dee59
2017-01-23 14:18:33 -08:00