MediaPlayer

播放文件的流程如下

mp.setDataSource("filename");

mp.prepare(); 

mp.start(); 

mp.release(); 

mp.pause(); 

mp.stop(); 


从型号手机里打的log,应该可以大致有个清晰的流程,以及对MediaPlayer中各类的调用关系有了清晰的认识
V/MediaPlayer-JNI( 1117): native_setup
V/MediaPlayer( 1117): constructor
V/MediaPlayer( 1117): setListener
V/MediaPlayer-JNI( 1117): setDataSourceFD: fd 66
V/MediaPlayer( 1117): setDataSource(66, 0, 576460752303423487)
V/IMediaPlayerService( 1117): create[frameworks/base/media/libmedia/IMediaPlayerService.cpp]
V/IMediaPlayerService( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayerService.cpp]
V/MediaPlayerService( 1105): Client(1) constructor
V/MediaPlayerService( 1105): Create new client(1) from pid 1117, fd=26, offset=0, length=576460752303423487, audioSessionId=7
V/MediaPlayerService( 1105): setDataSource fd=26, offset=0, length=576460752303423487
V/MediaPlayerService( 1105): st_dev  = 45825
V/MediaPlayerService( 1105): st_mode = 32829
V/MediaPlayerService( 1105): st_uid  = 1000
V/MediaPlayerService( 1105): st_gid  = 1015
V/MediaPlayerService( 1105): st_size = 11238
V/MediaPlayerService( 1105): calculated length = 11238
V/MediaPlayerService( 1105): player type = 1
V/MediaPlayerService( 1105):  create PVPlayer
V/PVPlayer( 1105): PVPlayer constructor
V/PVPlayer( 1105): construct PlayerDriver
V/PlayerDriver( 1105): constructor
V/PlayerDriver( 1105): OpenCore hardware module loaded
V/PlayerDriver( 1105): start player thread
V/PlayerDriver( 1105): startPlayerThread
V/PlayerDriver( 1105): InitializeForThread
V/PlayerDriver( 1105): OMX_MasterInit
V/PlayerDriver( 1105): OsclScheduler::Init
V/PlayerDriver( 1105): CreatePlayer
W/AudioFlinger( 1105): write blocked for 169 msecs, 3 delayed writes, thread 0xcd38
V/PlayerDriver( 1105): AddToScheduler
V/PlayerDriver( 1105): PendForExec
V/PlayerDriver( 1105): OsclActiveScheduler::Current
V/PlayerDriver( 1105): StartScheduler
V/PVPlayer( 1105): send PLAYER_SETUP
V/PlayerDriver( 1105): Send player code: 2
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_SETUP status=PVMFSuccess
V/AudioSink( 1105): AudioOutput(7)
V/PVPlayer( 1105): setDataSource(26, 0, 11238)
V/MediaPlayer( 1117): prepare
V/IMediaPlayer( 1117): setAudioStreamType[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): [1] setAudioStreamType(3)
V/IMediaPlayer( 1117): prepareAsync[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): [1] prepareAsync
V/PVPlayer( 1105): prepareAsync
V/PVPlayer( 1105):   data source = sharedfd://27:0:11238
V/PlayerDriver( 1105): Send player code: 3
V/PlayerDriver( 1105): handleSetDataSource
V/PlayerDriver( 1105): handleSetDataSource- scanning for extension
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_SET_DATA_SOURCE status=PVMFSuccess
V/PVPlayer( 1105): run_init s=0, cancelled=0
V/PlayerDriver( 1105): Send player code: 6
V/PlayerDriver( 1105): release string is 2.3.4 len 5
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_INIT status=PVMFSuccess
V/PVPlayer( 1105): run_set_video_surface s=0, cancelled=0
V/PVPlayer( 1105): run_set_audio_output s=0, cancelled=0
V/PlayerDriver( 1105): Send player code: 5
V/PlayerDriver( 1105): Create realtime output
E/PlayerDriver( 1105): Creating Non-Tunnel mode playback - uncompressed MIO
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_SET_AUDIO_SINK status=PVMFSuccess
V/PVPlayer( 1105): run_prepare s=0, cancelled=0
V/PlayerDriver( 1105): Send player code: 7
V/PlayerDriver( 1105): disable natpkt - 0
V/AudioSink( 1105): open(8000, 1, 1, 4, 7)
V/AudioPolicyManager( 1105): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager( 1105): getOutput() stream 3, samplingRate 0, format 0, channels c, flags 0
V/AudioSystem( 1105): getOutputFrameCount() streamType 3, output 1, frameCount 1200
V/AudioSystem( 1105): getOutput() read 1 from cache for stream 3
V/AudioSystem( 1105): getOutputSamplingRate() reading from output desc
V/AudioSystem( 1105): getOutputSamplingRate() streamType 3, output 1, sampling rate 44100
V/AudioSystem( 1105): getOutput() read 1 from cache for stream 3
V/AudioSystem( 1105): getOutputSamplingRate() reading from output desc
V/AudioSystem( 1105): getOutputSamplingRate() streamType 3, output 1, sampling rate 44100
V/AudioSystem( 1105): getOutput() read 1 from cache for stream 3
V/AudioSystem( 1105): getOutputLatency() streamType 3, output 1, latency 54
V/AudioSystem( 1105): getOutput() read 1 from cache for stream 3
V/AudioSystem( 1105): getOutput() read 1 from cache for stream 3
V/AudioSystem( 1105): getOutputSamplingRate() reading from output desc
V/AudioSystem( 1105): getOutputSamplingRate() streamType 3, output 1, sampling rate 44100
V/AudioSystem( 1105): getOutput() read 1 from cache for stream 3
V/AudioSystem( 1105): getOutputFrameCount() streamType 3, output 1, frameCount 1200
V/AudioSystem( 1105): getOutput() read 1 from cache for stream 3
V/AudioSystem( 1105): getOutputLatency() streamType 3, output 1, latency 54
V/AudioSink( 1105): setVolume
V/AudioTrack( 1105): setAuxEffectSendLevel(0.000000)
V/AudioTrack( 1105): attachAuxEffect(0)
V/PlayerDriver( 1105): HandleInformationalEvent: UNKNOWN PVMFStatus
V/PlayerDriver( 1105): HandleInformationalEvent: type=44 UNHANDLED
V/MediaPlayerService( 1105): [1] notify (0x1dcd0, 200, 1, 44)
V/IMediaPlayerClient( 1117): onTransact[frameworks/base/media/libmedia/IMediaPlayerClient.cpp]
V/MediaPlayer( 1117): message received msg=200, ext1=1, ext2=44
W/MediaPlayer( 1117): info/warning (1, 44)
V/MediaPlayer( 1117): callback application
V/MediaPlayer( 1117): back from callback
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_PREPARE status=PVMFSuccess
V/PlayerDriver( 1105): PLAYER_PREPARE complete mDownloadContextData=0x0, mDataReadyReceived=0
V/PlayerDriver( 1105): Player is in prepared state, hence put the player to Pause state
V/MediaPlayerService( 1105): [1] notify (0x1dcd0, 1, 0, 0)
V/IMediaPlayerClient( 1117): onTransact[frameworks/base/media/libmedia/IMediaPlayerClient.cpp]
V/MediaPlayer( 1117): message received msg=1, ext1=0, ext2=0
V/MediaPlayer( 1117): prepared
V/MediaPlayer( 1117): signal application thread
V/MediaPlayer( 1117): callback application
V/MediaPlayer( 1117): back from callback
V/MediaPlayer( 1117): prepare complete - status=0
V/MediaPlayer-JNI( 1117): start
V/MediaPlayer( 1117): start
V/IMediaPlayer( 1117): setLooping[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): [1] setLooping(0)
V/PVPlayer( 1105): setLooping(0)
V/PVPlayer( 1105): check_for_live_streaming s=0, cancelled=0
V/PlayerDriver( 1105): HandleInformationalEvent: PVMFInfoPositionStatus
V/PlayerDriver( 1105): Send player code: 12
V/IMediaPlayer( 1117): setVolume[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): [1] setVolume(1.000000, 1.000000)
V/AudioSink( 1105): setVolume(1.000000, 1.000000)
V/IMediaPlayer( 1117): setAuxEffectSendLevel[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): [1] setAuxEffectSendLevel(0.000000)
V/AudioSink( 1105): setAuxEffectSendLevel(0.000000)
V/AudioTrack( 1105): setAuxEffectSendLevel(0.000000)
V/IMediaPlayer( 1117): start[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): [1] start
V/PVPlayer( 1105): setLooping(0)
V/PlayerDriver( 1105): Send player code: 12
V/PVPlayer( 1105): start
V/PlayerDriver( 1105): Send player code: 8
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command <null> status=PVMFSuccess
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_START status=PVMFSuccess
V/VRPlayer( 1117): notifyPlayerState state=0
V/VRPlayer( 1117): notifyPlayerState state=1
V/AudioSink( 1105): flush
V/AudioTrack( 1105): flush
V/AudioSink( 1105): start
V/AudioTrack( 1105): setAuxEffectSendLevel(0.000000)
V/AudioTrack( 1105): start 0x55330
V/AudioPolicyManager( 1105): startOutput() output 1, stream 3, session 7
V/AudioPolicyManager( 1105): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager( 1105): getNewDevice() selected device 2
V/AudioPolicyManager( 1105): setOutputDevice() output 1 device 2 delayMs 0
V/AudioPolicyManager( 1105): setOutputDevice() setting same device 2 or null device for output 1
E/AudioPolicyManager( 1105): Speaker Volume = 0.063096 , device = 2, stream = 3, index = 7
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/IMediaPlayer( 1117): isPlaying[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/PlayerDriver( 1105): Send player code: 16
V/PlayerDriver( 1105): status=4
V/MediaPlayerService( 1105): [1] isPlaying: 1
V/MediaPlayer( 1117): isPlaying: 1
V/MediaPlayer-JNI( 1117): isPlaying: 1
V/AudioTrack(  210): Underrun user: 3c00, server: 3c00, flags 0002
V/AudioTrack(  210): stop 0x312e18
V/AudioPolicyManager( 1105): stopOutput() output 1, stream 1, session 6
V/AudioPolicyManager( 1105): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager( 1105): getNewDevice() selected device 2
V/AudioPolicyManager( 1105): setOutputDevice() output 1 device 2 delayMs 150
V/AudioPolicyManager( 1105): setOutputDevice() setting same device 2 or null device for output 1
V/AudioTrack( 1105): write 0x55330: 360 bytes, mActive=1
V/IMediaPlayer( 1117): isPlaying[frameworks/base/media/libmedia/IMediaPlayer.cpp]
E/DataRouter(   85): Content read is composition product id = 689e
E/DataRouter(   85):   file now is modem type
E/DataRouter(   85):  storage_pid value inside 689e check before 681d check  is 26782  
E/DataRouter(   85):  storage_pid value is changed to  is 26782  
E/DataRouter(   85): No need to Initialise USB and start the thread
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/PlayerDriver( 1105): Send player code: 16
V/PlayerDriver( 1105): status=4
V/MediaPlayerService( 1105): [1] isPlaying: 1
V/MediaPlayer( 1117): isPlaying: 1
V/MediaPlayer-JNI( 1117): isPlaying: 1
V/AudioTrack( 1105): write 0x55330: 1380 bytes, mActive=1
I/TwSeekbarBubble( 1117): dispatchDraw::mBubbleDisplay is false
V/VoiceRecorder( 1117): mStatusReceiver - MUSIC_SERVICE_COMMAND.
D/VoiceRecorder( 1117): info: com.sec.android.app.voicerecorder ,cmd:pause
V/RecorderService( 1117): registerMusicCommandListener - onReceive. from = com.sec.android.app.voicerecorder
V/VoiceRecorder( 1117): mStatusReceiver - MUSIC_SERVICE_COMMAND.
D/VoiceRecorder( 1117): info: com.sec.android.app.voicerecorder ,cmd:pause
V/RecorderService( 1117): registerMusicCommandListener - onReceive. from = com.sec.android.app.voicerecorder
W/MediaPlayer( 1117): mediaplayer went away with unhandled events
I/MediaPlayer( 1117): Info (1,44)
D/ActivityVoiceClip( 1117): OnPlayerStateChanged: PLAYER_EVENT_STARTED
E/DataRouter(   85): external_port_new_status : 0
E/DataRouter(   85): FIRST    time : 0  external_port_new_status : 0  external_port_old_status : 0
E/DataRouter(   85): DrReadUsbStatus File Open success
E/DataRouter(   85): DrReadUsbStatus 21 characters Buffer from USB file USB_STATE_CONFIGURED
E/DataRouter(   85): ?
E/DataRouter(   85): DrReadUsbStatus returns true USB is online
V/ActivityVoiceClip( 1117): changeMode()
D/ActivityVoiceClip( 1117): changeMode(): CLIP_STATE_PLAYER
V/ActivityVoiceClip( 1117): enableWakeLock()
D/PowerManagerService(  210): setPowerState: mPowerState=0x3 newState=0x3 noChangeLights=false reason=3
D/PowerManagerService(  210): setPowerState()
D/PowerManagerService(  210): java.lang.RuntimeException
D/PowerManagerService(  210):     at com.android.server.PowerManagerService.setPowerState(PowerManagerService.java:1874)
D/PowerManagerService(  210):     at com.android.server.PowerManagerService.setPowerState(PowerManagerService.java:1860)
D/PowerManagerService(  210):     at com.android.server.PowerManagerService.acquireWakeLockLocked(PowerManagerService.java:889)
D/PowerManagerService(  210):     at com.android.server.PowerManagerService.acquireWakeLock(PowerManagerService.java:746)
D/PowerManagerService(  210):     at android.os.IPowerManager$Stub.onTransact(IPowerManager.java:62)
D/PowerManagerService(  210):     at android.os.Binder.execTransact(Binder.java:320)
D/PowerManagerService(  210):     at dalvik.system.NativeStart.run(Native Method)
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=155
V/MediaPlayerService( 1105): [1] getCurrentPosition = 155
V/MediaPlayer-JNI( 1117): getCurrentPosition: 155 (msec)
V/MediaPlayer( 1117): getDuration
V/IMediaPlayer( 1117): getDuration[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getDuration
V/PlayerDriver( 1105): Send player code: 15
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_GET_DURATION status=PVMFSuccess
V/MediaPlayerService( 1105): [1] getDuration = 7020
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/IMediaPlayer( 1117): isPlaying[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/PlayerDriver( 1105): Send player code: 16
V/PlayerDriver( 1105): status=4
V/MediaPlayerService( 1105): [1] isPlaying: 1
V/MediaPlayer( 1117): isPlaying: 1
V/MediaPlayer-JNI( 1117): isPlaying: 1
V/IMediaPlayer( 1117): isPlaying[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/PlayerDriver( 1105): Send player code: 16
V/PlayerDriver( 1105): status=4
V/MediaPlayerService( 1105): [1] isPlaying: 1
V/MediaPlayer( 1117): isPlaying: 1
V/MediaPlayer-JNI( 1117): isPlaying: 1
V/AudioTrack( 1105): write 0x55330: 720 bytes, mActive=1
I/TwSeekbarBubble( 1117): dispatchDraw::mBubbleDisplay is false
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=321
V/MediaPlayerService( 1105): [1] getCurrentPosition = 321
V/MediaPlayer-JNI( 1117): getCurrentPosition: 321 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1020 bytes, mActive=1
I/TwSeekbarBubble( 1117): dispatchDraw::mBubbleDisplay is false
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=420
V/MediaPlayerService( 1105): [1] getCurrentPosition = 420
V/MediaPlayer-JNI( 1117): getCurrentPosition: 420 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1080 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=520
V/MediaPlayerService( 1105): [1] getCurrentPosition = 520
V/MediaPlayer-JNI( 1117): getCurrentPosition: 520 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 660 bytes, mActive=1
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=623
V/MediaPlayerService( 1105): [1] getCurrentPosition = 623
V/MediaPlayer-JNI( 1117): getCurrentPosition: 623 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1440 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=722
V/MediaPlayerService( 1105): [1] getCurrentPosition = 722
V/MediaPlayer-JNI( 1117): getCurrentPosition: 722 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 300 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=824
V/MediaPlayerService( 1105): [1] getCurrentPosition = 824
V/MediaPlayer-JNI( 1117): getCurrentPosition: 824 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/PlayerDriver( 1105): HandleInformationalEvent: PVMFInfoPositionStatus
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=925
V/MediaPlayerService( 1105): [1] getCurrentPosition = 925
V/MediaPlayer-JNI( 1117): getCurrentPosition: 925 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1026
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1026
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1026 (msec)
V/AudioTrack( 1105): write 0x55330: 60 bytes, mActive=1
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1680 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1127
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1127
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1127 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1227
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1227
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1227 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 420 bytes, mActive=1
V/AudioTrack( 1105): write 0x55330: 1320 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1326
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1326
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1326 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1426
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1426
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1426 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 780 bytes, mActive=1
V/AudioTrack( 1105): write 0x55330: 960 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1536
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1536
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1536 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1636
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1636
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1636 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1140 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1737
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1737
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1737 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 600 bytes, mActive=1
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1836
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1836
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1836 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/PlayerDriver( 1105): HandleInformationalEvent: PVMFInfoPositionStatus
V/AudioTrack( 1105): write 0x55330: 1500 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=1938
V/MediaPlayerService( 1105): [1] getCurrentPosition = 1938
V/MediaPlayer-JNI( 1117): getCurrentPosition: 1938 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 240 bytes, mActive=1
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=2038
V/MediaPlayerService( 1105): [1] getCurrentPosition = 2038
V/MediaPlayer-JNI( 1117): getCurrentPosition: 2038 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=2138
V/MediaPlayerService( 1105): [1] getCurrentPosition = 2138
V/MediaPlayer-JNI( 1117): getCurrentPosition: 2138 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 120 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=2239
V/MediaPlayerService( 1105): [1] getCurrentPosition = 2239
V/MediaPlayer-JNI( 1117): getCurrentPosition: 2239 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioTrack( 1105): write 0x55330: 1620 bytes, mActive=1
V/AudioTrack( 1105): write 0x55330: 1740 bytes, mActive=1
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=2337
V/MediaPlayerService( 1105): [1] getCurrentPosition = 2337
V/MediaPlayer-JNI( 1117): getCurrentPosition: 2337 (msec)
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/MediaPlayer( 1117): getCurrentPosition
V/IMediaPlayer( 1117): getCurrentPosition[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): getCurrentPosition
V/PlayerDriver( 1105): Send player code: 14
V/PlayerDriver( 1105): position=2441
V/MediaPlayerService( 1105): [1] getCurrentPosition = 2441
V/MediaPlayer-JNI( 1117): getCurrentPosition: 2441 (msec)
V/AudioTrack( 1105): write 0x55330: 480 bytes, mActive=1
V/MediaPlayer( 1117): getDuration
V/MediaPlayer-JNI( 1117): getDuration: 7020 (msec)
V/AudioSystem(  210): getParameters  deviceInt = 0, situationInt = 1, situationVolume = 0.600000
V/AudioSystem(  210): getOutput() read 1 from cache for stream 1
V/AudioSystem(  210): getOutputFrameCount() streamType 1, output 1, frameCount 1200
V/AudioSystem(  210): getOutput() read 1 from cache for stream 1
V/AudioSystem(  210): getOutputSamplingRate() reading from output desc
V/AudioSystem(  210): getOutputSamplingRate() streamType 1, output 1, sampling rate 44100
V/AudioSystem(  210): getOutput() read 1 from cache for stream 1
V/AudioSystem(  210): getOutputSamplingRate() reading from output desc
V/AudioSystem(  210): getOutputSamplingRate() streamType 1, output 1, sampling rate 44100
V/AudioSystem(  210): getOutput() read 1 from cache for stream 1
V/AudioSystem(  210): getOutputLatency() streamType 1, output 1, latency 54
V/AudioSystem(  210): getOutput() read 1 from cache for stream 1
V/AudioSystem(  210): getOutput() read 1 from cache for stream 1
V/AudioSystem(  210): getOutputSamplingRate() reading from output desc
V/AudioSystem(  210): getOutputSamplingRate() streamType 1, output 1, sampling rate 44100
V/AudioSystem(  210): getOutput() read 1 from cache for stream 1
V/AudioSystem(  210): getOutputFrameCount() streamType 1, output 1, frameCount 1200
V/AudioSystem(  210): getOutput() read 1 from cache for stream 1
V/AudioSystem(  210): getOutputLatency() streamType 1, output 1, latency 54
V/AudioTrack(  210): start 0x1bbd98
V/AudioPolicyManager( 1105): startOutput() output 1, stream 1, session 8
V/AudioPolicyManager( 1105): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager( 1105): getNewDevice() selected device 2
V/AudioPolicyManager( 1105): setOutputDevice() output 1 device 2 delayMs 0
V/AudioPolicyManager( 1105): setOutputDevice() setting same device 2 or null device for output 1
E/AudioPolicyManager( 1105): Speaker Volume = 0.133352 , device = 2, stream = 1, index = 2
V/AudioTrack(  210): stop 0x312e18
V/AudioPolicyManager( 1105): releaseOutput() 1
V/ActivityVoiceClip( 1117): onClick
V/VRPlayer( 1117): stopPlay
V/MediaPlayer-JNI( 1117): stop
V/MediaPlayer( 1117): stop
V/IMediaPlayer( 1117): stop[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): [1] stop
V/PVPlayer( 1105): stop
V/PlayerDriver( 1105): Send player code: 9
V/AudioTrack(  210): Underrun user: 0, server: 0, flags 0003
V/AudioSink( 1105): stop
V/AudioTrack( 1105): stop 0x55330
V/AudioPolicyManager( 1105): stopOutput() output 1, stream 3, session 7
V/AudioPolicyManager( 1105): getDeviceForStrategy() from cache strategy 0, device 2
V/AudioPolicyManager( 1105): getNewDevice() selected device 2
V/AudioPolicyManager( 1105): setOutputDevice() output 1 device 2 delayMs 150
V/AudioPolicyManager( 1105): setOutputDevice() setting same device 2 or null device for output 1
V/AudioSink( 1105): stop
V/AudioTrack( 1105): stop 0x55330
V/AudioSink( 1105): stop
V/AudioTrack( 1105): stop 0x55330
V/AudioSink( 1105): stop
V/AudioTrack( 1105): stop 0x55330
V/AudioSink( 1105): stop
V/AudioTrack( 1105): stop 0x55330
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_STOP status=PVMFSuccess
V/MediaPlayer-JNI( 1117): release
V/MediaPlayer( 1117): setListener
V/MediaPlayer( 1117): disconnect
V/IMediaPlayer( 1117): disconnect[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/IMediaPlayer( 1105): onTransact[frameworks/base/media/libmedia/IMediaPlayer.cpp]
V/MediaPlayerService( 1105): disconnect(1) from pid 1117
V/PVPlayer( 1105): reset
V/PlayerDriver( 1105): Send player code: 18
V/PlayerDriver( 1105): handleCancelAllCommands
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_CANCEL_ALL_COMMANDS status=PVMFSuccess
V/PlayerDriver( 1105): Send player code: 11
V/PlayerDriver( 1105): handleReset
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_RESET status=PVMFSuccess
V/PlayerDriver( 1105): Send player code: 17
V/PlayerDriver( 1105): handleRemoveDataSource
V/PlayerDriver( 1105): CommandCompleted
V/PlayerDriver( 1105): Completed command PLAYER_REMOVE_DATA_SOURCE status=PVMFSuccess
V/PlayerDriver( 1105): remove datasource complete
V/PVPlayer( 1105): unmap file
V/PVPlayer( 1105): PVPlayer destructor
V/PlayerDriver( 1105): Send player code: 1
V/PlayerDriver( 1105): DeletePlayer
V/PlayerDriver( 1105): destructor
V/PlayerDriver( 1105): OsclScheduler::Cleanup
V/MediaPlayer( 1117): destructor
V/MediaPlayer( 1117): disconnect
V/MediaPlayerService( 1105): Client(1) destructor pid = 1117
V/AudioSink( 1105): close
V/AudioTrack( 1105): stop 0x55330
V/AudioPolicyManager( 1105): releaseOutput() 1
V/MediaPlayerService( 1105): disconnect(1) from pid 1117
V/AudioTrack(  210): Underrun user: 3c00, server: 3c00, flags 0002
V/AudioTrack(  210): stop 0x1bbd98
V/AudioPolicyManager( 1105): stopOutput() output 1, stream 1, session 8
V/AudioPolicyManager( 1105): getNewDevice() selected device 0
V/AudioPolicyManager( 1105): setOutputDevice() output 1 device 0 delayMs 150
V/AudioPolicyManager( 1105): setOutputDevice() setting same device 0 or null device for output 1


你可能感兴趣的:(Stream,cache,session,command,output,destructor)