* changes:
Add HdmiCecLOcalDeviceSource to extract shareable handlers of all the Hdmi CEC source devices into a parent class.
Moving routing logic to playback device.
Add SystemAudioModeRequest from non TV device logic.
With this CL, following InputMethodManager APIs are fully supported
under multi-user / multi-profile environment.
* InputMethodManager#getInputMethodList()
* InputMethodManager#getEnabledInputMethodList()
* InputMethodManager#getEnabledInputMethodSubtypeList()
Those APIs should return appropriate results based on caller's user
ID, even when called from a background user.
There should be no behavior difference if those APIs are called from
the current user process.
This CL also adds -u <user id> option to 'adb shell ime list' command.
Bug: 120709962
Fix: 122164939
Test: make -j cts && atest CtsInputMethodServiceHostTestCases
Test: Manually verified that 'adb shell ime list -a -s -u <user id>'
works, including <user id> == 'current' and 'all'.
Change-Id: I192a0f5a1375170d17a4c08af94f23966dbaea8b
Making color hint's relative api @SystemApi.
For pre-installed live wallpaper apps, change to @SystemApi so:
1. apps can be build with gradle build tools.
(e.g.: PixelLiveWallpaper for app bundle feature).
2. apps can calculate and pass color hint information to interested system components.
(Such as passing dark text support to SystemUi)
Fixes: 111395593
Test: make system sdk and check if the wallpaper apps can compile with android_system.jar.
Test: check whether the wallpaper apps can pass correct color hint after build (dark text).
Change-Id: I2ecf6ff77ff7a823949c6e3253a077e6eba9683a
Makes the BroadcastReceiver that receives changes to installed packages
and sdcards tied to a specific user.
Bug: 121198607
Test: 1) atest RunBackupFrameworksServicesRoboTests
2) Manual testing with user 0 and 11:
- User started -> receiver registered for correct user;
- Package changed -> correct receiver;
- Package added -> correct receiver, updates bookkeeping for correct user;
- Package removed -> correct receiver, updates bookkeeping for correct user;
Change-Id: I68c034da6ec775a4d0489a2d09fc32854dcf11dc
Add a new key-value pair to smart_replies_in_notifications_flags that
controls the default tap-to-edit behaviour.
Bug: 111437455
Test: atest SmartReplyConstantsTest
Test: Try "adb shell settings put global smart_replies_in_notifications_flags edit_choices_before_sending=true" and observe
Change-Id: Ida90b98c28f4183697e84a6722768d41c72dd9cf
am: fb82f84082 -s ours
am skip reason: change_id Id4d69258116696db3662ac7678f6d235fcccabc7 with SHA1 03dba3ba8c is in history
Change-Id: I88b2d06165cc19402f3aceafdcb0ba13da26eaf9
After the CL "a138573: AML: Remove unbundling MediaMetadata in
MediaSessionRecord" is merged, MediaController.getPlaybackState()
returned wrong position.
Since the mDuration is initially set to non-negative value,
getStateWithUpdatedPosition() limited the current position to the
duration, which is wrong.
As a result, the below androidx test failed in Q:
- MediaSessionCompatCallbackTest.testGetPlaybackStateWithPositionUpdate
This CL fixes the problem.
Bug: 121447576
Test: Passed above test
Change-Id: If87c844461a8204f3883cd3081f5c6f057ab36c6
am: 17d71033ab -s ours
am skip reason: change_id If99a9d79e9e1b89b75b9b74bd3b1c965247a1892 with SHA1 2be70a11a2 is in history
Change-Id: I4d91f3926dd243fd25e221c8311f321a7488111e