コード例 #1
0
 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);
   }
 }
コード例 #2
0
 @Override
 public void registerObserver(ILockSettingsObserver observer) throws RemoteException {
   mService.registerObserver(observer);
 }