Commit Graph

18809 Commits

Author SHA1 Message Date
Jing Ji
51904bf4b7 Merge "Construct the UidState in case of not found during unparceling" into tm-dev am: 0fe49ee574
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18563201

Change-Id: I32f165831e8c78c157c57f916ba59a0bbad979cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-24 19:00:42 +00:00
Jing Ji
0fe49ee574 Merge "Construct the UidState in case of not found during unparceling" into tm-dev 2022-05-24 18:43:10 +00:00
Jing Ji
115483cebb Merge "Don't remove the common processes from the procstats.resetSafely" into tm-dev am: 811e3c9d08
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18561414

Change-Id: I583d48a6b21eae9e40cfe74df6d4d7ede633a1fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-24 16:09:10 +00:00
Jing Ji
c76ca4f2f6 Construct the UidState in case of not found during unparceling
Bug: 232966772
Test: atest ProcStatsValidationTests
Test: atest ProcessStatsDumpsysTest
Test: atest CtsIncidentHostTestCases:ProcStatsProtoTest
Change-Id: Id3b22522d407074fe1758c3ef43cd2f5e163cfdc
2022-05-23 13:03:33 -07:00
Jing Ji
6fdb0de941 Don't remove the common processes from the procstats.resetSafely
As we're resetting it right after that, it doesn't make sense to
explicitly remove it.

Bug: 233563626
Test: atest ProcStatsValidationTests
Test: atest ProcessStatsDumpsysTest
Test: atest CtsIncidentHostTestCases:ProcStatsProtoTest
Change-Id: Ibd12379a7678a60238af79f86e694e1dc3c97176
2022-05-23 10:47:52 -07:00
Bill Lin
72dceda51c Merge "Define CUJ_BIOMETRIC_PROMPT in InteractionJankMonitor" into tm-dev am: 92b26992b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18367870

Change-Id: I5125089d51a0d199fc02aaeef30129b574f89ef7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-21 00:07:49 +00:00
Chaohui Wang
a6d1018941 Merge changes from topic "jank-toggle" into tm-dev am: dfed7f9e2f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18195532

Change-Id: I71f0b74af5ebf0a1bfab622a61f37a7c853f5f07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 12:26:59 +00:00
Michael Rosenfeld
7a0a92b96d Merge "Add an option, --reset-all, to dumpsys batterystats." into tm-dev am: 512b28faf4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17950624

Change-Id: Ie2ac9df6c507020e266f326110d45d8e973514b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 12:25:46 +00:00
lbill
9f2e36f2f4 Define CUJ_BIOMETRIC_PROMPT in InteractionJankMonitor
Define instrument constant in InteractionJankMonitor

TODO(b/232176881):
Instrument in Biometric code in next CL.
- AuthContainerView transit in  : SHOW
- AuthContainerView transit out : DISMISS
- AuthCredentialView transit in : SHOW
- AuthCredentialView transit out: DISMISS
- AuthBiometricView transit(Biometric <-> PIN/Password/Pattern): TRANSIT

Bug: 232176881
Test: atest SystemUITests
Test: make and get perfetto trace
Change-Id: I17fb2b5e00005c611efe2342abc30196ae4ccc31
2022-05-20 10:57:44 +00:00
Chaohui Wang
dfed7f9e2f Merge changes from topic "jank-toggle" into tm-dev
* changes:
  Add SettingsJankMonitor
  Add SETTINGS_TOGGLE CUJ to InteractionJankMonitor
2022-05-20 09:22:46 +00:00
Michael Rosenfeld
512b28faf4 Merge "Add an option, --reset-all, to dumpsys batterystats." into tm-dev 2022-05-20 06:54:58 +00:00
Junyu Lai
5c35103c20 Merge changes from topic "stats-migration" into tm-dev am: 23ed66f130
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18457684

Change-Id: I6d633b2218bc1ec079d442f1ac81a7299fb0f6eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 14:55:19 +00:00
Junyu Lai
23ed66f130 Merge changes from topic "stats-migration" into tm-dev
* changes:
  Add null check when list directory
  [MS82.2] Add a rewriteSingle method that takes two timestamps
2022-05-19 14:54:02 +00:00
TreeHugger Robot
6af6396c06 Merge "Update BrightnessSynchronizer Logic" into tm-dev am: 5b0c795a65
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18334422

Change-Id: I3ba3e0331f7a8d39cb4c1a0499c4e05b156d25db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 08:52:07 +00:00
TreeHugger Robot
5b0c795a65 Merge "Update BrightnessSynchronizer Logic" into tm-dev 2022-05-19 08:30:57 +00:00
Chaohui Wang
4921f2f22c Add SETTINGS_TOGGLE CUJ to InteractionJankMonitor
Bug: 230285829
Test: make build
Change-Id: Ieebc37dd28cf679ef5d0d455eb46de84679fdeaf
2022-05-19 15:13:10 +08:00
Santos Cordon
7f4fe4c4d6 Update BrightnessSynchronizer Logic
There was an error where if two auto-brightness changes came in quick
succession, the first could be treated as a user-initiated brightness
change.

