Commit Graph

647214 Commits

Author SHA1 Message Date
lbill
73aada3460 Fix Multi user avater View overlap privacy dot
Move system_icons_super_container_margin_start to parent ViewGroup
to ensure both multi_user_avatar system_icons_container can share
the padding

Test: make and check visual, enable multi user and check keyguard
Bug: 194324044
Change-Id: Iab2803dfb2b609b98eb8053e3b81bd6731857a2b
2021-07-30 06:46:50 +00:00
Nate Myren
71a8968dcb Merge "Add |role to UPDATE_APP_OPS_STATS" into sc-dev 2021-07-29 18:24:43 +00:00
Prabir Pradhan
2f13cca5a6 Merge "InputManagerService: Do not remove input channel when disposing monitor" into sc-dev 2021-07-29 16:42:11 +00:00
Songchun Fan
5ba5f1392f Merge "[pm] ignore partial progress update after off-incfs migration" into sc-dev 2021-07-29 15:49:03 +00:00
Matt Pietal
c3915dcbe9 Merge "Make sure SIM PIN screen shows" into sc-dev 2021-07-29 14:41:41 +00:00
Beverly Tai
866753754b Merge "Rescan face when user preses empty space on LS" into sc-dev 2021-07-29 12:49:28 +00:00
Beverly Tai
11f74e42a5 Merge "Don't setDeviceEntryIntent on AOD" into sc-dev 2021-07-29 12:29:26 +00:00
Fiona Campbell
fca58882db Merge "Null check for logicaldisplay" into sc-dev 2021-07-29 08:39:31 +00:00
Jing Ji
8b872f5c71 Merge "Fix NullPointerException in PhantomProcessList due to race condition" into sc-dev 2021-07-29 08:19:11 +00:00
TreeHugger Robot
fda724a5be Merge "Disable inline suggestions for afservice when talkback is enabled." into sc-dev 2021-07-29 06:56:35 +00:00
Chalard Jean
4e7b1128a4 Merge "Fix: ConnectivityManager methods crashing with SecurityException" into sc-dev 2021-07-29 05:55:06 +00:00
Chalard Jean
d90d6457fb Fix: ConnectivityManager methods crashing with SecurityException
Starting in R, some methods in ConnectivityManager like
getNetworkCapabilities started passing the package name from
the context stored in CM to check that the package is really
whom it pretends to be. Unfortunately, in some cases, the
context contains package "android" for an app, and since the
app is not the system, the check fails and crashes the app.

It seems the culprit is updateHttpProxy, which is called by
ProcessList when the PROXY_CHANGE_ACTION broadcast is sent.
If this happens to run between the time the process is created
and the activity thread is "bound", then the mInitialApplication
member is not set, and updateHttpProxy uses a system context.
Since ConnectivityManager caches the context forever in a
static, this leads to subsequent legitimate calls crashing.

Setting the proxy can be deffered until such a time that the
app is bound, as it can't run any code before then. The member
is never reset to null, so it's guaranteed to be non-null at
bind time.

An alternative would be to post a runnable on the handler
thread if the member is null to try again later. This
could however run the lambda a considerable number of times
as binding can be delayed, and risks causing an infinite loop
if some invariants are changed in the future.

See also b/73572062 and ag/4056059

Bug: 155549446
Bug: 189360509
Test: ActivityThreadTest FrameworksNetTests NetworkStackTests
Test: Manually set a proxy, observe the broadcast being sent and
      apps not crashing
Change-Id: I956f76be2e0a1a675576511fb394d7ed4354b28a
(cherry picked from commit b0d13e29515d5b7c82daed7533b78ac57e46bd93)
2021-07-29 11:55:37 +09:00
Emilian Peev
e922ec31aa Merge changes from topic "b194508189" into sc-dev
* changes:
  Camera: Support common outputs between regular and extension sessions
  Camera: Include the parceled image dimensions
2021-07-29 00:20:06 +00:00
Matt Pietal
7d938ee7f4 Make sure SIM PIN screen shows
It is possible to receive SIM events that alert the keyguard to show
the SIM PIN unlock screens. However, if these events are received
after keyguard has been told to dismiss but before it is actually
dismissed, this event gets ignored.

The fix: add a flag to look for this state. If we get the keyguard
dismissed event and the bouncer has not shown, bring back to the
keyguard.

