@Test public void verifyDefaultInterval() { assertThat(collectionClient.getSessionRotationInterval()) .isEqualTo(TimeUnit.HOURS.toMillis(DEFAULT_SESSION_ROTATION_INTERVAL_HOURS)); }
long getSessionRotationInterval() { return sessionIdentifier.get().getInterval(); }
LocationCollectionClient implements SharedPreferences.OnSharedPreferenceChangeListener { long getSessionRotationInterval() { return sessionIdentifier.get().getInterval(); } }
LocationCollectionClient implements SharedPreferences.OnSharedPreferenceChangeListener { long getSessionRotationInterval() { return sessionIdentifier.get().getInterval(); } @VisibleForTesting  LocationCollectionClient(@NonNull LocationEngineController collectionController,
                           @NonNull HandlerThread handlerThread,
                           @NonNull SessionIdentifier sessionIdentifier,
                           @NonNull SharedPreferences sharedPreferences,
                           @NonNull MapboxTelemetry telemetry); }
LocationCollectionClient implements SharedPreferences.OnSharedPreferenceChangeListener { long getSessionRotationInterval() { return sessionIdentifier.get().getInterval(); } @VisibleForTesting  LocationCollectionClient(@NonNull LocationEngineController collectionController,
                           @NonNull HandlerThread handlerThread,
                           @NonNull SessionIdentifier sessionIdentifier,
                           @NonNull SharedPreferences sharedPreferences,
                           @NonNull MapboxTelemetry telemetry); static LocationCollectionClient install(@NonNull Context context, long defaultInterval); @Override void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); }
LocationCollectionClient implements SharedPreferences.OnSharedPreferenceChangeListener { long getSessionRotationInterval() { return sessionIdentifier.get().getInterval(); } @VisibleForTesting  LocationCollectionClient(@NonNull LocationEngineController collectionController,
                           @NonNull HandlerThread handlerThread,
                           @NonNull SessionIdentifier sessionIdentifier,
                           @NonNull SharedPreferences sharedPreferences,
                           @NonNull MapboxTelemetry telemetry); static LocationCollectionClient install(@NonNull Context context, long defaultInterval); @Override void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); static final int DEFAULT_SESSION_ROTATION_INTERVAL_HOURS; }