Commit Graph

917 Commits

Author SHA1 Message Date
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
Felipe Leme
ddd0f4ddd1 Added permissions for CarProvisioning app.
Test: build and boot AOSP automotive build
Bug: 170143095

Change-Id: I68657b4e4fe571079dd8c1a08371fcd8a95e340e
2020-10-12 18:56:20 -07:00
Xin Li
986e6eeddf Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: Iecef31f7bf10ad97b7e0075cf302ae94e248474a
Change-Id: I9e9c873bc2e05a0cfe3af0bf74725500f3f108db
2020-10-10 20:38:57 -07:00
Kevin Chyn
fc26e8a0e0 Add wireframe for biometric TestApis
1) Adds BiometricTestSession and empty implementations
2) Adds TEST_BIOMETRIC permission
3) Grants Shell USE_BIOMETRIC and TEST_BIOMETRIC permission

Bug: 169459906
Test: make -j update-api && make -j

Change-Id: Iea9fd37d7234eb7e5e34a7a2698cbf0ca7a33a77
2020-10-09 11:15:03 -07:00
Charles Chen
9329fbdd72 Migrate IME switch dialog to WindowContext
Bug: 157888351
Test: manual - reproducible steps mentioned in the bug
Test: atest InputMethodMenuControllerTest
Test: atest WindowManagerServiceTests

Change-Id: I8adb0c569ea6c208aee659603ee1d69df9939267
2020-10-07 11:32:10 +08:00
Louis Chang
d1b79549d2 Renaming Stacks APIs to RootTasks
This CL is aimed to refine the AM/ATM API surface. The other
stack naming internally spread in AM and ATM will be covered
in later CLs.

Also Consolidate #removeStack() with #removeTask().

Bug: 157876448
Test: existing tests

Change-Id: I1254f972dab3bbe66a736a0402eebce9d0fb1496
2020-10-06 08:39:18 +08:00
TreeHugger Robot
e27fbdb2cf Merge "Grant new permission for storage manager" 2020-10-05 15:24:54 +00:00
Diego Vela
d4411a519e Migrate System Logs to ProtoLog
Migrate logs for States and Tasks
Remove DEBUG_PAUSE flag
Remove DEBUG_SAVES_STATE flag
Remove DEBUG_STATES flag
Remove DEBUG_TASKS flag

Bug: 153162675
Test: n/a
Change-Id: I3811f58ff5c904dab0b1ff61d29d83d78ec1a121
2020-10-01 19:17:10 -07:00
Evan Rosky
5577b8f591 Merge "Scaffolding for Shell Transitions" 2020-09-30 22:37:20 +00:00
TreeHugger Robot
dfd56946f8 Merge "Guard IResourceObserver::registerObserver with permission" 2020-09-30 18:43:45 +00:00
Evan Rosky
0dd1586bf7 Scaffolding for Shell Transitions
Initial rough implementation of Shell Transitions.

Shell Transitions can be enabled by setting ENABLE_SHELL_TRANSITIONS
via `adb shell setprop persist.debug.shell_transit 1`

The main structure behind this is:

- TransitionController in Core responsible for handling the
collection of transition participants and communicating with
the TransitionPlayer in Shell.

- Transitions in Shell responsible for starting transitions
and playing associated animations.

This initial version only supports task open/show/close and does
a simple fade. The flow is:
1. activityStarter calls to Transitions.requestStartTransition
2. Transitions will prepare to start and then call
   WindowOrganizerController.startTransition().
2. Various operations in Core call TransitionController.collect()
   to track participants. This collect() acts as a replacement for
   adding to mOpening/ClosingApps.
3. The legacy executeAppTransition() is wired into
   TransitionController.setReady() for now. This signal
   is used to ready a BLASTSyncEngine.
4. When all participants are done drawing, TransitionController
   will commit any showing visibility changes and then will construct
   a TransitionInfo object summarizing all the changes needed for
   animation. This gets sent to Transitions.onTransitionReady()
5. Transitions then plays the transition animation and on
   completion will call WindowOrganizerController.finishTransition()
   which will tell TransitionController to do any finishing
   work (like commiting deferred hide changes).

Bug: 161980187
Test: enable the flag and try opening/closing tasks. Also added
      TransitionControllerTests
