Commit Graph

1905 Commits

Author SHA1 Message Date
Sean Stout
acd7a80462 Change shouldShowIme -> displayImePolicy
This CL allows for a Trusted Display to specify not only whether the IME
should show on itself or the fallback Display, but also whether the IME
should not show at all.

This behavior is useful if interacting with a display that has a built
in IME; it will prevent an IME from also showing on the default Display.

Bug: 170233231
Test: atest MultiDisplaySystemDecorationTests#testDisplayPolicyImeHideImeOperation
Change-Id: Id86db922e8f2c3ca065f830ee371cccaa7c36101
2020-11-25 15:22:51 +00:00
TreeHugger Robot
c092761a4b Merge "Added more permissions to Provision app." 2020-11-23 22:18:26 +00:00
Chris Li
dfeeea1b82 Add API to create new TaskDisplayArea at runtime
Allow DA organizer to create new TaskDisplayArea.

Fix: 173455508
Test: atest WmTests:DisplayAreaOrganizerTest
Change-Id: I7d4e88f43ae14561720c6942ca0e9f82dc28e9f6
2020-11-20 11:51:17 -08:00
Agatha Man
e4083ea355 Merge "Add permissions to car shell" 2020-11-19 18:04:56 +00:00
Agatha Man
e25b706590 Add permissions to car shell
Bug: 159367295
Test: make && emulator
Change-Id: Iddaf0dfc25df76f8b3492fb293ccb3910ae2898e
2020-11-19 05:25:02 +00:00
Edgar Wang
8a888b9745 Add READ_DREAM_STATE to the settings list
Settings application needs the previleged permission to
get AoD supression status by using PowerManager API

Bug: 173425264
Change-Id: I5da006b7c88dc36d3eefebc559f2a2f3ab50823f
Test: Manual & bootup device
2020-11-19 03:52:15 +00:00
Issei Suzuki
c4ab2ccaaf Replace old app transition type to new transition type (3/N)
Removed the old app transition logic.

Bug: 166736358
Test: all existing tests pass

Change-Id: Ia2f99fa354298daf7dbb1758eee51aa8d0d0f9b5
2020-11-18 15:47:35 +01:00
Issei Suzuki
656bfb5389 Replace old app transition type to new transition type (2/N)
AppTransitionController#getTransitionCompatType scans app transition
requests being set in the setup stage, and decides the app transition
animation.

Bug: 166736358
Test: Changes are behind a flag. No logic change yet.
Change-Id: I4320b04da2569d555369e6698f084d9514e36590
2020-11-18 15:05:29 +01:00
Felipe Leme
5e44aaed02 Added more permissions to Provision app.
Test: manual verification
Bug: 170333009

Change-Id: I248b4816a3767d9ff742b391ecea1d83a09b7613
2020-11-17 22:55:00 -08:00
Louis Chang
857df8d6c8 Merge "Rename Stack to Task related terms (2/n)" 2020-11-18 04:49:04 +00:00
Evan Rosky
dc21941fe4 Merge "Track changes during transitions and report to player" 2020-11-18 01:17:12 +00:00
Louis Chang
16a18892cb Rename Stack to Task related terms (2/n)
ActivityStackSupervisor to ActivityTaskSupervisor

Bug: 157876447
Test: presubmit

Change-Id: I6e82870e6e966cb7c915f83e0f3504d1a51632f9
2020-11-18 07:51:18 +08:00
Evan Rosky
6510883d40 Merge "Relocate transition collection around lifecycle events (1/N)" 2020-11-17 23:24:22 +00:00
Evan Rosky
7274d2d186 Track changes during transitions and report to player
Current tracked changes include bounds, visibility, and
"existence".

bounds and visibility are fairly straightforward, call
collect() before doing operations and it will record the
state. Once the transition is finished, it will compare
that recorded state with the finished state.

"existence" is more complicated. It's the difference
between show/hide vs open/close. Because Task instances
are basically always around, their existence depends on
the circumstances around when/how activities are started.
For that we have to explicitly indicate when a container
is going to change its existence via
collectExistenceChange().

Bug: 169035306
Test: atest TransitionTests
Change-Id: I78d4cda6b726202507b757f93c742d49e51e2d7b
2020-11-17 15:17:44 -08:00
Evan Rosky
738ba5601f Relocate transition collection around lifecycle events (1/N)
Previously was just using whatever the legacy transition system
used. However, that system would wait too late (until after
round-trips to the client) in order to prepare some transitions.
Since the new transitions utilize "snapshots", they need to
collect earlier in the lifecycle to work properly.