1. First float change comes in: Xf
2. We write the brightness to the int-setting: Xi
3. Second float change comes in: Yf
4. Notification of the Xi change comes back to us and because X is
   different from Y, we treat it as a user-change.

The result of this is that auto-brightness learned from these erroneous
"user inputs" and both the short and long term model get affected
negatively for the user.  Often manifesting in brightness learning to
be too low.

The quick succession changes can happen in various situations, but
were most prominent on startup before and after a valid lux is read.

The fix is the revamp the data synchronization algorithm we use in
BrightnessSynchronizer to have updates + confirmation callback be
treated as an atomic operation before executing any other updates
that come in.  In the example above, that means we run (1) (2) and (4)
before handling the new update found in (3).

Fixes: 227483176
Test: Manually verify through debug logging.
Test: atest BrightnessSynchronizerTest
Change-Id: I93856fd74e50bcda04e88a7b7e736e02faa76c8e
2022-05-19 00:13:50 +00:00
TreeHugger Robot
ee5516f444 Merge "Add latency instrument for loading share sheet" into tm-dev am: 5843318c84
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18157815

Change-Id: I85e9a7b4629eb2ed0c7de32f10ef591f93097c6e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:41:01 +00:00
Miranda Kephart
933bbbc52c Merge "Hide edit buttons on clipboard and clipboard smart actions" into tm-dev am: be2681d3e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18374702

Change-Id: I260a5e464651eeef46706267fedfe2b718cd69de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 22:18:25 +00:00
Issei Suzuki
800ea4541c Merge "Revert ProtoLog to Slog in framework.jar" into tm-dev am: 61a7196fb5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18439162

Change-Id: I527c876c1af3f0f7e3c11644f0f57580563dad38
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 21:43:12 +00:00
Matt Casey
dd06c94d6e Merge "Style fixes for mini resolver" into tm-dev am: 2f6f3aa732
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18343548

Change-Id: I7194386513b574b0314dfc0f2f2d83b7f22f3f25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 21:33:52 +00:00
TreeHugger Robot
966a3b9bb0 Merge "Remove vendor apex privapp allowlist pruning" into tm-dev am: 05e61e90c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17988646

Change-Id: I80b6a66804c77ab2e2f8b371cc367429ca4b6910
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 20:26:35 +00:00
Treehugger Robot
8992cd567f Merge "Consolidate input OWNERS files" am: 467ebb8379 am: 7845f672bf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2021015

Change-Id: I0316c2bc2f120d9a6534758b49595a36c57f9158
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 19:18:41 +00:00
Treehugger Robot
7845f672bf Merge "Consolidate input OWNERS files" am: 467ebb8379
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2021015

Change-Id: Ie1b6446275299c2941271e433746d0b605404e0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 19:01:24 +00:00
Treehugger Robot
467ebb8379 Merge "Consolidate input OWNERS files" 2022-05-18 18:42:33 +00:00
Treehugger Robot
0a6a4a1078 Merge "Update OWNERS for appwidgets" am: 27e3cc6f2b am: 36e6ec949f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2100305

Change-Id: I74f978d44084af81dece3d1c6c9748e34c183461
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 16:17:06 +00:00
Treehugger Robot
36e6ec949f Merge "Update OWNERS for appwidgets" am: 27e3cc6f2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2100305

Change-Id: Ibe455cb450558808db3f7eed41a92e0953473159
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 16:03:01 +00:00
Treehugger Robot
27e3cc6f2b Merge "Update OWNERS for appwidgets" 2022-05-18 15:51:45 +00:00
TreeHugger Robot
5843318c84 Merge "Add latency instrument for loading share sheet" into tm-dev 2022-05-18 15:45:53 +00:00
Miranda Kephart
be2681d3e9 Merge "Hide edit buttons on clipboard and clipboard smart actions" into tm-dev 2022-05-18 14:54:38 +00:00
Issei Suzuki
61a7196fb5 Merge "Revert ProtoLog to Slog in framework.jar" into tm-dev 2022-05-18 09:29:22 +00:00
Matt Casey
2f6f3aa732 Merge "Style fixes for mini resolver" into tm-dev 2022-05-18 02:12:04 +00:00
Pinyao Ting
12adb658a0 Update OWNERS for appwidgets
Test: manual
Change-Id: I2bb2ddc4bd94e9e80d606e5141f336550eab8c88
2022-05-17 22:59:24 +00:00
Matt Casey
122b4a434a Style fixes for mini resolver
Make the icon 48dp.
Update button style to be opaque for "Open" and outlined for the browser
button.
Fix button padding at the bottom.

