Commit Graph

1540 Commits

Author SHA1 Message Date
TreeHugger Robot
4b05833b7e Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea am: b7e62faf05
Change-Id: Ic89f297fefe136612d04028a84c331a49f3c56ad
2020-05-27 04:59:29 +00:00
TreeHugger Robot
b7e62faf05 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea
Change-Id: Id67aaf261a342341f73cb038edc488e5c87744dc
2020-05-27 04:48:34 +00:00
TreeHugger Robot
f49fa1a9ea Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev 2020-05-27 04:39:45 +00:00
TreeHugger Robot
bd94b5d3e0 Merge "Fix black screen during Quick switch" into rvc-dev am: c82ee307b1 am: 2f34b5f9fb
Change-Id: Iba11cc5c1d417bd7def1329a38b291cdeed558e5
2020-05-25 18:31:39 +00:00
TreeHugger Robot
94f5ae2fce Merge "Fix black screen during Quick switch" into rvc-dev am: c82ee307b1
Change-Id: I1ce1a153bacd7aafae975c7b5563bb6474d12805
2020-05-25 18:27:04 +00:00
TreeHugger Robot
2f34b5f9fb Merge "Fix black screen during Quick switch" into rvc-dev am: c82ee307b1
Change-Id: I93231dd8c485d2ae20aaed9946863e5c97076cd0
2020-05-25 18:27:03 +00:00
Ming-Shin Lu
aa9376bc4f Fix black screen during Quick switch
When quick switch a delayed task, before onTaskAppeared called,
if the user holds gesture on nav bar, TRANSIT_WALLPAPER_OPEN from closing
app happens will cancel recents animation when
WC#applyAnimationUnchecked, and that will cause the black screen if the
delayed task not yet drawn and there is no recents task snapshot on top.

Since cancelling recents animation during quick switching doesn't make
sense, to fix that, we should check the animation task target if is
still controlled by recents animation, if so, we should not cancel it.

Also, make sure if the appeared task has already been in task target list,
(i.e. task A appreared, quick switch to task B, before task B appeared,
quick switch back to task A) if so, we don't need to callback task
appeared again.

Fix: 156670249
Test: manual as issue test steps.
Change-Id: I303403d63c91c08fabcb8c5b1b1aac42c4ec65db
2020-05-25 21:20:33 +08:00
Jay Aliomer
1c9b3a68da Merge "Remove new styles from AOSP" into rvc-d1-dev am: dbe16101a5
Change-Id: Idaa838376e581f37c30cb6d3ace8cb73d72dd99d
2020-05-20 20:47:56 +00:00
Jay Aliomer
dbe16101a5 Merge "Remove new styles from AOSP" into rvc-d1-dev 2020-05-20 20:35:15 +00:00
Jay Aliomer
e3b17f75b5 Remove new styles from AOSP
Fixes: 156779458
Test: manually check styles
Change-Id: Idab27fe12f0daad6ffe6587967d1e25ff2f5c238
2020-05-19 13:35:08 -04:00
TreeHugger Robot
ae898cd2d2 Merge "Screen recording doesnt record internal audio" into rvc-dev am: 3ccf874dca
Change-Id: I73fb031cb436c4b632d82890498df484713f5e69
2020-05-18 23:37:20 +00:00
TreeHugger Robot
a70674e644 Merge "Add keylayout for Steam controller (USB)" into rvc-dev am: e061bdbfe1
Change-Id: Id27fda1baa8db1247face7d0483b5c7f8626f2f2
2020-05-18 23:12:34 +00:00
TreeHugger Robot
c4bbe5f370 Merge "Screen recording doesnt record internal audio" into rvc-dev am: 3ccf874dca am: 43ddb44202
Change-Id: I7dd0cb5e95d39d1331f79ed310b4b361e06ee2a3
2020-05-18 17:07:08 +00:00
TreeHugger Robot
43ddb44202 Merge "Screen recording doesnt record internal audio" into rvc-dev am: 3ccf874dca
Change-Id: Icb1ad78c63b8b81dc386be86cfdadbbce403a22b
2020-05-18 16:50:38 +00:00
TreeHugger Robot
3ccf874dca Merge "Screen recording doesnt record internal audio" into rvc-dev 2020-05-18 16:37:11 +00:00
Jay Aliomer
c2094aedcc Screen recording doesnt record internal audio
Fixes: 156645454
Test: manual
Change-Id: I3be1df0e6261750b2fe923650ee3359414fce642
2020-05-16 17:58:25 -04:00
TreeHugger Robot
2cffdd6b41 Merge "Add keylayout for Steam controller (USB)" into rvc-dev am: e061bdbfe1 am: 99a088c764
Change-Id: I831255898643144318b004e732357533cbe56c14
2020-05-16 01:58:13 +00:00
TreeHugger Robot
99a088c764 Merge "Add keylayout for Steam controller (USB)" into rvc-dev am: e061bdbfe1
Change-Id: I6fd935f70a23800c93acf60c54138b85c56d0e2f
2020-05-16 01:32:42 +00:00
Siarhei Vishniakou
2abc5d2823 Add keylayout for Steam controller (USB)
In the USB mode, Steam controller needs a key layout, because most of
the buttons and axes are incorrectly mapped.

