Home
last modified time | relevance | path

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

12

/cts/tests/tests/uirendering27/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/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.smali19 .field public counter:I
28 iput v0, v1, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_1;->counter:I
36 iget v1, v7, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_1;->counter:I
41 iget v2, v7, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_1;->counter:I
46 iput v1, v7, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_1;->counter:I
52 iput v5, v7, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_1;->counter:I
60 iput v5, v7, Ldot/junit/opcodes/monitor_enter/d/T_monitor_enter_1;->counter:I
/cts/tests/tests/telecom/src/android/telecom/cts/
DExternalCallTest.java78 final TestUtils.InvokeCounter counter = mExternalConnection.getInvokeCounter( in testPullExternalCall() local
81 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testPullExternalCall()
99 final TestUtils.InvokeCounter counter = mExternalConnection.getInvokeCounter( in testNonPullableExternalCall() local
103 counter.waitForCount(5000L/*mS*/); in testNonPullableExternalCall()
104 assertEquals(0, counter.getInvokeCount()); in testNonPullableExternalCall()
148 final TestUtils.InvokeCounter counter = mExternalConnection.getInvokeCounter( in testTryToPullCallWhileInEmergencyCall() local
153 counter.waitForCount(5000L /*mS*/); in testTryToPullCallWhileInEmergencyCall()
154 assertEquals(0, counter.getInvokeCount()); in testTryToPullCallWhileInEmergencyCall()
DHandoverTest.java143 TestUtils.InvokeCounter counter = in testOutgoingHandoverRequestValid() local
146 counter.waitForCount(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testOutgoingHandoverRequestValid()
152 PhoneAccountHandle fromHandle = (PhoneAccountHandle) counter.getArgs(0)[0]; in testOutgoingHandoverRequestValid()
155 ConnectionRequest request = (ConnectionRequest) counter.getArgs(0)[1]; in testOutgoingHandoverRequestValid()
185 TestUtils.InvokeCounter counter = in testIncomingHandoverRequestValid() local
188 counter.waitForCount(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testIncomingHandoverRequestValid()
194 PhoneAccountHandle fromHandle = (PhoneAccountHandle) counter.getArgs(0)[0]; in testIncomingHandoverRequestValid()
197 ConnectionRequest request = (ConnectionRequest) counter.getArgs(0)[1]; in testIncomingHandoverRequestValid()
DCallDetailsTest.java672 final InvokeCounter counter = mConnection.getInvokeCounter( in testCallPutExtras() local
675 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallPutExtras()
694 final InvokeCounter counter = setupCallExtras(); in testCallRemoveExtras() local
698 counter.waitForCount(2, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras()
708 counter.waitForCount(3, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras()
725 final InvokeCounter counter = setupCallExtras(); in testCallRemoveExtras2() local
729 counter.waitForCount(2, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras2()
744 final InvokeCounter counter = mConnection.getInvokeCounter( in setupCallExtras() local
747 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in setupCallExtras()
757 return counter; in setupCallExtras()
[all …]
DSelfManagedConnectionServiceTest.java425 TestUtils.InvokeCounter counter = connection.getCallAudioStateChangedInvokeCounter(); in testAudioRoute() local
426 counter.waitForCount(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testAudioRoute()
427 CallAudioState callAudioState = (CallAudioState) counter.getArgs(0)[0]; in testAudioRoute()
442 counter.clearArgs(); in testAudioRoute()
444 counter.waitForPredicate(new Predicate<CallAudioState>() { in testAudioRoute()
451 counter.clearArgs(); in testAudioRoute()
453 counter.waitForPredicate(new Predicate<CallAudioState>() { in testAudioRoute()
DCallDiagnosticServiceTest.java233 final TestUtils.InvokeCounter counter = mConnection.getInvokeCounter( in testSendD2DMessage() local
235 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testSendD2DMessage()
237 String event = (String) (counter.getArgs(0)[0]); in testSendD2DMessage()
238 Bundle extras = (Bundle) (counter.getArgs(0)[1]); in testSendD2DMessage()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DTestLocalInteractionActivity.java38 void startLocalInteraction(CountDownLatch counter) { in startLocalInteraction() argument
42 mStarted = counter; in startLocalInteraction()
54 void stopLocalInteraction(CountDownLatch counter) { in stopLocalInteraction() argument
55 mStopped = counter; in stopLocalInteraction()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java149 int counter = 0; in testAnimationOnLayer() local
159 counter++; in testAnimationOnLayer()
164 "screenshot_" + counter); in testAnimationOnLayer()
166 "screenshot_" + (counter - 1)); in testAnimationOnLayer()
179 assertTrue(counter >= 5); in testAnimationOnLayer()
310 for (int counter = 0; counter < 10; counter++) { in testInfiniteAVD()
318 "inf_avd_screenshot_" + mLayerType + "_" + counter); in testInfiniteAVD()
320 "inf_avd_screenshot_" + mLayerType + "_" + (counter - 1)); in testInfiniteAVD()
325 counter++; in testInfiniteAVD()
/cts/tests/tests/simpleperf/CtsSimpleperfProfileableApp/com/android/simpleperf/profileable/
DMainActivity.java38 volatile int counter = 0; in createBusyThread()
44 counter++; in createBusyThread()
/cts/tests/tests/simpleperf/CtsSimpleperfDebuggableApp/com/android/simpleperf/debuggable/
DMainActivity.java38 volatile int counter = 0; in createBusyThread()
44 counter++; in createBusyThread()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java23 import static android.atrace.cts.AtraceDeviceTestList.counter;
171 for (Counter counter : processModel.getCounters()) { in findCounter()
172 if (name.equals(counter.getName())) { in findCounter()
173 return counter; in findCounter()
210 TraceResult result = traceSingleTest(counter); in testCounter()
217 Counter counter = findCounter(process, "AtraceDeviceTest::counter"); in testCounter() local
218 assertNotNull(counter); in testCounter()
219 List<CounterValue> values = counter.getEvents(); in testCounter()
DAtraceDeviceTestList.java24 counter, enumConstant
/cts/hostsidetests/atrace/AtraceTestApp/jni/
DCtsTrace.cpp35 static void counter(JNIEnv*, jclass) { in counter() function
46 { "counter", "()V", (void*) counter },
/cts/hostsidetests/atrace/AtraceTestApp/src/com/android/cts/atracetestapp/
DAtraceNdkMethods.java23 public static native void counter(); in counter() method in AtraceNdkMethods
DAtraceDeviceTests.java83 public void counter() { in counter() method in AtraceDeviceTests
90 AtraceNdkMethods.counter(); in counter()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java214 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> latch.countDown(); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() local
222 mWallpaperManager.addOnColorsChangedListener(counter, mHandler); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded()
232 mWallpaperManager.removeOnColorsChangedListener(counter); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded()
453 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> { in verifyColorListenerInvoked() local
475 mWallpaperManager.addOnColorsChangedListener(counter, mHandler); in verifyColorListenerInvoked()
488 mWallpaperManager.removeOnColorsChangedListener(counter); in verifyColorListenerInvoked()
502 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> { in verifyColorListenerInvokedClearing() local
507 mWallpaperManager.addOnColorsChangedListener(counter, mHandler); in verifyColorListenerInvokedClearing()
520 mWallpaperManager.removeOnColorsChangedListener(counter); in verifyColorListenerInvokedClearing()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapTests.java107 RtOnlyFrameCounter counter = new RtOnlyFrameCounter(); in testChangeDuringRtAnimation() local
137 getActivity().getWindow().addOnFrameMetricsAvailableListener(counter, handler); in testChangeDuringRtAnimation()
143 getActivity().getWindow().removeOnFrameMetricsAvailableListener(counter); in testChangeDuringRtAnimation()
151 Assert.assertTrue(counter.isLargeEnough()); in testChangeDuringRtAnimation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraIntentsActivity.java679 for (int counter = 0; counter < NUM_STAGES; counter++) { in onClick()
680 String combination = getStageString(counter) + "\n"; in onClick()
682 if(counter < stageIndex) { in onClick()
688 if(counter == stageIndex) { in onClick()
698 if(counter > stageIndex) { in onClick()
704 counter++; in onClick()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0490/
Dpoc.cpp362 int counter = 0; in poc_write_kernel() local
367 if(counter++ % 8 == 0){ in poc_write_kernel()
373 ALOGE("non zero = %d", counter); in poc_write_kernel()
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java161 int counter = 0; in readBinaryCounterFromBitmap() local
165 counter |= (1 << i); in readBinaryCounterFromBitmap()
168 return counter; in readBinaryCounterFromBitmap()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java237 BroadcastCounter counter = new BroadcastCounter(PackageInstaller.ACTION_SESSION_COMMITTED); in testInstallStagedApk_Commit() local
244 counter.assertNoBroadcastReceived(); in testInstallStagedApk_Commit()
249 BroadcastCounter counter = new BroadcastCounter(PackageInstaller.ACTION_SESSION_COMMITTED); in testInstallStagedApk_VerifyPostReboot() local
253 counter.assertNoBroadcastReceived(); in testInstallStagedApk_VerifyPostReboot()
268 BroadcastCounter counter = new BroadcastCounter(PackageInstaller.ACTION_SESSION_COMMITTED); in testInstallMultipleStagedApks_Commit() local
278 counter.assertNoBroadcastReceived(); in testInstallMultipleStagedApks_Commit()
283 BroadcastCounter counter = new BroadcastCounter(PackageInstaller.ACTION_SESSION_COMMITTED); in testInstallMultipleStagedApks_VerifyPostReboot() local
288 counter.assertNoBroadcastReceived(); in testInstallMultipleStagedApks_VerifyPostReboot()
356 BroadcastCounter counter = new BroadcastCounter(PackageInstaller.ACTION_SESSION_UPDATED); in testNoSessionUpdatedBroadcastSentForStagedSessionAbandon() local
365 counter.assertNoBroadcastReceived(); in testNoSessionUpdatedBroadcastSentForStagedSessionAbandon()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DDeviceAtomTestCase.java306 int counter = 1; in waitForStatsServiceStart() local
312 Thread.sleep(Math.min(200 * counter, 2_000)); in waitForStatsServiceStart()
313 counter++; in waitForStatsServiceStart()

12