Commit Graph

18437 Commits

Author SHA1 Message Date
TreeHugger Robot
f14fafe7d0 Merge "Revert "Use new T activity transitions in legacy"" into tm-dev am: 44f3f74955
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17353105

Change-Id: Id456ed52222f71d1cd70c1f98604430c92c46537
2022-03-24 07:54:07 +00:00
TreeHugger Robot
44f3f74955 Merge "Revert "Use new T activity transitions in legacy"" into tm-dev 2022-03-24 07:27:39 +00:00
Lais Andrade
55b9467f70 Merge "Fix PIN lock pattern not respecting user settings" into tm-dev am: 352d8d7abe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17320107

Change-Id: I9d6b5ec4c40c9bb7a201d7b5acda1d56b9a9d8f2
2022-03-24 00:49:15 +00:00
Pablo Gamito
1250be73c8 Revert "Use new T activity transitions in legacy"
This reverts commit e0ce996ecc.

Reason for revert: Edge extension is likely causing segfaults

Change-Id: Id53e4b7e10e0509742bef4b48263b5c58e06baed
2022-03-23 22:35:26 +00:00
Michael Wachenschwanz
7dd534b98a Merge "Ref count isolated uid use for long partial wakelocks" into tm-dev 2022-03-23 20:25:44 +00:00
Lais Andrade
352d8d7abe Merge "Fix PIN lock pattern not respecting user settings" into tm-dev 2022-03-23 18:36:58 +00:00
Lais Andrade
9bab88b20a Fix PIN lock pattern not respecting user settings
The LockPatternView had a boolean attribute mEnableHapticFeedback that
held a copy of the user settings for enabling "Touch feedback"
vibrations. This attribute was used together with
HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING deprecated setting to
bypass the user settings in the vibrator service.

This change removes the use of this deprecated flag and lets the
Vibrator service apply the user settings for "Touch feedback" to
vibrations generated for the PIN lock input in LockPatternView.

Fix: 216656312
Test: manual
Change-Id: If9733c059e5059b6e58b6f84d100df2a0abafab6
2022-03-22 22:58:08 +00:00
TreeHugger Robot
522b02e82a Merge "Update Chooser shadows to match Launcher." 2022-03-22 21:29:41 +00:00
Jernej Virag
38a93effaa Merge changes from topic "revert-17199637-revert-17083643-large-icons-tm-XHQQYXZDHH-KIGUXQGTHZ" into tm-dev am: d27d7fe051 am: 01597ebcd9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17217925

Change-Id: Icd4feeb92187550a506c19af9a499133e72e225d
2022-03-22 20:13:03 +00:00
Jernej Virag
d27d7fe051 Merge changes from topic "revert-17199637-revert-17083643-large-icons-tm-XHQQYXZDHH-KIGUXQGTHZ" into tm-dev
* changes:
  Size restrict right notification icon size
  Downscale large bitmaps in CachingIconView
  Support downscaling of Drawable icons in LocalImageResolver
2022-03-22 20:07:04 +00:00
Issei Suzuki
6073f79aa0 Merge "Migrate DEBUG_ANIM logcat message to ProtoLog." into tm-dev am: f51bb0783b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17222683

Change-Id: I4eeffcc5e15da420fe889d4244a0611b75d3c830
2022-03-22 18:40:09 +00:00
Eric Biggers
ef03435ebf Merge "Stop using FDE-related constants from IVold" am: 489ba5ac07 am: 84f05b1b9c am: e1a9ca0ec8 am: 3abc52220b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2031025

Change-Id: I4f2322c1d89d96b2579f0126e876de9a1a48fee4
2022-03-22 18:32:35 +00:00
Issei Suzuki
f51bb0783b Merge "Migrate DEBUG_ANIM logcat message to ProtoLog." into tm-dev 2022-03-22 18:19:19 +00:00
Eric Biggers
3abc52220b Merge "Stop using FDE-related constants from IVold" am: 489ba5ac07 am: 84f05b1b9c am: e1a9ca0ec8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2031025

