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

Commit f1d82761 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Player activity notification: SoundPool not ready for activity reporting

Some plumbing is missing to accurately report SoundPool's playback
   state, do not report it

Test: run cts -m CtsMediaTestCases -t android.media.cts.AudioPlaybackConfigurationTest
Bug: 35263297
Change-Id: I93389c87e5136912bfd11831b87d80495c3a1c3e
parent 33366c31
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -103,6 +103,10 @@ public final class PlaybackActivityMonitor
        final boolean change;
        synchronized(mPlayerLock) {
            final AudioPlaybackConfiguration apc = mPlayers.get(new Integer(piid));
            // FIXME SoundPool not ready for state reporting
            if (apc.getPlayerType() == AudioPlaybackConfiguration.PLAYER_TYPE_JAM_SOUNDPOOL) {
                return;
            }
            if (checkConfigurationCaller(piid, apc, binderUid)) {
                //TODO add generation counter to only update to the latest state
                change = apc.handleStateEvent(event);