Commit Graph

5074 Commits

Author SHA1 Message Date
Sarah Chin
c6481cce40 Replace IconIndex as DisplayNumber
Test: atest TelephonyManagerTest
Fix: 171770692
Change-Id: I256649ad0ddcada29e4a7012de3e5889348adb17
Merged-In: I256649ad0ddcada29e4a7012de3e5889348adb17
2020-11-19 02:02:04 -08:00
Sarah Chin
1b48e894c5 Expose CDMA ERI API
Also remove CdmaEriInformation class, since it's not necessary to expose
the entire class.

Test: atest TelephonyManagerTest
Bug: 170421676
Change-Id: I810a492330e82f47949826a4b127164a5b950702
Merged-In: I810a492330e82f47949826a4b127164a5b950702
2020-11-19 01:54:57 -08:00
Bill Yi
f2d4156f5b Merge rvc-release RP1A.201105.002 to aosp-master - DO NOT MERGE
Merged-In: Ic1e07d28a41eea2ce59cc21702dae95d61adc24e
Change-Id: Ibc69b3e372167485bb70ae3277222bbe8ef7ff27
2020-11-04 13:57:54 -08:00
Alexander Dorokhine
e52360b58f Merge "Migrate away from deprecated Truth APIs." am: b65c13a7b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457153

Change-Id: I88e2dabdafb941a4f8bab694b3f515fb1d23d7e6
2020-10-13 19:39:20 +00:00
Alexander Dorokhine
6fbec140f2 Migrate away from deprecated Truth APIs.
This is a transitional step towards truth 1.0.1, where these APIs have
been completely removed.

Bug: 168765701
Test: m checkbuild
Exempt-From-Owner-Approval: Cherry-pick of no-op refactor into another branch
Merged-In: I26ab5ab82bb939bbd9553c05387ac8641eb468b4
Change-Id: I26ab5ab82bb939bbd9553c05387ac8641eb468b4
(cherry picked from commit 4697f76edd)
2020-10-13 11:45:45 -07:00
Xin Li
986e6eeddf Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: Iecef31f7bf10ad97b7e0075cf302ae94e248474a
Change-Id: I9e9c873bc2e05a0cfe3af0bf74725500f3f108db
2020-10-10 20:38:57 -07:00
Julia Reynolds
1f0f841700 Add screenshot back to power menu for some devices
Test: atest
Bug: 155251236
Change-Id: I190a03385b9136748aa75dbd26ed4556cf81599a
(cherry picked from commit 858b4ae2b2)
(cherry picked from commit 238de21766)
2020-09-19 10:11:12 +00:00
Xin Li
c8c8e8e8be Merge RP1A.200720.011
Bug: 167588565
Merged-In: Iec7a26ecd68aca9c7a38cc8f441197a8237b0c8c
Change-Id: Ia8f5f008bc1f77115b644ab996aedc892fab68e7
2020-09-02 12:34:37 -07:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
Puma Hsu
a9d3817d69 Merge "Update language to comply with Android's inclusive language guidance" am: b8017c9d03 am: cbc7b156b2 am: 185d02ec5d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382480

Change-Id: Ib364c43dc446a87ea9f76fccc634d35e90c8042a
2020-08-07 03:26:30 +00:00
Puma Hsu
185d02ec5d Merge "Update language to comply with Android's inclusive language guidance" am: b8017c9d03 am: cbc7b156b2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382480

Change-Id: Ia235f0faf642f5752e9c169c3383c37219e735a6
2020-08-07 03:07:01 +00:00
Puma Hsu
15630c0b43 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=162536543

Change-Id: I1eeee50e4c67ed176d464ef7252adac9fb99c31f
2020-08-06 06:13:51 +00:00
Dave Mankoff
3a82e7dbc0 Merge "Alert ProxCheck listeners directly when timing out." into rvc-d1-dev am: 350583bea0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12294057

Change-Id: I895eb94d2cc6d208d82ffa6b247dde325b9c5eeb
2020-08-04 01:07:52 +00:00
Dave Mankoff
06d38cabf6 Alert ProxCheck listeners directly when timing out.
Before this change, we were relying on the ProximitySensor class
to circle back and tell the ProximityCheck class about null results.
When the ProximitySensor class changed, this broke ProxCheck. The
ProxCheck class now directly alerts its listeners when it times out.

