Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 54d129f9 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Yan Han
Browse files

Utilities for managing event listeners from AudioService 2/2

Part 2/2: class to make managing listeners even easier

Add class that leverages the CallbackUtil utility methods
so listener lists, locks and dispatcher stubs don't need
to be members of the class using the new LazyListenerManager
class.
The utility class is used to refactor the management of
the following listeners:
  Spatializer.OnSpatializerStateChangedListener
  Spatializer.OnHeadTrackingModeChangedListener
  AudioManager.OnModeChangedListener
  AudioManager.OnCommunicationDeviceChangedListener

Bug: 206040617
Test: atest AudioModeListenerTest AudioCommunicationDeviceTest \
 SpatializerTest

Change-Id: Ie20c8ff2dddadc2c778c8a9ba4385f28da80e9a6
parent 6ba962a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment