Commit Graph

584731 Commits

Author SHA1 Message Date
Dave Mankoff
dc01930044 Revert^2 "7/N controllers for remaining Keyguard Password ..."
Revert submission 12656261-revert-12585643-b166448040-keyguard-message-area-NUUJOVRYJS

This also fixes the original issue introduced in this CL.
KeyguardAbsKeyInputViewController#reset would call mView#resetState
instead of its own internal resetState method. However, all the logic
from the various resetState methods had been moved from the views to
their controllers. Simply calling resetState direclty resolves the
issue (line 105 of KeyguardAbsKeyInputViewController).

Reason for revert: Fixing http://b/169231892 and http://b/169145796
Reverted Changes:
I7683b2234:Revert "4/N Setup Controller fo KeyguardSecurityCo...
I5cbe04c0c:Revert "5/N Add KeyguardSecurityViewFlipperControl...
I11dff38ad:Revert "6/N Add Controller for KeyguardPatternView...
I55c250121:Revert "7/N controllers for remaining Keyguard Pas...
Ie84234cb8:Revert "8/N Remove View Injection from KeyguardMes...
Ic62f199a5:Revert "9/N Clean Up Keyguard Class Structure"

Change-Id: Ie3669e0c9a23ffd4443ced0fb08ec754f1df55db
Fixes: 169145796
2020-09-24 11:04:51 -04:00
Dave Mankoff
6350a9f10b Revert^2 "6/N Add Controller for KeyguardPatternView"
87f6d21e67

Change-Id: Id01e3ba154a6fe1d73f720b9389920dad60332ac
2020-09-24 11:04:51 -04:00
Dave Mankoff
9408c9089a Revert^2 "5/N Add KeyguardSecurityViewFlipperController."
612c5d78c4

Change-Id: Ic51f3c2dd7d49832927393df9831d956bfa45763
2020-09-24 11:04:51 -04:00
Dave Mankoff
cf2591fa36 Revert^2 "4/N Setup Controller fo KeyguardSecurityContainer."
0d6a9012a7

Change-Id: I881bbcdc63fcbafa8966064cccb7ce1edc710062
2020-09-24 11:04:51 -04:00
TreeHugger Robot
4873666fc0 Merge "Media - Don't clear unless active flag is false" 2020-09-24 14:24:31 +00:00
Tiger Huang
1dae14ec14 Clear low profile mode while forcing client to show system bars am: 3b6bdffa44 am: 2920a61a6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12683363

Change-Id: I98a48d3c033d3c9336c9443ef869ea5a11f13d81
2020-09-24 14:05:28 +00:00
Anton Hansson
95d3ddd507 Merge "Add graphics to generated current.txt" 2020-09-24 14:02:44 +00:00
TreeHugger Robot
87696c9b8e Merge "SystemConfig: Tolerate absent native lib paths." 2020-09-24 13:35:25 +00:00
Tiger Huang
2920a61a6b Clear low profile mode while forcing client to show system bars am: 3b6bdffa44
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12683363

Change-Id: Iefd90b4aebc1c683fb99a482f5c897d7ea6b7ac4
2020-09-24 13:31:42 +00:00
Alison Cichowlas
a0d41416fc Merge "Fix handling of bad image previews." 2020-09-24 13:18:01 +00:00
Galia Peycheva
83aab62991 Merge "Make TV volume icons outlined instead of filled" 2020-09-24 13:03:54 +00:00
Matt Pietal
24993c6ee7 Media - Don't clear unless active flag is false
Previously, paused players without the resumption setting would've
removed the player. Don't do it unlesss it is also inactive, due to
timeout or swiping.

Fixes: 169311198
Test: Manual, set resumption off and pause a player
Change-Id: I6d8ec2533528017cfb28e30028b975452df808c7
2020-09-24 08:26:45 -04:00
Tobias Thierer
8f036fd454 SystemConfig: Tolerate absent native lib paths.
SystemConfig.readPublicNativeLibrariesList() has some hard-coded
paths containing public.libraries*.txt files; these are not
present when this code runs outside of an Android device, for
example in a Robolectric test on host.

This CL changes the code to log a warning, rather than crash,
when one of those folders is missing or inaccessible. Note that
this increases the chance that a future breakage will be missed,
but there already was not test coverage for the method behaving
correctly.

Fixes: 169017157
Test: Checked that the following fails before this but passes
      after this CL: atest BackupManagerServiceRoboTest

