/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/ |
D | DrawCountDown.java | 40 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/ |
D | DrawCountDown.java | 40 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/telecom/src/android/telecom/cts/ |
D | ExternalCallTest.java | 78 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()
|
D | HandoverTest.java | 142 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()
|
D | CallDetailsTest.java | 625 final InvokeCounter counter = mConnection.getInvokeCounter( in testCallPutExtras() local 628 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallPutExtras() 647 final InvokeCounter counter = setupCallExtras(); in testCallRemoveExtras() local 651 counter.waitForCount(2, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras() 661 counter.waitForCount(3, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras() 678 final InvokeCounter counter = setupCallExtras(); in testCallRemoveExtras2() local 682 counter.waitForCount(2, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testCallRemoveExtras2() 697 final InvokeCounter counter = mConnection.getInvokeCounter( in setupCallExtras() local 700 counter.waitForCount(1, WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in setupCallExtras() 710 return counter; in setupCallExtras() [all …]
|
D | SelfManagedConnectionServiceTest.java | 424 TestUtils.InvokeCounter counter = connection.getCallAudioStateChangedInvokeCounter(); in testAudioRoute() local 425 counter.waitForCount(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testAudioRoute() 426 CallAudioState callAudioState = (CallAudioState) counter.getArgs(0)[0]; in testAudioRoute() 441 counter.clearArgs(); in testAudioRoute() 443 counter.waitForPredicate(new Predicate<CallAudioState>() { in testAudioRoute() 450 counter.clearArgs(); in testAudioRoute() 452 counter.waitForPredicate(new Predicate<CallAudioState>() { in testAudioRoute()
|
D | ExtendedInCallServiceTest.java | 643 final InvokeCounter counter = connection.getInvokeCounter(MockConnection.ON_SILENCE); in testSilenceRinger() local 652 counter.waitForCount(1); in testSilenceRinger() 676 final InvokeCounter counter = connection.getInvokeCounter(MockConnection.ON_POST_DIAL_WAIT); in testOnPostDialWaitAndContinue() local 679 counter.waitForCount(1); in testOnPostDialWaitAndContinue() 680 assertTrue((Boolean) counter.getArgs(0)[0]); in testOnPostDialWaitAndContinue() 683 counter.waitForCount(2); in testOnPostDialWaitAndContinue() 684 assertFalse((Boolean) counter.getArgs(1)[0]); in testOnPostDialWaitAndContinue()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/d/ |
D | T_monitor_enter_1.smali | 19 .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
|
D | T_monitor_enter_1.java | 20 public int counter = 0; field in T_monitor_enter_1 24 int a = counter; in run() 26 counter = ++a; in run()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | TestLocalInteractionActivity.java | 38 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/ |
D | AnimatedVectorDrawableParameterizedTest.java | 149 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() 313 for (int counter = 0; counter < 10; counter++) { in testInfiniteAVD() 321 "inf_avd_screenshot_" + mLayerType + "_" + counter); in testInfiniteAVD() 323 "inf_avd_screenshot_" + mLayerType + "_" + (counter - 1)); in testInfiniteAVD() 328 counter++; in testInfiniteAVD()
|
/cts/hostsidetests/atrace/src/android/atrace/cts/ |
D | AtraceHostTest.java | 23 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()
|
D | AtraceDeviceTestList.java | 24 counter, enumConstant
|
/cts/tests/tests/simpleperf/CtsSimpleperfDebuggableApp/com/android/simpleperf/debuggable/ |
D | MainActivity.java | 38 volatile int counter = 0; in createBusyThread() 44 counter++; in createBusyThread()
|
/cts/tests/tests/simpleperf/CtsSimpleperfProfileableApp/com/android/simpleperf/profileable/ |
D | MainActivity.java | 38 volatile int counter = 0; in createBusyThread() 44 counter++; in createBusyThread()
|
/cts/hostsidetests/atrace/AtraceTestApp/jni/ |
D | CtsTrace.cpp | 35 static void counter(JNIEnv*, jclass) { in counter() function 46 { "counter", "()V", (void*) counter },
|
/cts/tests/app/src/android/app/cts/ |
D | WallpaperManagerTest.java | 214 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() 455 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> { in verifyColorListenerInvoked() local 477 mWallpaperManager.addOnColorsChangedListener(counter, mHandler); in verifyColorListenerInvoked() 490 mWallpaperManager.removeOnColorsChangedListener(counter); in verifyColorListenerInvoked() 504 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> { in verifyColorListenerInvokedClearing() local 509 mWallpaperManager.addOnColorsChangedListener(counter, mHandler); in verifyColorListenerInvokedClearing() 522 mWallpaperManager.removeOnColorsChangedListener(counter); in verifyColorListenerInvokedClearing()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/ |
D | CameraIntentsActivity.java | 689 for (int counter = 0; counter < NUM_STAGES; counter++) { in onClick() 690 String combination = getStageString(counter) + "\n"; in onClick() 692 if(counter < stageIndex) { in onClick() 698 if(counter == stageIndex) { in onClick() 708 if(counter > stageIndex) { in onClick() 714 counter++; in onClick()
|
/cts/hostsidetests/atrace/AtraceTestApp/src/com/android/cts/atracetestapp/ |
D | AtraceDeviceTests.java | 83 public void counter() { in counter() method in AtraceDeviceTests 90 AtraceNdkMethods.counter(); in counter()
|
D | AtraceNdkMethods.java | 23 public static native void counter(); in counter() method in AtraceNdkMethods
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapTests.java | 107 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/tests/tests/media/src/android/media/cts/ |
D | CodecUtils.java | 161 int counter = 0; in readBinaryCounterFromBitmap() local 165 counter |= (1 << i); in readBinaryCounterFromBitmap() 168 return counter; in readBinaryCounterFromBitmap()
|
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/ |
D | DeviceAtomTestCase.java | 304 int counter = 1; in waitForStatsServiceStart() local 310 Thread.sleep(Math.min(200 * counter, 2_000)); in waitForStatsServiceStart() 311 counter++; in waitForStatsServiceStart()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 301 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/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
D | UsbDeviceTestActivity.java | 1350 @NonNull AtomicInteger counter, in QueuerThread() argument 1355 mCounter = counter; in QueuerThread() 1366 int counter = mCounter.getAndIncrement(); in run() local 1368 if (counter % 1024 == 0) { in run() 1369 Log.i(LOG_TAG, "Counter is " + counter); in run() 1376 writeBuffer.put((byte)1).putInt(counter).putInt(data); in run() 1408 mData.put(counter, data); in run() 1503 int counter = state.buffer.getInt(); in run() local 1509 expectedData = mData.remove(counter); in run() 1600 AtomicInteger counter = new AtomicInteger(0); in parallelUsbRequestsTests() local [all …]
|