647186 Commits

Author SHA1 Message Date
Jeff Sharkey
75d4f93a4e Pass metadata as AttributionSourceSource.
These two PermissionManager methods are using AttributionSource as
metadata only, and aren't interested in the remote caller enforcing
that the claimed UID matches the caller, since they're not actually
being used for permission enforcement.

Thus we pass the metadata using the AttributionSourceState holder
object and reconstruct on the remote side, entirely avoiding the
enforceCallingUid() check.

Bug: 193842956
Test: atest CtsPermission5TestCases
Change-Id: I576b6feb8cc2b0586b4341268866d8027689293f
2021-07-27 09:45:54 -06:00
Peter Kalauskas
2599b29073 Merge "Move guest creation to background thread" into sc-dev 2021-07-27 15:19:05 +00:00
Bill Yi
c78d905228 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 170f2b6287 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia293b6b9c509b8f7c5716badb3d056065e0aed5e
2021-07-27 15:09:11 +00:00
Jeff DeCew
44cd9995db Merge "Use correct stack height when bypass enabled." into sc-dev 2021-07-27 14:46:44 +00:00
Sergey Volnov
78456de866 Merge "Fix content capture not being usable from hotword detector." into sc-dev 2021-07-27 14:43:44 +00:00
Alex Buynytskyy
59bad728e2 Merge "Check for invalid (negative) string pool pos." into sc-dev 2021-07-27 14:39:29 +00:00
Bill Yi
ee936e5a15 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7a68ce14c2eea18a697b67b231c17da7c0ac4fa8
2021-07-27 14:05:52 +00:00
Amruth Ramachandran
4afa9546f9 Merge "[PhysicalChannelConfig] UL's frequency should not be same with DL's" into sc-dev 2021-07-27 13:47:33 +00:00
Bill Yi
a00270ba49 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I09de44e392c4a9cf220919dacfc8a40dc01c5546
2021-07-27 13:41:11 +00:00
Bill Yi
170f2b6287 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I782fcfa347f70ae2745a058128f836463f39ed77
2021-07-27 13:08:56 +00:00
Antoan Angelov
187f33a0a3 Revert "Revert "Revert "Revert "Launch admin policies settings screen if not possible to""
This reverts commit f1564bc866b1c80fdd26bf2843b7f04735a3a252.

Reason for revert: We now know how to properly fix this

Fixes: 191727929

Change-Id: I6380796dd987b097fe6d9ad36123676b9861ba3a
2021-07-27 13:00:49 +00:00
Sergey Volnov
eacb8c8aee Fix content capture not being usable from hotword detector.
Bug: 194534612
Test: local repro
Change-Id: I58e5c68ea486b4da2f82b9d89440f86a8d507727
2021-07-27 12:38:31 +01:00
Vadim Caen
ee08a68fd4 Merge "Do not draw icon background if it shouldn't be seen" into sc-dev 2021-07-27 10:05:17 +00:00
Rubin Xu
28e4c5d57a Merge "Stop managed profile owner granting READ_SMS" into sc-dev 2021-07-27 08:51:15 +00:00
Jason Chang
f40204087c Fix tutorial background color not up-to-date occasionally
1. Fix bug in the legacy code flow
   - Obtain color from contextThemeWrapper Theme_DeviceDefault_DayNight
   - In OneHandedDisplayAreaOrganizer#finishOffset()
     Remove redundant call "cb.onStartTransition" due to
     ambugiuous.

2. Improve performance
   - Remove redundunt callbacks.
   - Avoid create/remove leash on each start/end cycle.
   - Dispatch Transaction to bkg leash through onAnimationUpdate()
     bkg leash apply the same Transaction of display area.
   - Adjust animation duration of Tutorial panel.
   - Move bkg leash depend on yPos value to reduce SF
     componsition overhead.

3. Improve code readibility
   - Code flow : Register -> onStart() -> show  background ->
     detach background -> Unregister -> remove leash.
   - Remove redundant synchronization due to wmshell already
     guarantee thread safe.
   - Move getTranslationFraction to SettingsUtil.
   - Move getTransitionDuration to SettingsUtil.

