/frameworks/support/v4/kitkat/android/support/v4/media/session/ |
MediaSessionCompatApi19.java | 22 import android.media.RemoteControlClient; 35 ((RemoteControlClient) rccObj).setTransportControlFlags( 44 RemoteControlClient.MetadataEditor editor = ((RemoteControlClient) rccObj).editMetadata( 49 editor.addEditableKey(RemoteControlClient.MetadataEditor.RATING_KEY_BY_USER); 55 ((RemoteControlClient) rccObj).setMetadataUpdateListener( 56 (RemoteControlClient.OnMetadataUpdateListener) onMetadataUpdateObj); 63 transportControlFlags |= RemoteControlClient.FLAG_KEY_MEDIA_RATING; 68 static void addNewMetadata(Bundle metadata, RemoteControlClient.MetadataEditor editor) { 87 RemoteControlClient.OnMetadataUpdateListener [all...] |
/frameworks/support/v4/ics/android/support/v4/media/session/ |
MediaSessionCompatApi14.java | 24 import android.media.RemoteControlClient; 29 /***** RemoteControlClient States, we only need none as the others were public *******/ 74 return new RemoteControlClient(mbIntent); 78 ((RemoteControlClient) rccObj).setPlaybackState(getRccStateFromState(state)); 82 ((RemoteControlClient) rccObj).setTransportControlFlags( 87 RemoteControlClient.MetadataEditor editor = ((RemoteControlClient) rccObj).editMetadata( 95 am.registerRemoteControlClient((RemoteControlClient) rccObj); 100 am.unregisterRemoteControlClient((RemoteControlClient) rccObj); 107 return RemoteControlClient.PLAYSTATE_BUFFERING [all...] |
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/ |
TransportMediatorJellybeanMR2.java | 25 import android.media.RemoteControlClient; 32 implements RemoteControlClient.OnGetPlaybackPositionListener, 33 RemoteControlClient.OnPlaybackPositionUpdateListener { 80 RemoteControlClient mRemoteControl; 114 mRemoteControl = new RemoteControlClient(mPendingIntent); 124 if (mPlayState == RemoteControlClient.PLAYSTATE_PLAYING) { 139 if (mPlayState != RemoteControlClient.PLAYSTATE_PLAYING) { 140 mPlayState = RemoteControlClient.PLAYSTATE_PLAYING; 141 mRemoteControl.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING); 160 mRemoteControl.setPlaybackState(playing ? RemoteControlClient.PLAYSTATE_PLAYIN [all...] |
/frameworks/base/services/core/java/com/android/server/audio/ |
PlayerRecord.java | 24 import android.media.RemoteControlClient; 35 * about its use RemoteControlClient, playback type and volume... The lifecycle of each 46 * A global counter for RemoteControlClient identifiers 101 mState = RemoteControlClient.PLAYSTATE_STOPPED; 102 mPositionMs = RemoteControlClient.PLAYBACK_POSITION_INVALID; 103 mSpeed = RemoteControlClient.PLAYBACK_SPEED_1X; 112 if (mPositionMs == RemoteControlClient.PLAYBACK_POSITION_INVALID) { 114 } else if (mPositionMs == RemoteControlClient.PLAYBACK_POSITION_ALWAYS_UNKNOWN) { 123 case RemoteControlClient.PLAYSTATE_NONE: 125 case RemoteControlClient.PLAYSTATE_STOPPED [all...] |
MediaFocusControl.java | 42 import android.media.RemoteControlClient; [all...] |
/frameworks/base/media/java/android/media/session/ |
PlaybackState.java | 20 import android.media.RemoteControlClient; 422 * {@link RemoteControlClient} state. 424 * @param rccState The state used by {@link RemoteControlClient}. 430 case RemoteControlClient.PLAYSTATE_BUFFERING: 432 case RemoteControlClient.PLAYSTATE_ERROR: 434 case RemoteControlClient.PLAYSTATE_FAST_FORWARDING: 436 case RemoteControlClient.PLAYSTATE_NONE: 438 case RemoteControlClient.PLAYSTATE_PAUSED: 440 case RemoteControlClient.PLAYSTATE_PLAYING: 442 case RemoteControlClient.PLAYSTATE_REWINDING [all...] |
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/session/ |
MediaSessionCompatApi18.java | 21 import android.media.RemoteControlClient; 57 ((RemoteControlClient) rccObj).setPlaybackState(state, position, speed); 61 ((RemoteControlClient) rccObj).setTransportControlFlags( 67 ((RemoteControlClient) rccObj).setPlaybackPositionUpdateListener( 68 (RemoteControlClient.OnPlaybackPositionUpdateListener) onPositionUpdateObj); 75 transportControlFlags |= RemoteControlClient.FLAG_KEY_MEDIA_POSITION_UPDATE; 81 implements RemoteControlClient.OnPlaybackPositionUpdateListener {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
Avrcp.java | 31 import android.media.RemoteControlClient; 146 mCurrentPlayState = RemoteControlClient.PLAYSTATE_NONE; // until we get a callback 224 new Long(RemoteControlClient.PLAYBACK_POSITION_INVALID)).sendToTarget(); 403 RemoteControlClient.FLAG_KEY_MEDIA_FAST_FORWARD) != 0) { 412 RemoteControlClient.FLAG_KEY_MEDIA_REWIND) != 0) { 477 updatePlayPauseState(isPlaying ? RemoteControlClient.PLAYSTATE_PLAYING : 478 RemoteControlClient.PLAYSTATE_PAUSED, 479 RemoteControlClient.PLAYBACK_POSITION_INVALID); 487 RemoteControlClient.PLAYBACK_POSITION_ALWAYS_UNKNOWN); 491 if ((mCurrentPlayState == RemoteControlClient.PLAYSTATE_PLAYING) & [all...] |
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MusicService.java | 34 import android.media.RemoteControlClient; 139 // our RemoteControlClient object, which will use remote control APIs available in 261 .setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING); 284 .setPlaybackState(RemoteControlClient.PLAYSTATE_PAUSED); 315 .setPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED); 460 RemoteControlClient.PLAYSTATE_PLAYING); 463 RemoteControlClient.FLAG_KEY_MEDIA_PLAY | 464 RemoteControlClient.FLAG_KEY_MEDIA_PAUSE | 465 RemoteControlClient.FLAG_KEY_MEDIA_NEXT | 466 RemoteControlClient.FLAG_KEY_MEDIA_STOP) [all...] |
/frameworks/base/media/java/android/media/ |
RemoteControlClient.java | 36 * RemoteControlClient enables exposing information meant to be consumed by remote controls 42 * RemoteControlClient can be registered through 43 * {@link AudioManager#registerRemoteControlClient(RemoteControlClient)}. 45 * <p>Here is an example of creating a RemoteControlClient instance after registering a media 55 * RemoteControlClient myRemoteControlClient = new RemoteControlClient(mediaPendingIntent); 60 @Deprecated public class RemoteControlClient 62 private final static String TAG = "RemoteControlClient"; 66 * Playback state of a RemoteControlClient which is stopped. 72 * Playback state of a RemoteControlClient which is paused [all...] |
RemoteController.java | 46 * and playback status, published by applications using the {@link RemoteControlClient} class. 52 * {@link RemoteControlClient} instances. 162 * This is typically called whenever a new {@link RemoteControlClient} has been selected 164 * @param clearing true if there is no selected RemoteControlClient and no information 174 * in {@link RemoteControlClient#setPlaybackState(int)}. 181 * in {@link RemoteControlClient#setPlaybackState(int)}. 188 * playing (e.g. when state is {@link RemoteControlClient#PLAYSTATE_ERROR}). 195 * in {@link RemoteControlClient#setTransportControlFlags(int)}. 235 * with the RemoteControlClient.</p> 258 if (!RemoteControlClient.playbackPositionShouldMove(lastPlaybackInfo.mState)) [all...] |
MediaRouter.java | [all...] |
MediaMetadataEditor.java | 28 * {@link RemoteControlClient}. See the {@link RemoteControlClient#editMetadata(boolean)} 29 * method to instantiate a {@link RemoteControlClient.MetadataEditor} object. 42 // Public keys for metadata used by RemoteControlClient and RemoteController. 49 RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK; 63 * {@link android.media.RemoteControlClient.OnMetadataUpdateListener} interface. 135 * This should only be used by metadata publishers, such as {@link RemoteControlClient}, 137 * received through the {@link RemoteControlClient.OnMetadataUpdateListener} interface.
|
AudioManager.java | [all...] |
/packages/apps/Music/src/com/android/music/ |
MediaPlaybackService.java | 42 import android.media.RemoteControlClient; 43 import android.media.RemoteControlClient.MetadataEditor; 163 private RemoteControlClient mRemoteControlClient; 327 mRemoteControlClient = new RemoteControlClient(pi); 330 int flags = RemoteControlClient.FLAG_KEY_MEDIA_PREVIOUS 331 | RemoteControlClient.FLAG_KEY_MEDIA_NEXT 332 | RemoteControlClient.FLAG_KEY_MEDIA_PLAY 333 | RemoteControlClient.FLAG_KEY_MEDIA_PAUSE 334 | RemoteControlClient.FLAG_KEY_MEDIA_PLAY_PAUSE 335 | RemoteControlClient.FLAG_KEY_MEDIA_STOP [all...] |
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
MainActivity.java | 25 import android.media.RemoteControlClient; 96 private RemoteControlClient mRemoteControlClient; 396 mRemoteControlClient = new RemoteControlClient(mMediaPendingIntent); 400 mRemoteControlClient.setTransportControlFlags(RemoteControlClient 402 mRemoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING); 423 Log.d(TAG, "Received Play/Pause event from RemoteControlClient"); 433 Log.d(TAG, "Received Play event from RemoteControlClient"); 441 Log.d(TAG, "Received Pause event from RemoteControlClient"); 449 Log.d(TAG, "Received Stop event from RemoteControlClient"); 585 mRemoteControlClient.setPlaybackState(mPaused ? RemoteControlClient.PLAYSTATE_PAUSED [all...] |
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
MainActivity.java | 25 import android.media.RemoteControlClient; 96 private RemoteControlClient mRemoteControlClient; 396 mRemoteControlClient = new RemoteControlClient(mMediaPendingIntent); 400 mRemoteControlClient.setTransportControlFlags(RemoteControlClient 402 mRemoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING); 423 Log.d(TAG, "Received Play/Pause event from RemoteControlClient"); 433 Log.d(TAG, "Received Play event from RemoteControlClient"); 441 Log.d(TAG, "Received Pause event from RemoteControlClient"); 449 Log.d(TAG, "Received Stop event from RemoteControlClient"); 585 mRemoteControlClient.setPlaybackState(mPaused ? RemoteControlClient.PLAYSTATE_PAUSED [all...] |
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
MainActivity.java | 25 import android.media.RemoteControlClient; 96 private RemoteControlClient mRemoteControlClient; 396 mRemoteControlClient = new RemoteControlClient(mMediaPendingIntent); 400 mRemoteControlClient.setTransportControlFlags(RemoteControlClient 402 mRemoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING); 423 Log.d(TAG, "Received Play/Pause event from RemoteControlClient"); 433 Log.d(TAG, "Received Play event from RemoteControlClient"); 441 Log.d(TAG, "Received Pause event from RemoteControlClient"); 449 Log.d(TAG, "Received Stop event from RemoteControlClient"); 585 mRemoteControlClient.setPlaybackState(mPaused ? RemoteControlClient.PLAYSTATE_PAUSED [all...] |
/frameworks/support/v4/jellybean/android/support/v4/media/routing/ |
MediaRouterJellybean.java | 234 (android.media.RemoteControlClient)rccObj);
|
/frameworks/support/v7/mediarouter/jellybean/android/support/v7/media/ |
MediaRouterJellybean.java | 234 (android.media.RemoteControlClient)rccObj);
|
/prebuilts/sdk/19/ |
android.jar | |
/prebuilts/sdk/20/ |
android.jar | |
/prebuilts/sdk/21/ |
android.jar | |
/external/robolectric/lib/main/ |
android.jar | |
/prebuilts/sdk/18/ |
android.jar | |