Home
last modified time | relevance | path

Searched refs:forValue (Results 1 – 25 of 64) sorted by relevance

123

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/
DPollTest.java51 assertThat(Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_alreadyEqual_returns()
60 assertThat(Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_becomesEqual_returns()
69 assertThat(Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_doesNotBecomeEqual_returnIncorrectValue()
80 Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_errorOnFailure_doesNotBecomeEqual_throwsException()
94 Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_errorOnFailure_doesNotBecomeEqual_customError_throwsException()
107 assertThat(Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_alreadyNotEqual_returns()
116 assertThat(Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_becomesNotEqual_returns()
125 assertThat(Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_doesNotBecomeNotEqual_returnIncorrectValue()
136 Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_errorOnFailure_doesNotBecomeNotEqual_throwsException()
150 Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_errorOnFailure_doesNotBecomeNotEqual_customError_throwsException()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/activities/
DActivity.java65 Poll.forValue("Lock task mode state", () -> TestApis.activities().getLockTaskModeState()) in startLockTask()
82 Poll.forValue("Lock task mode state", () -> TestApis.activities().getLockTaskModeState()) in stopLockTask()
101 Poll.forValue("Foreground activity", () -> TestApis.activities().foregroundActivity()) in startActivity()
108 Poll.forValue("Foreground activity", () -> TestApis.activities().foregroundActivity()) in startActivity()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DWallpaperTest.java77 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setBitmap_viaDpc_disallowed_canSet()
95 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setBitmap_viaDpc_disallowed_cannotSet()
113 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setBitmap_allowed_canSet()
131 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setBitmap_disallowed_cannotSet()
146 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setStream_allowed_canSet()
160 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setStream_disallowed_cannotSet()
DStartActivityFromBackgroundTest.java56 Poll.forValue("Start foreground activity from background", in startActivityFromBackground_dpcNotAllowed_unableToStart()
72 Poll.forValue("Start foreground activity from background", in startActivityFromBackground_dpcAllowed_ableToStart()
DDevicePolicyManagementRoleHolderTest.java101 Poll.forValue(() -> TestApis.packages().installedForUser(profile)) in createAndProvisionManagedProfile_roleHolderIsInWorkProfile()
124 Poll.forValue(() -> TestApis.packages().installedForUser(userReference)) in createAndManageUser_roleHolderIsInManagedUser()
195 Poll.forValue("shouldAllowBypassingDevicePolicyManagementRoleQualification", () -> { in shouldAllowBypassingDevicePolicyManagementRoleQualification_noUsersAndAccounts_returnsTrue()
253 Poll.forValue("shouldAllowBypassingDevicePolicyManagementRoleQualification", () -> { in shouldAllowBypassingDevicePolicyManagementRoleQualification_withNonAllowedAccounts_returnsFalse()
271 Poll.forValue("shouldAllowBypassingDevicePolicyManagementRoleQualification", () -> { in shouldAllowBypassingDevicePolicyManagementRoleQualification_withAllowedAccounts_returnsTrue()
DPersistentIntentResolvingTest.java84 Poll.forValue("Recent Activities contain resolver", in sendIntent_hasMultipleDefaultReceivers_launchesResolverActivity()
110 Poll.forValue("Recent activities contain preferred activity", in sendIntent_hasPreferredReceiver_launchesPreferredActivity()
116 Poll.forValue("Recent activities does not contain unpreferred activity", in sendIntent_hasPreferredReceiver_launchesPreferredActivity()
184 Poll.forValue("Recent Activities contain resolver", in sendIntent_clearPreferredActivity_launchesResolverActivity()
DInputMethodsTest.java58 …Poll.forValue("isCurrentInputMethodSetByOwner", () -> TestApis.devicePolicy().isCurrentInputMethod… in isCurrentInputMethodSetByOwner_isSetByOwner_returnsTrue()
80 …Poll.forValue("isCurrentInputMethodSetByOwner", () -> TestApis.devicePolicy().isCurrentInputMethod… in isCurrentInputMethodSetByOwner_isNotSetByOwner_returnsFalse()
DProfileOwnerTest.kt131 Poll.forValue( in <lambda>()
166 Poll.forValue( in <lambda>()
201 Poll.forValue( in <lambda>()
256 Poll.forValue( in <lambda>()
DAudioTest.java108 Poll.forValue("isMicrophoneMute", sAudioManager::isMicrophoneMute) in disallowUnmuteMicrophoneIsNotSet_canUnmuteMicrophone()
124 Poll.forValue("isMicrophoneMute", sAudioManager::isMicrophoneMute) in disallowUnmuteMicrophoneIsSet_canNotUnmuteMicrophone()
DPermissionGrantTest.java667 Poll.forValue("Permission granted", in setPermissionPolicy_grant_automaticallyGrantsPermissions()
692 Poll.forValue("Permission not granted", in setPermissionPolicy_deny_automaticallyDeniesPermissions()
769 Poll.forValue("Permission not granted", in setPermissionGrantStateDeny_autoGrantPermission_deniesPermissions()
799 Poll.forValue("Permission not granted", in setPermissionPolicy_sensorPermissions_autoGrantPermission_denies()
825 Poll.forValue("Permission not granted", in setPermissionPolicy_smsPermission_autoGrantPermission_denies()
853 Poll.forValue("Permission granted", in setPermissionGrantStateDeny_autoDenyPermission_deniesPermissions()
886 Poll.forValue("Permission granted", in setPermissionGrantStateDeny_promptPermission_deniesPermissions()
915 Poll.forValue("Permission granted", in setPermissionStateGranted_autoDenyPermission_grantsPermissions()
948 Poll.forValue("Permission granted", in setPermissionStateGranted_promptPermission_grantsPermissions()
983 Poll.forValue("Permission granted", in setSensorPermissionStateGranted_promptPermission_denyAsPermissionCantBeGrantedAutomatically()
[all …]
DEphemeralUserTest.kt50 Poll.forValue { user.exists() } in <lambda>()
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/sharesheet/
DAreThereWorkAndPersonalTabsStepAutomation.java35 boolean personalTabExists = Poll.forValue("doesPersonalTabButtonExist", in automate()
40 boolean workTabExists = Poll.forValue("doesWorkTabButtonExist", in automate()
DDoesTheSelectedTabContainAMessageSayingPersonalAppsStepAutomation.java32 return Poll.forValue("isNoPersonalAppsTextPresent", in automate()
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/launcher/
DAreThereWorkAndPersonalTabsStepAutomation.java35 boolean personalTabExists = Poll.forValue("doesPersonalTabButtonExist", in automate()
41 boolean workTabExists = Poll.forValue("doesWorkTabButtonExist", in automate()
DIsPhoneShortcutWorkBadgedStepAutomation.java32 return Poll.forValue("isPhoneShortcutWorkBadgedStep", in automate()
DIsSmsAppShortcutWorkBadgedStepAutomation.java32 return Poll.forValue("isSmsAppShortcutWorkBadgedStep", in automate()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DProcessReferenceTest.java53 Poll.forValue("pid", in kill_killsProcess()
70 Poll.forValue("pid", in crash_crashesProcess()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/
DAppOpsMode.java45 static AppOpsMode forValue(int value) { in forValue() method in AppOpsMode
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/logcat/
DBlockingLogcatListener.java34 Poll.forValue("matching lines", () -> TestApis.logcat().dump(mFilter)) in awaitMatch()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DPoll.java89 public static <E> Poll<E> forValue(ValueSupplier<E> supplier) { in forValue() method in Poll
90 return forValue("value", supplier); in forValue()
98 public static <E> Poll<E> forValue(String valueName, ValueSupplier<E> supplier) { in forValue() method in Poll
DRetry.java61 mPoll = Poll.forValue(supplier) in Retry()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/wifi/
DWifi.kt47 Poll.forValue("Wifi enabled") { isEnabled } in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/bluetooth/
DBluetooth.java88 Boolean unused2 = Poll.forValue("Bluetooth Enabled", this::isEnabled) in enable()
114 Boolean unused2 = Poll.forValue("Bluetooth Enabled", this::isEnabled) in disable()
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DBaseTestAppActivity.java48 return Poll.forValue("activity for className", () -> { in findActivity()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/location/
DLocations.java73 Location unused = Poll.forValue("Last known location is null", in setLocationEnabled()

123