Home
last modified time | relevance | path

Searched refs:player (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerList.java221 for (MediaPlayerWrapper player : mMediaPlayers.values()) { in cleanup()
222 player.cleanup(); in cleanup()
229 for (BrowsedPlayerWrapper player : mBrowsablePlayers.values()) { in cleanup()
230 player.disconnect(); in cleanup()
271 final MediaPlayerWrapper player = getActivePlayer(); in getCurrentMediaId() local
272 if (player == null) return ""; in getCurrentMediaId()
274 final PlaybackState state = player.getPlaybackState(); in getCurrentMediaId()
275 final List<Metadata> queue = player.getCurrentQueue(); in getCurrentMediaId()
292 final MediaPlayerWrapper player = getActivePlayer(); in getCurrentSongInfo() local
293 if (player == null) return Util.empty_data(); in getCurrentSongInfo()
[all …]
DBrowsablePlayerConnector.java87 BrowsedPlayerWrapper player = BrowsedPlayerWrapper.wrap( in connectToPlayers() local
92 newWrapper.mPendingPlayers.add(player); in connectToPlayers()
93 player.connect((int status, BrowsedPlayerWrapper wrapper) -> { in connectToPlayers()
DAvrcpTargetService.java373 MediaPlayerWrapper player = mMediaPlayerList.getActivePlayer(); in sendMediaKeyEvent() local
376 + " to " + (player == null ? null : player.getPackageName())); in sendMediaKeyEvent()
DBrowsedPlayerWrapper.java173 void executeCallback(int status, BrowsedPlayerWrapper player) { in executeCallback() argument
183 callback.run(status, player); in executeCallback()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java89 final MediaPlayer player = new MediaPlayer(); in run() local
90 player.setAudioStreamType(mCmd.stream); in run()
91 player.setDataSource(Factory.get().getApplicationContext(), mCmd.uri); in run()
92 player.setLooping(mCmd.looping); in run()
93 player.setVolume(mCmd.volume, mCmd.volume); in run()
94 player.prepare(); in run()
101 player.setOnCompletionListener(NotificationPlayer.this); in run()
102 player.start(); in run()
106 mPlayer = player; in run()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DBrowseTree.java138 BrowseNode(AvrcpPlayer player) { in BrowseNode() argument
143 aid.setDevice(player.getDevice()); in BrowseNode()
144 aid.setUid(player.getId()); in BrowseNode()
146 aid.setDisplayableName(player.getName()); in BrowseNode()
147 aid.setTitle(player.getName()); in BrowseNode()
148 aid.setBrowsable(player.supportsFeature(AvrcpPlayer.FEATURE_BROWSING)); in BrowseNode()
DAvrcpControllerStateMachine.java819 for (AvrcpPlayer player : playerList) { in processMessage()
820 mAvailablePlayerList.put(player.getId(), player); in processMessage() local
DAvrcpControllerService.java626 AvrcpPlayer player = new AvrcpPlayer(device, id, name, transportFlags, playStatus, in createFromNativePlayerItem() local
628 return player; in createFromNativePlayerItem()
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt98 val player = getLastNonConfigurationInstance() as PreviewPlayer? in onCreate() constant
99 if (player == null) { in onCreate()
115 mPlayer = player in onCreate()
193 val player = mPlayer in onRetainNonConfigurationInstance() constant
195 return player in onRetainNonConfigurationInstance()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java107 PreviewPlayer player = (PreviewPlayer) getLastNonConfigurationInstance(); in onCreate() local
108 if (player == null) { in onCreate()
124 mPlayer = player; in onCreate()
216 PreviewPlayer player = mPlayer; in onRetainNonConfigurationInstance() local
218 return player; in onRetainNonConfigurationInstance()
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DFocusSound.java31 public FocusSound(SoundPlayer player, int soundId) { in FocusSound() argument
32 mPlayer = player; in FocusSound()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorker.java557 public void onDrawnToSurface(MpegTsPlayer player, Surface surface) { in onDrawnToSurface() argument
1491 MpegTsPlayer player = in createPlayer() local
1500 player.setCaptionServiceNumber(Cea708Data.EMPTY_SERVICE_NUMBER); in createPlayer()
1501 player.setVideoEventListener(this); in createPlayer()
1502 player.setCaptionServiceNumber( in createPlayer()
1506 return player; in createPlayer()
1777 MpegTsPlayer player = createPlayer(mAudioCapabilities); in preparePlayback() local
1778 if (!player.prepare(mContext, mChannel, mHasSoftwareAudioDecoder, this)) { in preparePlayback()
1780 player.release(); in preparePlayback()
1792 mPlayer = player; in preparePlayback()
DTunerSessionWorkerExoV2.java1422 MpegTsPlayerV2 player = new MpegTsPlayerV2(mContext,this); in createPlayer() local
1423 player.setVideoEventListener(this); in createPlayer()
1424 player.setCaptionServiceNumber( in createPlayer()
1428 return player; in createPlayer()
1699 MpegTsPlayerV2 player = createPlayer(mAudioCapabilities); in preparePlayback() local
1706 player.release(); in preparePlayback()
1726 player.prepare(source, mediaSource); in preparePlayback()
1727 mPlayer = player; in preparePlayback()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrTvView.java47 public DvrTvView(Context context, AppLayerTvView tvView, DvrPlayer player) { in DvrTvView() argument
49 mDvrPlayer = player; in DvrTvView()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailMediaPlayer.java46 public NewVoicemailMediaPlayer(@NonNull MediaPlayer player) { in NewVoicemailMediaPlayer() argument
47 mediaPlayer = Assert.isNotNull(player); in NewVoicemailMediaPlayer()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_target.cpp583 jobject player = sCallbackEnv->CallObjectMethod(player_list, method_get, i); in getMediaPlayerList() local
586 temp.id = sCallbackEnv->GetIntField(player, field_playerId); in getMediaPlayerList()
588 jstring jstr = (jstring)sCallbackEnv->GetObjectField(player, field_name); in getMediaPlayerList()
597 sCallbackEnv->GetBooleanField(player, field_browsable) == JNI_TRUE in getMediaPlayerList()
602 sCallbackEnv->DeleteLocalRef(player); in getMediaPlayerList()
Dcom_android_bluetooth_avrcp_controller.cpp555 jint id = (jint)item->player.player_id; in btavrcp_get_folder_items_callback()
556 jint playerType = (jint)item->player.major_type; in btavrcp_get_folder_items_callback()
557 jint playStatus = (jint)item->player.play_status; in btavrcp_get_folder_items_callback()
569 (jbyte*)item->player.features); in btavrcp_get_folder_items_callback()
572 sCallbackEnv->NewStringUTF((const char*)item->player.name)); in btavrcp_get_folder_items_callback()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMoviePlayer.java156 public void onPrepared(MediaPlayer player) { in MoviePlayer()
351 public boolean onError(MediaPlayer player, int arg1, int arg2) { in onError() argument
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/
DREADME.md9 * A Nexus player with a USB Tuner attached will work.
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/
DREADME.md9 * A Nexus player with a USB Tuner attached will work.
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java533 MediaPlayer player, int res) throws java.io.IOException { in setDataSourceFromResource() argument
536 player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), in setDataSourceFromResource()
/packages/apps/UniversalMediaPlayer/
DAndroid.bp28 "androidx.media2_media2-player",
Dbuild.gradle67 implementation 'androidx.media2:media2-player:+'
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DVideoPlayerActivity.java34 import androidx.media2.player.MediaPlayer;
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java1109 final NotificationPlayer player = new NotificationPlayer(LogUtil.BUGLE_TAG); in playObservableConversationNotificationSound() local
1110 player.play(ringtoneUri, false, in playObservableConversationNotificationSound()
1118 player.stop(); in playObservableConversationNotificationSound()

12