Change-Id: Id8430ea68901ce60dcc855f7013bafadea823297
2020-09-24 12:07:23 +00:00
Galia Peycheva
acbb6dd772 Merge "Add new show/hide anim duration for TV volume ui" 2020-09-24 11:42:45 +00:00
Galia Peycheva
968077be94 Merge changes I127f0891,I7827c622
* changes:
  Remove change of tint on volume dialog hide on TV
  Adjust volume ui on TV
2020-09-24 11:38:40 +00:00
TreeHugger Robot
7b7f225e21 Merge changes from topic "pip_migration_8"
* changes:
  Use consumer to dispatch signal between Launcher & SysUI OPS Pip(8-2/N)
  Re-landing Decouple systemui shared componements from PipController(8/N)
2020-09-24 11:33:23 +00:00
Andrei-Valentin Onea
cda123e288 Merge "Add change id for opting in to R selinux changes" 2020-09-24 11:19:12 +00:00
Anton Hansson
0eccccbde4 Add graphics to generated current.txt
We are also lacking appsearch, but it doesn't yet have api txt files.

Bug: 169034951
Bug: 169304493
Test: diff current.txt with generated txts
Change-Id: I0866605f0b4ba450ae824af00d24502fda060a5f
2020-09-24 12:09:25 +01:00
TreeHugger Robot
7c45b2d2b9 Merge "Add ManagedProfileLifecycleStressTest#testCreateStartDeleteStable" 2020-09-24 10:51:30 +00:00
Remi NGUYEN VAN
6617dc1979 Merge "Remove unused testutils lib from tethering tests" am: 5fad8b26e0 am: b16646a949 am: a63fbe8200 am: 2b79bd6e27 am: 0a8d8cafa1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433924

Change-Id: Ibbd6698b108ae67f0db7c435c8e7178e14ee1bb0
2020-09-24 10:11:18 +00:00
Remi NGUYEN VAN
0a8d8cafa1 Merge "Remove unused testutils lib from tethering tests" am: 5fad8b26e0 am: b16646a949 am: a63fbe8200 am: 2b79bd6e27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433924

Change-Id: I6f7ded717faf6e801102e37863ff9477dde47c8a
2020-09-24 09:52:22 +00:00
Galia Peycheva
5e6ce51fb9 Make TV volume icons outlined instead of filled
This change adds new svns for the TV icons and adds a translateX tag to
move them left/right so that they align.

Here we also add a config for whether to have different icons for volume
"off" and volume "mute". The new icon ic_volume_media_off is used to
signify when the volume has been disabled (e.g. by a dedicated remote control
button press). This is different from ic_volume_media_mute, which signifies that
the volume has been set to 0. In the "off" position, the volume is also set
to 0, but the volume dialog remembers the previous setting, so when +/-
is pressed, this is relative to the previous setting.

By default ic_volume_media_off is the same as ic_volume_media_mute. Only on
drawable-television/ do we set a dedicated icon for ic_volume_media_off.

Bug: 167732325
Test: m && flash && verify icons have been changed
Change-Id: I8d6a6c2b971974894e5062d652bf905f38bf8e83
2020-09-24 11:39:32 +02:00
Galia Peycheva
ab1b941fd0 Add new show/hide anim duration for TV volume ui
Bug: 167732325
Test: m && flash && verify
Change-Id: I62f147ee48911b2daab79d75f1c2a8bd9e2e42b7
2020-09-24 11:39:32 +02:00
Galia Peycheva
b1af5d91b9 Remove change of tint on volume dialog hide on TV
On TV we don't want the volume dialog to change tint when it is being
dismissed. So we introduce a new config value for this.

Bug: 167732325
Test: m && flash && verify that tinting is no longer there
Change-Id: I127f0891951662f8db31adc863cd5e05f000d685
2020-09-24 11:39:32 +02:00
Galia Peycheva
5b91ff156c Adjust volume ui on TV
1. Add dedicated drawable for the seek bar track
2. Add dedicated drawable for the seek bar thumb with appropriate focus
ring and shadow
3. Adjust dps and colors according to mock

Bug: 167732325
Test: m & flash & verify that looks like the mock
Change-Id: I7827c622da4e76726c5d7ee52185bf7554b894c7
2020-09-24 11:39:16 +02:00
Tiger Huang
3b6bdffa44 Clear low profile mode while forcing client to show system bars
Forcing client to show system bars would clear system UI flags at the
client side. SYSTEM_UI_FLAG_LOW_PROFILE would be cleared as well in
previous Android versions. This CL makes the behavior compatible.

