Commit Graph

2988 Commits

Author SHA1 Message Date
Seigo Nonaka
5a0d5d22e7 Revert "Revive use of VF font for regular style of roboto font"
This reverts commit 76bd1e532f.

Reason for revert: https://buganizer.corp.google.com/issues/241722510
Bug: 241722510

Change-Id: I85c32b194df289416046cc50e7e67436dada4302
2022-08-08 04:52:30 +00:00
Seigo Nonaka
76bd1e532f Revive use of VF font for regular style of roboto font
Bug: 241503271
Test: The app reported in 170915650 and 183170917 works.
Change-Id: I96a49530deed5711784c984023f5f9b57f01e6b3
2022-08-05 14:27:58 +09:00
Yanli Wan
8eaf9c2fd8 Merge "Stop app pinning if lock task is requested from allowedlisted app" into tm-qpr-dev am: 3544e25a4e am: 96986f64df
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19461336

Change-Id: Ifff636467c2963e9f7c9fe85d6d127a863040d2c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 19:47:55 +00:00
Yanli Wan
96986f64df Merge "Stop app pinning if lock task is requested from allowedlisted app" into tm-qpr-dev am: 3544e25a4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19461336

Change-Id: I8546e339d3627dc8d3df4cf8e58064ae2628a1fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 19:30:00 +00:00
Yanli Wan
3544e25a4e Merge "Stop app pinning if lock task is requested from allowedlisted app" into tm-qpr-dev 2022-08-03 19:18:52 +00:00
Kunal Malhotra
c69aa1be70 Restrict readability of uid state changes so that uid states of other users uids are not exposed to those that do not have permission.
Test: manual test
Bug: 217934898
Change-Id: I3f52d4ca32c22c54fa9b1663954a43b44d9000a0
2022-07-29 22:20:20 +00:00
Chris Li
e730864484 Merge "Fix open ActivityEmbedding split with Shell transition" into tm-qpr-dev am: 447919823c am: 12cc95ad18
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19321172

Change-Id: Ic232586f37bde53698b16168ec46a922cae45c07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 07:06:59 +00:00
Riddle Hsu
5283f44bb6 Merge "Skip reveal animation with invisible starting window" 2022-07-27 07:03:05 +00:00
Chris Li
12cc95ad18 Merge "Fix open ActivityEmbedding split with Shell transition" into tm-qpr-dev am: 447919823c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19321172

Change-Id: Ia471a71ba97cf89fa8c214734012075a9b1a33c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 06:55:37 +00:00
Chris Li
0dfebbe4d7 Fix open ActivityEmbedding split with Shell transition
1. Collect the TaskFragment when reparenting an activity into it.
2. Check adjacent TaskFragment for transition flag FLAG_TRANSLUCENT.
3. Offset the relative position for default animation.

Bug: 207070762
Test: pass existing
Change-Id: I62b533dbb087007e3ef126170691a59929eb75e1
2022-07-27 01:30:52 +00:00
Riddle Hsu
b5a5b1132e Skip reveal animation with invisible starting window
If the app window is drawn before the starting window, the
visibility flags of starting window will be cleared in
ActivityRecord#commitVisibility. Then it is unnecessary to
play the reveal animation for an invisible starting window.

Bug: 240239537
Test: com.android.server.wm.flicker.launch.OpenAppWarmTest
Change-Id: Ib1d585e9384989cc8aab95e3b3d891555106713c
2022-07-26 21:06:18 +08:00
Yohei Yukawa
6a571bf6c6 Allow com.android.settings to have CONTROL_UI_TRACING (2nd try)
This CL allows

  com.android.settings

to have a "signature|privileged" permission

  android.permission.CONTROL_UI_TRACING

permission.  This permission will be used for QS DevelopmentTiles to
continue being allowed to access WM/IME tracing IPCs.

Bug: 172444310
Test: cf_x86_64_phone-userdebug still boots up
Test: cf_x86_64_auto-userdebug still boots up
Change-Id: I9aa69247f02447f2454e42e3625f0ed764991edf
2022-07-25 18:38:26 +09:00
TreeHugger Robot
f0e7386487 Merge "Add key layouts for SteelSeries Stratus+" 2022-07-22 22:27:58 +00:00
Joseph Pang
89a44e6e2e Add key layouts for SteelSeries Stratus+
The Stratus+ is somehow bugged when it uses the generic gamepad file; to
fix this, a Stratus+-specific key layout file is added, similar to the
one for the Stratus Duo.

Bug: b/232827632
Test: Stratus+ USB connection, playing SF4 on eve (ARC-R)
Change-Id: Ied0e27a57b159fd35915634bd62ffced58ced4f2
2022-07-22 20:51:12 +00:00
Luigi Zevola
afa3a4357b Revert "Allow com.android.settings to have CONTROL_UI_TRACING"
Revert "Grant CONTROL_UI_TRACING permission to Settings app"

