Loading services/backup/java/com/android/server/backup/UserBackupManagerService.java +3 −9 Original line number Original line Diff line number Diff line Loading @@ -4068,20 +4068,14 @@ public class UserBackupManagerService { } } int operationType; int operationType; TransportClient transportClient = null; try { try { transportClient = mTransportManager.getTransportClientOrThrow( operationType = getOperationTypeFromTransport( transport, /* caller */"BMS.beginRestoreSession"); mTransportManager.getTransportClientOrThrow(transport, /* caller */ operationType = getOperationTypeFromTransport(transportClient); "BMS.beginRestoreSession")); } catch (TransportNotAvailableException | TransportNotRegisteredException } catch (TransportNotAvailableException | TransportNotRegisteredException | RemoteException e) { | RemoteException e) { Slog.w(TAG, "Failed to get operation type from transport: " + e); Slog.w(TAG, "Failed to get operation type from transport: " + e); return null; return null; } finally { if (transportClient != null) { mTransportManager.disposeOfTransportClient(transportClient, /* caller */"BMS.beginRestoreSession"); } } } synchronized (this) { synchronized (this) { Loading Loading
services/backup/java/com/android/server/backup/UserBackupManagerService.java +3 −9 Original line number Original line Diff line number Diff line Loading @@ -4068,20 +4068,14 @@ public class UserBackupManagerService { } } int operationType; int operationType; TransportClient transportClient = null; try { try { transportClient = mTransportManager.getTransportClientOrThrow( operationType = getOperationTypeFromTransport( transport, /* caller */"BMS.beginRestoreSession"); mTransportManager.getTransportClientOrThrow(transport, /* caller */ operationType = getOperationTypeFromTransport(transportClient); "BMS.beginRestoreSession")); } catch (TransportNotAvailableException | TransportNotRegisteredException } catch (TransportNotAvailableException | TransportNotRegisteredException | RemoteException e) { | RemoteException e) { Slog.w(TAG, "Failed to get operation type from transport: " + e); Slog.w(TAG, "Failed to get operation type from transport: " + e); return null; return null; } finally { if (transportClient != null) { mTransportManager.disposeOfTransportClient(transportClient, /* caller */"BMS.beginRestoreSession"); } } } synchronized (this) { synchronized (this) { Loading