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