media/src/main/java/androidx/media/MediaPlayer2Impl.java
private void registerPlayerEventCallback(@NonNull Executor e,
            @NonNull PlayerEventCallback cb) {
        if (cb == null) {
            throw new IllegalArgumentException("Illegal null PlayerEventCallback");
        }
        if (e == null) {
            throw new IllegalArgumentException(
                    "Illegal null Executor for the PlayerEventCallback");
        }
        synchronized (mLock) {
            mPlayerEventCallbackMap.put(cb, e);
        }
    }
/**
     * Adds a callback to be notified of events for this player.
     * @param e the {@link Executor} to be used for the events.
     * @param cb the callback to receive the events.
     */
Adds a callback to be notified of events for this player.
@param e the  Executor to be used for the events.
@param cb the callback to receive the events.
Adds a callback to be notified of events for this player . @param e the Executor to be used for the events . @param cb the callback to receive the events .
private void registerPlayerEventCallback(@NonNull Executor e,
            @NonNull PlayerEventCallback cb) {
        if (cb == null) {
            throw new IllegalArgumentException("Illegal null PlayerEventCallback");
        }
        if (e == null) {
            throw new IllegalArgumentException(
                    "Illegal null Executor for the PlayerEventCallback");
        }
        synchronized (mLock) {
            mPlayerEventCallbackMap.put(cb, e);
        }
    }
private void registerPlayerEventCallback ( @ NonNull Executor e , @ NonNull PlayerEventCallback cb ) { if ( cb == null ) { throw new IllegalArgumentException ( "Illegal null PlayerEventCallback" ) ; } if ( e == null ) { throw new IllegalArgumentException ( "Illegal null Executor for the PlayerEventCallback" ) ; } synchronized ( mLock ) { mPlayerEventCallbackMap . put ( cb , e ) ; } }
Adds a callback to be notified of events for this player.
Adds a callback to be notified of events for this player .