A test has been added to cover this case now.

Fixes: 162205584
Test: atest SystemUiTests && Manual
Change-Id: Ie48589a54daae3e29defde9ed2300f3c7e2b88ae
2020-08-03 16:04:29 -04:00
Evan Laird
d6d9c23f3d DO NOT MERGE Filter out suppressed notifications in entry manager am: b88b1b68ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265823

Change-Id: I3e29f8510c54524a1e4e6ef1d0934bf2f2cf86cc
2020-07-31 20:14:27 +00:00
TreeHugger Robot
448601b793 Merge "DO NOT MERGE Filter out suppressed notifications in entry manager" into rvc-d1-dev 2020-07-31 20:02:13 +00:00
Evan Laird
b88b1b68ad DO NOT MERGE Filter out suppressed notifications in entry manager
`NotificationEntryManager#hasActiveNotifications` used to be in 1:1
correspondence with the visible notifications in the shade, and as such
was suitable for code that needs to do things like calculate the height
of the shade. However if there is a bubble, it's still backed by a
notification but is suppressed from the shade.

This CL is unfortunately hacky because the API for
NotificationEntryManager doesn't have the concept of "a notification
which exists but is not in the shade" and therefore the correct fix
actually would involve creating the correct api and updating all call
sites with the correct semantics.

Test: manual
Bug: 161461739
Change-Id: I9b0fc0f48609b64371d3cb7677228b4bb1fa6aef
Merged-In: I9b0fc0f48609b64371d3cb7677228b4bb1fa6aef
2020-07-31 18:54:01 +00:00
Tyler Gunn
03921ada7b Merge "Update language to comply with Android's inclusive language guidance" am: a005cb30ed am: 3772a5b3fd am: c5ef3b9cae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1377136

Change-Id: I8c7ee830842424162cd9054432f27a01b3695ea8
2020-07-30 21:45:46 +00:00
Tyler Gunn
c5ef3b9cae Merge "Update language to comply with Android's inclusive language guidance" am: a005cb30ed am: 3772a5b3fd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1377136

Change-Id: I2f838a951cec8f6e7af82a0cd08d99d6045f3952
2020-07-30 21:25:38 +00:00
TreeHugger Robot
574c7d8fe2 Merge "Do not animate padlock when fp" into rvc-d1-dev am: 3457f40589
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12257808

Change-Id: I43afaf7e8e05d09c34b46969e78b008efd19dd79
2020-07-29 20:25:27 +00:00
TreeHugger Robot
3457f40589 Merge "Do not animate padlock when fp" into rvc-d1-dev 2020-07-29 19:48:57 +00:00
Lucas Dupin
a7f7936590 Do not animate padlock when fp
Do not animate the padlock opening when unlocking with fingerprint,
the animation duration is too long, and overlaps with the activity
transition.

Fixes: 161656850
Test: manual, on crosshatch
Test: atest BiometricsUnlockControllerTest
Change-Id: If99d5b20d0f69491d38cfdbc21dfa8d2fe2d0edb
Merged-In: If99d5b20d0f69491d38cfdbc21dfa8d2fe2d0edb
2020-07-29 18:44:22 +00:00
Tyler Gunn
460360d6b8 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: Presubmit
Bug: 161896447
Change-Id: I4142f4819f5ed3e2ffddf471b90923985e72523a
2020-07-29 10:23:07 -07:00
Steve Elliott
a1efa34f0b Ignore GONE views in shade when processing sections
Fixes: 161606040
Test: atest
Change-Id: I8ab108aea23ea6a139f758abdaf222f5f3641104
(cherry picked from commit dfd9f17703)
2020-07-26 20:55:49 +00:00
TreeHugger Robot
ad662c89be Merge "Ignore GONE views in shade when processing sections" into rvc-dev am: af2f54f4e3 am: 474a48a9cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12211269

Change-Id: I0b13c39ab14f17bd6fe44edc62f305d03ce5c3df
2020-07-24 22:25:17 +00:00
TreeHugger Robot
474a48a9cf Merge "Ignore GONE views in shade when processing sections" into rvc-dev am: af2f54f4e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12211269