Change-Id: Ic411eb688afe449212dee247d2ecb39471c4314f
2022-03-22 18:04:27 +00:00
Joshua Trask
8e4abe5e6c Update Chooser shadows to match Launcher.
This just requires a few parameter changes to align with Launcher
(iconloaderlib), as proposed by digman@ in b/196631965.

Bug: 196631965
Test: asked digman@ to approve a screenshot.
Change-Id: Icca36fe8c5771041bea960478c2be85f0679dc8d
2022-03-22 14:04:06 -04:00
Eric Biggers
e1a9ca0ec8 Merge "Stop using FDE-related constants from IVold" am: 489ba5ac07 am: 84f05b1b9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2031025

Change-Id: Id7be68ef1c367fb461236a0c14b4dbb8e0ca5bdd
2022-03-22 17:47:04 +00:00
Eric Biggers
489ba5ac07 Merge "Stop using FDE-related constants from IVold" 2022-03-22 17:37:32 +00:00
Pablo Gamito
7569828664 Merge changes from topic "t-activity-backport" into tm-dev am: fa5aefba20
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16965646

Change-Id: Iaabccbf4a7051ed5eae10b73f4ad2047b3b635ff
2022-03-22 15:28:07 +00:00
Pablo Gamito
fa5aefba20 Merge changes from topic "t-activity-backport" into tm-dev
* changes:
  Use new T activity transitions in legacy
  Backport window extension animation support
2022-03-22 15:15:48 +00:00
Calvin Pan
061ff69c2f Merge changes from topic "app_selection_in_locale_picker" into tm-dev am: 1da7fdde5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17226946

Change-Id: I7577ed8f99fdadaa2a23d193e17fbb04b49c55b8
2022-03-22 03:47:59 +00:00
Calvin Pan
1da7fdde5e Merge changes from topic "app_selection_in_locale_picker" into tm-dev
* changes:
  Add subtitle in System language
  Reuse LocalePickerWithRegion in app language selection
2022-03-22 03:35:28 +00:00
TreeHugger Robot
c68f9c2133 Merge "Refine {SHOW,HIDE}_MY_SOFT_INPUT constants" 2022-03-22 03:13:34 +00:00
Michael Wachenschwanz
7589e541d1 Ref count isolated uid use for long partial wakelocks
The isolated uids need to be kept in the map while it is holding a long
partial wakelock.

Bug: 218298973
Test: atest BatteryStatsNoteTest
Change-Id: I86456137e6d6ad47f9974da281defc04d20fb32f
(cherry picked from commit fd48aa6fa6)
Merged-In: I86456137e6d6ad47f9974da281defc04d20fb32f
2022-03-22 00:31:53 +00:00
Treehugger Robot
161bcd3ad9 Merge "Add i18n Settings OWNER for system language settings" am: 06da2b3f5c am: 11f453bf93 am: af02ce3a8e am: c5a6c17fa5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2033224

Change-Id: I61f58131b80ab902c29630d31d20400f1b8569ff
2022-03-21 21:56:21 +00:00
Treehugger Robot
c5a6c17fa5 Merge "Add i18n Settings OWNER for system language settings" am: 06da2b3f5c am: 11f453bf93 am: af02ce3a8e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2033224

Change-Id: If9d907174100844d173289f2f2ab19278ce6297f
2022-03-21 21:47:19 +00:00
Treehugger Robot
af02ce3a8e Merge "Add i18n Settings OWNER for system language settings" am: 06da2b3f5c am: 11f453bf93
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2033224

Change-Id: I3ceb4c857eb22b06d6d9b8e097c404e17d94c004
2022-03-21 21:17:34 +00:00
Taran Singh
9556043ad4 Merge "Finish handwriting session for recents gesture" into tm-dev am: 4cff41a3f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17144828

Change-Id: Icffe80f23fdbd5e25609e9fb381a9b67fdb8258a
2022-03-21 20:58:33 +00:00
Taran Singh
4cff41a3f2 Merge "Finish handwriting session for recents gesture" into tm-dev 2022-03-21 20:54:31 +00:00
Joshua Trask
663afd4448 Merge "DeviceConfig for Chooser update-delay duration." 2022-03-21 20:51:07 +00:00
Matt Casey
7cbdc33498 Merge "Remove "Copied" toast from sharesheet." into tm-dev am: a127b9c0d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17239785

