AudioService: catch RuntimeException for IServiceManager.getService

IServiceManager.getService() can throw a RuntimeException and
AudioService can handle that the same way it currently handles the
RemoteException from the same method.

Bug: 218588089
Test: Boot cuttlefish with a fake local ServiceManager with no hwservicemanager
installed.

Change-Id: I5af8a17312a6321fa6b6c20d03392e553d091f8f
This commit is contained in:
Devin Moore
2022-04-20 22:55:34 +00:00
parent f92fa673da
commit ca9ace307a

View File

@@ -10619,7 +10619,7 @@ public class AudioService extends IAudioService.Stub
}
}
return pids;
} catch (RemoteException e) {
} catch (RemoteException | RuntimeException e) {
return new HashSet<Integer>();
}
}