private void handleRemoveListener(int uid) {
   synchronized (mListeners) {
     if (mClientUids.indexOfKey(uid) < 0) {
       // Shouldn't be here -- don't have this uid.
       Log.w(TAG, "Unneeded remove listener for uid " + uid);
       return;
     }
     mClientUids.delete(uid);
     if (mNavigating) {
       try {
         mBatteryStats.noteStopGps(uid);
       } catch (RemoteException e) {
         Log.w(TAG, "RemoteException in removeListener");
       }
     }
   }
 }