Test: Visual inspection with UX. Tested in gesture/3-button + light/dark
      theme
Bug: 175433480
Change-Id: I9304ee6fed28a467fcc54630dab18aaf4f140986
2022-05-17 16:55:21 +00:00
Miranda Kephart
3ede8bc62a Hide edit buttons on clipboard and clipboard smart actions
Guarded behind flags (but defaulted to "don't show").

Bug: 232521394
Bug: 232521320
Fix: 232521394
Fix: 232521320
Test: manual
Change-Id: Ia5899ad965e1466294b14f2991efe186ce3ced31
2022-05-17 15:51:14 +00:00
Issei Suzuki
b39d8489a3 Revert ProtoLog to Slog in framework.jar
ProtoLog is only supported in WM sources at this moment.
This partially reverts commit I4461eddd4a24c7bba1adef1571ce0fbf6d7db0a2.

Bug: 231342674
Test: Pass existing tests.
Change-Id: Ibe5ca4f8a18f92379e3aae8bd9c7c6f456df5810
2022-05-17 15:36:00 +00:00
junyulai
6ab8172b69 [MS82.2] Add a rewriteSingle method that takes two timestamps
This CL provides a public method in FileRotator to
allow caller to write data to a specified standalone file.

This CL also fix a file name generatign error in platform
tools.

Test: NetworkStatsServiceTest NetworkStatsCollectionTest
Bug: 230289468
Change-Id: I17558f349cb2a33062972fe1af96a19356798692
2022-05-17 16:08:27 +08:00
TreeHugger Robot
05e61e90c5 Merge "Remove vendor apex privapp allowlist pruning" into tm-dev 2022-05-16 20:59:24 +00:00
Ahan Wu
f2d9721d94 Add latency instrument for loading share sheet
Bug: 226526090
Test: see the trace attached in the bug
Change-Id: Ic2b31bfe59b7740dd7db6a75c86fad191b2f8507
2022-05-16 16:54:48 +00:00
Song Hu
fc9d42c5f8 Merge "Pass shared text content from ChooserActivity to AppPredictionService" into tm-dev am: d581c08704
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18356488

Change-Id: I285f5f8fd47030d7849d85e2653b4a90eb4256ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 22:00:44 +00:00
Song Hu
d581c08704 Merge "Pass shared text content from ChooserActivity to AppPredictionService" into tm-dev 2022-05-13 21:13:46 +00:00
Lucas Dupin
2c778512a3 Merge "Instrument CUJ_VOLUME_CONTROL with Trace tag" into tm-dev am: 5f5aa7e1ef
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18282094

Change-Id: I629c7dc15f99460c5f5b8191a2249b01a0e92376
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 20:03:55 +00:00
Lucas Dupin
5f5aa7e1ef Merge "Instrument CUJ_VOLUME_CONTROL with Trace tag" into tm-dev 2022-05-13 19:11:24 +00:00
Song Hu
bda0b769d6 Pass shared text content from ChooserActivity to AppPredictionService
Bug: 232426274
Test: manual test on local phone
Test: atest
Change-Id: Idc1d2f8efddab45cfaacd4a78cd745b9273b2719
2022-05-13 09:53:34 -07:00
Jing Ji
5a27a4d23a Merge "Always construct the UidProcessState instance in ProcessStats" into tm-dev am: 317e43a1ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18331909

Change-Id: I03d5fb37cf0c2a29b0cf58eb3546265b66740542
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 22:22:34 +00:00
Jing Ji
317e43a1ff Merge "Always construct the UidProcessState instance in ProcessStats" into tm-dev 2022-05-12 22:15:18 +00:00
Mark Renouf
c63c33319c Use System.nanoTime(), avoid desyncing frame times am: 7ab7a81845
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18322679

Change-Id: If4b00215b2308dc568dfb494955392d14cd87023
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 21:19:14 +00:00
Mark Renouf
7ab7a81845 Use System.nanoTime(), avoid desyncing frame times
The rendering pipeline expects frame vsync times as
System.nanoTime(). When the frame vsync time is behind
the most recent frame, the render request is dropped [*].

This reverts the value back to System.nanoTime() which
was accidentally changed in ag/15819081.

* frameworks/base/libs/hwui/renderthread/TimeLord.cpp:46

Bug: 217046739
Test: ???
Change-Id: I21d8737e7acb5ac13bfbcf150006415431d874aa
2022-05-12 20:44:09 +00:00
Michael Wachenschwanz
a1f9cb67b6 Merge "Skip collecting radio data on procstate change when radio is off." into tm-dev am: e59e5012cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18246347

Change-Id: I0ba132f5b4092f9cf849ca09e185f7eb71b0d28b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 19:39:21 +00:00
Michael Wachenschwanz
e59e5012cf Merge "Skip collecting radio data on procstate change when radio is off." into tm-dev 2022-05-12 18:16:34 +00:00