use of android.os.DeadObjectException in project android_frameworks_base by crdroidandroid.
the class MediaSessionRecord method pushPlayItemResponse.
private void pushPlayItemResponse() {
synchronized (mLock) {
if (mDestroyed) {
return;
}
for (int i = mControllerCallbacks.size() - 1; i >= 0; i--) {
ISessionControllerCallback cb = mControllerCallbacks.get(i);
try {
Log.d(TAG, "pushPlayItemResponse");
cb.onPlayItemResponse(mPlayItemStatus);
} catch (DeadObjectException e) {
Log.w(TAG, "Removing dead callback in pushPlayItemResponse. ", e);
mControllerCallbacks.remove(i);
} catch (RemoteException e) {
Log.w(TAG, "unexpected exception in pushPlayItemResponse. ", e);
}
}
}
}
Aggregations