Extract audio focus, remote control and media button handling outside of AudioService without any changes in functionality. Moving logic to new class, MediaFocusControl. Introduce interface for managing volum control logic, VolumeController. The VolumePanel class implements this interface. Change-Id: I72bda2e0670c26e61ff076fd729c15f9f1156dc5
30 lines
880 B
Java
30 lines
880 B
Java
/*
|
|
* Copyright (C) 2013 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.media;
|
|
|
|
/**
|
|
* @hide
|
|
*/
|
|
public interface VolumeController {
|
|
|
|
public void postHasNewRemotePlaybackInfo();
|
|
|
|
public void postRemoteVolumeChanged(int streamType, int flags);
|
|
|
|
public void postRemoteSliderVisibility(boolean visible);
|
|
}
|