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.java320 final AtomicInteger numberOfListenerCalls = new AtomicInteger(); in verifyAutofill() local
322 (v, y, m, d) -> numberOfListenerCalls.incrementAndGet()); in verifyAutofill()
331 assertEquals(1, numberOfListenerCalls.get()); in verifyAutofill()
334 numberOfListenerCalls.set(0); in verifyAutofill()
339 assertEquals(0, numberOfListenerCalls.get()); in verifyAutofill()
342 numberOfListenerCalls.set(0); in verifyAutofill()
347 assertEquals(0, numberOfListenerCalls.get()); in verifyAutofill()
DTimePickerTest.java140 final AtomicInteger numberOfListenerCalls = new AtomicInteger(); in testAutofill() local
141 mTimePicker.setOnTimeChangedListener((v, h, m) -> numberOfListenerCalls.incrementAndGet()); in testAutofill()
152 assertEquals(1, numberOfListenerCalls.get()); in testAutofill()
155 numberOfListenerCalls.set(0); in testAutofill()
160 assertEquals(0, numberOfListenerCalls.get()); in testAutofill()
163 numberOfListenerCalls.set(0); in testAutofill()
168 assertEquals(0, numberOfListenerCalls.get()); in testAutofill()