Amy 123ec40f7d Refactor the Active Source updating logic in CEC devices.
ag/5108161

Move local Active Source to control service since each device
only needs one local Active Source. Easier to update.

But each device needs multiple mIsActiveSource for each device type
since only one of them should be the Active Source.

When Active Source can be handled only by one device type, like OneTouchPlay,
call setAndBroadcastActiveSourceFromOneDeviceType in service to update
all the device types.

When receiving broadcast messages, all of the device types can handle
Active Source updating in their own logic by calling
setAndBroadcastActiveSource in service.

Test: atest com.android.server.hdmi
Change-Id: I88ce68719ae02c7a847dabb6c558abdb6840b3fa
2019-01-11 10:57:30 -08:00
2019-01-11 10:27:03 -08:00
2019-01-09 06:57:13 +00:00
2019-01-11 02:49:01 +00:00
2019-01-11 11:51:16 +00:00
2018-10-24 09:25:55 -06:00
2018-08-02 14:46:03 +01:00
2018-12-05 16:31:53 +00:00
2019-01-07 14:16:56 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%