Change-Id: Id48be644b20513c19d2978b25d81f61521f2da15
2020-07-24 22:08:01 +00:00
TreeHugger Robot
0b43b7be47 Merge "Ignore GONE views in shade when processing sections" into rvc-dev am: af2f54f4e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12211269

Change-Id: I4010f19c21bb6185e18dade509c611d03655a36f
2020-07-24 22:07:55 +00:00
Steve Elliott
dfd9f17703 Ignore GONE views in shade when processing sections
Fixes: 161606040
Test: atest
Change-Id: I8ab108aea23ea6a139f758abdaf222f5f3641104
2020-07-24 18:56:31 +00:00
Lucas Dupin
cf0396877a Merge "Don't turn on prox when wirelessly charging." into rvc-d1-dev am: 7e387342d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12193436

Change-Id: I872c16de139d1c096d75da659a33d9269afa765c
2020-07-21 00:49:43 +00:00
Dave Mankoff
6331de5051 Don't turn on prox when wirelessly charging.
Bug: 155373595
Fixes: 161699456
Test: atest SystemUITests && manual
Change-Id: If50ded7ca2836f49b40e71c5fb95c05b87e44213
2020-07-20 20:09:34 -04:00
Dave Mankoff
faebff9aea Remove duplicate binding of RowContentBindStage am: 5b01fcc846
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12182246

Change-Id: Ib5e8a2f65587ab033513c8bfdaabc005e5066ffb
2020-07-18 16:57:04 +00:00
Dave Mankoff
5b01fcc846 Remove duplicate binding of RowContentBindStage
This did not need to be bound in the
ExpandableNotificationRowComponent as it was already injectable
globally. This silences a dagger warning that would have eventually
become an error:

Bug: 160781930
Test: manual && atest SystemUITests
Change-Id: I4286dc4d8f1bd431da35d2243006e263d5c1362f
Merged-In: I4286dc4d8f1bd431da35d2243006e263d5c1362f
(cherry picked from commit c9ae1ad981)
2020-07-17 23:22:21 +00:00
Lucas Dupin
c95406fce1 DO NOT MERGE Fix broken test am: c8daad6962
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12154028

Change-Id: I3ffa5f34495c0a3ac818d41a45ac29936d6f1bc5
2020-07-15 20:06:31 +00:00
Lucas Dupin
c8daad6962 DO NOT MERGE Fix broken test
We now expect one more section, given that media controls are always
enabled.

Test: atest NotificationSectionsFeatureManagerTest
Fixes: 161202319
Change-Id: I6d801d15789a1366e448b6a9b2cf372d7c43064c
2020-07-14 22:55:30 -07:00
Ben Murdoch
1086de18d6 Merge "Fix crashes in UserDetailViewAdapterTest." into rvc-dev am: 73a4bfc9f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12108112

Change-Id: Ifd33521e4a693b491f95d2f4c5b31fb7dccbbc88
2020-07-10 16:25:31 +00:00
Ben Murdoch
8b0ac8fc8e Fix crashes in UserDetailViewAdapterTest.
ag/12048551 exposed some issues running these tests with mocks.

1. Once UserDetailItemView was created from the mocked convertView, it
   returned null from getResources. Fix by calling getResources through
   Context instead.
2. CircleFramedDrawable needs a real bitmap to work. Using a mock ended
   up in a native crash somewhere in libhwui.

Bug: 160794744
Test: atest UserDetailViewAdapterTest
Change-Id: I85a84dbd454ebb1627e4ded21e6708c7fedac11c
2020-07-09 21:02:53 +01:00
Selim Cinek
af41f0ac48 Merge "Deduplicate resumption controls when notif removed" into rvc-dev am: 997a3c73a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12089063

Change-Id: I5cdf3c8784db9f5a84a40dc67ba41a4b2d734191
2020-07-08 00:51:15 +00:00
Selim Cinek
997a3c73a7 Merge "Deduplicate resumption controls when notif removed" into rvc-dev 2020-07-08 00:36:58 +00:00
Riddle Hsu
7cab6acae9 Merge "Fix boot timeout and reduce boot time" into rvc-dev am: 2d695313c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12085171

