Home
last modified time | relevance | path

Searched refs:condition (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/app/src/android/app/cts/
DConditionTest.java41 Condition condition = new Condition(mConditionId, mSummary, mState); in testDescribeContents() local
42 assertEquals(expected, condition.describeContents()); in testDescribeContents()
46 Condition condition = new Condition(mConditionId, mSummary, mState); in testConstructor() local
47 assertEquals(mConditionId, condition.id); in testConstructor()
48 assertEquals(mSummary, condition.summary); in testConstructor()
49 assertEquals("", condition.line1); in testConstructor()
50 assertEquals("", condition.line2); in testConstructor()
51 assertEquals(mState, condition.state); in testConstructor()
52 assertEquals(-1, condition.icon); in testConstructor()
53 assertEquals(Condition.FLAG_RELEVANT_ALWAYS, condition.flags); in testConstructor()
[all …]
DActivityManagerProcessErrorStateInfoTest.java40 int condition = 1; in testWriteToParcel() local
48 mErrorStateInfo.condition = condition; in testWriteToParcel()
62 assertEquals(condition, values.condition); in testWriteToParcel()
74 int condition = 1; in testReadFromParcel() local
82 mErrorStateInfo.condition = condition; in testReadFromParcel()
96 assertEquals(condition, values.condition); in testReadFromParcel()
/cts/tests/tests/location/src/android/location/cts/
DSoftAssert.java52 String actualResult, boolean condition) { in assertTrue() argument
53 if (condition) { in assertTrue()
78 String actualResult, boolean condition) { in assertTrue() argument
79 assertTrue(message, null, expectedResult, actualResult, condition); in assertTrue()
97 boolean condition) { in assertTrueAsWarning() argument
98 if (condition) { in assertTrueAsWarning()
122 public void assertTrue(String message, boolean condition) { in assertTrue() argument
123 assertOrWarnTrue(true, message, condition); in assertTrue()
133 public void assertOrWarnTrue(boolean strict, String message, boolean condition) { in assertOrWarnTrue() argument
134 if (condition) { in assertOrWarnTrue()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPollingCheck.java63 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check() argument
66 if (condition.call()) { in check()
77 public static void waitFor(final PollingCheckCondition condition) { in waitFor() argument
81 return condition.canProceed(); in waitFor()
86 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument
90 return condition.canProceed(); in waitFor()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java81 @NonNull Predicate<ImeEvent> condition, long timeout) throws TimeoutException { in expectEvent() argument
82 return expectEvent(stream, condition, EventFilterMode.CHECK_ENTER_EVENT_ONLY, timeout); in expectEvent()
102 @NonNull Predicate<ImeEvent> condition, EventFilterMode filterMode, long timeout) in expectEvent() argument
114 combinedCondition = condition; in expectEvent()
117 combinedCondition = event -> event.isEnterEvent() && condition.test(event); in expectEvent()
120 combinedCondition = event -> !event.isEnterEvent() && condition.test(event); in expectEvent()
207 @NonNull Predicate<ImeEvent> condition, long timeout) {
208 notExpectEvent(stream, condition, EventFilterMode.CHECK_ENTER_EVENT_ONLY, timeout);
224 @NonNull Predicate<ImeEvent> condition, EventFilterMode filterMode, long timeout) {
228 combinedCondition = condition;
[all …]
DImeEventStream.java102 public Optional<ImeEvent> findFirst(Predicate<ImeEvent> condition) { in findFirst() argument
109 if (condition.test(latest.mArray[index])) { in findFirst()
130 public Optional<ImeEvent> seekToFirst(Predicate<ImeEvent> condition) { in seekToFirst() argument
136 if (condition.test(latest.mArray[mCurrentPosition])) { in seekToFirst()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DBusyWaitUtils.java46 static void pollingCheck(final PollingCondition condition, final long timeout, in pollingCheck() argument
48 if (waitFor(condition, timeout)) { in pollingCheck()
61 static boolean waitFor(final PollingCondition condition, final long timeout) throws Exception { in waitFor() argument
63 if (condition.check()) { in waitFor()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAsyncUtils.java72 public static void waitOn(Object notifyLock, BooleanSupplier condition) { in waitOn() argument
73 waitOn(notifyLock, condition, DEFAULT_TIMEOUT_MS); in waitOn()
76 public static void waitOn(Object notifyLock, BooleanSupplier condition, long timeoutMs) { in waitOn() argument
77 if (condition.getAsBoolean()) return; in waitOn()
82 while (!condition.getAsBoolean() && timeSlept < timeoutMs) { in waitOn()
87 if (!condition.getAsBoolean()) { in waitOn()
/cts/tests/tests/provider/src/android/provider/cts/
DCallLogTest.java78 private void waitUntilConditionIsTrueOrTimeout(Condition condition, long timeout, in waitUntilConditionIsTrueOrTimeout() argument
81 while (!condition.expected().equals(condition.actual()) in waitUntilConditionIsTrueOrTimeout()
85 assertEquals(description, condition.expected(), condition.actual()); in waitUntilConditionIsTrueOrTimeout()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DTestUtils.java69 @NonNull BooleanSupplier condition, long timeout, String message) in waitOnMainUntil()
79 if (condition.getAsBoolean()) { in waitOnMainUntil()
100 public static void waitOnMainUntil(@NonNull BooleanSupplier condition, long timeout) in waitOnMainUntil() argument
102 waitOnMainUntil(condition, timeout, ""); in waitOnMainUntil()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCallScreeningServiceTest.java166 private void waitUntilConditionIsTrueOrTimeout(Condition condition, long timeout,
169 while (!condition.expected().equals(condition.actual())
173 assertEquals(description, condition.expected(), condition.actual());
DBaseTelecomTestWithMockServices.java1159 void waitUntilConditionIsTrueOrTimeout(Condition condition, long timeout, in waitUntilConditionIsTrueOrTimeout() argument
1162 while (!condition.expected().equals(condition.actual()) in waitUntilConditionIsTrueOrTimeout()
1166 assertEquals(description, condition.expected(), condition.actual()); in waitUntilConditionIsTrueOrTimeout()
1178 void doWorkAndWaitUntilConditionIsTrueOrTimeout(Work work, Condition condition, long timeout, in doWorkAndWaitUntilConditionIsTrueOrTimeout() argument
1182 while (!condition.expected().equals(condition.actual()) in doWorkAndWaitUntilConditionIsTrueOrTimeout()
1187 assertEquals(description, condition.expected(), condition.actual()); in doWorkAndWaitUntilConditionIsTrueOrTimeout()
/cts/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java142 static public void assertTrue(boolean condition) { in assertTrue() argument
143 if (!condition) in assertTrue()
147 static public void assertFalse(boolean condition) { in assertFalse() argument
148 if (condition) in assertFalse()
/cts/tests/tests/graphics/jni/
DNativeTestHelpers.h24 #define ASSERT(condition, format, args...) \ argument
25 if (!(condition)) { \
/cts/tests/sensor/jni/
DnativeTestHelper.h26 #define ASSERT(condition, format, args...) \ argument
27 if (!(condition)) { \
/cts/tests/tests/media/src/android/media/cts/
DMediaSyncTest.java238 final Object condition = new Object(); in runCheckAudioBuffer() local
256 synchronized (condition) { in runCheckAudioBuffer()
259 condition.notify(); in runCheckAudioBuffer()
268 synchronized (condition) { in runCheckAudioBuffer()
272 condition.wait(timeOutMs); in runCheckAudioBuffer()
295 final Object condition = new Object(); in runFlush() local
311 synchronized (condition) { in runFlush()
314 condition.notify(); in runFlush()
335 synchronized (condition) { in runFlush()
339 condition.wait(timeOutMs); in runFlush()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DVirtualDisplayHelper.java111 Predicate<Boolean> condition, String message) { in waitForDisplayCondition() argument
113 if (condition.test(getDisplayState(defaultDisplay))) { in waitForDisplayCondition()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp32 #define ASSERT(condition, format, args...) \ argument
33 if (!(condition)) { \
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAppStandbyTests.java320 private boolean waitUntil(Condition condition, long timeout) throws InterruptedException { in waitUntil() argument
322 while (!condition.isMet() && SystemClock.uptimeMillis() < deadLine) { in waitUntil()
325 return condition.isMet(); in waitUntil()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DDeviceIdleJobsTest.java329 private boolean waitUntilTrue(long maxWait, Condition condition) throws Exception {
333 } while (!condition.isTrue() && SystemClock.uptimeMillis() < deadLine);
334 return condition.isTrue();
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java123 public boolean expectTrue(String msg, boolean condition) { in expectTrue() argument
124 if (!condition) { in expectTrue()
128 return condition; in expectTrue()
605 boolean condition = compareResult >= 0; in checkArrayMonotonicityAndNotAllEqual()
607 condition = compareResult <= 0; in checkArrayMonotonicityAndNotAllEqual()
611 array[i].toString(), array[i + 1].toString(), orderMsg), condition); in checkArrayMonotonicityAndNotAllEqual()
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java421 String condition = strictlyIncreasing ? "strictly increasing" : "monotonic"; in assertMonotonic() local
422 fail(name + " values must be " + condition); in assertMonotonic()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DCustomDescriptionTest.java138 Validator condition = new RegexValidator(usernameId, Pattern.compile(".*")); in validTransformationWithOneTemplateUpdate() local
143 .batchUpdate(condition, in validTransformationWithOneTemplateUpdate()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java977 condition.signal(); in onError()
993 condition.signal(); in onCompletion()
999 if (condition.awaitNanos(TIMEOUT_NS) <= 0) { in waitForError()
1014 if (condition.awaitNanos(TIMEOUT_NS) <= 0) { in waitForErrorOrCompletion()
1022 Condition condition = lock.newCondition(); field in StagefrightTest.MediaPlayerCrashListener
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureRequestTest.java1183 boolean condition; in verifyFocusDistance()
1185 condition = resultDistances[i] <= marginMax; in verifyFocusDistance()
1187 condition = resultDistances[i] >= marginMin; in verifyFocusDistance()
1192 (ascendingOrder ? marginMax : marginMin)), condition); in verifyFocusDistance()
1196 boolean condition; in verifyFocusDistance()
1199 condition = (ascendingOrder ? compareDistance > 0 : compareDistance < 0); in verifyFocusDistance()
1201 condition = (ascendingOrder ? compareDistance >= 0 : compareDistance <= 0); in verifyFocusDistance()
1205 + lensStates[i+1] + "] monotonicity is broken"), condition); in verifyFocusDistance()

12