Revert submission 19391474-yukawa-b172444310

Reason for revert: b/239969206
Reverted Changes:
I34bc22392:Allow com.android.settings to have CONTROL_UI_TRAC...
I2165ce38e:Grant CONTROL_UI_TRACING permission to Settings ap...

Change-Id: I230b9650a539ce549169276cb4605a68fc007205
2022-07-22 20:38:01 +00:00
Yohei Yukawa
5da5eac4b5 Allow com.android.settings to have CONTROL_UI_TRACING
This CL allows

  com.android.settings

to have a "signature|privileged" permission

  android.permission.CONTROL_UI_TRACING

permission.  This permission will be used for QS DevelopmentTiles to
continue being allowed to access WM/IME tracing IPCs.

Bug: 172444310
Test: the device still boots up
Change-Id: I34bc22392cb4fa233126b46fb979638c90a3c3c6
2022-07-21 20:33:00 -07:00
TreeHugger Robot
2b697b1c17 Merge "Revert the line of NotoSansLao post script name" into tm-qpr-dev am: e5dc49d4bf am: d1525033ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19330066

Change-Id: Ib1cb3e045d4ff6f608d6f09c25b5bb313b1cbb45
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-21 04:13:09 +00:00
TreeHugger Robot
d1525033ca Merge "Revert the line of NotoSansLao post script name" into tm-qpr-dev am: e5dc49d4bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19330066

Change-Id: I4934a3921d6970f4d7318ab49da95abfd41f7c2b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-21 03:54:32 +00:00
Yanli Wan
540a7c32d8 Stop app pinning if lock task is requested from allowedlisted app
Bug: 213942596
Test: Manual
Change-Id: I86c71bef4f8c374fab01aa0a5f3997ba1a2b27cf
2022-07-19 16:11:23 -07:00
Seigo Nonaka
5b94932626 Revert the line of NotoSansLao post script name
Bug: 235922054
Test: N/A
Change-Id: I4af08ba06d12afdf0753f07b4a757d9dd89df3bb
2022-07-19 00:35:39 +00:00
TreeHugger Robot
4b35dd710c Merge "[Shell-Transition] clean-up some isAnimating call points" into tm-qpr-dev am: 45b540163a am: c20b2f0e40
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19086047

Change-Id: I4ef3143bb18a91341ce0b01482973fd6a2324f0a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-11 20:13:24 +00:00
TreeHugger Robot
c20b2f0e40 Merge "[Shell-Transition] clean-up some isAnimating call points" into tm-qpr-dev am: 45b540163a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19086047

Change-Id: I19ba26b0f40a0edc0076191db1214d751401a537
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-11 20:00:53 +00:00
Ming-Shin Lu
ae2fbd47a0 [Shell-Transition] clean-up some isAnimating call points
..to reflect the app transition animating state when shell-transition
enabled for below cases:

1) ImeInsetsSourceProvider#isReadyToShowIme will use WS#isClosing ->
   AR#isClosingOrEnteringPip to check if the IME layering target window
   is in closing transition. (i.e. It won't be ready to show IME while
   the target is in closing app transition.) Also, given isClosing and
   isClosingOrEnteringPip currently is only used for checking IME target
   validity, wraping those logic into isImeTargetWindowClosing() for
   simplicity.

2) With Shell-Transition, the activity will running a transition when
   it is visible, it won't be included when fromTransition is true means
   the call from finishTransition. As a result, in AR#commitVisibility,
   callback onAppVisibilityChanged(visible, runningAppAnimation) with
   using the above checking logic and adding logs for tracking. In case
   a11y controller will always callback onWindowTransition with
   TRANSIT_EXIT due to runningAppAnimation always being false by
   isAnimating no-op.

Fix: 212570341
Test: No visible change & Pass existing tests.
Change-Id: I9cc77956b3ff61ae83f5bd120c395cc6aca93af9
2022-07-11 13:12:34 +00:00
Louis Chang
828613b9c7 Merge "Skip moving the focused Task to top if it is already on top" into tm-qpr-dev am: be9d1c7821 am: 54c07fc4dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19009471

Change-Id: Ie130fa95840e3f86181a1f7a9155c35a454552ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 02:09:29 +00:00
Evan Rosky
1cba94b510 Merge "Drop sync buffers for subsequent sync requests" into tm-qpr-dev am: 813c1e83a3 am: 290a8afc9d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18718883

Change-Id: I868c82239b73faaa57857ce1001d4d88696f5401
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 02:06:00 +00:00
Louis Chang
54c07fc4dc Merge "Skip moving the focused Task to top if it is already on top" into tm-qpr-dev am: be9d1c7821
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19009471

