Commit Graph

18866 Commits

Author SHA1 Message Date
Matt Casey
5f3b7d655f Merge "Finish mini-resolver after user action." into tm-dev am: 831370bffb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18838611

Change-Id: I51f844182e43db1ebe3c50a543ea04f499943fed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 16:03:03 +00:00
Matt Casey
831370bffb Merge "Finish mini-resolver after user action." into tm-dev 2022-06-13 15:46:13 +00:00
Yurii Zubrytskyi
4226e4b4e4 Merge changes from topic "Tiramisu-SDK-Finalization-revert-hack" into tm-dev am: 120aa88d0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18764290

Change-Id: Ic040b07c1559829833a4998f5001b8f34267c9a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-11 08:19:12 +00:00
Yurii Zubrytskyi
120aa88d0d Merge changes from topic "Tiramisu-SDK-Finalization-revert-hack" into tm-dev
* changes:
  Catch parsing errors for pre-release platforms
  Revert "HACK: allow apps with pre-release SDK RESTRICT AUTOMERGE"
2022-06-11 05:42:37 +00:00
Matt Casey
5b015f84af Finish mini-resolver after user action.
Bug: 235440512
Test: Trigger mini resolver, press each button and press back and verify
      the resolver is gone.
Change-Id: Ib22f7f38b4c5f7143b5898dbc3c74e3c7a0450f3
2022-06-10 18:06:18 +00:00
Daniel Sandler
a95ab05e3a Merge "Android 1<3." into tm-dev am: 0f8269e68e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18819106

Change-Id: Id245d8b53ae63dc7e47f1812528513e42b390312
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 01:43:24 +00:00
Daniel Sandler
0f8269e68e Merge "Android 1<3." into tm-dev 2022-06-10 01:19:44 +00:00
Dan Sandler
2c57c9c164 Android 1<3.
Fixes: 216297617
Test: adb shell am start -n android/com.android.internal.app.PlatLogoActivity
      adjust clock to 13:00
      for a bonus, long press on the bubbles
Change-Id: I3d32d452c6dd7a7e69aad86a033aba09ae8625d5
2022-06-09 12:54:27 -04:00
TYM Tsai
cd43f8064c Merge "Fix unbind crash in AbstractRemoteService." into tm-dev am: dc9db874ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18691109

Change-Id: I727b2114ac409a1f33ed92277be4189e45270a77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-07 16:19:31 +00:00
TYM Tsai
dc9db874ba Merge "Fix unbind crash in AbstractRemoteService." into tm-dev 2022-06-07 16:00:13 +00:00
Yurii Zubrytskyi
bb146e1b71 Catch parsing errors for pre-release platforms
In cases when a parsed APK is built with a pre-release platform
(e.g. Tiramisu for 33) our generic parsing code may not fail, as
it is called for user packages as well, and a single bad package
may disable the whole device.

Bug: 233398506
Test: presubmits

Change-Id: I7f93176efceac94b0768d0e4d5be1c28ccce23e3
2022-06-06 15:00:44 -07:00
Mark Renouf
f89b28c4c6 Merge "Fix crash in DisplayResolveInfo writeToParcel impl" into tm-dev am: 08a70e40fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18715227

Change-Id: I62b7d51c4186e9e17da9539fadc6eeabc22a31e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-04 12:38:25 +00:00
Mark Renouf
08a70e40fb Merge "Fix crash in DisplayResolveInfo writeToParcel impl" into tm-dev 2022-06-04 12:13:21 +00:00
Mark Renouf
9d5f710317 Fix crash in DisplayResolveInfo writeToParcel impl
This fixes an incorrect use of List.toArray() leading to a crash

When passed no arguments, toArray returns an Object[] and not T[],
hence the unchecked cast will throw ClassCastException when this is run.

This change cleans up the parcelable implementation by replacing
writeParcelableArray with writeTypedList, which is more efficient and
avoids the conversion to/from an array entirely.

Bug: 200347466
Test: Take screenshot, tap share, long press an app, short press power
Change-Id: I225664c8709502c7e45ac06c2858c0c5ac0b7506
2022-06-03 19:50:38 +00:00
Iris Yang
3dfec49ea8 Merge "Wire display context for text toasts" into tm-dev am: ca6ef9125d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18660549