Bug: 194507756
Bug: 193589897

Test: Local verify when changing dark theme and wallpaper theme.
Test: atest WMShellUnitTests
Change-Id: Ib55753be9e9f4665c20ad34437f86bf80cc9f3b4
2021-07-27 15:20:19 +08:00
Mingming Cai
2d5cbc5d2d Merge "Fix CQI range in CellSignalStrengthNr" into sc-dev 2021-07-27 03:29:26 +00:00
Sungsoo Lim
e1e4d324c8 Revert "[Media ML] Replace AudioSystem.isActiveStream"
This reverts commit d446b40140f4c6f4b0745c9b63a9d1ec2437f63b.

Reason for revert: b/194046224

Bug: 194046224, Bug: 169386435
Test: build
Change-Id: Ic2877b2dfb6e3f33f6757585166b3c76c1ed3b41
2021-07-27 11:53:28 +09:00
Julia Reynolds
1eadd544ef Add NMS broadcasts to protected list
Test: try to send broaddcasts from unrooted shell, verify they fail
Fixes: 194540462
Change-Id: I74a82d0fefb335d08599833e4518a2e66085c6e4
2021-07-27 02:31:09 +00:00
Arthur Hung
5fceebd597 Keeps power key intercepted during a panic gesture
The GestureLauncherService is used to detect camera and sos emergency
gesture by multi-pressing power, if it intercept power key, we should
return the intercept state that could prevent the following detector
processing the power key cause unexpected single tap.

Bug: 194522413
Test: keep pressing power to see if screen would turn off.
Test: atest GestureLauncherServiceTest
Change-Id: I3db7390df720f24f9b312946b1d8e01d672e6ef3
2021-07-27 02:14:46 +00:00
Sungsoo Lim
88c09af9ad Do not pass the volume key event to remote sessions
Bug: 194245558
Test: manually
Change-Id: Ic620d0efffdd18242c99eae40fa289bbdfd1b31a
2021-07-27 01:38:38 +00:00
Zoey Chen
e5225ba858 [PhysicalChannelConfig] UL's frequency should not be same with DL's
Bug: 194042135
Test: atset PhysicalChannelConfigTest
Change-Id: I1225a1429ff77b33c54af0dfce60a8739494e47a
Merged-In: I1225a1429ff77b33c54af0dfce60a8739494e47a
2021-07-27 00:43:16 +00:00
Guojing Yuan
9f7cbe51e1 Add permission check while creating CompanionDeviceService
Fix: 194435859

Test: N/A
Change-Id: Ia701706f54b131fa6a72cc188fb62919565b0c70
2021-07-27 00:27:01 +00:00
Mingming Cai
9ee4e9bbe9 Fix CQI range in CellSignalStrengthNr
bug: 194634718
Test: make
Change-Id: I784f2930999871b6bb90f4e17a2ba694da35126a
2021-07-26 16:55:31 -07:00
Peter Kalauskas
58a1a99def Move guest creation to background thread
Fix bug where phone could not unlock if guest user was being created in
the background.

This bug only affected devices with config_guestUserAutoCreated=true.

Test: In scheduleGuestCreation, replace createGuest() with
      Thread.sleep(20000). Ensure device can be unlocked within a few
      seconds after killing sysui process.
Bug: 194531015
Change-Id: Idc86a7afdb58a64baa3725d8aa56d7c93a409662
2021-07-26 23:44:19 +00:00
TreeHugger Robot
7ee0307aed Merge "Prevents scroll capture from targetting secure windows" into sc-dev 2021-07-26 23:35:11 +00:00
Peter Kalauskas
f69d25f7f2 Fix crash when running UserSwitcherControllerTest
Previously, test would fail on wembley with the following errors:

 - No service published for: fingerprint

 - No service published for: face

 - java.lang.AssertionError: expected:<1> but was:<0>