Change-Id: I19157321cb39c5db23c2cc18705cd26b40a2062b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 01:54:30 +00:00
Evan Rosky
290a8afc9d Merge "Drop sync buffers for subsequent sync requests" into tm-qpr-dev am: 813c1e83a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18718883

Change-Id: I56b68336f40f4c59e4b446c255568fb9cbd06ad3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28 01:49:28 +00:00
Louis Chang
be9d1c7821 Merge "Skip moving the focused Task to top if it is already on top" into tm-qpr-dev 2022-06-28 01:17:30 +00:00
Evan Rosky
b987697042 Drop sync buffers for subsequent sync requests
When making subsequent draw requests for the same window, drop
any existing buffers since they will be replaced by the new one.

Sometimes the "old" buffer will still be "in-flight" (either
drawing still or in binder). So, also drop incoming buffers
for seqIds that are earlier than the latest prepareSync.

Additionally, immediately apply any applyWithNextDraw that were
requested before the sync, but arrive after the sync started --
otherwise they can get put on pending (which waits for sync
apply) and thus also block the buffer queue.

Bug: 233625646
Test: run tests and check for ANRs
Change-Id: I156a9a73eea8346dc241b5d782a863b99127ca9f
2022-06-27 10:45:16 -07:00
Louis Chang
9b71e4551c Skip moving the focused Task to top if it is already on top
The Task was moved to front while making an Activity to be the
focused app. In that case, the resumed activity will be reset
to the top-most resumed activity in the Task.

However, the top-most resumed activity in the Task should not
always be the current focused activity when activity embedded.

This CL skips unnecessary task movement and making the target
activity to be focused if the task is already on top and focused.

Bug: 236565088
Test: atest TaskFragmentTest
Change-Id: I6cbea10bdfa422e9d51c051595ed592843f5ba79
2022-06-24 05:31:12 +00:00
Hongguang Chen
81097637b8 Merge "Assign ref RCU keylayout file to RCUs with PID 0x0006" 2022-06-23 04:40:07 +00:00
TreeHugger Robot
e6c3b55f4f Merge "Require CONFIG_HID_PLAYSTATION for DualSense key layout" into tm-dev-plus-aosp am: 6ea7f6c7b0 am: 294dad862e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18930751

Change-Id: Id5aaf65e32525e74c8d15c91e06ebcc87996a5ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-17 20:03:44 +00:00
Siarhei Vishniakou
8169da18d8 Require CONFIG_HID_PLAYSTATION for DualSense key layout
Some olders kernels don't yet support HID_PLAYSTATION. While they are
working on supporting this driver, provide this temporary solution.

Before this patch, if the key layout is loaded, but there is no
HID_PLAYSTATION, then the mappings on the device will be incorrect.

With this patch, this key layout will not be loaded unless there is a
CONFIG_HID_PLAYSTATION enabled on the device.

Instead, when the main layout cannot be loaded, we make another attempt
to load a fallback layout. This way, the mappings on DualSense can be
correct even if the HID_PLAYSTATION module is not loaded.

In this CL, the fallback layout was tested using controllerTester.

Bug: 228005926
Test: tested mappings with a DualSense controller on a device that does
not have CONFIG_HID_PLAYSTATION

Change-Id: I7e46ae1943cd2c63b8c0b03fdf5d71adeea89f6f
Merged-In: I7e46ae1943cd2c63b8c0b03fdf5d71adeea89f6f
2022-06-16 17:34:37 +00:00
Jimmy Chen
318410fe93 Merge "p2p: add CONFIGURE_WIFI_DISPLAY permssion for P2P test" am: 1bf4072c78 am: a29505af31 am: a6b28ca5eb am: f1223c1738 am: 5a6c0e7802
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2115076

Change-Id: Icd950eb147b5b0828dbed889cdf3b4f91a0df85d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 02:08:54 +00:00
Jimmy Chen
5a6c0e7802 Merge "p2p: add CONFIGURE_WIFI_DISPLAY permssion for P2P test" am: 1bf4072c78 am: a29505af31 am: a6b28ca5eb am: f1223c1738
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2115076

Change-Id: I794b9eb7a6172c466175521a1c944f0120882143
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 01:55:28 +00:00
Jimmy Chen
a6b28ca5eb Merge "p2p: add CONFIGURE_WIFI_DISPLAY permssion for P2P test" am: 1bf4072c78 am: a29505af31
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2115076

Change-Id: Id14c36a6cdfc6b01e97846c38238f14fc231cfe0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 01:44:21 +00:00
Jimmy Chen
a29505af31 Merge "p2p: add CONFIGURE_WIFI_DISPLAY permssion for P2P test" am: 1bf4072c78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2115076

