• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17 package android.media;
18 
19 import android.app.PendingIntent;
20 import android.content.ComponentName;
21 import android.graphics.Bitmap;
22 import 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  */
30 oneway 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      */
setCurrentClientId(int clientGeneration, in PendingIntent clientMediaIntent, boolean clearing)40     void setCurrentClientId(int clientGeneration, in PendingIntent clientMediaIntent,
41             boolean clearing);
42 
setPlaybackState(int generationId, int state, long stateChangeTimeMs)43     void setPlaybackState(int generationId, int state, long stateChangeTimeMs);
44 
setTransportControlFlags(int generationId, int transportControlFlags)45     void setTransportControlFlags(int generationId, int transportControlFlags);
46 
setMetadata(int generationId, in Bundle metadata)47     void setMetadata(int generationId, in Bundle metadata);
48 
setArtwork(int generationId, in Bitmap artwork)49     void setArtwork(int generationId, in Bitmap artwork);
50 
51     /**
52      * To combine metadata text and artwork in one binder call
53      */
setAllMetadata(int generationId, in Bundle metadata, in Bitmap artwork)54     void setAllMetadata(int generationId, in Bundle metadata, in Bitmap artwork);
55 }
56