This first CL deals mostly with activity start/finish and
task to-front/to-back. It also adds some utilities like the
ability to abort a transition (needed because activitystarter
works this way) and the ability to un-ready a transition/
sync transaction to enable trampolines.

This also switches the transit types to the new constants.

Bug: 169035022
Test: Existing tests (TransitionTests) pass
Change-Id: I05f3a2e8e27ccaed7077d648daf033aeabc333f9
2020-11-17 12:56:30 -08:00
TreeHugger Robot
b45ed91dae Merge "Remove platform signature from overlays & work profile bug" 2020-11-17 01:12:34 +00:00
Jay Aliomer
316a07be37 Remove platform signature from overlays & work profile bug
systemui crashes when style is applied with work profile active

Test: manual
Fixes: 172666423
Fixes: 170515704
Fixes: 162480130
Fixes: 170425666
Change-Id: I35a865ccd80422cb03cb6208f7db36216a220da0
2020-11-16 18:38:50 -05:00
TreeHugger Robot
d315f3320b Merge "Add READ_PROJECTION_STATE to shell permissions for test purposes." 2020-11-14 01:15:24 +00:00
TreeHugger Robot
f263561baa Merge "Added MASTER_CLEAR permission to CarProvision." 2020-11-13 20:46:31 +00:00
Kurt Dresner
f606540a21 Add READ_PROJECTION_STATE to shell permissions for test purposes.
Bug: 172283966
Bug: 134997071
Test: this is for a test
Change-Id: I1fb64d9dd59e1892907ac9b827f06a882a7cecef
2020-11-12 12:11:22 -08:00
felipeal
4880f3104c Added MASTER_CLEAR permission to CarProvision.
Test: adb shell dumpsys package com.android.car.provision | grep -i MASTER_CLEAR
Bug: 170333009
Bug: 171603586

Change-Id: I388b7ac302da67db4045cf71c228b7f6dfea2c58
2020-11-11 17:01:30 -08:00
TreeHugger Robot
28559fe0c3 Merge "Add Noto scripts for new, but revival languages. Update Tibetan" 2020-11-11 00:00:01 +00:00
Marek Z Jeziorek
61f055700e Add Noto scripts for new, but revival languages. Update Tibetan
Bug: 171638701
Test: Manual
Test: Manual
Test: https://en.wikipedia.org/wiki/Dogra_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Grantha_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Medefaidrin_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Modi_(Unicode_block)
Test:
https: //en.wikipedia.org/wiki/Nyiakeng_Puachue_Hmong_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Soyombo_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Takri_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Tibetan_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Yezidi_(Unicode_block)
Change-Id: I05029b57e87cd2329a4364557523be313d1a796c
2020-11-07 00:40:04 +00:00
Kurt Dresner
3d21c80934 Add projection state APIs to UiModeManager and UiModeManagerService.
Bug: 134997071
Bug: 169702986
Test: Code builds, runs, unit tests added for new functionality.
Change-Id: I29cfb198101cdc5d1f4de84f8701928643b756c3
2020-11-06 14:12:39 -08:00
Patrick Baumann
090fab9753 Merge "Revert "Add Noto scripts for revival languages"" 2020-10-29 00:51:10 +00:00
Patrick Baumann
c7cd58d957 Revert "Add Noto scripts for revival languages"
Revert "Add Noto scripts for revival languages"

Revert submission 12916075-Noto-revival-languages

Reason for revert: Potential root cause for build breakage (b/171905161)
Reverted Changes:
I6bbf6bc87:Add Noto scripts for revival languages
Ife41ff9df:Add Noto scripts for revival languages

Change-Id: I46b9dc1bafafa36f9d9ae7467e1911ac7adb7397
2020-10-28 19:40:03 +00:00
Siyamed Sinir
fe094ec085 Merge "Add Noto scripts for revival languages" 2020-10-28 17:37:19 +00:00
Marek Z Jeziorek
21a80870fc Add Noto scripts for revival languages
Bug: 171638701