Change-Id: Ifc3ffd42afdfdd3c887251484490661a5100b02e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 01:18:58 +00:00
Max Zhang
02fa0f2dbb Assign ref RCU keylayout file to RCUs with PID 0x0006
Some Reference RCUs came with PID = 0x0006.
This change assigns the default keylayout file
  Vendor_0957_Product_0001.kl
to the RCUs with VID/PID 0957/0006.

bug: 234774631

Change-Id: I1387313f2ab00ab06575f4a9e258c8660212f39f
2022-06-08 17:48:53 -07:00
Jimmy Chen
f46b780f16 p2p: add CONFIGURE_WIFI_DISPLAY permssion for P2P test
Bug: 230699791
Test: atest android.net.wifi.cts.ConcurrencyTest#testP2pSetWfdInfo
Change-Id: Ic25dc6d7b18bad38863acfd32d839155da28141b
2022-06-08 15:38:18 +08:00
Siarhei Vishniakou
df6630ae1f Require CONFIG_HID_PLAYSTATION for DualSense key layout
Some olders kernels don't yet support HID_PLAYSTATION. While they are
working on supporting this driver, provide this temporary solution.

Before this patch, if the key layout is loaded, but there is no
HID_PLAYSTATION, then the mappings on the device will be incorrect.

With this patch, this key layout will not be loaded unless there is a
CONFIG_HID_PLAYSTATION enabled on the device.

Instead, when the main layout cannot be loaded, we make another attempt
to load a fallback layout. This way, the mappings on DualSense can be
correct even if the HID_PLAYSTATION module is not loaded.

In this CL, the fallback layout was tested using controllerTester.

Bug: 228005926
Test: tested mappings with a DualSense controller on a device that does
not have CONFIG_HID_PLAYSTATION

Change-Id: I7e46ae1943cd2c63b8c0b03fdf5d71adeea89f6f
2022-06-03 14:12:29 -07:00
Issei Suzuki
72a27f37ef Merge "Exclude launcher from app transition animation while recents is running." into tm-dev am: 0dfb582d5a am: bdaf705b8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18492309

Change-Id: I7ae2a50abaa1d16102a4f528cb1d8790445ed316
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 19:28:38 +00:00
Automerger Merge Worker
2a46a89edc Merge "Merge "Exclude launcher from app transition animation while recents is running." into tm-dev am: 0dfb582d5a am: 6b153ac88f" into tm-d1-dev-plus-aosp am: 4e64cb2050
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18492309

Change-Id: Ifb0fb40433a4eb4e116709fd2d0106698adc7129
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 16:48:02 +00:00
Issei Suzuki
63969526ea Merge "Exclude launcher from app transition animation while recents is running." into tm-dev am: 0dfb582d5a am: b301430f6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18492309

Change-Id: I0239b487d325c72888f04cd563798779a64b9f7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 16:28:27 +00:00
Issei Suzuki
0dfb582d5a Merge "Exclude launcher from app transition animation while recents is running." into tm-dev 2022-05-31 15:48:01 +00:00
TreeHugger Robot
0135f0a800 Merge "Update security_log_writer group name" into tm-dev am: 8135158f39 am: 89b687bcf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18616465

Change-Id: Ic8d588ae932ed790d6fe198c6ca60bab2259647d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 20:57:08 +00:00
Rubin Xu
4130b736c8 Merge "Map WRITE_SECURITY_LOG permission to gid" into tm-dev am: f76cae7532 am: 597056d1b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18603750

Change-Id: I6cabdbf5d790f907380424380439af943677ce1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 17:47:52 +00:00
Rubin Xu
07df5c4d16 Update security_log_writer group name
group name was changed during review but not updated
in the permission mapping.

Bug: 232283779
Test: manual
Change-Id: Ib7df61fa4fd49c8419f0543fd6c54186a33ebeb6
(cherry picked from commit 4486314be6)
Merged-In: Ib7df61fa4fd49c8419f0543fd6c54186a33ebeb6
2022-05-26 17:45:49 +00:00
Treehugger Robot
2cdcb066bf Merge "Update security_log_writer group name" am: 5a66f41fa4 am: 5327a51e5a am: 63283e7450 am: b3fbe80e36 am: e20354c3c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2108084

Change-Id: I94fc2dbd276d327216bc3521d57744a9f0966e63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 17:39:10 +00:00
Treehugger Robot
e20354c3c3 Merge "Update security_log_writer group name" am: 5a66f41fa4 am: 5327a51e5a am: 63283e7450 am: b3fbe80e36
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2108084

Change-Id: I3f189e0839934cc27cc26768064cf7436272e4dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 17:12:07 +00:00
Treehugger Robot
63283e7450 Merge "Update security_log_writer group name" am: 5a66f41fa4 am: 5327a51e5a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2108084

Change-Id: I06beb1a61be0620176466061cf86b3a7b37e8a51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 16:07:57 +00:00