Fixes: 192048149
Test: atest KeyguardViewMediatorTest
Change-Id: I43de785252827d78a86d075ee7ec0861778e3360
2021-07-28 19:37:09 -04:00
Jayant Chowdhary
782b4e9e08 Merge "camera2: Add fwk-only tags for SCALER_CROP_REGION and metering regions." into sc-dev 2021-07-28 22:45:01 +00:00
Rahul Sabnis
7a3cb23bf9 Merge "Require calls to BluetoothA2dp#setBufferLengthMillis to pass a non-negative value" into sc-dev 2021-07-28 22:04:30 +00:00
Chris Tate
e833132601 Merge "Consistent reporting of failure conditions" into sc-dev 2021-07-28 21:19:45 +00:00
Lyn Han
0f8dfa5326 Add logs to ensure that QS / NPVC clip bounds match
Bug: 191436459
Test: treehugger
Change-Id: I07dbb58b234bee06c31a67fd38ab363ff13d9458
Merged-In: I07dbb58b234bee06c31a67fd38ab363ff13d9458
2021-07-28 20:26:25 +00:00
Beverly
63bca4985b Rescan face when user preses empty space on LS
For both bypass + non-bypass face auth.

Test: manual
Fixes: 194866908
Change-Id: I22014fb5dc2913c70a405ea41850719e03353a80
2021-07-28 16:26:23 -04:00
Beverly
10bff88e83 Don't setDeviceEntryIntent on AOD
Only setDeviceEntryIntent=true if we're on the lock screen (not on AOD).
We do this b/c the tap on the udfps area on AOD could have been an accident.

Test: manual, UdfpsControllerTest
Fixes: 194921838
Change-Id: Ief2518f88f27fae01abe4bd72cb677b03e4e525a
2021-07-28 16:14:57 -04:00
Riddle Hsu
7b4e645ce0 Merge "Wait for notification shade to redraw on orientation change" into sc-dev 2021-07-28 20:08:18 +00:00
Songchun Fan
5a4e8283e9 [pm] ignore partial progress update after off-incfs migration
When we migrate a partially loaded app off incremental, the incomplete
progress could still be reported by incfs, right before the incfs
instance is deleted. This partial progress could override the full
progress reported by the update installation. And after the incfs
instance is deleted, there will be no more progress update. As a result,
the launcher gets the last progress update as a partial progress, and
the progress loading icon remain partially loaded until reboot.

This CL fixes the problem by rejecting partial progress reported from
incfs after the progress has already been changed to 100%. In reality it
could only happen during off-incfs migration. It also applies in general as
the progress number should never go from 100% to below 100%.

BUG: 187762951
Test: manual
Change-Id: I3b87226a4e75d71f0d8e4886917e4456b355e1fa
2021-07-28 19:16:13 +00:00
Ameer Armaly
1219bfb27f Merge "TouchExplorerTest: fix run error." into sc-dev 2021-07-28 19:08:31 +00:00
Daniel Sandler
299c0567a5 Merge "Fix missing exported=true in manifest." into sc-dev 2021-07-28 18:54:41 +00:00
Adam He
364a5225be Disable inline suggestions for afservice when talkback is enabled.
Bug: 194520863
Test: manual verification
Change-Id: Ifb37ac2a164a4564b74c6ab80a0c31fbba3495df
Merged-In: Ifb37ac2a164a4564b74c6ab80a0c31fbba3495df
2021-07-28 18:08:36 +00:00
Fiona Campbell
245cf10867 Null check for logicaldisplay
Ensure that the logical display is valid before calling getPrimaryDisplayDeviceLocked() on it first.

Bug: 194542389
Test: Manual
Change-Id: I788527a3cd02fcc12efe0b8d84e26d5d66f53762
2021-07-28 18:49:59 +01:00
Daniel Solomon
d5e1458566 Merge "Revert "SCREEN_BRIGHTNESS - map 255 to current max"" into sc-dev 2021-07-28 17:42:43 +00:00
Jing Ji
0a05f5475f Fix NullPointerException in PhantomProcessList due to race condition
Bug: 194897294
Bug: 194146206
Test: atest AppChildProcessTest
Test: atest CtsAppTestCases:ActivityManagerTest
Change-Id: I5d395726d2ff404e8e82d21a7886511a06288c43
2021-07-28 10:40:21 -07:00
Daniel Solomon
792229b553 Revert "SCREEN_BRIGHTNESS - map 255 to current max"
This reverts commit 002e656a51.

Reason for revert: Setting brightness using adb (adb shell settings put system screen_brightness ...) results in different brightness being set by DisplayPowerController each time.