Fix: 167892531
Test: Steps in the bug
Change-Id: I466a05120a08ac95b619eadd8291fc546d3bb450
2020-09-24 17:35:48 +08:00
Kholoud Mohamed
9ce741b666 Add ManagedProfileLifecycleStressTest#testCreateStartDeleteStable
Added a similar test to
ManagedProfileLifecycleStressTest#testCreateStartDelete but with
waitForBroadcastIdle after each user operation. This is just a temp
test to identify if adding the sleeps after user operations reduces
flakiness.

Test: atest ManagedProfileLifecycleStressTest
Change-Id: I6ace688694248f61489d31148777031bd383c887
2020-09-24 10:25:50 +01:00
Remi NGUYEN VAN
2b79bd6e27 Merge "Remove unused testutils lib from tethering tests" am: 5fad8b26e0 am: b16646a949 am: a63fbe8200
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433924

Change-Id: Ib7d695934eb69c8e49e690d3d85198cf6f7b9ff4
2020-09-24 09:12:13 +00:00
TreeHugger Robot
018a02f898 Merge "Restore the behavior of adding a RESUMED activity to stopping list" 2020-09-24 09:06:46 +00:00
TreeHugger Robot
8a8efbca8d Merge "Excessive battery usage fix." into rvc-qpr-dev am: fd55a98702 am: a788fea989
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672273

Change-Id: I534077191bdfcae2809e85910b433f1e0e897ef2
2020-09-24 08:52:58 +00:00
Remi NGUYEN VAN
a63fbe8200 Merge "Remove unused testutils lib from tethering tests" am: 5fad8b26e0 am: b16646a949
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433924

Change-Id: I7229dab0c6246f9fbb6724456d9ada6064d3f31a
2020-09-24 08:52:46 +00:00
TreeHugger Robot
a788fea989 Merge "Excessive battery usage fix." into rvc-qpr-dev am: fd55a98702
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672273

Change-Id: Ied1283b556a86c8c69c9a4f6dac18a2f1d1a0db0
2020-09-24 08:36:36 +00:00
Remi NGUYEN VAN
b16646a949 Merge "Remove unused testutils lib from tethering tests" am: 5fad8b26e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1433924

Change-Id: I30a1542c1fe2056d074402f2b5f7be2a37f15373
2020-09-24 08:35:35 +00:00
Remi NGUYEN VAN
5fad8b26e0 Merge "Remove unused testutils lib from tethering tests" 2020-09-24 08:16:21 +00:00
Sergey Nikolaienkov
fa9e5cd355 Merge changes from topic "tv-mic-indicator-refresh"
* changes:
  Make AudioRecordingDisclosureBar animations interruptable
  Update AudioRecordingDisclosureBar animations
  Clean up unused Views in AudioRecordingDisclosureBar
2020-09-24 07:55:22 +00:00
TreeHugger Robot
df17ab0e4b Merge "Don't finish noHistory activity while it is on the topmost." 2020-09-24 07:45:43 +00:00
TreeHugger Robot
fd55a98702 Merge "Excessive battery usage fix." into rvc-qpr-dev 2020-09-24 07:45:31 +00:00
Bill Lin
000ce66626 Use consumer to dispatch signal between Launcher & SysUI OPS Pip(8-2/N)
Since IPinnedStackAnimationListener.aidl is not able to move shell lib
Add a proxy in OPS dispatching callback to Launcher when PIP animation
started.

Bug: 161118569
Test: make SystemUI
Test: make ArcSystemUI
Test: lunch aosp_tv_arm-userdebug & make
Test: atest WindowManagerShellTests
Test: atest SystemUITests
Test: adb shell input keyevent 171(KEYCODE_WINDOW)
Test: manual test Pip demo AP
Test: adb shell dumpsys activity service com.android.systemui
Change-Id: I750c4f773c99c8e9230d11e710e1cc3796577df2
2020-09-24 15:35:30 +08:00
Fiona Campbell
1cce0c2f38 Merge "Persist screen brightness setting through upgrade" 2020-09-24 07:24:39 +00:00
Louis Chang
6215bfdaba Restore the behavior of adding a RESUMED activity to stopping list
Revert part of 9b8ece2 because of b/169190153.

Also this makes the activity starting pausing while resuming it
if the activity is started while screen off, see
Task#resumeTopActivityInnerLocked where the RWC#ensureVisibilityAndConfig
was called after activity state set to RESUMED.

