IRemoteControlDisplay.aidl revision f0cff0456258478ba768097f73d4367ab67fd7a3
1/* 2 * Copyright (C) 2011 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 android.media; 18 19import android.app.PendingIntent; 20import android.content.ComponentName; 21import android.graphics.Bitmap; 22import android.os.Bundle; 23 24/** 25 * @hide 26 * Interface registered through AudioManager of an object that displays information 27 * received from a remote control client. 28 * {@see AudioManager#registerRemoteControlDisplay(IRemoteControlDisplay)}. 29 */ 30oneway interface IRemoteControlDisplay 31{ 32 /** 33 * Sets the generation counter of the current client that is displayed on the remote control. 34 * @param clientGeneration the new RemoteControlClient generation 35 * @param clientMediaIntent the PendingIntent associated with the client. 36 * May be null, which implies there is no registered media button event receiver. 37 * @param clearing true if the new client generation value maps to a remote control update 38 * where the display should be cleared. 39 */ 40 void setCurrentClientId(int clientGeneration, in PendingIntent clientMediaIntent, 41 boolean clearing); 42 43 void setPlaybackState(int generationId, int state); 44 45 void setTransportControlFlags(int generationId, int transportControlFlags); 46 47 void setMetadata(int generationId, in Bundle metadata); 48 49 void setArtwork(int generationId, in Bitmap artwork); 50 51 /** 52 * To combine metadata text and artwork in one binder call 53 */ 54 void setAllMetadata(int generationId, in Bundle metadata, in Bitmap artwork); 55} 56