Change-Id: I80c3a241fc12004a894c26523a1e5828e0c533ff
2020-09-30 11:36:35 -07:00
Evan Severson
3b7af77649 Merge changes from topic "BackgroundMicCamera"
* changes:
  Do not show rationale when permission is restricted
  Add role allowlist for restricted permissions
  Add documentation to APIs using non-inclusive lanuage
  Treat background mic/camera normally
  Introduce new permissionFlag
  Split camera and microphone for background modes
  Add background microphone and camera permission
2020-09-30 16:46:57 +00:00
Neil Fuller
7e11d634fc Merge "Add a new permission in AOSP" am: 4b22e7c281 am: 1f728acac0 am: 8a0ce64177 am: 75ae324fb9 am: 7a3481c35c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440636

Change-Id: I3a2b428be82d029c3cb7c8fa9b3102dd62eec8dc
2020-09-30 10:30:38 +00:00
Neil Fuller
7a3481c35c Merge "Add a new permission in AOSP" am: 4b22e7c281 am: 1f728acac0 am: 8a0ce64177 am: 75ae324fb9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440636

Change-Id: Id9f67ecab2beabe967660b5a4407ef0f20d8efad
2020-09-30 10:15:21 +00:00
Neil Fuller
75ae324fb9 Merge "Add a new permission in AOSP" am: 4b22e7c281 am: 1f728acac0 am: 8a0ce64177
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440636

Change-Id: I0c4deb866e86feb77fe898e4bf643cd45ad9f086
2020-09-30 09:51:55 +00:00
Neil Fuller
770f5ab2db Add a new permission in AOSP
This adds a new permission in AOSP, so it can be referenced by the Shell
command, which presubmit suggests has to be maintained in AOSP.

Bug: 159891384
Test: build only
Exempt-From-Owner-Approval: jsharkey@ approved but it appears to have reset...?
Change-Id: Ic7d403e20731e9d6bd82d5b2e2758cc61989cc59
2020-09-30 08:39:25 +00:00
Tsung-Mao Fang
5d42fad212 Grant new permission for storage manager
We declard a new MANAGE_EXTERNAL_STORAGE permission in ag/12085709,
so grant this permisison to this application.

Fix: 143200051
Test: Rebuilt rom
Change-Id: Iea926a6fa9cc3092857b5150d6e358e06c5fb5c7
2020-09-30 14:19:37 +08:00
TreeHugger Robot
2577976f47 Merge "WindowStateAnimator: Remove mSurfaceResized" 2020-09-29 20:48:42 +00:00
Sarah Chin
0b7a97fc80 Merge "Add read/write logic for SubscriptionPlan network types field" into rvc-d1-dev am: 76b7c3ccb4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12691247

Change-Id: Iab79d997aaeec0524cf9f2d9fb61f3c1ce0afa71
2020-09-29 17:58:01 +00:00
Robert Carr
0cf5818391 WindowStateAnimator: Remove mSurfaceResized
This is a part of moving Surface size control to the client. We
currently see there are only two uses of mSurfaceResized:
	1. In WindowState to emit MSG_RESIZED. However for many
	releases now we have only resized surfaces from within
	relayoutWindow, so the client will already receive the
	result here and there is no need to emit MSG_RESIZED.
	2. In WindowStateAnimator to set REDO_WALLPAPER. The
	original meaning of this code is perhaps lost to archaeology.
	However I think the cases where resizing would be linked
	to wallpaper should be limited to rotation. This seems to match
	the idea that the historical meaning of "mSurfaceResized" was more
	or less "orientation changing" (back before multi-window).
	We also add this REDO_WALLPAPER flag from
	WindowManagerService#finishDrawingWindow, and so I think it should be
	added anyway in these sort of rotation cases (assuming it's still
	necessary)

Bug: 161937501
Test: Existing tests pass
Change-Id: I2f85b6a81d24eec5c4aaca205e92a5fe82aff41e
2020-09-28 12:15:29 -07:00
Chong Zhang
95ad2ceac8 Guard IResourceObserver::registerObserver with permission
bug: 154733526
bug: 168307955
test: mediatranscodingservice unit testing.
Change-Id: Ie210f704eb0982fcc50b8e7de7e84a7b96280e81
2020-09-25 23:56:38 +00:00
Collin Fijalkovich
177fb5371a Merge "Allow privapp Traceur access to STATUS_BAR and DUMP" am: 7ffd615b4c am: c1795594fc am: 007c395a60 am: 2b7e712e28 am: c9f2bbea61
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1415308

