Add media buttons like play/pause/record etc, for OnLive
Universal Controller.
Bug: 114679349
Test: Connect OnLive Universal Controller and play with media
buttons.
Change-Id: Ie69b3f7f8f13c778208454fb789113126c04966a
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
* 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
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
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
Bug: 169374341
Test: All tests below are manual.
Test: 0. Open a reference device with an existing set of fonts
Test: 1. Upload new fonts.xml and the new fonts to a test device
Test: 2. Change language to Ethiopic on both devices
Test: 3. Open settings on both devices and visually compare them (they
should be the same)
Test: 4. Open the following pages on the test device (and on a reference
device):
Test: https://en.wikipedia.org/wiki/Ethiopic_(Unicode_block)
Test: https://unicode.org/udhr/d/udhr_amh.html
Test: https://www.wordproject.org/bibles/verses/amharic/26_peace.htm
Test: ... and visually compare them (they should be the same)
Change-Id: I12488fb505ae7b3c506383c7cec7cdebe133994d
Add permissions for Phone process to access SubscriptionPlans for
meteredness
Test: manual verification
Bug: 169187737
Change-Id: Ib821590a573db87b22619cfe7ebe64c0230c5031
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
Add permissions for Phone process to access SubscriptionPlans for
meteredness
Test: manual verification
Bug: 169187737
Change-Id: Ib821590a573db87b22619cfe7ebe64c0230c5031
There should be no such dependency.
Test: lunch aosp_cf_x86_phone-userdebug && m
Bug: 169137403
Bug: 132357300
Change-Id: Iaa7414be66581c01c6acbf367dc165cd8af78615
* changes:
Revert "Give all non-package services the power to interact accr..."
Revert "Check cross-user interactions for permissions and app-op..."
Revert "Invalidate package/permission cache if cross-profile app..."
Revert "Add dedicated host side tests for permissions and appops"
Revert submission 12439864-PermAppOpsCrossUserCheck-Fixed
Reason for revert: Bug 169044600
Reverted Changes:
I95d015e01:Invalidate package/permission cache if cross-profi...
I2a8a84f57:Check cross-user interactions for permissions and ...
Ie8f0db231:Give all non-package services the power to interac...
I11af434a8:Test package/permission cache invalidation when IN...
Ib6d609a4d:Add dedicated host side tests for permissions and ...
Change-Id: I47d371832c119fe4ce4890e10c1ac87aba92acbc
(1/n Orientation on DisplayAreaGroup)
Record the last focused TDA and only allow it to specify orientation
if it is the last focused one on the logical display, so that when
there are multiple TDAs, we only respect the TDA with focus.
Bug: 155431879
Test: manual: test with fixed-orientation app
Test: atest WmTests:TaskRecordTests
Test: atest WmTests:TaskDisplayAreaTests
Change-Id: Ia574550368ce45a6e2c2f81b543adcfa4cf01ba1
* changes:
Invalidate package/permission cache if cross-profile app is is changed
Check cross-user interactions for permissions and app-ops operations
Give all non-package services the power to interact accross users
Add support for Gamevice GV186 gamepad, for joystick axes and
buttons mapping.
Test: atest GameviceGv186Test
Bug: 142591969
Change-Id: Id025f5fcd3d831ecd8a2842d5c5d7e05eb5b00c9
- DownloadManager will use the requestor app's default network to
open a connection. When the VPN app lists the DownloadProvider as
a disallowed application, this will fail with EPERM.
- This is because in R, the DownloadProvider lost its privileges
due to the removal of the CONNECTIVITY_INTERNAL permission. It's
removed without considering the corner case where the
DownloadProvider is excluded from using the VPN. It's the only
case where this makes a difference.
- Adding CONNECTIVITY_USE_RESTRICTED_NETWORKS will give
DownloadProvider the ability to use the VPN again in this case,
fixing the issue.
Bug: 165774987
Test: Build, flash rom and boot to home. Manully test that
DownloadProvider can download file via VPN.
Change-Id: If8fa785568ace1f15f53daec67c06e1207d5dc9c
Merged-In: If8fa785568ace1f15f53daec67c06e1207d5dc9c
Bug: 168657713
Test: All tests below are manual.
Test: 0. Open a reference device with an existing set of fonts
Test: 1. Upload new fonts.xml and the new fonts to a test device
Test: 2. Change language to Armenian on both devices (look for Հայերեն
or similar)
Test: 3. Open settings on both devices and visually compare them (they
should be the same)
Test: 4. Open the following pages on the test device (and on a reference
device):
Test: https://en.wikipedia.org/wiki/Armenian_(Unicode_block)
Test: https://unicode.org/udhr/d/udhr_hye.html
Test:
https://hy.wikipedia.org/wiki/%D5%80%D5%A1%D5%B5%D5%A5%D6%80%D5%A5%D5%B6
Test: ... and visually compare them (they should be the same)
Change-Id: I440fd11bd219672b67e6aee37f9f192eeb722099
This change introduces a new call for clients to request focus on their
embedded views. In order to accomplish this, the owner of the
SurfacePackage sends an input token that can identify the input channel
of the embedded window. This token is forwarded as part of the focus
request.
WindowManager will authenticate the calling window and the relationship
between the host and the embedded window. Once authenticated, the
request will be forwarded to InputDispatcher. InputDispatcher will grant
the focus to the SurfaceControlViewHost if the host window is currently
focused or transfer focus back to the host window if the
SurfaceControlViewHost is focused. Otherwise the request is dropped.
In addition, SurfaceView, the host in this scenario, now overrides the
onFocused function to transfer focus to and from the embedded view.
Test: atest SurfaceControlViewHostTests
Bug: 151179149
Change-Id: Ia95545a60d73db4c03679bce9747d2e275806838