Merge changes Ib2ff7e44,I950d614d,Ic87c2f8e into stage-aosp-master
am: a293fbabf9
Change-Id: I1abdea04fd5175e32f0a417f31b7accb470d920f
This commit is contained in:
@@ -43,18 +43,18 @@ public class InternalDownloadProgressListener extends IDownloadProgressListener.
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppListener.onProgressUpdated(request, fileInfo, currentDownloadSize,
|
mAppListener.onProgressUpdated(request, fileInfo, currentDownloadSize,
|
||||||
fullDownloadSize, currentDecodedSize, fullDecodedSize);
|
fullDownloadSize, currentDecodedSize, fullDecodedSize);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
|||||||
@@ -40,17 +40,17 @@ public class InternalDownloadSessionCallback extends IMbmsDownloadSessionCallbac
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onError(errorCode, message);
|
mAppCallback.onError(errorCode, message);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -59,17 +59,17 @@ public class InternalDownloadSessionCallback extends IMbmsDownloadSessionCallbac
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onFileServicesUpdated(services);
|
mAppCallback.onFileServicesUpdated(services);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -78,17 +78,17 @@ public class InternalDownloadSessionCallback extends IMbmsDownloadSessionCallbac
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onMiddlewareReady();
|
mAppCallback.onMiddlewareReady();
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
|||||||
@@ -42,17 +42,17 @@ public class InternalDownloadStatusListener extends IDownloadStatusListener.Stub
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppListener.onStatusUpdated(request, fileInfo, status);
|
mAppListener.onStatusUpdated(request, fileInfo, status);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
|||||||
@@ -38,17 +38,17 @@ public class InternalGroupCallCallback extends IGroupCallCallback.Stub {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onError(errorCode, message);
|
mAppCallback.onError(errorCode, message);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -57,17 +57,17 @@ public class InternalGroupCallCallback extends IGroupCallCallback.Stub {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onGroupCallStateChanged(state, reason);
|
mAppCallback.onGroupCallStateChanged(state, reason);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -76,17 +76,17 @@ public class InternalGroupCallCallback extends IGroupCallCallback.Stub {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onBroadcastSignalStrengthUpdated(signalStrength);
|
mAppCallback.onBroadcastSignalStrengthUpdated(signalStrength);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Prevents this callback from calling the app */
|
/** Prevents this callback from calling the app */
|
||||||
|
|||||||
@@ -39,17 +39,17 @@ public class InternalGroupCallSessionCallback extends IMbmsGroupCallSessionCallb
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onError(errorCode, message);
|
mAppCallback.onError(errorCode, message);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -58,17 +58,17 @@ public class InternalGroupCallSessionCallback extends IMbmsGroupCallSessionCallb
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onAvailableSaisUpdated(currentSais, availableSais);
|
mAppCallback.onAvailableSaisUpdated(currentSais, availableSais);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -77,17 +77,17 @@ public class InternalGroupCallSessionCallback extends IMbmsGroupCallSessionCallb
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onServiceInterfaceAvailable(interfaceName, index);
|
mAppCallback.onServiceInterfaceAvailable(interfaceName, index);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -96,17 +96,17 @@ public class InternalGroupCallSessionCallback extends IMbmsGroupCallSessionCallb
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onMiddlewareReady();
|
mAppCallback.onMiddlewareReady();
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Prevents this callback from calling the app */
|
/** Prevents this callback from calling the app */
|
||||||
|
|||||||
@@ -39,17 +39,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onError(errorCode, message);
|
mAppCallback.onError(errorCode, message);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -58,17 +58,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onStreamStateUpdated(state, reason);
|
mAppCallback.onStreamStateUpdated(state, reason);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -77,17 +77,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onMediaDescriptionUpdated();
|
mAppCallback.onMediaDescriptionUpdated();
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -96,17 +96,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onBroadcastSignalStrengthUpdated(signalStrength);
|
mAppCallback.onBroadcastSignalStrengthUpdated(signalStrength);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -115,17 +115,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onStreamMethodUpdated(methodType);
|
mAppCallback.onStreamMethodUpdated(methodType);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
|||||||
@@ -40,17 +40,17 @@ public class InternalStreamingSessionCallback extends IMbmsStreamingSessionCallb
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onError(errorCode, message);
|
mAppCallback.onError(errorCode, message);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -60,17 +60,17 @@ public class InternalStreamingSessionCallback extends IMbmsStreamingSessionCallb
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onStreamingServicesUpdated(services);
|
mAppCallback.onStreamingServicesUpdated(services);
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -79,17 +79,17 @@ public class InternalStreamingSessionCallback extends IMbmsStreamingSessionCallb
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mExecutor.execute(new Runnable() {
|
long token = Binder.clearCallingIdentity();
|
||||||
@Override
|
try {
|
||||||
public void run() {
|
mExecutor.execute(new Runnable() {
|
||||||
long token = Binder.clearCallingIdentity();
|
@Override
|
||||||
try {
|
public void run() {
|
||||||
mAppCallback.onMiddlewareReady();
|
mAppCallback.onMiddlewareReady();
|
||||||
} finally {
|
|
||||||
Binder.restoreCallingIdentity(token);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
|||||||
Reference in New Issue
Block a user