/cts/tests/app/src/android/app/cts/ |
D | ConditionTest.java | 21 import android.service.notification.Condition; 32 private final int mState = Condition.STATE_FALSE; 41 Condition condition = new Condition(mConditionId, mSummary, mState); in testDescribeContents() 46 Condition condition = new Condition(mConditionId, mSummary, mState); in testConstructor() 53 assertEquals(Condition.FLAG_RELEVANT_ALWAYS, condition.flags); in testConstructor() 57 Condition condition = new Condition(mConditionId, mSummary, mState); in testWriteToParcel() 61 Condition condition1 = new Condition(parcel); in testWriteToParcel() 68 assertEquals(Condition.FLAG_RELEVANT_ALWAYS, condition1.flags); in testWriteToParcel() 72 Condition condition = new Condition(mConditionId, mSummary, mState); in testCopy() 73 Condition condition1 = condition.copy(); in testCopy() [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 | WindowManagerStateHelper.java | 95 if (!Condition.waitFor("valid stacks and activities states", () -> { in waitForValidState() 109 if (!Condition.waitFor("all started activities have been removed", () -> { in waitForAllStoppedActivities() 126 Condition.waitFor("debugger window", () -> { in waitForDebuggerWindowVisible() 338 return Condition.waitFor(message, () -> { in waitFor() 351 return Condition.waitForResult(new Condition<T>(message) in waitForResult() 381 final Condition<String> condition = new Condition<>(appPackageName + " to be focused"); 382 Condition.waitFor(condition.setResultSupplier(() -> { 742 final WindowState imeWinState = Condition.waitForResult("IME window",
|
/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()
|
D | ConditionProviderServiceTest.java | 38 import android.service.notification.Condition; 258 Condition.FLAG_RELEVANT_NOW); in testMethodsExistAndDoNotThrow() 266 .scheme(Condition.SCHEME) in addRule()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BaseTelecomTestWithMockServices.java | 174 new Condition() { in assertCarModeCallCount() 811 waitUntilConditionIsTrueOrTimeout(new Condition() { in verifyConnectionForOutgoingCall() 989 waitUntilConditionIsTrueOrTimeout(new Condition() { in verifyPhoneStateListenerCallbacksForCall() 1026 waitUntilConditionIsTrueOrTimeout(new Condition() { in verifyPhoneStateListenerCallbacksForEmergencyCall() 1189 waitUntilConditionIsTrueOrTimeout(new Condition() { in assertNumCalls() 1205 waitUntilConditionIsTrueOrTimeout(new Condition() { in assertNumConferenceCalls() 1221 waitUntilConditionIsTrueOrTimeout(new Condition() { in assertCSConnections() 1240 waitUntilConditionIsTrueOrTimeout(new Condition() { in assertNumConnections() 1257 new Condition() { in assertMuteState() 1276 new Condition() { in assertMuteState() [all …]
|
D | VideoCallTest.java | 614 new Condition() { in assertVideoState() 641 new Condition() { in assertVideoCallbackRegistered() 667 new Condition() { in assertCameraCapabilitiesReceived() 694 new Condition() { in assertCallDataUsageReceived() 721 new Condition() { in assertVideoQualityReceived() 748 new Condition() { in assertCallSessionEventReceived() 775 new Condition() { in assertPeerWidthChanged() 800 new Condition() { in assertDeviceOrientationChanged() 826 new Condition() { in assertPreviewSurfaceChanged() 852 new Condition() { in assertDisplaySurfaceChanged() [all …]
|
D | BaseRemoteTelecomTest.java | 199 new Condition() { in assertRemoteConnectionState() 217 new Condition() { in assertRemoteConferenceState() 235 new Condition() { in assertCtsRemoteConnectionServiceUnbound()
|
D | CallScreeningServiceTest.java | 235 new Condition() { 252 private void waitUntilConditionIsTrueOrTimeout(Condition condition, long timeout, 269 protected interface Condition {
|
D | ConferenceTest.java | 552 new Condition() { in assertCallCapability() 570 new Condition() { in assertCallConnectTime() 588 new Condition() { in assertCallExtras() 607 new Condition() { in assertCallStatusHints() 626 new Condition() { in assertCallChildrenContains() 645 new Condition() { in assertVideoState()
|
D | ThirdPartyInCallServiceAppOpsPermissionTest.java | 128 waitUntilConditionIsTrueOrTimeout(new Condition() { in assertBindStatus() 148 waitUntilConditionIsTrueOrTimeout(new Condition() { in assertCallCount()
|
/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/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/tests/bluetooth/bluetoothTestUtilLib/src/android/bluetooth/cts/ |
D | BTAdapterUtils.java | 35 import java.util.concurrent.locks.Condition; 53 private static Condition mConditionAdapterIsEnabled; 56 private static Condition mConditionAdapterIsDisabled;
|
/cts/tests/tests/systemui/src/android/systemui/cts/tv/ |
D | BasicPipTests.kt | 25 import android.server.wm.Condition in <lambda>() 133 Condition.waitFor(message) { in <lambda>() 141 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/provider/src/android/provider/cts/contacts/ |
D | CallLogTest.java | 61 new Condition() { in testGetLastOutgoingCall() 86 new Condition() { in testGetLastOutgoingCall() 224 private void waitUntilConditionIsTrueOrTimeout(Condition condition, long timeout, in waitUntilConditionIsTrueOrTimeout() 234 protected interface Condition { interface in CallLogTest
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | TestActivity.java | 30 import java.util.concurrent.locks.Condition; 40 private final Condition mCondition = mLock.newCondition();
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecTestActivity.java | 31 import java.util.concurrent.locks.Condition; 41 private final Condition mCondition = mLock.newCondition();
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/ |
D | Utils.java | 28 import android.server.wm.Condition; 101 Condition.waitFor(new Condition<>(message, condition) in waitFor()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeAudioTest.java | 34 import java.util.concurrent.locks.Condition; 50 private Condition mConditionProfileIsConnected;
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarBluetoothTest.java | 51 import java.util.concurrent.locks.Condition; 79 private Condition mConditionAdapterStateReached; 193 private Condition mConditionAllProfilesConnected;
|
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/ |
D | Utils.java | 28 import java.util.concurrent.locks.Condition; 242 public static boolean await(Condition condition) { in await()
|