Loading src/com/android/bluetooth/avrcp/Avrcp.java +3 −3 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ public final class Avrcp { mPlayStatusChangedNT = NOTIFICATION_TYPE_CHANGED; mTrackChangedNT = NOTIFICATION_TYPE_CHANGED; mTrackNumber = -1L; mCurrentPosMs = 0L; mCurrentPosMs = RemoteControlClient.PLAYBACK_POSITION_ALWAYS_UNKNOWN; mPlayStartTimeMs = -1L; mSongLengthMs = 0L; mPlaybackIntervalMs = 0L; Loading Loading @@ -246,6 +246,7 @@ public final class Avrcp { @Override public void onClientPlaybackStateUpdate(int state) { // Should never be called with the existing code, but just in case if (DEBUG) Log.v(TAG, "RemoteControlDisplayer: Update playbackState state=" + state + " position=null"); Handler handler = mLocalHandler.get(); if (handler != null) { handler.obtainMessage(MSG_UPDATE_STATE, 0, state, Loading @@ -256,6 +257,7 @@ public final class Avrcp { @Override public void onClientPlaybackStateUpdate(int state, long stateChangeTimeMs, long currentPosMs, float speed) { if (DEBUG) Log.v(TAG, "RemoteControlDisplayer: Update playbackState state=" + state + " position=" + currentPosMs); Handler handler = mLocalHandler.get(); if (handler != null) { handler.obtainMessage(MSG_UPDATE_STATE, 0, state, Loading Loading @@ -729,7 +731,6 @@ public final class Avrcp { } if (mCurrentPosMs != RemoteControlClient.PLAYBACK_POSITION_ALWAYS_UNKNOWN) { mCurrentPosMs = 0L; if (mCurrentPlayState == RemoteControlClient.PLAYSTATE_PLAYING) { mPlayStartTimeMs = SystemClock.elapsedRealtime(); } Loading @@ -747,7 +748,6 @@ public final class Avrcp { mSongLengthMs = data.getLong(MediaMetadataRetriever.METADATA_KEY_DURATION, RemoteControlClient.PLAYBACK_POSITION_INVALID); Log.v(TAG, "duration=" + mSongLengthMs); } private void getRcFeatures(byte[] address, int features) { Loading Loading
src/com/android/bluetooth/avrcp/Avrcp.java +3 −3 Original line number Diff line number Diff line Loading @@ -163,7 +163,7 @@ public final class Avrcp { mPlayStatusChangedNT = NOTIFICATION_TYPE_CHANGED; mTrackChangedNT = NOTIFICATION_TYPE_CHANGED; mTrackNumber = -1L; mCurrentPosMs = 0L; mCurrentPosMs = RemoteControlClient.PLAYBACK_POSITION_ALWAYS_UNKNOWN; mPlayStartTimeMs = -1L; mSongLengthMs = 0L; mPlaybackIntervalMs = 0L; Loading Loading @@ -246,6 +246,7 @@ public final class Avrcp { @Override public void onClientPlaybackStateUpdate(int state) { // Should never be called with the existing code, but just in case if (DEBUG) Log.v(TAG, "RemoteControlDisplayer: Update playbackState state=" + state + " position=null"); Handler handler = mLocalHandler.get(); if (handler != null) { handler.obtainMessage(MSG_UPDATE_STATE, 0, state, Loading @@ -256,6 +257,7 @@ public final class Avrcp { @Override public void onClientPlaybackStateUpdate(int state, long stateChangeTimeMs, long currentPosMs, float speed) { if (DEBUG) Log.v(TAG, "RemoteControlDisplayer: Update playbackState state=" + state + " position=" + currentPosMs); Handler handler = mLocalHandler.get(); if (handler != null) { handler.obtainMessage(MSG_UPDATE_STATE, 0, state, Loading Loading @@ -729,7 +731,6 @@ public final class Avrcp { } if (mCurrentPosMs != RemoteControlClient.PLAYBACK_POSITION_ALWAYS_UNKNOWN) { mCurrentPosMs = 0L; if (mCurrentPlayState == RemoteControlClient.PLAYSTATE_PLAYING) { mPlayStartTimeMs = SystemClock.elapsedRealtime(); } Loading @@ -747,7 +748,6 @@ public final class Avrcp { mSongLengthMs = data.getLong(MediaMetadataRetriever.METADATA_KEY_DURATION, RemoteControlClient.PLAYBACK_POSITION_INVALID); Log.v(TAG, "duration=" + mSongLengthMs); } private void getRcFeatures(byte[] address, int features) { Loading