Home
last modified time | relevance | path

Searched refs:numberOfListenerCalls (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DDatePickerTest.java330 final AtomicInteger numberOfListenerCalls = new AtomicInteger(); in verifyAutofill() local
332 (v, y, m, d) -> numberOfListenerCalls.incrementAndGet()); in verifyAutofill()
341 assertEquals(1, numberOfListenerCalls.get()); in verifyAutofill()
344 numberOfListenerCalls.set(0); in verifyAutofill()
349 assertEquals(0, numberOfListenerCalls.get()); in verifyAutofill()
352 numberOfListenerCalls.set(0); in verifyAutofill()
357 assertEquals(0, numberOfListenerCalls.get()); in verifyAutofill()
DTimePickerTest.java152 final AtomicInteger numberOfListenerCalls = new AtomicInteger(); in testAutofill() local
153 mTimePicker.setOnTimeChangedListener((v, h, m) -> numberOfListenerCalls.incrementAndGet()); in testAutofill()
164 assertEquals(1, numberOfListenerCalls.get()); in testAutofill()
167 numberOfListenerCalls.set(0); in testAutofill()
172 assertEquals(0, numberOfListenerCalls.get()); in testAutofill()
175 numberOfListenerCalls.set(0); in testAutofill()
180 assertEquals(0, numberOfListenerCalls.get()); in testAutofill()