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