Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DDrawCountDown.java40 DrawCountDown counter = new DrawCountDown(targetView, countFrames, in countDownDraws() local
43 sPendingCallbacks.add(counter); in countDownDraws()
45 targetView.getViewTreeObserver().addOnPreDrawListener(counter); in countDownDraws()
50 for (DrawCountDown counter : sPendingCallbacks) { in cancelPending()
51 counter.mTargetView.getViewTreeObserver().removeOnPreDrawListener(counter); in cancelPending()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/d/
DT_monitor_enter_1.java20 public int counter = 0; field in T_monitor_enter_1
24 int a = counter; in run()
26 counter = ++a; in run()
DT_monitor_enter_1.d19 .field public counter I
28 iput v0, v1, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_1.counter I
36 iget v1, v7, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_1.counter I
41 iget v2, v7, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_1.counter I
46 iput v1, v7, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_1.counter I
52 iput v5, v7, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_1.counter I
60 iput v5, v7, dot.junit.opcodes.monitor_enter.d.T_monitor_enter_1.counter I
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DTestLocalInteractionActivity.java41 void startLocalInteraction(CountDownLatch counter) { in startLocalInteraction() argument
44 mStarted = counter; in startLocalInteraction()
56 void stopLocalInteraction(CountDownLatch counter) { in stopLocalInteraction() argument
57 mStopped = counter; in stopLocalInteraction()
/cts/tests/tests/telecom/src/android/telecom/cts/
DHandoverTest.java142 TestUtils.InvokeCounter counter = in testOutgoingHandoverRequestValid() local
145 counter.waitForCount(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testOutgoingHandoverRequestValid()
151 PhoneAccountHandle fromHandle = (PhoneAccountHandle) counter.getArgs(0)[0]; in testOutgoingHandoverRequestValid()
154 ConnectionRequest request = (ConnectionRequest) counter.getArgs(0)[1]; in testOutgoingHandoverRequestValid()
184 TestUtils.InvokeCounter counter = in testIncomingHandoverRequestValid() local
187 counter.waitForCount(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testIncomingHandoverRequestValid()
193 PhoneAccountHandle fromHandle = (PhoneAccountHandle) counter.getArgs(0)[0]; in testIncomingHandoverRequestValid()
196 ConnectionRequest request = (ConnectionRequest) counter.getArgs(0)[1]; in testIncomingHandoverRequestValid()
DExternalCallTest.java85 final TestUtils.InvokeCounter counter = mConnection.getInvokeCounter( in testPullExternalCall() local
88 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testPullExternalCall()
100 final TestUtils.InvokeCounter counter = mConnection.getInvokeCounter( in testNonPullableExternalCall() local
104 counter.waitForCount(0, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testNonPullableExternalCall()
DCallDetailsTest.java505 final InvokeCounter counter = mConnection.getInvokeCounter( in testCallPutExtras() local
508 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallPutExtras()
527 final InvokeCounter counter = setupCallExtras(); in testCallRemoveExtras() local
531 counter.waitForCount(2, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras()
541 counter.waitForCount(3, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras()
558 final InvokeCounter counter = setupCallExtras(); in testCallRemoveExtras2() local
562 counter.waitForCount(2, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras2()
577 final InvokeCounter counter = mConnection.getInvokeCounter( in setupCallExtras() local
580 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in setupCallExtras()
590 return counter; in setupCallExtras()
[all …]
DSelfManagedConnectionServiceTest.java333 TestUtils.InvokeCounter counter = connection.getCallAudioStateChangedInvokeCounter(); in testAudioRoute() local
334 counter.waitForCount(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testAudioRoute()
335 CallAudioState callAudioState = (CallAudioState) counter.getArgs(0)[0]; in testAudioRoute()
351 counter.waitForPredicate(new Predicate<CallAudioState>() { in testAudioRoute()
359 counter.waitForPredicate(new Predicate<CallAudioState>() { in testAudioRoute()
DExtendedInCallServiceTest.java617 final InvokeCounter counter = connection.getInvokeCounter(MockConnection.ON_POST_DIAL_WAIT); in testOnPostDialWaitAndContinue() local
620 counter.waitForCount(1); in testOnPostDialWaitAndContinue()
621 assertTrue((Boolean) counter.getArgs(0)[0]); in testOnPostDialWaitAndContinue()
624 counter.waitForCount(2); in testOnPostDialWaitAndContinue()
625 assertFalse((Boolean) counter.getArgs(1)[0]); in testOnPostDialWaitAndContinue()
DRemoteConnectionTest.java635 InvokeCounter counter = in testRemoteConnectionCallbacks_PullExternalCall() local
638 counter.waitForCount(1); in testRemoteConnectionCallbacks_PullExternalCall()
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java154 int counter = 0; in testAvailableStreamConfigs() local
159 mIds[counter]), config); in testAvailableStreamConfigs()
168 Log.i(TAG, "Camera " + mIds[counter] + in testAvailableStreamConfigs()
175 mIds[counter]), outputFormats, ImageFormat.YUV_420_888); in testAvailableStreamConfigs()
177 mIds[counter]), outputFormats, ImageFormat.JPEG); in testAvailableStreamConfigs()
185 ImageFormat.YUV_420_888, mIds[counter])); in testAvailableStreamConfigs()
196 ImageFormat.JPEG, mIds[counter]), jpegSizes, in testAvailableStreamConfigs()
204 ImageFormat.JPEG, mIds[counter]), jpegSizes, HD); in testAvailableStreamConfigs()
211 ImageFormat.JPEG, mIds[counter]), jpegSizes, VGA); in testAvailableStreamConfigs()
218 ImageFormat.JPEG, mIds[counter]), jpegSizes, QVGA); in testAvailableStreamConfigs()
[all …]
DPerformanceTest.java122 int counter = 0; in testCameraLaunch() local
189 avgCameraLaunchTimes[counter] = Stat.getAverage(cameraLaunchTimes); in testCameraLaunch()
208 counter++; in testCameraLaunch()
269 int counter = 0; in testSingleCapture() local
358 avgResultTimes[counter] = Stat.getAverage(getResultTimes); in testSingleCapture()
364 counter++; in testSingleCapture()
437 int counter = 0; in testMultipleCapture() local
557 avgResultTimes[counter] = Stat.getAverage(getResultTimes); in testMultipleCapture()
558 avgDurationMs[counter] = Stat.getAverage(frameDurationMs); in testMultipleCapture()
564 counter++; in testMultipleCapture()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java148 int counter = 0; in testAnimationOnLayer() local
158 counter++; in testAnimationOnLayer()
163 "screenshot_" + counter); in testAnimationOnLayer()
165 "screenshot_" + (counter - 1)); in testAnimationOnLayer()
178 assertTrue(counter >= 5); in testAnimationOnLayer()
311 for (int counter = 0; counter < 10; counter++) { in testInfiniteAVD()
319 "inf_avd_screenshot_" + mLayerType + "_" + counter); in testInfiniteAVD()
321 "inf_avd_screenshot_" + mLayerType + "_" + (counter - 1)); in testInfiniteAVD()
326 counter++; in testInfiniteAVD()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java400 for (int counter = 0; counter < NUM_STAGES; counter++) { in onClick()
401 String combination = getStageString(counter) + "\n"; in onClick()
403 if(counter < stageIndex) { in onClick()
409 if(counter == stageIndex) { in onClick()
419 if(counter > stageIndex) { in onClick()
425 counter++; in onClick()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java204 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> latch.countDown(); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() local
212 mWallpaperManager.addOnColorsChangedListener(counter, mHandler); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded()
222 mWallpaperManager.removeOnColorsChangedListener(counter); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded()
284 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> { in verifyColorListenerInvoked() local
306 mWallpaperManager.addOnColorsChangedListener(counter, mHandler); in verifyColorListenerInvoked()
319 mWallpaperManager.removeOnColorsChangedListener(counter); in verifyColorListenerInvoked()
333 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> { in verifyColorListenerInvokedClearing() local
338 mWallpaperManager.addOnColorsChangedListener(counter, mHandler); in verifyColorListenerInvokedClearing()
351 mWallpaperManager.removeOnColorsChangedListener(counter); in verifyColorListenerInvokedClearing()
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java159 int counter = 0; in readBinaryCounterFromBitmap() local
163 counter |= (1 << i); in readBinaryCounterFromBitmap()
166 return counter; in readBinaryCounterFromBitmap()
DStreamingMediaPlayerTest.java490 final AtomicInteger counter = new AtomicInteger(); in testPlayHlsStreamWithTimedId3() local
499 counter.incrementAndGet(); in testPlayHlsStreamWithTimedId3()
567 assertTrue("Incorrect number of timed ID3s recieved", counter.get() == 38); in testPlayHlsStreamWithTimedId3()
DStreamingMediaPlayer2Test.java594 final AtomicInteger counter = new AtomicInteger(); in testPlayHlsStreamWithTimedId3() local
628 counter.incrementAndGet(); in testPlayHlsStreamWithTimedId3()
692 assertTrue("Incorrect number of timed ID3s recieved", counter.get() == 38); in testPlayHlsStreamWithTimedId3()
D.goutputstream-9KZYJZ592 // counter must be final if we want to access it inside onTimedMetaData;
593 // use AtomicInteger so we can have a final counter object with mutable integer value.
594 final AtomicInteger counter = new AtomicInteger();
628 counter.incrementAndGet();
692 assertTrue("Incorrect number of timed ID3s recieved", counter.get() == 38);
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapTests.java106 RtOnlyFrameCounter counter = new RtOnlyFrameCounter(); in testChangeDuringRtAnimation() local
136 getActivity().getWindow().addOnFrameMetricsAvailableListener(counter, handler); in testChangeDuringRtAnimation()
142 getActivity().getWindow().removeOnFrameMetricsAvailableListener(counter); in testChangeDuringRtAnimation()
150 Assert.assertTrue(counter.isLargeEnough()); in testChangeDuringRtAnimation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java301 int counter = 0; in onClick() local
311 if(counter < stageIndex) { in onClick()
317 if(counter == stageIndex) { in onClick()
327 if(counter > stageIndex) { in onClick()
333 counter++; in onClick()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/
DTest_monitor_enter.java44 assertEquals(2, t1.counter); in testN1()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java1338 @NonNull AtomicInteger counter, in QueuerThread() argument
1343 mCounter = counter; in QueuerThread()
1354 int counter = mCounter.getAndIncrement(); in run() local
1356 if (counter % 1024 == 0) { in run()
1357 Log.i(LOG_TAG, "Counter is " + counter); in run()
1364 writeBuffer.put((byte)1).putInt(counter).putInt(data); in run()
1396 mData.put(counter, data); in run()
1491 int counter = state.buffer.getInt(); in run() local
1497 expectedData = mData.remove(counter); in run()
1588 AtomicInteger counter = new AtomicInteger(0); in parallelUsbRequestsTests() local
[all …]
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java889 long counter = 1; in runReconfigureTest() local
905 offset, counter); in runReconfigureTest()
913 offset, counter); in runReconfigureTest()
916 counter = events.get(events.size() - 1).serial; in runReconfigureTest()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java452 private static void waitForCallbackCallCount(CallCounter counter, int count, String message) { in waitForCallbackCallCount() argument
454 counter.waitForCount(count, OPERATION_TIMEOUT_MILLIS); in waitForCallbackCallCount()

12