Nate Myren
e612997b53
Merge "Add attribution info to start callbacks" into sc-dev am: 5d97f29218 am: 9d1a9399b8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15446590
Change-Id: Ib6fedf0b38bd88c3f6cd0aef6efa9529f17aaa44
2021-08-03 20:18:59 +00:00
Nate Myren
9d1a9399b8
Merge "Add attribution info to start callbacks" into sc-dev am: 5d97f29218
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15446590
Change-Id: I42bdf188ec74c9d3a7179f717a08c7fec7f33833
2021-08-03 20:06:34 +00:00
Nate Myren
06d07d54db
Add attribution info to start callbacks
...
Add attribution flags and chain IDs to start callbacks, and have the
PermissionUsageHelper listen for starts. This ensures that, if another
start happens while an op is already running, and has chain information,
then this chain information will be recorded.
Test: manual
Bug: 194198234
Change-Id: I0ab1aa0969b70e18001f4a814ea5689f9329a019
2021-08-03 08:25:31 -07:00
Wu Ahan
60894eefb5
Merge "Support surface only instrumentation" into sc-v2-dev am: d6d30bf7f6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15256893
Change-Id: I78d98f78086ace09d32fac4329c6b3357aed56b5
2021-08-02 10:23:59 +00:00
Wu Ahan
d6d30bf7f6
Merge "Support surface only instrumentation" into sc-v2-dev
2021-08-02 10:06:03 +00:00
Li Li
d7306136e8
Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev am: ef12967b75 am: d2aeb490a8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15395534
Change-Id: Ica77c69580dd69bed4e260779c1f7318307282b1
2021-07-30 17:03:54 +00:00
Li Li
d2aeb490a8
Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev am: ef12967b75
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15395534
Change-Id: I28f1b15ab636063727f02414a98896ee2679c6fc
2021-07-30 16:50:50 +00:00
Li Li
f97b1decee
Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev am: ef12967b75
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15395534
Change-Id: I997b46822bd83f9c9f7dc6a02e9514a95b3758a1
2021-07-30 16:49:33 +00:00
Li Li
ef12967b75
Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev
2021-07-30 16:35:16 +00:00
Ahan Wu
7141ab2619
Support surface only instrumentation
...
- Support surface only instrumentation.
- Add enums for pip and wallpaper instrumentation.
Bug: 170708749
Test: atest InteractionJankMonitorTest
Test: atest FrameTrackerTest
Change-Id: Iec1eb82d1a4756a7b85c8fbdd05f4132a74c613c
2021-07-29 19:21:31 -08:00
Daniel Solomon
070300e858
Merge "Revert "SCREEN_BRIGHTNESS - map 255 to current max"" into sc-dev am: d5e1458566
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15404418
Change-Id: Ie65fbb748337a030492d515bbea94c551398b5f5
2021-07-29 19:15:35 +00:00
Hai Zhang
0f17f27c77
Merge "Only construct real Throwable objects in AndroidFuture.readThrowable()." into sc-dev am: af04dd2ad5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302018
Change-Id: I1bf40fe706b0f03443a8a6fbb6e8c84b0fa44402
2021-07-29 19:12:13 +00:00
Li Li
bbe06e7b59
Freezer: fix exception when parsing /proc/locks
...
The original code is based on /proc/locks manpage. Unfortunately, that
manpage is never correctly updated to include the new field for blocked
locks. The new code detects the extra field. As StringTokenizer is too
heavy, ProcFileReader is used for better performance.
Bug: 194756340
Test: FrameworksUtilTests com.android.internal.util.ProcFileReaderTest
Test: FrameworksCoreTests com.android.internal.os.ProcLocksReaderTest
Test: No /proc/locks parsing exception with blocked locks
Change-Id: I4c9763f9d3091f7d84d2e4b672d7e5cb78b33f59
2021-07-29 09:18:53 -07:00
Siim Sammul
76b63d54cf
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 am: 6c852aeabc
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15346904
Change-Id: Ibaae003e403fc6d20002a62241ec23a0fa97f2ce
2021-07-28 18:25:11 +00:00
Alison Cichowlas
7bed52f477
Merge "Sharesheet: remove 2 separators, restyle the 3rd." into sc-dev am: 832779a555
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15377016
Change-Id: I37ce8ef56bc0cb8efd24e899406f30b7242738ae
2021-07-28 18:24:05 +00:00
Daniel Solomon
d41a2a1ca0
Merge "Revert "SCREEN_BRIGHTNESS - map 255 to current max"" into sc-dev am: d5e1458566 am: ae50161de8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15404418
Change-Id: I1f94be5d70453b6ef0a28d8c1a680a8880242e04
2021-07-28 18:11:11 +00:00
Daniel Solomon
ae50161de8
Merge "Revert "SCREEN_BRIGHTNESS - map 255 to current max"" into sc-dev am: d5e1458566
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15404418
Change-Id: I7782fd8704f1b7c2444b6630ce001875b19d6931
2021-07-28 17:58:09 +00:00
Daniel Solomon
d5e1458566
Merge "Revert "SCREEN_BRIGHTNESS - map 255 to current max"" into sc-dev
2021-07-28 17:42:43 +00: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
Alison Cichowlas
82cee4bd0a
Merge "Sharesheet: be more defensive about un-unparcelable intents." into sc-dev am: a1d1a38269
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15374840
Change-Id: I24bf7607ee67bfba322f0f03a62eb58745b98a79
2021-07-28 15:03:08 +00:00
Santos Cordon
28c5f05a22
Merge "SCREEN_BRIGHTNESS - map 255 to current max" into sc-dev am: e4e836a175
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15359296
Change-Id: I0e027bc0ecbdea29c8b86c1785dc514e69efdff8
2021-07-28 14:55:42 +00:00
Alison Cichowlas
b566f49ae4
Merge "Sharesheet: action bar is independent of WP tabs, should always launch as primary user." into sc-dev am: 9197f7b260
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15363687
Change-Id: I23d9a8b26412d255f50093f6b8f5cfa9bed00052
2021-07-28 14:50:52 +00:00
Hai Zhang
2af324b732
Merge "Only construct real Throwable objects in AndroidFuture.readThrowable()." into sc-dev am: af04dd2ad5 am: 831f5db04f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302018
Change-Id: I07948cad1d44aaaeb68f0f4c9a44e17ec104749d
2021-07-28 02:03:31 +00:00
Hai Zhang
831f5db04f
Merge "Only construct real Throwable objects in AndroidFuture.readThrowable()." into sc-dev am: af04dd2ad5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302018
Change-Id: I2afc85c266bebcb88848c57a094ed0af757b277e
2021-07-28 01:41:05 +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
Tiger Huang
6b52c08bbf
Merge "Use InsetsVisibilities to carry requested visibilities" into sc-v2-dev am: 9052763843
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15385730
Change-Id: Iac4fdec20890c2df0960488453c3ff7d2f801f8b
2021-07-27 06:34:28 +00:00
Tiger Huang
9052763843
Merge "Use InsetsVisibilities to carry requested visibilities" into sc-v2-dev
2021-07-27 06:21:13 +00:00
Siim Sammul
d75cbc78c4
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 am: 6c852aeabc am: b77fb08506
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15346904
Change-Id: I6552265f9258ea772b1774d00bd884cc2d530202
2021-07-26 19:19:05 +00:00
Alison Cichowlas
993c186923
Merge "Sharesheet: remove 2 separators, restyle the 3rd." into sc-dev am: 832779a555 am: fa25c27e48
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15377016
Change-Id: I6d5563833b41f0f0221bbbc4fa71aedf5eb494d0
2021-07-26 19:10:45 +00:00
Alison Cichowlas
b4cf9f5ffc
Merge "Sharesheet: be more defensive about un-unparcelable intents." into sc-dev am: a1d1a38269 am: ddbade4025
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15374840
Change-Id: I3f542d0d7548543331fd05a704542df7b563a0b0
2021-07-26 19:05:28 +00:00
Santos Cordon
58622a42ef
Merge "SCREEN_BRIGHTNESS - map 255 to current max" into sc-dev am: e4e836a175 am: 379e94d1da
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15359296
Change-Id: I2314b5dd09df823a203088c16481fa8717cae5df
2021-07-26 18:58:37 +00:00
Alison Cichowlas
8f3b2e1c8a
Merge "Sharesheet: action bar is independent of WP tabs, should always launch as primary user." into sc-dev am: 9197f7b260 am: 34ff8cdeaf
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15363687
Change-Id: I1b5085f13d39250bd58003a5a353bef7e4762054
2021-07-26 18:56:02 +00:00
Tiger Huang
090c0cbcb0
Use InsetsVisibilities to carry requested visibilities
...
InsetsState contains much more information than visibilities, such as
display frame, display cutout, rounded corners, privacy indicator
bounds, and frames of of insets sources. The control target only needs
to send the requested visibilities to WMS, so it can be too heavy to use
InsetsState.
This CL introduces an new class, InsetsVisibilities, which only contains
which type has which visibility. So it uses less memory, and it is more
efficient on copying and checking the equality.
Fix: 194186241
Test: atest InsetsVisibilitiesTest WindowAddRemovePerfTest
InsetsControllerTest RegisterStatusBarResultTest
CommandQueueTest LightsOutNotifControllerTest
ActivityRecordTests DisplayContentTests
DisplayPolicyLayoutTests InsetsPolicyTest
InsetsSourceProviderTest InsetsStateControllerTest
WindowFrameTests WindowManagerServiceTests WindowStateTests
Change-Id: I86c1b26b4383bfa3b924726d580e5706e13ba735
2021-07-26 21:55:34 +08:00
Siim Sammul
b77fb08506
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 am: 6c852aeabc
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15346904
Change-Id: I73089da899cfe25a90f5d52d894ab3ba0291ef1b
2021-07-26 09:25:51 +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
Alison Cichowlas
fa25c27e48
Merge "Sharesheet: remove 2 separators, restyle the 3rd." into sc-dev am: 832779a555
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15377016
Change-Id: I0c1df12a77fdfafe0ab87d28400a77c84b42ceb6
2021-07-24 06:06:52 +00:00
Alison Cichowlas
832779a555
Merge "Sharesheet: remove 2 separators, restyle the 3rd." into sc-dev
2021-07-24 05:53:04 +00:00
Alison Cichowlas
6e6455518c
Sharesheet: remove 2 separators, restyle the 3rd.
...
Test: Manual
Bug: 178619070
Change-Id: I9a6797863be2d0220fb71b2b9ca1d04c1f279b02
2021-07-23 21:43:22 +00:00
Alison Cichowlas
ddbade4025
Merge "Sharesheet: be more defensive about un-unparcelable intents." into sc-dev am: a1d1a38269
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15374840
Change-Id: I86883751c47eeb4f3bc2b5ba51ff6c4a154fba69
2021-07-23 21:42:45 +00:00
Alison Cichowlas
a1d1a38269
Merge "Sharesheet: be more defensive about un-unparcelable intents." into sc-dev
2021-07-23 21:31:40 +00:00
Santos Cordon
379e94d1da
Merge "SCREEN_BRIGHTNESS - map 255 to current max" into sc-dev am: e4e836a175
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15359296
Change-Id: Ic2d569cc3c914945b8fc322b920f8aa6d7f9d007
2021-07-23 20:17:24 +00:00
Santos Cordon
e4e836a175
Merge "SCREEN_BRIGHTNESS - map 255 to current max" into sc-dev
2021-07-23 20:13:55 +00:00
Alison Cichowlas
417b15994a
Sharesheet: be more defensive about un-unparcelable intents.
...
Test: atest ChooserActivityTest
Bug: 194359789
Change-Id: I2fb0c0e120f048042dea499e1ffc126989e0e2d2
2021-07-23 12:17:29 -04:00
Alison Cichowlas
34ff8cdeaf
Merge "Sharesheet: action bar is independent of WP tabs, should always launch as primary user." into sc-dev am: 9197f7b260
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15363687
Change-Id: Idc076592b635f7787e6b41b53755e1933ae32b45
2021-07-23 15:08:10 +00:00
Alison Cichowlas
9197f7b260
Merge "Sharesheet: action bar is independent of WP tabs, should always launch as primary user." into sc-dev
2021-07-23 14:54:12 +00:00
Alison Cichowlas
f0657fc49e
Sharesheet: action bar is independent of WP tabs, should always launch
...
as primary user.
Bug: 193424706
Test: atest ChooserActivityTest; manual per bug steps
Change-Id: Ie680270fa6a62ec59f35715514bfc0232b0d12f9
2021-07-22 20:43:21 -04:00
TreeHugger Robot
5f9942df32
Merge changes from topic "a11y_gesture_s-sc-v2-dev" into sc-v2-dev am: ede423187b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15124972
Change-Id: I8d6c0a1842b367db8622f7144fbde02bb2a7fa3c
2021-07-22 19:12:17 +00:00
TreeHugger Robot
ede423187b
Merge changes from topic "a11y_gesture_s-sc-v2-dev" into sc-v2-dev
...
* changes:
Add the log for new supported accessibility button type 'Accessibility Gesture'
Update the supported type in ACCESSIBILITY_BUTTON_MODE according to navigation gestural mode or button mode
Add a supported type 'gesture' under ACCESSIBILITY_BUTTON_MODE
2021-07-22 18:53:58 +00:00
Santos Cordon
002e656a51
SCREEN_BRIGHTNESS - map 255 to current max
...
Since the current max can change for brightness due to
high-brightnes-mode (HBM), make it so that 255 is always mapped
to the current max, which can be different when in HBM or normal
brightness mode.
Bug: 187784093
Test: atest HighBrightnessModeControllerTest
Test: manually verify 255 is used for max when in HBM or not.
Change-Id: Ib0631fc12de0e8e4c7c638901d82c362e79944c3
2021-07-22 18:34:37 +01:00
Nikita Ioffe
cc2578c34b
Restrict what APEXes different installers can update am: e501fd8379 am: 85af284b2f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15331871
Change-Id: I62b1ad90cd47aee96437de8bf8d36e5ef9cc111d
2021-07-22 17:26:55 +00:00