private LockPatternUtilsCache(ILockSettings service) { mService = service; try { service.registerObserver(mObserver); } catch (RemoteException e) { // Not safe to do caching without the observer. System process has probably died // anyway, so crashing here is fine. throw new RuntimeException(e); } }
@Override public void registerObserver(ILockSettingsObserver observer) throws RemoteException { mService.registerObserver(observer); }