@Test public void started_resume_started() { mTestProvider.resumeIfStarted(); verify(mMockNative, times(2)).startBatch(eq(PERIOD_NANOS), eq(WAKE_ON_FIFO_FULL)); }
void resumeIfStarted() { if (DEBUG) { Log.d(TAG, "resumeIfStarted"); } if (mStarted) { mNative.startBatch(mPeriodNanos, mWakeOnFifoFull); } }
GnssBatchingProvider { void resumeIfStarted() { if (DEBUG) { Log.d(TAG, "resumeIfStarted"); } if (mStarted) { mNative.startBatch(mPeriodNanos, mWakeOnFifoFull); } } }
GnssBatchingProvider { void resumeIfStarted() { if (DEBUG) { Log.d(TAG, "resumeIfStarted"); } if (mStarted) { mNative.startBatch(mPeriodNanos, mWakeOnFifoFull); } } GnssBatchingProvider(); @VisibleForTesting  GnssBatchingProvider(GnssBatchingProviderNative gnssBatchingProviderNative); }
GnssBatchingProvider { void resumeIfStarted() { if (DEBUG) { Log.d(TAG, "resumeIfStarted"); } if (mStarted) { mNative.startBatch(mPeriodNanos, mWakeOnFifoFull); } } GnssBatchingProvider(); @VisibleForTesting  GnssBatchingProvider(GnssBatchingProviderNative gnssBatchingProviderNative); int getBatchSize(); void enable(); boolean start(long periodNanos, boolean wakeOnFifoFull); void flush(); boolean stop(); void disable(); }
GnssBatchingProvider { void resumeIfStarted() { if (DEBUG) { Log.d(TAG, "resumeIfStarted"); } if (mStarted) { mNative.startBatch(mPeriodNanos, mWakeOnFifoFull); } } GnssBatchingProvider(); @VisibleForTesting  GnssBatchingProvider(GnssBatchingProviderNative gnssBatchingProviderNative); int getBatchSize(); void enable(); boolean start(long periodNanos, boolean wakeOnFifoFull); void flush(); boolean stop(); void disable();  }