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 void setAddrPlayerRsp(byte[] address, int rspStatus); 27 setBrowsedPlayerRsp(byte[] address, int rspStatus, byte depth, int numItems, String[] textArray)28 void setBrowsedPlayerRsp(byte[] address, int rspStatus, byte depth, int numItems, 29 String[] textArray); 30 mediaPlayerListRsp(byte[] address, int rspStatus, MediaPlayerListRsp rspObj)31 void mediaPlayerListRsp(byte[] address, int rspStatus, MediaPlayerListRsp rspObj); 32 folderItemsRsp(byte[] address, int rspStatus, FolderItemsRsp rspObj)33 void folderItemsRsp(byte[] address, int rspStatus, FolderItemsRsp rspObj); 34 changePathRsp(byte[] address, int rspStatus, int numItems)35 void changePathRsp(byte[] address, int rspStatus, int numItems); 36 getItemAttrRsp(byte[] address, int rspStatus, ItemAttrRsp rspObj)37 void getItemAttrRsp(byte[] address, int rspStatus, ItemAttrRsp rspObj); 38 playItemRsp(byte[] address, int rspStatus)39 void playItemRsp(byte[] address, int rspStatus); 40 getTotalNumOfItemsRsp(byte[] address, int rspStatus, int uidCounter, int numItems)41 void getTotalNumOfItemsRsp(byte[] address, int rspStatus, int uidCounter, int numItems); 42 addrPlayerChangedRsp(int type, int playerId, int uidCounter)43 void addrPlayerChangedRsp(int type, int playerId, int uidCounter); 44 avalPlayerChangedRsp(byte[] address, int type)45 void avalPlayerChangedRsp(byte[] address, int type); 46 uidsChangedRsp(int type)47 void uidsChangedRsp(int type); 48 nowPlayingChangedRsp(int type)49 void nowPlayingChangedRsp(int type); 50 trackChangedRsp(int type, byte[] uid)51 void trackChangedRsp(int type, byte[] uid); 52 } 53 54