• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.bluetooth;
18 
19 import android.bluetooth.IBluetoothAvrcpTargetCallback;
20 
21 import android.bluetooth.BluetoothAvrcpIntValue;
22 import android.bluetooth.BluetoothAvrcpStringValue;
23 import android.bluetooth.BluetoothAvrcpRegisterNotificationResponse;
24 
25 interface IBluetoothAvrcpTarget {
Register(in IBluetoothAvrcpTargetCallback callback)26   boolean Register(in IBluetoothAvrcpTargetCallback callback);
Unregister(int id)27   void Unregister(int id);
UnregisterAll()28   void UnregisterAll();
29 
Enable()30   boolean Enable();
Disable()31   boolean Disable();
32 
GetPlayStatusResponse(String addr, int play_status, int song_len, int song_pos)33   boolean GetPlayStatusResponse(String addr,
34       int play_status, int song_len, int song_pos);
35 
ListPlayerAppAttrResponse(String addr, in int[] attrs)36   boolean ListPlayerAppAttrResponse(String addr, in int[] attrs);
37 
GetPlayerAppValueResponse(String addr, in BluetoothAvrcpIntValue[] values)38   boolean GetPlayerAppValueResponse(String addr,
39       in BluetoothAvrcpIntValue[] values);
40 
GetPlayerAppAttrTextResponse(String addr, in BluetoothAvrcpStringValue[] attrs)41   boolean GetPlayerAppAttrTextResponse(String addr,
42       in BluetoothAvrcpStringValue[] attrs);
43 
GetPlayerAppValueTextResponse(String addr, in BluetoothAvrcpStringValue[] values)44   boolean GetPlayerAppValueTextResponse(String addr,
45       in BluetoothAvrcpStringValue[] values);
46 
GetElementAttrResponse(String addr, in BluetoothAvrcpStringValue[] attrs)47   boolean GetElementAttrResponse(String addr,
48       in BluetoothAvrcpStringValue[] attrs);
49 
SetPlayerAppValueResponse(String addr, int rsp_status)50   boolean SetPlayerAppValueResponse(String addr, int rsp_status);
51 
RegisterNotificationResponse( int event_id, int type, in BluetoothAvrcpRegisterNotificationResponse param)52   boolean RegisterNotificationResponse(
53       int event_id,
54       int type,
55       in BluetoothAvrcpRegisterNotificationResponse param);
56 
SetVolume(int volume)57   boolean SetVolume(int volume);
58 }
59