1 /* 2 * Copyright (C) 2016 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 com.android.bluetooth.avrcp; 18 19 20 /************************************************************************************************* 21 * Interface for classes which handle callbacks from AvrcpMediaManager. 22 * These callbacks should map to native responses and used to communicate with the native layer. 23 ************************************************************************************************/ 24 25 public interface AvrcpMediaRspInterface { setAddrPlayerRsp(byte[] address, int rspStatus)26 public void setAddrPlayerRsp(byte[] address, int rspStatus); 27 setBrowsedPlayerRsp(byte[] address, int rspStatus, byte depth, int numItems, String[] textArray)28 public void setBrowsedPlayerRsp(byte[] address, int rspStatus, byte depth, int numItems, 29 String[] textArray); 30 mediaPlayerListRsp(byte[] address, int rspStatus, MediaPlayerListRsp rspObj)31 public void mediaPlayerListRsp(byte[] address, int rspStatus, MediaPlayerListRsp rspObj); 32 folderItemsRsp(byte[] address, int rspStatus, FolderItemsRsp rspObj)33 public void folderItemsRsp(byte[] address, int rspStatus, FolderItemsRsp rspObj); 34 changePathRsp(byte[] address, int rspStatus, int numItems)35 public void changePathRsp(byte[] address, int rspStatus, int numItems); 36 getItemAttrRsp(byte[] address, int rspStatus, ItemAttrRsp rspObj)37 public void getItemAttrRsp(byte[] address, int rspStatus, ItemAttrRsp rspObj); 38 playItemRsp(byte[] address, int rspStatus)39 public void playItemRsp(byte[] address, int rspStatus); 40 getTotalNumOfItemsRsp(byte[] address, int rspStatus, int uidCounter, int numItems)41 public void getTotalNumOfItemsRsp(byte[] address, int rspStatus, int uidCounter, 42 int numItems); 43 addrPlayerChangedRsp(int type, int playerId, int uidCounter)44 public void addrPlayerChangedRsp(int type, int playerId, int uidCounter); 45 avalPlayerChangedRsp(byte[] address, int type)46 public void avalPlayerChangedRsp(byte[] address, int type); 47 uidsChangedRsp(int type)48 public void uidsChangedRsp(int type); 49 nowPlayingChangedRsp(int type)50 public void nowPlayingChangedRsp(int type); 51 trackChangedRsp(int type, byte[] uid)52 public void trackChangedRsp(int type, byte[] uid); 53 } 54 55