Fixes: 191280089
Bug: 194441567
Test: atest SystemUITests:com.android.systemui.statusbar.policy.UserSwitcherControllerTest
Change-Id: I34539a5e9678b308b4d3a03e4593fb9385e7831f
Merged-In: I34539a5e9678b308b4d3a03e4593fb9385e7831f
2021-07-26 23:32:30 +00:00
Peter Kalauskas
7c060b2951 Add tests for guest user metrics
Test: statsd_testdrive -terse 90
Test: atest SystemUITests:com.android.systemui.qs.tiles.UserDetailViewAdapterTest
Test: atest SystemUITests:com.android.systemui.statusbar.policy.UserSwitcherControllerTest

Bug: 169783558
Bug: 194441567
Change-Id: I009fc0eba32e34cb62f2cc15f9337bce9b81c89d
Merged-In: I009fc0eba32e34cb62f2cc15f9337bce9b81c89d
2021-07-26 23:31:52 +00:00
TreeHugger Robot
d1ccddb79a Merge "Add ART's module-lib to "module_current"" into sc-dev 2021-07-26 23:08:32 +00:00
Mark Renouf
8328fde0ec Prevents scroll capture from targetting secure windows
Bug: 194256552
Test: atest DisplayContentTests
Change-Id: I436ff109ae26ff22f5d4367a82f0d391588d0a0f
Merged-In: I436ff109ae26ff22f5d4367a82f0d391588d0a0f
2021-07-26 21:32:37 +00:00
Jeff DeCew
44a098036a Use correct stack height when bypass enabled.
Also removes the 'getPulseStackHeight' method which didn't solve any of the issues it was added to solve, and only introduced an issue when expanding a pulse on bypass device.

Fixes: 194513502
Test: on bypass device, expand QS; validate that notifications do not disappear at the bottom.
Test: on bypass device, receive pulse; unlock via bypass; validate that pulse seamlessly transitions to hun.
Test: on bypass device, expand shade from lock screen; validate that notifications all fade in at once, rather than appearing in sequence.
Test: on bypass device, receive pulse; drag to expand it; validate that other notifications appear in sequence, rather than popping in all at once. (Note, this is non-ideal behavior which has always existed, not a regression.  ideally other notifications would fade in.)
Test: on non-bypass device, receive pulse; biometric unlock; validate that notifications smoothly animate to open shade.
Change-Id: I8d0968f5a8632bba6b1db5940b933ee53b2abb8a
2021-07-26 16:48:49 -04:00
Adam He
b4f467b8b2 Fix inline autofill not working if both afservice and keyboard support
it, but keyboard disabled inline support manually.

Bug: 194434936
Bug: 190097796
Test: atest android.autofillservice.cts.inline
Change-Id: I54d4d76c62edf0258febf3769a9882f03185bc17
2021-07-26 20:01:28 +00:00
Daniel Sandler
a380ffbff1 Merge changes from topic "egg-finally" into sc-dev
* changes:
  Do you need paint chips?
  icon++
2021-07-26 19:01:53 +00:00
Alex Buynytskyy
b2a831ac3c Check for invalid (negative) string pool pos.
Parcel implementation would crash the system server otherwise.
Any exception is OK as it'll cause the cache to be invalidated.
Crash is not OK.

Bug: 194632313
Fixes: 194632313
Test: atest PackageParserCacheHelperTest
Change-Id: I58a4496b4646e172e6c3aee9ea17854a7ef55eaa
2021-07-26 18:51:02 +00:00
Bo Liu
d6a096006a ADPF: Handle preferred interval on unsupported device
The original java implementation just passed along whatever the server
returns which is -1 on unsupported devices. So do that here as well.

Test: PerformanceHintManagerTest passes on unsupported device
Bug: 194691581
Change-Id: I8ac07737e6ce52debf55478880d71f038f258056
2021-07-26 14:49:54 -04:00
Fabian Kozynski
5042345f85 Save space in small width screens
In order to leave more space for carrier names in QS, do the following:
* Remove enterprise icon from QQS/QS icons
* If screen is less than 390dp wide, don't show battery estimate and
instead show percentage.

Test: manual, multiple densities and landscape
Fixes: 189413614
Change-Id: I4758d3822dc07e42b254b8b48c9905231748165a
2021-07-26 14:36:31 -04:00
Kevin Chyn
88a506aad4 Merge changes from topic "facemanager-bypassflag" into sc-dev
* changes:
  12/n: Send bypassEnabled to AuthenticationClient
  11/n: Enable CoexCoordinator advanced logic by default
  10/n: Always send feedback if capacitive (or unknown) sensor
