/* *Copyright (c) 2020, The Linux Foundation. All rights reserved. *Not a contribution */ /* * Copyright 2018 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.bluetooth; import android.annotation.RequiresPermission; import android.bluetooth.annotations.RequiresBluetoothConnectPermission; import android.content.AttributionSource; import android.content.Context; import android.os.Binder; import android.os.IBinder; import android.os.RemoteException; import android.util.Log; import java.util.ArrayList; import java.util.List; /** * This class provides the public APIs to control the Bluetooth VCP profile. * *
BluetoothVcp is a proxy object for controlling the Bluetooth VolumeControl * Service via IPC. Use {@link BluetoothAdapter#getProfileProxy} to get * the BluetoothVcp proxy object. * * {@hide} */ public final class BluetoothVcp implements BluetoothProfile { private static final String TAG = "BluetoothVcp"; private static final boolean DBG = true; private static final boolean VDBG = true; /** * Intent used to broadcast the change in connection state of the VCP * profile. * *
This intent will have 3 extras: *
{@link #EXTRA_STATE} or {@link #EXTRA_PREVIOUS_STATE} can be any of * {@link #STATE_DISCONNECTED}, {@link #STATE_CONNECTING}, * {@link #STATE_CONNECTED}, {@link #STATE_DISCONNECTING}. * *
Requires {@link android.Manifest.permission#BLUETOOTH} permission to * receive. */ @RequiresBluetoothConnectPermission @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.vcp.profile.action.CONNECTION_STATE_CHANGED"; /** * Intent used to broadcast the volume change of the Volume Renderer device * *
This intent will have 1 extras: *
This intent will have 1 extras: *
This intent will have 1 extras: *