Change-Id: Ica9d975a71e66c4d064b476dced7248d6d7f14f5
2022-03-21 20:05:37 +00:00
Matt Casey
a127b9c0d3 Merge "Remove "Copied" toast from sharesheet." into tm-dev 2022-03-21 20:01:06 +00:00
Calvin Pan
969826576a Add subtitle in System language
Bug: 223090003
Test: Check the UI in per-app language selection page
Change-Id: I647f678016461b557e9f6d5de459fd2dee789b0d
2022-03-21 23:43:02 +08:00
Joshua Trask
ccb3e7aa51 DeviceConfig for Chooser update-delay duration.
For more information, see go/sharesheet-list-view-update-delay.

Bug: 224816815
Test: `atest ChooserActivityTest`. The duration can be manually
configured by `adb shell device_config put systemui
sharesheet_list_view_update_delay n` to set a delay of n milliseconds.
With a timeout of 250 (as it was before this change), all the tests
still pass. With a timeout of 0, all tests pass but one (as described in
the doc linked above) -- a potential fix for that test will follow in a
subsequent CL.

Change-Id: Ia5edfe391b135659d2fd8126069c5cd6ce15653b
2022-03-21 14:12:27 +00:00
Jernej Virag
6f2b34baf8 Downscale large bitmaps in CachingIconView
CachingIconView is used to displayed (smallish) icons in Notifications. Those can accidentally be made very large if big resources are used.
This makes CachingIconView use LocalImageResolver to load those images with limited size. This fixes large memory use of notification header icons.

Bug: 210690571
Bug: 218845090

Test: atest CachingIconViewTest
      atest NotificationManagerTest
      Verified with notification test APK on a Pixel

Change-Id: Ia37c1fd31a7720e6ec2fd20d7466d8dcaffa6507
2022-03-21 13:39:08 +00:00
Jernej Virag
698325914e Support downscaling of Drawable icons in LocalImageResolver
LocalImageResolver only enforced downscaling for Uri-based Icons at this point. This still allowed app developers to provide large bitmaps as a resource or as a bitmap payload itself. This change also verifies these new types of bitmaps.
Also adds an external size parameter to image resolver so different widgets can use it - right now the upper limit was hardcoded in pixels.

This also updates error handling - in some cases ImageDecoder would throw NullPointerException or NotFoundException except for promised IOException. This wraps those cases into more consistent API.

Bug:218845090
Bug:210690571
Bug:224768026

Test: Manually on device - tested on Raven and new Pixel with multiple
                       notification sizes via notification test apk.
      atest LocalImageResolver
      atest NotificationManagerTest

Change-Id: I4701d58ac3335d11a93355a39cee9f5c998eb830
2022-03-21 13:38:50 +00:00
Issei Suzuki
f3732b4991 Migrate DEBUG_ANIM logcat message to ProtoLog.
Added more log messages around animatingExit.

Bug: 205335975
Test: Existing builds and tests pass.
Change-Id: I4461eddd4a24c7bba1adef1571ce0fbf6d7db0a2
2022-03-21 14:00:13 +01:00
Calvin Pan
6cac5b89c0 Add i18n Settings OWNER for system language settings
Change-Id: Ia3217df6478716ec51b891057ba57a4d53a716ca
2022-03-21 09:06:57 +00:00
TreeHugger Robot
b9ded17df0 Merge changes from topic "overlay-config-dumpsys-include-config-file"
* changes:
  Overlay config: include config file data in dumpsys
  Mark ParsedConfiguration.parsedInfo as @Nullable
2022-03-21 08:28:51 +00:00
Calvin Pan
780ff7127a Reuse LocalePickerWithRegion in app language selection
- (LocalePickerWithRegion) Only list the language that supported by app
- Add "System language" option
- Add current app locale into suggestion list
- Sort locales by these priorities:
  1. Current app's locale
  2. System language
  3. Suggested language
  4. Supported languages