The wireless dongle has not been tested.

The controller also support BLE, but currently goes into lizard mode by
default (only mouse and 2 buttons: left/right clicks work). So a driver
is likely necessary to go into the normal mode over BT, and hid-steam
doesn't help with that currently.

On BT, the controller has product id of 0x1106.

Bug: 147434575
Test: use the "gamepad tester" app and connect joystick over the USB.
Ensure that all mappings work
Test: CTS test will not be done at this time because it requires
supporting SET_REPORT in the hid command.

Change-Id: Ic0c50695338f98dcaeaaa7b3417fde702563d205
2020-05-15 07:38:14 -07:00
Amy Zhang
5f8498bcf1 Add support for TvInputManager.acquireTvInputHardware CTS
1. Add a test api in TvInputManager to add hardware device for testing
2. Add Shell permission for TV_INPUT_HARDWARE
3. Add TUNER_RESOURCE_ACCESS permission for TvInput Framework.

Test: atest android.media.tv.cts
Bug: 155114656
Change-Id: I227f13cbf14532d8732729412ae9c2518755ef02
2020-05-14 17:37:52 -07:00
Treehugger Robot
3dc4f436b9 Merge "Convert much of f/b/data/fonts/Android.mk to Android.bp" am: fbb827fe24 am: 445030096f am: 93e1bfa6fc
Change-Id: I82242b7e323829cdafae869815a35b768f42d233
2020-05-14 16:48:36 +00:00
Treehugger Robot
93e1bfa6fc Merge "Convert much of f/b/data/fonts/Android.mk to Android.bp" am: fbb827fe24 am: 445030096f
Change-Id: I1dda18059beb41e34a25a62cc2c95e83944427c3
2020-05-14 16:33:52 +00:00
Treehugger Robot
445030096f Merge "Convert much of f/b/data/fonts/Android.mk to Android.bp" am: fbb827fe24
Change-Id: I1f455ecabdd195f30e6026a0aee3d38e3cd7c5de
2020-05-14 16:18:55 +00:00
Dan Willemsen
276c4eb05b Convert much of f/b/data/fonts/Android.mk to Android.bp
The Serif symlinks haven't been used since 2014, so I removed them.

Test: treehugger
Test: m fonts.xml DroidSansMono.ttf AndroidClock.ttf, ensure same installed files
Change-Id: I496498e0debac37f5fff4b9e046813e6b2694fd5
2020-05-13 20:22:42 -07:00
TreeHugger Robot
f3ae8b5bd1 Merge "Add day-night-mode permission to Shell." into rvc-dev am: 021ceaecf2
Change-Id: Ib364f93a1f0c338b7139c8f0a6945653a2db01bf
2020-05-13 19:47:17 +00:00
TreeHugger Robot
021ceaecf2 Merge "Add day-night-mode permission to Shell." into rvc-dev 2020-05-13 19:41:38 +00:00
TreeHugger Robot
77d3432f68 Merge "Includes SecondaryHome into the priv app whitelist." into rvc-dev am: 8a8dba8d27
Change-Id: I4283f9cc4fb1cc56d95f1952cd0f7468a592741c
2020-05-12 20:36:40 +00:00
TreeHugger Robot
6d18a18871 Merge "Includes SecondaryHome into the priv app whitelist." into rvc-dev am: 8a8dba8d27 am: 27777a33cc
Change-Id: Ifa13b89421c0bab0552819fd086cab93e32f7810
2020-05-12 19:44:50 +00:00
TreeHugger Robot
27777a33cc Merge "Includes SecondaryHome into the priv app whitelist." into rvc-dev am: 8a8dba8d27
Change-Id: I541b357a816f6851a670b17f28d0bee14cdf533c
2020-05-12 19:28:04 +00:00
Hall Liu
04e782ddb7 Merge "Convert Telephony broadcasts to be non-sticky" into rvc-dev am: ee1249911a
Change-Id: I7365f679d2b7af4119283a67660187857de790c9
2020-05-12 19:09:29 +00:00
Treehugger Robot
fbd4a6f80a Add day-night-mode permission to Shell.
Without the permission "adb shell cmd uimode night <mode>" doesn't work.
Adding the permission to the AndroidManifest file so the shell command
will work.

Bug: 155584597
Test: run `adb shell cmd uimode night <no|yes|auto>`
Change-Id: Ic444f3351cb130d24a2794284c6bf8709c80712c
(cherry picked from commit a85cc22044)
2020-05-12 15:13:26 +00:00
Yuncheol Heo
561f67eb72 Includes SecondaryHome into the priv app whitelist.
- Add android.permission.INTERACT_ACROSS_USERS for the CarNotificationLib.