Bug: 194791517
Test: atest HighBrightnessModeControllerTest
Test: manually test `settings put system screen_brightness 23` yields
      consistent results
Change-Id: I6b49253b46e4d09a1f4129d3df950c9d36eb6ede
2021-07-28 17:17:15 +00:00
Joe Bolinger
598a7988be Merge "Prevent fingerprint icon from showing when unlocking while fingerprint is in lockout." into sc-dev 2021-07-28 17:11:33 +00:00
Jay Aliomer
c2d9287c97 Merge "WallpaperService crashes becuase of a log statement" into sc-dev 2021-07-28 15:17:46 +00:00
Riddle Hsu
d9febb56d7 Wait for notification shade to redraw on orientation change
It was skipped to reduce rotation latency. But it may look
flashing if the top app is redrawn much faster than the
notification shade or the background colors are not similar.

Bug: 194610242
Test: Expand notification shade and rotate device while the
      foreground app can handle orientation change quickly.
Change-Id: I1a4870d9f237bad9088159f5979048b4cdcbf287
2021-07-28 14:58:48 +00:00
Prabir Pradhan
b3c3021841 InputManagerService: Do not remove input channel when disposing monitor
To get around a race in InputDispatcher between the removal of the input
channel throught nativeRemoveInputChannel and the InputChannel#dispose
call, we remove the former call from InputManagerService.

This means it is now the responsibiity of the client to properly close
the input monitor by disposing of the InputChannel and all of its
duplicates.

Bug: 189135695
Test: manually try to reproduce the flaky conditions through a shell
script

Change-Id: Iba9f7c2428229ff6e2a7450a39828aed61160a3d
2021-07-28 14:43:46 +00:00
Antoan Angelov
da685b239c Merge "Revert "Revert "Revert "Revert "Launch admin policies settings screen if not possible to""" into sc-dev 2021-07-28 14:13:41 +00:00
Fabian Kozynski
842ebcdb44 Merge "Save space in small width screens" into sc-dev 2021-07-28 13:23:49 +00:00
Beverly Tai
ebe9e34fbb Merge "Only set userHasDeviceEntryIntent on keyguard" into sc-dev 2021-07-28 13:21:09 +00:00
TreeHugger Robot
1181f3e9aa Merge "Fix ANR when switching the app task but IME selection dialog focused" into sc-dev 2021-07-28 11:50:16 +00:00
Dan Sandler
da43596112 Fix missing exported=true in manifest.
Fixes: 194858181
Test: clean build, then `adb shell pm list packages | grep egg`
Change-Id: Ia45a8c28c76b52f8350500c60fb7b85706b82d63
2021-07-27 23:57:51 -04:00
Benedict Wong
9eee7d3f29 Merge "Set TRANSPORT_PRIMARY for VCN NetworkOffers and NetworkAgents" into sc-dev 2021-07-28 03:37:47 +00:00
Arthur Hung
4ee67cf14e Merge "Keeps power key intercepted during a panic gesture" into sc-dev 2021-07-28 02:26:51 +00:00
Sungsoo Lim
75fa0482a6 Merge "Revert "[Media ML] Replace AudioSystem.isActiveStream"" into sc-dev 2021-07-28 01:59:19 +00:00
Hai Zhang
af04dd2ad5 Merge "Only construct real Throwable objects in AndroidFuture.readThrowable()." into sc-dev 2021-07-28 01:23:12 +00:00
Sungsoo Lim
f408df6338 Merge "Do not pass the volume key event to remote sessions" into sc-dev 2021-07-27 23:09:56 +00:00
Guojing Yuan
dfa9b3058f Merge "Add permission check while creating CompanionDeviceService" into sc-dev 2021-07-27 23:07:23 +00:00
TreeHugger Robot
b68c209b8a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-27 22:56:15 +00:00
Rahul Sabnis
1d3b83664a Require calls to BluetoothA2dp#setBufferLengthMillis to pass a
non-negative value

Tag: #feature
Bug: 194837771
Test: Manual
Change-Id: I3c1d2da1d28a494d8b393c4502521b3f0699adf6
2021-07-27 15:49:04 -07:00
TreeHugger Robot
c8db043d4b [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 4616377708 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I2aff51f7af826a19ffac9703efa5c74eceab0f34
2021-07-27 22:41:41 +00:00
TreeHugger Robot
8e18eeb56e Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-27 22:33:35 +00:00
TreeHugger Robot
4616377708 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-07-27 22:07:56 +00:00
TreeHugger Robot
94081b3687 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-27 22:07:45 +00:00