Bug: 169190153
Bug: 160435184
Test: existing tests
Change-Id: I4afdac6a60f6ad9b1c652eefcce44367109a2a37
2020-09-24 15:18:04 +08:00
Bill Lin
3bd60e6cef Re-landing Decouple systemui shared componements from PipController(8/N)
1) Add PipAppOpsListener, PipMediaController,PipMenuActivityController
   in WMShellModule scope, and provided by dagger
2) Move system/task listeners/callbacks to WMShell
3) Refactor tv/PipController
4) Create WindowManagerShellWrapper for WMShell features
   (Separate from WindowManagerWrapper)
5) Remove WindowManagerWrapper.setPipVisibility to adapt new approach
6) Hook dump throught WMShell
7) Decouple SysUI DeviceConfigProxy(Wrapper), use DeviceConfig instead

Bug: 161118569
Bug: 165793553
Bug: 168715160
Fixes: 166181820

Test: make SystemUI
Test: make ArcSystemUI
Test: make WMShellUnitTests
Test: lunch aosp_tv_arm-userdebug & make
Test: atest CtsSystemUiTestCases:BasicPipTests
Test: atest CtsSystemUiTestCases:CustomPipActionsTests
Test: atest CtsSystemUiTestCases:FlickerPipTests
Test: atest CtsSystemUiTestCases:PipNotificationTests
Test: atest SystemUITests
Test: atest WMShellUnitTests
Test: manual test PIP demo AP
Test: manual test TV PIP function
Test: manual test disabled PIP
Test: adb shell input keyevent 171(KEYCODE_WINDOW)
Test: adb shell am start -n android.systemui.cts.tv.pip/.PipTestActivity
          -a android.systemui.cts.tv.pip.PipTestActivity.enter_pip
Test: adb shell dumpsys activity service com.android.systemui
Change-Id: Ic64e1de4a87d8722764a44257293e89babe4878f
2020-09-24 14:54:59 +08:00
Jin Seok Park
44a9520d9c [automerger skipped] Merge "[DO NOT MERGE] Fix logic for storing MediaButtonReceiver" into rvc-qpr-dev am: 0633bc8e59 am: 07fcb0ee95 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672404

Change-Id: I57b4d462bc0da4575b0fa12cdd4962f14682dfc8
2020-09-24 06:22:34 +00:00
Jin Seok Park
8bdeb0fbfb [automerger skipped] [DO NOT MERGE] Fix logic for storing MediaButtonReceiver am: 9db9306e89 am: aa51203758 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672404

Change-Id: Ie8849eb2cecd094f313c1860d829c6b5f4ac0f80
2020-09-24 06:22:22 +00:00
Arc Wang
ba484b726d Merge "Modify Wi-Fi SettingsLib owners file" am: d2aa5c594b am: daec1e65cd am: 5da80571ba am: 522ea42608 am: b5ef44c19a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432794

Change-Id: Ib5029ff94de59460ee651cf64bda82ed11ddd9ec
2020-09-24 06:21:51 +00:00
Jin Seok Park
07fcb0ee95 Merge "[DO NOT MERGE] Fix logic for storing MediaButtonReceiver" into rvc-qpr-dev am: 0633bc8e59
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672404

Change-Id: I65bd6879005e27515d7a810d39cd217a6ac86e03
2020-09-24 06:11:10 +00:00
Jin Seok Park
aa51203758 [DO NOT MERGE] Fix logic for storing MediaButtonReceiver am: 9db9306e89
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672404

Change-Id: Ice87d51ddc1f1e56c0587bf0a625e96e74eaece2
2020-09-24 06:11:04 +00:00
Arc Wang
b5ef44c19a Merge "Modify Wi-Fi SettingsLib owners file" am: d2aa5c594b am: daec1e65cd am: 5da80571ba am: 522ea42608
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432794

Change-Id: I4f08437d3833b3ffd1614d75a29177a1a6d51e77
2020-09-24 05:59:45 +00:00
TreeHugger Robot
7fb1ba6ffd Merge "BatteryStatsImpl: Add mBatteryTimeToFull to parcel" 2020-09-24 05:56:06 +00:00
Jin Seok Park
32295a8bb9 Merge "Fix logic for storing MediaButtonReceiver" 2020-09-24 05:55:40 +00:00
Jin Seok Park
0633bc8e59 Merge "[DO NOT MERGE] Fix logic for storing MediaButtonReceiver" into rvc-qpr-dev 2020-09-24 05:55:38 +00:00