Change-Id: I6f080e17b63a28d914f9b224cc712cd9018e1700
2020-09-25 05:51:45 +00:00
Sarah Chin
859dd69f6f Merge "Add read/write logic for SubscriptionPlan network types field" into rvc-qpr-dev am: 93e0bd19fc am: a608315e39
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672465

Change-Id: I60efe2858961dfbecc7eacd7dc3eeefaf92493ff
2020-09-25 05:48:33 +00:00
Collin Fijalkovich
c9f2bbea61 Merge "Allow privapp Traceur access to STATUS_BAR and DUMP" am: 7ffd615b4c am: c1795594fc am: 007c395a60 am: 2b7e712e28
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1415308

Change-Id: Icf6dcb3545876cc1f1fa55648d4af4912e8e18ac
2020-09-25 05:35:02 +00:00
Sarah Chin
a608315e39 Merge "Add read/write logic for SubscriptionPlan network types field" into rvc-qpr-dev am: 93e0bd19fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12672465

Change-Id: I45e6d253a09a7d82b454d869895b54d8631cc24b
2020-09-25 05:26:40 +00:00
Collin Fijalkovich
2b7e712e28 Merge "Allow privapp Traceur access to STATUS_BAR and DUMP" am: 7ffd615b4c am: c1795594fc am: 007c395a60
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1415308

Change-Id: I848a84ba27f4577b2744703943eb09d49b9922fa
2020-09-25 05:26:15 +00:00
Sarah Chin
8fce85a6f8 Add read/write logic for SubscriptionPlan network types field
Add permissions for Phone process to access SubscriptionPlans for
meteredness

Test: manual verification
Bug: 169187737
Change-Id: Ib821590a573db87b22619cfe7ebe64c0230c5031
2020-09-25 00:32:07 +00:00
Collin Fijalkovich
7ffd615b4c Merge "Allow privapp Traceur access to STATUS_BAR and DUMP" 2020-09-24 21:08:09 +00:00
Collin Fijalkovich
36d59fba49 Allow privapp Traceur access to STATUS_BAR and DUMP
Modifies the privapp allowlist to allow Traceur to grant Traceur the
STATUS_BAR permission, which is needed for quick settings tile functionality, and dump which is needed for the BUGREPORT_STARTED intent.

Bug: 166768816
Test: Built user and userdebug, exercised regular and long trace
functionality

Change-Id: I180527a9a1a30ef6a214b628f37affc69f9ae2f0
2020-09-24 17:45:53 +00:00
Sarah Chin
8517e8d998 Add read/write logic for SubscriptionPlan network types field
Add permissions for Phone process to access SubscriptionPlans for
meteredness

Test: manual verification
Bug: 169187737
Change-Id: Ib821590a573db87b22619cfe7ebe64c0230c5031
2020-09-23 23:59:02 -07:00
Evan Severson
4f30e0baeb Split camera and microphone for background modes
Test: adb shell dumpsys package [package targeting < 31]>
Bug: 158311343
Change-Id: Ia5d0c40551163772e7cc10fdaf067360c6885f5b
2020-09-23 14:06:05 -07:00
Ulyana Trafimovich
4719733d49 Merge "Drop dependency of android.test.mock -> android.test.base." am: f08e8871d4 am: 72003fb685 am: 10e02f55c0 am: 2dc7803823 am: 51f2298687
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1434135

Change-Id: I3a9f55e09d4dd452445bee3b834f23ce2e98fbbd
2020-09-23 17:08:34 +00:00
Ulyana Trafimovich
51f2298687 Merge "Drop dependency of android.test.mock -> android.test.base." am: f08e8871d4 am: 72003fb685 am: 10e02f55c0 am: 2dc7803823
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1434135

Change-Id: Ided901188cdaee6a0bc7cafe751e9344bcba8d9b
2020-09-23 17:07:11 +00:00