Bug: 223090003
Test: Manual
- (system languages page)
    Check Settings-> System -> Languages -> Languages
- (pre-apps language page)
    Check Settings-> System -> Languages -> Apps Languages
- Add unit test in follow CL(tracing in b/224747202)
Change-Id: I8dc9f73811dbf653b32773fb98ddb2e4656a4432
2022-03-21 14:48:09 +08:00
Tiger Huang
c3813c81a0 Merge "Push drag-resize mode to the client" into tm-dev am: 883190cdb3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17222863

Change-Id: Ib2c9262b0229579ebe14f4a5b77986b6efa2045d
2022-03-21 06:08:46 +00:00
Eric Biggers
8f359f022a Stop using FDE-related constants from IVold
IVold.ENCRYPTION_STATE_* and IVold.PASSWORD_TYPE_* are values returned
by or accepted by FDE-specific vold methods, which are no longer used.
Stop using these constants so that we can remove them from IVold.aidl.

Notes on specific constants:

- Some constants have @UnsupportedAppUsage.  There is no reason why a
  non-system app should have been using these.  However, to avoid
  possibly breaking apps I just left these with hardcoded values.

- StorageManager.CRYPT_TYPE_* are used by
  LockscreenCredential.getStorageCryptType().  However, the caller of
  this method was removed by an earlier CL, so just remove this method.

- StorageManager.CRYPT_TYPE_* also have a user in
  packages/apps/Settings, but it is obsolete code that I'm removing in
  another CL.

Bug: 208476087
Change-Id: I41c684b69a97dbafac65d8f55db2c284d7a8dd70
2022-03-21 05:11:28 +00:00
Tiger Huang
3e194cc9fa Push drag-resize mode to the client
The goal of this CL is to remove RELAYOUT_RES_DRAG_RESIZING_DOCKED and
RELAYOUT_RES_DRAG_RESIZING_FREEFORM, which is a step to make relayout an
oneway binder call.

When the resize mode is changed at the server side, the server will send
the new mode to the client via IWindow#resized, so the client doesn't
need to obtain the resize mode from the flags returned from relayout.

Bug: 161810301
Test: Perform drag-resize and drag-move on a freeform task and see if
      there is any unexpected behavior.
Change-Id: I450abc113932b6c1dc0ce0e2b76bebdf85a60777
2022-03-20 14:36:19 +08:00
TreeHugger Robot
71f25da1eb Merge "Don't create panel if content is empty" 2022-03-19 11:59:54 +00:00
Kholoud Mohamed
a8e9aa390d Merge changes from topic "apiFeedback" into tm-dev
* changes:
  RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
  RESTRICT AUTOMERGE move device policy resource APIs to a separate class
  RESTRICT AUTOMERGE hide device policy resources constants
2022-03-19 06:30:43 +00:00
TreeHugger Robot
96fd061289 Merge "Track latency for showing the back arrow." into tm-dev am: 9451a7a61e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17062806

Change-Id: I786cc6a989ebdcb82a1b4c4daaa2552af999fb22
2022-03-19 03:01:46 +00:00
TreeHugger Robot
9451a7a61e Merge "Track latency for showing the back arrow." into tm-dev 2022-03-19 02:44:22 +00:00
kholoud mohamed
b7aedc6f3d RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
Bug: 217388602
Bug: 218875965
Test: atest EnterpriseResourcesTests
Test: manual
Change-Id: I8af03136e67057d171e97cb5a43187aa6c7f4fe7
2022-03-19 00:22:17 +00:00
David Anderson
652c4bade6 Merge "Add PackageManager feature strings for EROFS." into tm-dev 2022-03-18 17:29:26 +00:00
TreeHugger Robot
1781b4c620 Merge "Send SDK sandbox UID instead of app UID in battery stats push metrics" into tm-dev am: 34fba3edc7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17244143

Change-Id: I6d152984de09c76639aa9620ecdb7249eb19f8a8
2022-03-18 17:12:18 +00:00
TreeHugger Robot
34fba3edc7 Merge "Send SDK sandbox UID instead of app UID in battery stats push metrics" into tm-dev 2022-03-18 17:04:25 +00:00