This CL sets correct type for system routes.
Bug: 153711362
Bug: 146772609
Test: cts and manually w/ connected USB-C headphone.
Change-Id: I3b4321914bfe944e2cec321fdcf779a45a78ca88
Also, changes the "inheritance" of bounds-based configs so
that when the window bounds are overridden, the configs will
implicitly also be overridden (recalculated against display)
appBounds and screenW/H match the overridden bounds.
Bug: 154331729
Bug: 153662925
Test: enter split-screen, open ime in launcher. Updated some
tests to check for this expectation.
Change-Id: I1e37d8d116fde90428036bc54a2a77b293cee338
The change is to check if there are any files in the source folder
before creating target.
Bug: 153704006
Bug: 154535403
Test: double adb install megacity.apk without uninstallation
Change-Id: Id62fe224f7dce032af4382909986b6ff04508b38
We want to assign input to the BLAST surface instead of the
WSA container layer if BLAST is enabled. Previously this didn't
matter but following upcoming occlusion changes the BLAST surface
would then occlude the WSA surface and the main Input Channel would
fail to receive input. We fix this by having InputMonitor call
getClientViewRootSurface()
Bug: 152064592
Test: Flip BLAST. Input still works!
Change-Id: I3e4e136fa11d15f8f576b97dbdc34c9a585a0f32
This is an implementation of long screenshots supporting
interactive, incremental capture of scrolling content using
a cooperative API between the app process and the system.
Design goals:
- Provide for tile based incremental screenshots of scrolling content
- Support existing apps without developer action
- Provide support for non View-based Apps & UI toolkits
Bug: 148131831
Test: atest \
FrameworksCoreTests:android.view.ScrollCaptureClientTest \
FrameworksCoreTests:android.view.ScrollCaptureTargetResolverTest \
FrameworksCoreTests:com.android.internal.view.ViewGroupScrollCaptureTest \
FrameworksCoreTests:android.view.ScrollViewCaptureHelperTest \
WmTests:com.android.server.wm.DisplayContentTest
Merged-In: I6c66a623faba274c35b8fa857d3a72030a763aea
Change-Id: I6c66a623faba274c35b8fa857d3a72030a763aea
Use the existing maxAmplitude and gamma adjustment values to apply the
relative scaling of default vibration intensity settings and user
settings on top of the PrimitiveEffect#scale value.
As a consequence, the relative scaled amplitude of a OneShot or Waveform
vibration effect should match the scaled PrimitiveEffect#scale value.
Fix: 154089649
Test: atest FrameworksCoreTests:VibrationEffectTest
Change-Id: I3ca0042a42675289a2ed8110c9dc3798055ebf4a
Gamepad-specific API is a separtate input path from standard "remote"
service. Specifically it adds:
- openGamepad that creates a virtual input device with
gamepad-specific suport
- send gamepad keys
- send gamepad axis updates, which support joysticks, analog triggers
and HAT axis (as an alternative to DPAD buttons).
Bug: 150764186
Test: atest media/lib/tvremote/tests/src/com/android/media/tv/remoteprovider/TvRemoteProviderTest.java
Test: flashed a ADT-3 device after the changes. Android TV Remote
on my phone still worked in controlling the UI.
Merged-In: I49612fce5e74c4e00ca60c715c6c72954e73b7a3
Change-Id: I49612fce5e74c4e00ca60c715c6c72954e73b7a3
(cherry picked from commit 9b9f556af1)