Change-Id: I50ed33505cfa726cab10348ee352bfce702db08b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-03 03:16:29 +00:00
Iris Yang
ca6ef9125d Merge "Wire display context for text toasts" into tm-dev 2022-06-03 02:58:01 +00:00
TreeHugger Robot
bf40a305ae Merge "Update fgs manager message and remove dot" into tm-dev am: bba9932a6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18705774

Change-Id: I6dd4241fad27835c6f93b3b3598efa2318ad6c8c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 05:22:51 +00:00
TreeHugger Robot
bba9932a6b Merge "Update fgs manager message and remove dot" into tm-dev 2022-06-02 05:18:03 +00:00
Evan Severson
280ea9072d Update fgs manager message and remove dot
Test: Build and start a foreground service
Fixes: 234476539
Change-Id: Ib85f68e5517498c3e6441d246cc9b3feb1c5de1d
2022-06-01 17:45:21 -07:00
Matt Casey
913908c1ad Merge "Fix ResolverDrawerLayout child measurement" into tm-dev am: a834a9bd52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18625112

Change-Id: I52d01f5563887e911617744bd523fed3c84b7398
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-01 19:42:25 +00:00
Matt Casey
a834a9bd52 Merge "Fix ResolverDrawerLayout child measurement" into tm-dev 2022-06-01 19:03:44 +00:00
Vadim Caen
e199288f63 Merge "Transfer the actual dispatcher when the window is preserved" into tm-dev am: a147b66f61
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18601925

Change-Id: I34b3da192b4cf72d170e0058b8265ec4260cb235
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-01 15:15:46 +00:00
Vadim Caen
a147b66f61 Merge "Transfer the actual dispatcher when the window is preserved" into tm-dev 2022-06-01 14:35:57 +00:00
Iris Yang
c0055b9b7b Wire display context for text toasts
Toast doesn't work correctly for multi-display. When default display's
screen off, the toast wouldn't be able to show on secondary display.
Without this change, default display screen state will cause text toasts
doesn't correctly show up.

Bug: 233717651
Test: atest ToastUITest
Change-Id: I1705bc71062fa28c378bf7cc02d104c0f53ce865
2022-06-01 11:28:15 +08:00
Ahaan Ugale
67815e4fd8 Fix unbind crash in AbstractRemoteService.
Crashes if there's an attempt to unbind when the service isn't already
bound. It's unclear which service is triggering this code path though.

Fix: 230543089
Change-Id: Ia108c709ed3c82ca18e581b464c963d52e108a3e
2022-06-01 02:07:17 +00:00
Matt Casey
d68f10b2f7 Merge "Fix Chooser enter transition animation" into tm-dev am: 8d5bcaa534
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18609372

Change-Id: I6ff40552079bc8b47f1f047982b897b1b5c46345
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-01 01:25:29 +00:00
Matt Casey
8d5bcaa534 Merge "Fix Chooser enter transition animation" into tm-dev 2022-06-01 01:13:49 +00:00
Robert Horvath
b8dbb51759 Merge changes from topic "privacy-type-media-projection" into tm-dev am: d59d17d74a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18375274

Change-Id: I03c6e7abd4245653accc4a2fa1a472861dd4f0f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 18:07:18 +00:00
Robert Horvath
d59d17d74a Merge changes from topic "privacy-type-media-projection" into tm-dev
* changes:
  Add MediaProjection privacy item type
  Extract privacy item monitoring interface, add AppOpsPrivacyItemMonitor
2022-05-30 17:43:32 +00:00
James O'Leary
4177945503 Match Android's colors to design intent am: c3cffc8bb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18581096

Change-Id: I0c82674b34177843e47e21582c68697422c6f949
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 16:50:09 +00:00
James O'Leary
f5fff77bf8 Merge changes from topic "themesMay2322" into tm-dev
* changes:
  Update ColorScheme.toString() formatting
  Match latest variant spec; update hue rotation logic
  Match Android's colors to design intent
2022-05-27 16:40:18 +00:00
Andrey Epin
6123cddc75 Fix Chooser enter transition animation
Fix a concurrency issue when we might start activity enter transition
animation from an unprepared layout which caused ocassional visual
artifacts.

Fix: 232963730
Test: Manual testing by launching Chooser with varius intents.
Change-Id: I3962250b53ea8d96b124d1daf964e447600a5e3a
2022-05-27 09:21:39 -07:00
Matt Casey
2254cd9acb Merge "Minimize distance between text and pin in direct share row" into tm-dev am: 59ebb04c78
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18521525

