@Test @SmallTest public void testReset_alreadyNoMatchingWorkSpecs() { mTestIdleController.reset(); verifyZeroInteractions(mMockTracker); }
public void reset() { if (!mMatchingWorkSpecIds.isEmpty()) { mMatchingWorkSpecIds.clear(); mTracker.removeListener(this); } }
ConstraintController implements ConstraintListener<T> { public void reset() { if (!mMatchingWorkSpecIds.isEmpty()) { mMatchingWorkSpecIds.clear(); mTracker.removeListener(this); } } }
ConstraintController implements ConstraintListener<T> { public void reset() { if (!mMatchingWorkSpecIds.isEmpty()) { mMatchingWorkSpecIds.clear(); mTracker.removeListener(this); } } ConstraintController(ConstraintTracker<T> tracker, OnConstraintUpdatedCallback callback); }
ConstraintController implements ConstraintListener<T> { public void reset() { if (!mMatchingWorkSpecIds.isEmpty()) { mMatchingWorkSpecIds.clear(); mTracker.removeListener(this); } } ConstraintController(ConstraintTracker<T> tracker, OnConstraintUpdatedCallback callback); void replace(@NonNull List<WorkSpec> workSpecs); void reset(); boolean isWorkSpecConstrained(@NonNull String workSpecId); @Override void onConstraintChanged(@Nullable T newValue); }
ConstraintController implements ConstraintListener<T> { public void reset() { if (!mMatchingWorkSpecIds.isEmpty()) { mMatchingWorkSpecIds.clear(); mTracker.removeListener(this); } } ConstraintController(ConstraintTracker<T> tracker, OnConstraintUpdatedCallback callback); void replace(@NonNull List<WorkSpec> workSpecs); void reset(); boolean isWorkSpecConstrained(@NonNull String workSpecId); @Override void onConstraintChanged(@Nullable T newValue);  }