Change-Id: If8bc707a1a70dbbea14b36d25f0dc781f3b26a3f
2020-07-07 07:58:38 +00:00
Riddle Hsu
2d695313c9 Merge "Fix boot timeout and reduce boot time" into rvc-dev 2020-07-07 07:26:18 +00:00
Ben Lin
a9914ea6df Merge "Run HOVER_EXIT event only if there's no BUTTON_PRESS event after." into rvc-dev am: e01198edec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12049437

Change-Id: Ia1cf052b7b1b508e3037c781a285cb16f75e2036
2020-07-06 21:39:54 +00:00
Ben Lin
e01198edec Merge "Run HOVER_EXIT event only if there's no BUTTON_PRESS event after." into rvc-dev 2020-07-06 20:45:58 +00:00
Robert Snoeberger
5b13c3108d Deduplicate resumption controls when notif removed
Bug: 160245891
Bug: 160036959
Test: manual - cast from Simple Radio a few times and verify there is
not more than 2 media objects in QS.

Change-Id: Ic2efab1774a79afca84188e42db9db4d44d35403
2020-07-06 20:21:58 +00:00
Antoan Angelov
837bc8abfc Merge "Add support for PO on corp owned device for QS disclosure dialog" into rvc-dev am: 5c201b0360
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12034935

Change-Id: Idc343d7d907025ad9ed710aabb36688e9ca0ee89
2020-07-06 16:28:31 +00:00
Riddle Hsu
29bfa72754 Fix boot timeout and reduce boot time
Since the notification shade has been separated from status bar
to another window where the keyguard resides. It won't be visible
until KeyguardViewMediator receives system ready.

By making the visibility of notification shade consistent with the
initial state of keyguard when attaching the window, window manager
won't miss to wait for it. That avoids dismissing boot animation
too early. The windows of notification shade and wallpaper can also
be drawn earlier, that reduces the total waiting time of drawn
windows by about 50~100ms on a mid-end device.

The logic of wait-for-visible-not-drawn-window is restored to be
the same as Q. The isVisible considers the independent visibility
of wallpaper and visibility of the insets client. The isDrawnLw
accepts READY_TO_SHOW so even keyguard decides not to use wallpaper,
the procedure won't wait until timeout.

Bug: 160271169
Bug: 158144185
Bug: 157746100
Bug: 157281833
Test: atest DisplayContentTests# \
      testShouldWaitForSystemDecorWindowsOnBoot_OnDefaultDisplay
      NotificationShadeWindowControllerTest#attach_visibleWithWallpaper
Test: Boot with enable/disable keyguard/wallpaper, there is no timeout
      and black screen or flickering.

Change-Id: I2f979055e89ae5e40af05e469741bb89e2e24ce6
Merged-In: I2f979055e89ae5e40af05e469741bb89e2e24ce6
2020-07-06 22:11:46 +08:00
arangelov
0dd3aa2738 Add support for PO on corp owned device for QS disclosure dialog
Fixes: 160145930
Test: manual
Test: atest QSSecurityFooterTest
Change-Id: I28fa9a150de16075a2705e5996bcdc2d40dbb555
2020-07-03 17:11:49 +01:00
Ben Lin
b088dbba9e Run HOVER_EXIT event only if there's no BUTTON_PRESS event after.
When a mouse click happens, a HOVER_EXIT prceeds a BUTTON_PRESS
MotionEvent. This ends up causing the menu to fade away. We will check
for whether there's a BUTTON_PRESS event immediately afterward, and only
run hideMenu() after a certain timeout.

Bug: 160245414
Test: Clicking on items on the PIP menu works again
Change-Id: If06e9b51d2fa47735472f48314a9d5b4b146157b
2020-07-01 14:56:38 -07:00
Beth Thibodeau
0bf4463e8b Merge "Add device info for filtered players" into rvc-dev am: 3c336c4b64
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12052991

Change-Id: Ib48fa3824a96ec96fca80e0f2d0edc47f373438e
2020-07-01 18:29:19 +00:00
Beth Thibodeau
3c336c4b64 Merge "Add device info for filtered players" into rvc-dev 2020-07-01 18:21:47 +00:00
Mady Mellor
8c7fa9de80 Merge "Make sure PendingIntent cancel listener is unregistered" into rvc-dev am: 0e3d9d31a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12037679

Change-Id: I8252074649fbdbe1f7cb1ac0b611b82807a87b01
2020-07-01 16:36:19 +00:00