Merge changes Ib2ff7e44,I950d614d,Ic87c2f8e into stage-aosp-master

am: a293fbabf9

Change-Id: I1abdea04fd5175e32f0a417f31b7accb470d920f
This commit is contained in:
Hall Liu
2018-10-25 20:10:26 -07:00
committed by android-build-merger
7 changed files with 180 additions and 180 deletions

View File

@@ -43,18 +43,18 @@ public class InternalDownloadProgressListener extends IDownloadProgressListener.
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppListener.onProgressUpdated(request, fileInfo, currentDownloadSize,
fullDownloadSize, currentDecodedSize, fullDecodedSize);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
public void stop() {

View File

@@ -40,17 +40,17 @@ public class InternalDownloadSessionCallback extends IMbmsDownloadSessionCallbac
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onError(errorCode, message);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -59,17 +59,17 @@ public class InternalDownloadSessionCallback extends IMbmsDownloadSessionCallbac
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onFileServicesUpdated(services);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -78,17 +78,17 @@ public class InternalDownloadSessionCallback extends IMbmsDownloadSessionCallbac
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onMiddlewareReady();
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
public void stop() {

View File

@@ -42,17 +42,17 @@ public class InternalDownloadStatusListener extends IDownloadStatusListener.Stub
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppListener.onStatusUpdated(request, fileInfo, status);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
public void stop() {

View File

@@ -38,17 +38,17 @@ public class InternalGroupCallCallback extends IGroupCallCallback.Stub {
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onError(errorCode, message);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -57,17 +57,17 @@ public class InternalGroupCallCallback extends IGroupCallCallback.Stub {
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onGroupCallStateChanged(state, reason);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -76,17 +76,17 @@ public class InternalGroupCallCallback extends IGroupCallCallback.Stub {
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onBroadcastSignalStrengthUpdated(signalStrength);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
/** Prevents this callback from calling the app */

View File

@@ -39,17 +39,17 @@ public class InternalGroupCallSessionCallback extends IMbmsGroupCallSessionCallb
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onError(errorCode, message);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -58,17 +58,17 @@ public class InternalGroupCallSessionCallback extends IMbmsGroupCallSessionCallb
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onAvailableSaisUpdated(currentSais, availableSais);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -77,17 +77,17 @@ public class InternalGroupCallSessionCallback extends IMbmsGroupCallSessionCallb
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onServiceInterfaceAvailable(interfaceName, index);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -96,17 +96,17 @@ public class InternalGroupCallSessionCallback extends IMbmsGroupCallSessionCallb
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onMiddlewareReady();
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
/** Prevents this callback from calling the app */

View File

@@ -39,17 +39,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onError(errorCode, message);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -58,17 +58,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onStreamStateUpdated(state, reason);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -77,17 +77,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onMediaDescriptionUpdated();
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -96,17 +96,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onBroadcastSignalStrengthUpdated(signalStrength);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -115,17 +115,17 @@ public class InternalStreamingServiceCallback extends IStreamingServiceCallback.
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onStreamMethodUpdated(methodType);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
public void stop() {

View File

@@ -40,17 +40,17 @@ public class InternalStreamingSessionCallback extends IMbmsStreamingSessionCallb
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onError(errorCode, message);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -60,17 +60,17 @@ public class InternalStreamingSessionCallback extends IMbmsStreamingSessionCallb
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onStreamingServicesUpdated(services);
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
@Override
@@ -79,17 +79,17 @@ public class InternalStreamingSessionCallback extends IMbmsStreamingSessionCallb
return;
}
mExecutor.execute(new Runnable() {
@Override
public void run() {
long token = Binder.clearCallingIdentity();
try {
long token = Binder.clearCallingIdentity();
try {
mExecutor.execute(new Runnable() {
@Override
public void run() {
mAppCallback.onMiddlewareReady();
} finally {
Binder.restoreCallingIdentity(token);
}
}
});
});
} finally {
Binder.restoreCallingIdentity(token);
}
}
public void stop() {