/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | ConditionTest.java | 28 import android.service.notification.Condition; 46 private final int mState = Condition.STATE_FALSE; 47 private final int mSource = Flags.modesApi() ? Condition.SOURCE_USER_ACTION : 0; 57 Condition condition = new Condition(mConditionId, mSummary, mState); in testDescribeContents() 63 Condition condition = new Condition(mConditionId, mSummary, mState); in testConstructor() 65 condition = new Condition(mConditionId, mSummary, mState, mSource); in testConstructor() 73 assertEquals(Condition.FLAG_RELEVANT_ALWAYS, condition.flags); in testConstructor() 81 Condition original = new Condition(mConditionId, mSummary, mState); in testWriteToParcel() 83 original = new Condition(mConditionId, mSummary, mState, mSource); in testWriteToParcel() 88 Condition copy = new Condition(parcel); in testWriteToParcel() [all …]
|
D | NotificationManagerZenTest.java | 105 import android.service.notification.Condition; 806 Condition condition = new Condition(rule.getConditionId(), "summary", in testConsolidatedNotificationPolicy() 807 Condition.STATE_TRUE); in testConsolidatedNotificationPolicy() 876 Condition onCondition1 = new Condition(rule1.getConditionId(), "summary", in testConsolidatedNotificationPolicyMultiRules() 877 Condition.STATE_TRUE); in testConsolidatedNotificationPolicyMultiRules() 878 Condition onCondition2 = new Condition(rule2.getConditionId(), "summary", in testConsolidatedNotificationPolicyMultiRules() 879 Condition.STATE_TRUE); in testConsolidatedNotificationPolicyMultiRules() 960 Condition conditionOn = in testConsolidatedNotificationPolicy_broadcasts() 961 new Condition(rule.getConditionId(), "on", Condition.STATE_TRUE); in testConsolidatedNotificationPolicy_broadcasts() 977 Condition conditionOff = in testConsolidatedNotificationPolicy_broadcasts() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2022_20493.java | 25 import android.service.notification.Condition; 50 private boolean checkFields(Condition condition, boolean checkLine) { in checkFields() 63 Condition firstCondition = new Condition(mLongUri, mLongString, Condition.STATE_TRUE); in testLongFieldsInConstructors() 66 Condition secondCondition = new Condition(mLongUri, mLongString, mLongString, mLongString, in testLongFieldsInConstructors() 67 -1, Condition.STATE_TRUE, Condition.FLAG_RELEVANT_ALWAYS); in testLongFieldsInConstructors() 75 Condition condition; in setFieldsUsingReflection() 77 condition = new Condition(mValidUri, mValidString, mValidString, mValidString, -1, in setFieldsUsingReflection() 78 Condition.STATE_TRUE, Condition.FLAG_RELEVANT_ALWAYS); in setFieldsUsingReflection() 80 condition = new Condition(mValidUri, mValidString, Condition.STATE_TRUE); in setFieldsUsingReflection() 103 Condition conditionFromParcel = new Condition(parcel); in setFieldsUsingReflection()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | Condition.java | 51 public class Condition<T> { class 79 public Condition(String message) { in Condition() method in Condition 89 public Condition(String message, BooleanSupplier satisfier) { in Condition() method in Condition 95 public Condition<T> setResultSupplier(Supplier<T> supplier) { in setResultSupplier() 101 public Condition<T> setResultValidator(Predicate<T> validator) { in setResultValidator() 110 public Condition<T> setReturnLastResult(boolean returnLastResult) { in setReturnLastResult() 119 public Condition<T> setOnFailure(Consumer<T> onFailure) { in setOnFailure() 124 public Condition<T> setOnRetry(Runnable onRetry) { in setOnRetry() 129 public Condition<T> setRetryIntervalMs(long millis) { in setRetryIntervalMs() 134 public Condition<T> setRetryLimit(int limit) { in setRetryLimit() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | Condition.java | 51 public class Condition<T> { class 79 public Condition(String message) { in Condition() method in Condition 89 public Condition(String message, BooleanSupplier satisfier) { in Condition() method in Condition 95 public Condition<T> setResultSupplier(Supplier<T> supplier) { in setResultSupplier() 101 public Condition<T> setResultValidator(Predicate<T> validator) { in setResultValidator() 110 public Condition<T> setReturnLastResult(boolean returnLastResult) { in setReturnLastResult() 119 public Condition<T> setOnFailure(Consumer<T> onFailure) { in setOnFailure() 124 public Condition<T> setOnRetry(Runnable onRetry) { in setOnRetry() 129 public Condition<T> setRetryIntervalMs(long millis) { in setRetryIntervalMs() 134 public Condition<T> setRetryLimit(int limit) { in setRetryLimit() [all …]
|
D | RotationSession.java | 105 Condition.waitFor(new Condition<>("rotation notified", in set() 116 Condition.waitFor(new Condition<>("rotation setting changed", in set()
|
D | WindowManagerStateHelper.java | 100 if (!Condition.waitFor("valid stacks and activities states", () -> { in waitForValidState() 114 if (!Condition.waitFor("all started activities have been removed", () -> { in waitForAllStoppedActivities() 123 Condition.waitFor("all non-home activities to be destroyed", () -> { in waitForAllNonHomeActivitiesToDestroyed() 144 Condition.waitFor("debugger window", () -> { in waitForDebuggerWindowVisible() 361 return Condition.waitFor(new Condition<>(message, () -> { in waitForWindowSurfaceShown() 407 return Condition.waitFor(message, () -> { 420 return Condition.waitForResult(new Condition<T>(message) 450 final Condition<String> condition = new Condition<>(appPackageName + " to be focused"); 451 Condition.waitFor(condition.setResultSupplier(() -> { 660 return Condition.waitFor(new Condition<>(message, () -> { [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | LegacyConditionProviderService.java | 19 import android.service.notification.Condition; 47 new Condition(conditionId, "", on ? Condition.STATE_TRUE : Condition.STATE_FALSE)); in toggleDND()
|
D | PollableConditionProviderService.java | 19 import android.service.notification.Condition; 48 notifyCondition(new Condition(conditionId, "", Condition.STATE_TRUE)); in onSubscribe()
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | WaitUntil.java | 41 Condition condition, in waitUntilConditionIsTrueOrTimeout() 64 Condition condition) { in waitUntilConditionIsTrueOrTimeout() 80 Condition condition) { in waitUntilConditionIsTrueOrReturnFalse() 105 new Condition() { in waitUntilIdIsSet() 137 new Condition() { in waitUntilCallAudioStateIsSet() 172 new Condition() { in waitUntilAvailableEndpointsIsSet() 207 new Condition() { in waitUntilConnectionIsNonNull() 245 new Condition() { in waitUntilCurrentCallEndpointIsSet() 274 new Condition() { in waitUntilAvailableEndpointAreSet()
|
D | WaitForInCallService.java | 63 new Condition() { in waitForInCallServiceBinding() 82 new Condition() { in waitUntilExpectCallCount() 112 new Condition() { in assertCallState()
|
D | Condition.java | 19 public interface Condition { interface
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BaseTelecomTestWithMockServices.java | 193 new Condition() { in assertCarModeCallCount() 993 waitUntilConditionIsTrueOrTimeout(new Condition() { in verifyConnectionForOutgoingCall() 1185 waitUntilConditionIsTrueOrTimeout(new Condition() { in verifyPhoneStateListenerCallbacksForCall() 1222 waitUntilConditionIsTrueOrTimeout(new Condition() { in verifyPhoneStateListenerCallbacksForEmergencyCall() 1453 waitUntilConditionIsTrueOrTimeout(new Condition() { 1469 waitUntilConditionIsTrueOrTimeout(new Condition() { 1485 waitUntilConditionIsTrueOrTimeout(new Condition() { 1501 waitUntilConditionIsTrueOrTimeout(new Condition() { 1518 waitUntilConditionIsTrueOrTimeout(new Condition() { 1537 waitUntilConditionIsTrueOrTimeout(new Condition() { [all …]
|
D | VideoCallTest.java | 618 new Condition() { in assertVideoCallbackRegistered() 644 new Condition() { in assertCameraCapabilitiesReceived() 671 new Condition() { in assertCallDataUsageReceived() 698 new Condition() { in assertVideoQualityReceived() 725 new Condition() { in assertCallSessionEventReceived() 752 new Condition() { in assertPeerWidthChanged() 777 new Condition() { in assertDeviceOrientationChanged() 803 new Condition() { in assertPreviewSurfaceChanged() 829 new Condition() { in assertDisplaySurfaceChanged() 855 new Condition() { in assertZoomChanged() [all …]
|
D | BaseRemoteTelecomTest.java | 206 new Condition() { in assertRemoteConnectionState() 224 new Condition() { in assertRemoteConferenceState() 242 new Condition() { in assertCtsRemoteConnectionServiceUnbound()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraPerformanceTestHelper.java | 31 import java.util.concurrent.locks.Condition; 54 Condition startDone = startLock.newCondition(); in initializeMessageLooper() 117 Condition previewDone = previewLock.newCondition(); in startPreview() 146 Condition focusDone = focusLock.newCondition(); in autoFocus() 172 Condition snapshotDone = snapshotLock.newCondition(); in takePicture()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/ |
D | WindowMetricsActivityTests.java | 37 import android.server.wm.Condition; 181 Condition.waitFor(new Condition<>("Activity becomes freeform mode", in testMetricsMatchesLayoutOnFreeformActivity() 192 Condition.waitFor(new Condition<>("layout bounds change", in testMetricsMatchesLayoutOnFreeformActivity() 204 Condition.waitFor(new Condition<>("layout bounds change", in testMetricsMatchesLayoutOnFreeformActivity() 246 Condition.waitFor(new Condition<>("WindowMetrics matches layout metrics", in assertMetricsMatchesLayout()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/backnavigation/ |
D | BackNavigationLegacyGestureTest.java | 28 import android.server.wm.Condition; 58 final Bundle resultExtras = Condition.waitForResult( in receiveOnBackPressed() 59 new Condition<Bundle>("wait for onBackPressed") in receiveOnBackPressed()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | KeyboardShortcutsActivity.java | 25 import java.util.concurrent.locks.Condition; 35 private final Condition mSignalOnProvideKeyboardShortcuts = mLock.newCondition(); 36 private final Condition mSignalOnActivityDeFocused = mLock.newCondition();
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | MoveAnimationTests.java | 28 import android.server.wm.Condition; 165 Condition isAnimating = new Condition("Window is animating", in assertPlaysMoveAnimation() 174 assertEquals(isPlayed, Condition.waitFor(isAnimating)); in assertPlaysMoveAnimation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BtAdapterUtils.java | 34 import java.util.concurrent.locks.Condition; 54 private static Condition sConditionAdapterIsEnabled; 57 private static Condition sConditionAdapterIsDisabled;
|
/cts/tests/tests/systemui/src/android/systemui/cts/tv/ |
D | BasicPipTests.kt | 26 import android.server.wm.Condition in <lambda>() 137 Condition.waitFor(message) { in <lambda>() 145 Condition.waitFor(message) { in <lambda>()
|
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/ |
D | CallBlockingTest.java | 145 new Condition() { in assertPhoneAccountRegistered() 162 private void waitUntilConditionIsTrueOrTimeout(Condition condition, long timeout, in waitUntilConditionIsTrueOrTimeout() 179 protected interface Condition { interface in CallBlockingTest
|
/cts/tests/video/src/android/video/cts/ |
D | CodecTestActivity.java | 28 import java.util.concurrent.locks.Condition; 38 private final Condition mCondition = mLock.newCondition();
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | CodecDynamicTestActivity.java | 33 import java.util.concurrent.locks.Condition; 46 private final Condition[] mConditions = new Condition[mMaxSurfaces];
|