Test: Manual
Test: https://en.wikipedia.org/wiki/Dogra_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Grantha_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Medefaidrin_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Modi_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Nyiakeng_Puachue_Hmong_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Soyombo_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Takri_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Tibetan_(Unicode_block)
Test: https://en.wikipedia.org/wiki/Yezidi_(Unicode_block)

Change-Id: I6bbf6bc87711a68d667ab58439122d01842fac97
2020-10-27 21:25:48 +00:00
Wale Ogunwale
188d801038 Changed createRootTask task to be completely async
Currently some of the information about a task created by createRootTask
is returned with the method and the rest like leash is return in
onTaskAppear. Mixing both async and sync infromation return styles
complicates the mental model for this. So, we will have this be
completely aync for now.

Also, fixed an issue where the windowing mode for organizer created
task was not set correctly before the organizer gets the first task
appear signal.

Bug: 169266958
Test: Split-screen works!
Change-Id: Ia4180d5a42838bf566fbf75f40466dfd8237e0f1
2020-10-26 13:18:09 -07:00
Hongwei Wang
8aaed30dca Merge "Enter PiP directly if the transition is handled in Launcher" 2020-10-23 16:09:31 +00:00
Hongwei Wang
0065703423 Enter PiP directly if the transition is handled in Launcher
Added also a AIDL method Launcher would issue when the entering pip
animation is completed on Launcher side and WM should update the task
surface when doing cleanup.

Bug: 143965596
Test: see ag/12838262
Change-Id: I5396f9637b4760df014f63b46543d4f399229bba
2020-10-22 22:36:40 -07:00
TreeHugger Robot
51b7fea904 Merge "Added more permissions for CarProvisioning app." 2020-10-22 19:19:23 +00:00
Steven Moreland
1d09a22ec4 Merge "Remove declaration of hidl manager -> base dep" am: 4ff4b2ee17 am: 742771fdd7 am: e798d05a73 am: d53ccbc7bf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1467918

Change-Id: If382fe51b02209c72089b7c0965f63c52fe1614f
2020-10-22 06:11:13 +00:00
Steven Moreland
d53ccbc7bf Merge "Remove declaration of hidl manager -> base dep" am: 4ff4b2ee17 am: 742771fdd7 am: e798d05a73
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1467918

Change-Id: I053f441b90c710a7fed75705b3e170b890acb193
2020-10-22 05:50:54 +00:00
Felipe Leme
4085455c16 Added more permissions for CarProvisioning app.
Test: build and boot AOSP automotive build
Bug: 170143095

Change-Id: Ifc74b008bca7bdd7f603e72647a3faad9818b6e8
2020-10-21 18:30:09 -07:00
Steven Moreland
e798d05a73 Merge "Remove declaration of hidl manager -> base dep" am: 4ff4b2ee17 am: 742771fdd7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1467918

Change-Id: If25601a8cd9024de12655c73ac587ab116ad845c
2020-10-22 00:32:52 +00:00
Steven Moreland
4ff4b2ee17 Merge "Remove declaration of hidl manager -> base dep" 2020-10-21 23:14:11 +00:00
TreeHugger Robot
a7a97067be Merge "Added more permissions for CarProvisioning app." 2020-10-21 23:07:02 +00:00
Evan Rosky
d7e71f875f Merge "Convert BLASTSyncEngine to a polling mechanism" 2020-10-21 18:04:27 +00:00
Galia Peycheva
224c843af0 Merge "Add background blur in WindowManager" 2020-10-21 09:09:04 +00:00
Steven Moreland
fb52599e8a Remove declaration of hidl manager -> base dep
This dependency is fictitious: hidl manager actually contains a static
copy of hidl base for convenience. Separate libraries were created
later (e.g. android.hidl.manager-java-shallow) in order for users of
these libraries to specify the exact deps they need.

Fixes: 170710203
Test: boot and check logs

:) adb logcat | grep android.hidl.manager-V1.0-java.jar
10-21 00:42:53.173   328   328 D ApplicationLoaders: Created zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:17.322   329   329 D ApplicationLoaders: Created zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:31.920  2250  2250 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:38.884  2847  2847 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:41.010  2923  2923 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:42.146  3044  3044 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar

Change-Id: I024a1b16570bdceb7bef5b2e718c65155c675b4a
2020-10-21 00:52:13 +00:00
Felipe Leme
8fbc5faf7b Added more permissions for CarProvisioning app.
Test: build and boot AOSP automotive build
Bug: 170143095
Change-Id: Icc050413ef1b47c6de8006b4820054e8d8f0ea0b
2020-10-20 22:13:24 +00:00
Galia Peycheva
f30a6ab670 Add background blur in WindowManager
The CL adds background blur to the WindowManager LayoutParams as a
hidden API. The background blur is then passed on to the SurfaceControl
in WindowStateAnimator.prepareSurfaces.

Bug: 167166562
Test: m && flash && start app that requests background blur && verify it
works

Change-Id: I5dad3d8d5c75e1feff8fa035452dfe5c90efaa88
2020-10-20 17:26:18 +02:00
Heemin Seog
b0ec95ce0b Merge "Allow permission to change application state" into rvc-qpr-dev am: f068a1c665 am: 39bd586f6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12865656

Change-Id: Ic569b3543bbc2ee1858ef1fd239a4b9837fa86b0
2020-10-19 15:54:23 +00:00
Heemin Seog
39bd586f6f Merge "Allow permission to change application state" into rvc-qpr-dev am: f068a1c665
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12865656

Change-Id: I1cf1a67e136ee838aa4461c3d4c0da1bb561b7ba
2020-10-19 15:43:28 +00:00
Heemin Seog
52537c1ea2 Allow permission to change application state
Needed to give KitchenSink control over enabling/disabling rotary
functionality.

Bug: 170232080
Test: manual
Change-Id: Ic69222642884444597e7411b17b6c6f363076981
2020-10-16 16:16:56 -07:00
Evan Rosky
123ca79858 Convert BLASTSyncEngine to a polling mechanism
SyncEngine's requirements are getting more demanding as it is
used in transitions as-well as more-complicated interractions
in Shell. In order to meet the requirements, this converts
BLASTSyncEngine to work mostly by polling during surface-placement.

The previous set-up was already gated on surface-placement, so
there shouldn't be any additional latency.

There is now only one SyncEngine (instead of many) and it manages
SyncGroups which must not overlap. Whenever a container is added
to a sync group, the SyncEngine will monitor the subtree rooted at
that container. When a child receives finishDrawing: instead of
immediately reporting to the engine, it simply remembers that it
is now READY for sync. On each surface-placement pass, SyncEngine
will check the subtrees to see if everything is finished syncing.

This enabled the following:
- Now handles visibility changes and new children (since it is
  always checking the full subtree). This is needed to deal with
  opening transitions.
- Doesn't wait for occluded siblings. This is needed to deal with
  starting windows.
- Handles parenting changes: immediately applies sync transactions
  on subtrees exiting the sync-group, requests updates/waits
  on subtrees entering, and re-requests updates for subtrees moving
  within the group.
- Includes removals in sync transaction

Bug: 161710818
Test: SyncEngineTests
Change-Id: Ic3fdc091d5656b3eaea45bce449e098ee9d2aabb
2020-10-16 13:25:17 -07:00
TreeHugger Robot
44a65b1e80 Merge "Added permissions for CarProvisioning app." 2020-10-15 01:32:43 +00:00
Chris Li
d93fff6c0f Support ignoring orientation request on DisplayArea level
1. Move the mIgnoreOrientationRequest to DisplayArea so that one can set
it on DisplayContent and DisplayAreaGroup to ignore orientation request
from non-app windows.
2. Have the DisplayContent to return SCREEN_ORIENTATION_UNSPECIFIED when
it is SCREEN_ORIENTATION_UNSET so that the display respects sensor
rotation.
3. Move the logic of using last orientation back to TDA, otherwise when
TDA returns UNSET because ignore is set, DC may incorrectly uses the
last orientation.

Bug: 170725334
Bug: 155431879
Test: manual: test with setting TDA and DC to ignore
Test: atest WmTests:TaskDisplayAreaTests
Test: atest WmTests:WindowOrganizerTests
Test: atest WmTests:DisplayAreaTest
Test: atest WmTests:DisplayContentTests
Change-Id: Ie92b059c453204799a58efd39dc9b23f7d62816d
2020-10-13 22:15:09 -07:00
Treehugger Robot
47f5d7decf Merge "Add OnLive Universal Controller media buttons mapping." am: 30951b0666 am: 94fc36d8fc am: 3b458c921c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1446730

Change-Id: I264db17eaf594758ae997a18b5f27688d3458465
2020-10-13 06:31:17 +00:00