Rewire ProgramInfo updates for 1 HAL : N AIDL fanout
This change completes the refactor to enable multi-AIDL client support on the v2 BroadcastRadioService: - Adds incremental updating to ProgramInfoCache as requested on ag/6922213. - TunerSession now maintains a ProgramInfoCache as a view of the state transmitted to the AIDL client. - RadioModule also has a ProgramInfoCache as a view of the state received from the HAL. - The two classes communicate with each other to propagate changes in filters or ProgramInfos. This change also makes the following framework changes: - Overrides ProgramList.Filter#equals() and #hashCode(). - Addresses an oversight from ag/6922213, where RadioMetadata#hashCode() should have been overridden. Bug: 126887436 Bug: 121305828 Test: atest com.android.server.broadcastradio.hal2.StartProgramListUpdatesFanoutTest atest com.android.server.broadcastradio.hal2.ProgramInfoCacheTest Change-Id: I03b0b60b30c01ed03d3a86cff105f2efe830b233
Loading
Please register or sign in to comment