Lines Matching refs:mRemoteControlClient
96 private RemoteControlClient mRemoteControlClient; field in MainActivity
396 mRemoteControlClient = new RemoteControlClient(mMediaPendingIntent); in registerRemoteControlClient()
397 mAudioManager.registerRemoteControlClient(mRemoteControlClient); in registerRemoteControlClient()
398 mMediaRouter.addRemoteControlClient(mRemoteControlClient); in registerRemoteControlClient()
400 mRemoteControlClient.setTransportControlFlags(RemoteControlClient in registerRemoteControlClient()
402 mRemoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING); in registerRemoteControlClient()
408 if (mRemoteControlClient != null) { in unregisterRemoteControlClient()
409 mRemoteControlClient.setTransportControlFlags(0); in unregisterRemoteControlClient()
412 mAudioManager.unregisterRemoteControlClient(mRemoteControlClient); in unregisterRemoteControlClient()
413 mMediaRouter.removeRemoteControlClient(mRemoteControlClient); in unregisterRemoteControlClient()
415 mRemoteControlClient = null; in unregisterRemoteControlClient()
584 if (mRemoteControlClient != null) { in updateButtons()
585 mRemoteControlClient.setPlaybackState(mPaused ? RemoteControlClient.PLAYSTATE_PAUSED : in updateButtons()