Commit Graph

18681 Commits

Author SHA1 Message Date
Calvin Pan
17a7bb10bb Merge "Fix using incorrect view in app language selection" into tm-dev am: fa264b81be am: 8a677d4a0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18579445

Change-Id: I24d2060057bfb208ba2c7d6981f540848ecc7cff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 07:45:27 +00:00
Calvin Pan
fa264b81be Merge "Fix using incorrect view in app language selection" into tm-dev 2022-05-25 06:51:35 +00:00
Calvin Pan
3a4d63e705 Merge "Fix app language show "Und" when all languages in the suggestion list" into tm-dev am: 8848ca6f3b am: 62d3c47058
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18570256

Change-Id: Id7cdf33691e8328743b80624854d4a75aaebfd1e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 03:18:35 +00:00
Matt Casey
961e34c520 Merge "Align outer edge of profile tabs and icons" into tm-dev am: 4a191d7fad am: 198c72adcd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18566767

Change-Id: I5627df947969c77e169d8dd257bfbe8ef0bf46a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 03:18:10 +00:00
Calvin Pan
5f8fa45e80 Fix using incorrect view in app language selection
Bug: 233175025
Test: By manual
Change-Id: Idd5b277cdfb737acf9262ff5efbeca93afaa100f
2022-05-25 03:15:19 +00:00
Calvin Pan
8848ca6f3b Merge "Fix app language show "Und" when all languages in the suggestion list" into tm-dev 2022-05-25 02:36:24 +00:00
Matt Casey
4a191d7fad Merge "Align outer edge of profile tabs and icons" into tm-dev 2022-05-25 02:34:45 +00:00
TYM Tsai
8a29813f8a Merge "Fix inline tooltip position is wrong" into tm-dev am: edca30dce8 am: 34fe95788a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18350147

Change-Id: I21e50d80c9d89a661100e509bebbf12b409092eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 01:56:28 +00:00
TYM Tsai
edca30dce8 Merge "Fix inline tooltip position is wrong" into tm-dev 2022-05-25 01:05:17 +00:00
TreeHugger Robot
37b8f184f9 Merge "MessagingImageMessage: Don't crash if measured after recycle" into tm-dev am: ec3ee0a5c3 am: 646ae22229
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18577093

Change-Id: I9ae2f43520ae5c401c7df09a95dd5188b33f2280
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 00:33:41 +00:00
Andrey Epin
3512c00c65 Merge "Fix a11y navigation in Chooser" into tm-dev am: 247cb3a3bc am: 6e0699ddf0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18408340

Change-Id: Ib11ba8c41ca9654fb22024a96495f33da5e7b028
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 00:32:23 +00:00
TreeHugger Robot
ec3ee0a5c3 Merge "MessagingImageMessage: Don't crash if measured after recycle" into tm-dev 2022-05-25 00:08:29 +00:00
Andrey Epin
247cb3a3bc Merge "Fix a11y navigation in Chooser" into tm-dev 2022-05-24 23:45:14 +00:00
Andrey Epin
2a6ed87df9 Fix a11y navigation in Chooser
With the `ResolverDrawerLayout`-`RecylerView` combination it was
possibel for accessibility navigation to get off-screen.
The issue is addressed by adding a custom accessibility delegate to the
recycler view which makes sure that an item receving accessibility focus
becomes visible.

Bug: 230132993

Test: Manueal - user accessibility navigation on the Chooser with a long list of
apps; make sure that items that receive a11y focus become visible when
scrollng in both directions.

Change-Id: I448d88660f701ca3c5ea0c92416595c9389af521
2022-05-24 19:48:06 +00:00
Jing Ji
d7bdd3b62a Merge "Construct the UidState in case of not found during unparceling" into tm-dev am: 0fe49ee574 am: ed578c06b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18563201

Change-Id: Ib74c5895d80d0cbac01e26848f0a2d185ea68308
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-24 19:39:58 +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
Julia Tuttle
2e12d55283 MessagingImageMessage: Don't crash if measured after recycle
We're hoping to gut the recycling code in the messaging notification
code entirely (it's a lot of complexity for apparently little or no
performance gain), but in the meantime, mitigate a System UI crash.

Bug: 231025249
Test: none, I found no unit tests to start with
Change-Id: I3bcc14d102a87ed96ce37241d25eccf44ba2acb0
2022-05-24 13:07:32 -04:00
Jing Ji
52905be4d9 Merge "Don't remove the common processes from the procstats.resetSafely" into tm-dev am: 811e3c9d08 am: 39e98f97be
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18561414

Change-Id: I53e14b4ccbbcade08767ab5ff426e71599acd9b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-24 16:12:58 +00:00
TYM Tsai
3392d187eb Fix inline tooltip position is wrong
The PopupWindow will show up above the anchor with the real rectangle.
If the anchor is doing an animation, it will get a temporary top of the
anchor because the rectangle is conisince changed by the animation. So
attach tooltip after a while for waiting the animation is done.
And when the tooltip overrides the inline suggestion, clicking the
suggestion won't work. Force the y offset above or below the anchor to
fix the problem.

Bug: 223088398
Test: atest android.autofillservice.cts.inline.InlineTooltipTest
Change-Id: I068efc3d20f4486decd2c9e690ebeb2981fb6722
2022-05-24 21:33:54 +08:00
Calvin Pan
49c4f9e051 Fix app language show "Und" when all languages in the suggestion list
- Handling the case that all languages in the suggestion list
- Adding strict condition for reusing convertView in getView()

Bug: 233175025
Test: Verified with test apk
Change-Id: I9419704226322394125e495bd9a35a5edd0683e8
2022-05-24 10:48:38 +00:00
Matt Casey
80ef161e48 Align outer edge of profile tabs and icons
Previously tabs were full-width, now they align with the outer edges of
icons.

In ResovlerActivity, this is constant. In ChooserActivity, the placement
of the icons is based upon the icon count and layout width, so it must
be computed at runtime.

Bug: 233330219
Test: Manually with various orientations across Chooser and Resolver.
Test: atest ResolverActivityTest, atest ChooserActivityTest
Change-Id: I2009211c277f6ea0b3f14a06a54e82f4c190c564
2022-05-24 01:01:44 +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
cf0f928a91 Merge "Define CUJ_BIOMETRIC_PROMPT in InteractionJankMonitor" into tm-dev am: 92b26992b7 am: 2393e9c276
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18367870

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

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

Change-Id: Ic02ba149f7f6230d29cd932436802839cb7e0118
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 12:51:14 +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
a0bc85de6b Merge changes from topic "stats-migration" into tm-dev am: 23ed66f130 am: 4ce5244ff6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18457684

Change-Id: I74cd691205721e582e675c80061fbd21b756a45b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 15:31:07 +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
7cd84b1ec2 Merge "Update BrightnessSynchronizer Logic" into tm-dev am: 5b0c795a65 am: ff52fa4dab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18334422

Change-Id: I987af5c0f70edee6336c37726cc5d47f3c21a84f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 09:30:39 +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
641153ac17 Merge "Add latency instrument for loading share sheet" into tm-dev am: 5843318c84 am: 2ef01eda02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18157815

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

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

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

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

Change-Id: I49aa25148cc61daa7424c9fb32654fd410a4cf27
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 21:51:36 +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
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