Change-Id: I4a3112147b4812494701378a4c17b542dc88f189
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 02:38:03 +00:00
Matt Casey
59ebb04c78 Merge "Minimize distance between text and pin in direct share row" into tm-dev 2022-05-27 02:13:03 +00:00
Andrey Epin
c91318ace9 Fix ResolverDrawerLayout child measurement
ResoverDrawerLayout didn't take into account its horizontal paddints
when measured its children.
Plus a trivial refactoring.

Fix: 223775954
Test: Manual test: open Chooser in landscape mode on a phone with
3-button navigation.

Change-Id: Ia4835a2ddb52bff4ba36597dea3a3d7bf83967aa
2022-05-26 16:05:00 -07:00
James O'Leary
c3cffc8bb6 Match Android's colors to design intent
May 2021 HCT code in Android ("CAM") gives results inconsistent with
HCT in design tooling. Using HCT solver ensures they match, allowing
design to verify their specs against the results in Android, derisking
the launch of theme variants.

HCT Solver is a standalone class that is easily integrated with Android
& Cam: when Cam.get(hue,chroma,tone) is called, it now calls
HctSolver.get(hue, chroma, tone).

HCT Solver was imported from google3, where it is tested against _all_
hex codes, both forward and reverse conversions. A number
of other tests cover all parts of the theming system, giving us high
confidence that there won't be a regression.

Test: atest ColorSchemeTest (unit test); atest SystemPaletteTest (CTS).
Spent ~4 hours trying a variety of wallpapers, and seed colors, and
used dumpsys to verify results match UX spec. Verify hex codes and HCT
values output by Android match those in design tooling via putting
hex codes into Monet Studio, and confirming the resulting HCT values
match the HCT values generated by Android.
Bug: 213314628
Change-Id: I95da1efacc2d61f19ce7f20efa3e7f70736258a9
2022-05-26 19:31:55 +00:00
Matt Casey
2078d3125f Minimize distance between text and pin in direct share row
When the TextView takes up multiple lines, the layout acts as if the
full width is used, thus pushing the pin all the way to the left.

This change measures the text itself and computes an ideal width for the
TextView based upon the line measurements.

Test: Visual inspection: pin several targets: single line, first line
      longer, second line longer, etc. Observe spacing.
Bug: 232445263
Change-Id: Id7601c58aae1e28c66c5311ba66b288443d73272
2022-05-26 17:32:21 +00:00
Vadim Caen
13048f123b Transfer the actual dispatcher when the window is preserved
When recreating the Activity, if the window is preserved,
onAttachedToWindow won't be called and PhoneWindow.onViewRootImplSet
won't be called either, where we set the actual dispatcher to the
Activiy's proxy dispatcher.

So when the window is preserved, we directly assign the actual Dispatcher
from the preserved Window to the new PhoneWindow

Fixes: 228571903
Test: In progress
Test: Open an app with OnBackInvokedCallback enabled, split to top,
      close the other application, do a back gesture
Change-Id: I050247501df8f6cf6cd0024a6233f88a035f6279
2022-05-25 19:46:37 +02:00
Calvin Pan
ca00515971 Merge "Fix using incorrect view in app language selection" into tm-dev am: fa264b81be
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18579445

Change-Id: I3f794e4add28c46c7e2f77ea39eb12db82f683a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 07:08:48 +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
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
40e5e91374 Merge "Fix app language show "Und" when all languages in the suggestion list" into tm-dev am: 8848ca6f3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18570256

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

Change-Id: Ie32c9831e186f77e549f7b39b63b5f55e3c434e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 02:58:49 +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
15ccd31eeb Merge "Fix inline tooltip position is wrong" into tm-dev am: edca30dce8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18350147

Change-Id: Ia7e2af3df18f68943d9cb45fd02dcdc44c10e42b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 01:28:36 +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
fed94f67d9 Merge "MessagingImageMessage: Don't crash if measured after recycle" into tm-dev am: ec3ee0a5c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18577093

Change-Id: I4500dffa6905ec35c62a40012ca4b73079449b09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 00:14:41 +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
811af17338 Merge "Fix a11y navigation in Chooser" into tm-dev am: 247cb3a3bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18408340

Change-Id: If12a696b18c96de41c474a5b1fd41ddbdaf438a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 00:04:15 +00:00