@Test public void removeGeofence_nativeRemoved() { mTestProvider.removeHardwareGeofence(GEOFENCE_ID); verify(mMockNative).removeGeofence(eq(GEOFENCE_ID)); }
@Override public boolean removeHardwareGeofence(int geofenceId) { return runOnHandlerThread(() -> { boolean removed = mNative.removeGeofence(geofenceId); if (removed) { mGeofenceEntries.remove(geofenceId); } return removed; }); }
GnssGeofenceProvider extends IGpsGeofenceHardware.Stub { @Override public boolean removeHardwareGeofence(int geofenceId) { return runOnHandlerThread(() -> { boolean removed = mNative.removeGeofence(geofenceId); if (removed) { mGeofenceEntries.remove(geofenceId); } return removed; }); } }
GnssGeofenceProvider extends IGpsGeofenceHardware.Stub { @Override public boolean removeHardwareGeofence(int geofenceId) { return runOnHandlerThread(() -> { boolean removed = mNative.removeGeofence(geofenceId); if (removed) { mGeofenceEntries.remove(geofenceId); } return removed; }); } GnssGeofenceProvider(Looper looper); @VisibleForTesting  GnssGeofenceProvider(Looper looper, GnssGeofenceProviderNative gnssGeofenceProviderNative); }
GnssGeofenceProvider extends IGpsGeofenceHardware.Stub { @Override public boolean removeHardwareGeofence(int geofenceId) { return runOnHandlerThread(() -> { boolean removed = mNative.removeGeofence(geofenceId); if (removed) { mGeofenceEntries.remove(geofenceId); } return removed; }); } GnssGeofenceProvider(Looper looper); @VisibleForTesting  GnssGeofenceProvider(Looper looper, GnssGeofenceProviderNative gnssGeofenceProviderNative); @Override boolean isHardwareGeofenceSupported(); @Override boolean addCircularHardwareGeofence(int geofenceId, double latitude,
            double longitude, double radius, int lastTransition, int monitorTransitions,
            int notificationResponsiveness, int unknownTimer); @Override boolean removeHardwareGeofence(int geofenceId); @Override boolean pauseHardwareGeofence(int geofenceId); @Override boolean resumeHardwareGeofence(int geofenceId, int monitorTransitions); }
GnssGeofenceProvider extends IGpsGeofenceHardware.Stub { @Override public boolean removeHardwareGeofence(int geofenceId) { return runOnHandlerThread(() -> { boolean removed = mNative.removeGeofence(geofenceId); if (removed) { mGeofenceEntries.remove(geofenceId); } return removed; }); } GnssGeofenceProvider(Looper looper); @VisibleForTesting  GnssGeofenceProvider(Looper looper, GnssGeofenceProviderNative gnssGeofenceProviderNative); @Override boolean isHardwareGeofenceSupported(); @Override boolean addCircularHardwareGeofence(int geofenceId, double latitude,
            double longitude, double radius, int lastTransition, int monitorTransitions,
            int notificationResponsiveness, int unknownTimer); @Override boolean removeHardwareGeofence(int geofenceId); @Override boolean pauseHardwareGeofence(int geofenceId); @Override boolean resumeHardwareGeofence(int geofenceId, int monitorTransitions);  }