2021-07-26 18:12:28 +00:00
Dave Mankoff
0745b32802 Don't use Primary sensor when Secondary available.
In our proximity sensor, ignore events coming from the Primary sensor
when the Secondary sensor can be used instead.

Fixes: 193412708
Test: atest SystemUITests
Change-Id: I763b5541a92956c96445d2d9b3144956cbdccc9a
2021-07-26 13:11:42 -04:00
Victor Chang
55bb7a64cb Add ART's module-lib to "module_current"
Bug: 157639992
Test: m droid
Test: Manually verified that libcore's module-lib API is in the generated out/target/common/obj/module-lib-api.xml
Merged-In: I435140f19a0f5a81310154728c828ac70e12192a
Change-Id: I435140f19a0f5a81310154728c828ac70e12192a
(cherry picked from commit 6b107a93e1d5a09e12fcf3f0b92e6514f55fc6b2)
2021-07-26 17:38:35 +01:00
Josh Tsuji
7db2ece5c7 Merge "Reset to LiftReveal when going to sleep due to timing out, after a biometric auth." into sc-dev 2021-07-26 15:38:20 +00:00
Siim Sammul
6c852aeabc Merge "Do not make a getThreadTimeMicro() call when it is not needed. This was accidentally changed with https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080830" into sc-dev 2021-07-26 09:14:43 +00:00
Dan Sandler
3f261e6eca Do you need paint chips?
Android 12 has so many new colors. But which to use?

Sounds like you might need some PAINT CHIPS!  Stop by your
local hardware store, where you'll find them in the paint
aisle. Grab as many as you can hold---they're free! When you
get home, hold them up to your app or appwidget and see how
they look in different lighting and against different
wallpaper. You'll be soothed by the neutrals and piqued by
the accents!

Test: To enable the widget and activity, use the platlogo, or:
      $ adb shell settings put system egg_mode_s 12345 && \
          adb shell am start -a android.intent.action.MAIN \
	  -c com.android.internal.category.PLATLOGO
      Then you should be able to add the widget to the
      launcher, as well as:
      $ adb shell am start -n com.android.egg/.widget.PaintChipsActivity
Bug: 177962166
Change-Id: I0f3907c86f881d92a14d7659388f6a56154d8c10
2021-07-26 03:04:03 -04:00
Dan Sandler
3bc073de03 icon++
Test: visual
Bug: 177962166
Change-Id: I730e6494e2bf0d26a84fbe24b579663306fffb6c
2021-07-26 02:56:32 -04:00
Shubang Lu
8e31f85e02 Merge "Change default value from NONE to UNKNOWN" into sc-dev 2021-07-24 09:03:25 +00:00
Ahaan Ugale
0e3d3b90ec Merge changes I212ad58c,Idf5dd82d into sc-dev
* changes:
  Provide the way to enable/disable debug mode for logging egressed data
  Set the Debug flag to false
2021-07-24 06:54:24 +00:00
Alison Cichowlas
832779a555 Merge "Sharesheet: remove 2 separators, restyle the 3rd." into sc-dev 2021-07-24 05:53:04 +00:00
Evan Severson
4e09234999 Merge "Update mic/cam quicksetting toggles when user changes" into sc-dev 2021-07-24 02:52:31 +00:00
TreeHugger Robot
f4b27a4b99 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: ef631b164a -s ours
am skip reason: subject contains skip directive

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

Change-Id: I2e3bd48890f170aad7d2274435cc24e64a60f291
2021-07-24 02:39:27 +00:00
TreeHugger Robot
610c28b301 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-24 02:38:22 +00:00
TreeHugger Robot
db0c120536 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: bc138220ac -s ours
am skip reason: subject contains skip directive

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

Change-Id: I88d9c0e77b979f0de12feca4268996846138e259
2021-07-24 02:31:52 +00:00
TreeHugger Robot
ef631b164a Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-07-24 02:28:44 +00:00