Bug: 156114875
Test: check if SecondayHome is shown (in gcar_hl_md_emu_x86).
Change-Id: I79ae64b90a52235876a6e51ad01ae70def1bf1fa
2020-05-11 19:52:01 -07:00
Treehugger Robot
2c5a6f6c4d Merge "Add day-night-mode permission to Shell." am: 963c11e32d am: dbf9eed8c1 am: 4d79a92078
Change-Id: I543f3a26224e826708dc3317b2f9c2bd7b19b53e
2020-05-11 23:18:22 +00:00
Treehugger Robot
4d79a92078 Merge "Add day-night-mode permission to Shell." am: 963c11e32d am: dbf9eed8c1
Change-Id: I5fe4468f78049f9907a92121b7e3661bb9598440
2020-05-11 22:56:39 +00:00
Treehugger Robot
dbf9eed8c1 Merge "Add day-night-mode permission to Shell." am: 963c11e32d
Change-Id: Iad4aba4108aa1d60e470388bfadf2bdc78984324
2020-05-11 22:38:44 +00:00
Kweku Adams
6adfa79de1 Add day-night-mode permission to Shell.
Without the permission "adb shell cmd uimode night <mode>" doesn't work.
Adding the permission to the AndroidManifest file so the shell command
will work.

Bug: 155584597
Test: run `adb shell cmd uimode night <no|yes|auto>`
Change-Id: Ibfb145d762c73bba9de639d4050b9b26e4778cc9
2020-05-11 11:46:34 -07:00
Hall Liu
558b7f1af4 Merge "Convert Telephony broadcasts to be non-sticky" into rvc-dev am: ee1249911a am: 276f44d2ba
Change-Id: I629a56543cb71ca867804046ffec2bbee5438016
2020-05-10 05:29:32 +00:00
Hall Liu
45066127b3 Convert Telephony broadcasts to be non-sticky
Convert ACTION_SERVICE_STATE_CHANGED and
ACTION_ANY_DATA_CONNECTION_CHANGED to be non-sticky broadcasts that
require the READ_PHONE_STATE permission to receive. As part of this,
declare READ_PHONE_STATE to be split from READ_PRIVILEGED_PHONE_STATE,
so that system apps holding READ_PRIVILEGED_PHONE_STATE can also receive
these broadcasts.

Also modify affected users to fetch the current value of the broadcast
upon registration instead of relying on the sticky nature of the
broadcast.

Bug: 150155839
Test: manual
Test: atest KeyguardUpdateMonitorTest
Change-Id: I020b1554c4fc59c138d015e787526b4a66c74853
2020-05-06 18:11:50 -07:00
Joseph Pirozzo
e3d05e322e Merge "EmbeddedKitchenSinkApp BLUETOOTH_PRIVILEGED" into rvc-dev am: 928d88431a
Change-Id: Ic993b4665d910a921783ae2957cc8e36a2cbaaf6
2020-05-04 23:38:17 +00:00
Joseph Pirozzo
928d88431a Merge "EmbeddedKitchenSinkApp BLUETOOTH_PRIVILEGED" into rvc-dev 2020-05-04 23:30:55 +00:00
Siarhei Vishniakou
7c7b26933a Merge "Add layout for xbox 360 wireless controller" into rvc-dev am: 0a19f87982
Change-Id: If60afe7042832a6eb67ac76c838bef5e53bd0169
2020-05-04 22:31:52 +00:00
Siarhei Vishniakou
0a19f87982 Merge "Add layout for xbox 360 wireless controller" into rvc-dev 2020-05-04 22:13:49 +00:00
Joseph Pirozzo
5212738a84 EmbeddedKitchenSinkApp BLUETOOTH_PRIVILEGED
Grant BLUETOOTH_PRIVILEGED permission to test app for Bluetooth testing.

Bug: 155672526
Test: In Kitchen Sink, connect on MAP profile.
Change-Id: I736f5a46e2f198947d7077a5542cf986aea7355c
2020-05-04 13:46:51 -07:00
Siarhei Vishniakou
046e478fd9 Add layout for xbox 360 wireless controller
We are currently missing a layout for the xbox 360 wireless controller,
with product id 02a1.

Bug: 144469012

Test: copied from Vendor_045e_Product_028e.kl
Change-Id: Ib0286d126273619352e9834e669413ecd699b1d9
2020-05-04 19:38:40 +00:00
Jay Aliomer
d44d9cce56 Merge "Adding P20 styles" into rvc-d1-dev 2020-04-28 18:27:17 +00:00
Jay Aliomer
6da7e0634e Adding P20 styles
adding fonts, colors and icon packs

Bug: 145530620
Test: manual
Change-Id: I38ad71945aee0f1bb3bcfefc3d4e5dad6e93bf37
2020-04-24 21:59:08 +00:00
Beverly
f0ce4f1451 Update ChargingStarted sound
Test: manual
Bug: 154293919
Change-Id: If14fad6189e4d216c892325e23d8607b2a0f3727
2020-04-22 18:21:18 +00:00
Mark Renouf
03f9a814a5 Merge "Scroll Capture Framework" into rvc-dev 2020-04-20 19:20:13 +00:00
Mark Renouf
a927929d99 Scroll Capture Framework
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
2020-04-20 15:07:59 +00:00
Andrei Litvin
3b92b9682d Add support for GamePad api in ITvRemoteServiceInput.
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)
2020-04-20 10:42:58 -04:00