/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/ |
D | PollTest.java | 51 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/ |
D | Activity.java | 65 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/ |
D | WallpaperTest.java | 77 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()
|
D | StartActivityFromBackgroundTest.java | 56 Poll.forValue("Start foreground activity from background", in startActivityFromBackground_dpcNotAllowed_unableToStart() 72 Poll.forValue("Start foreground activity from background", in startActivityFromBackground_dpcAllowed_ableToStart()
|
D | DevicePolicyManagementRoleHolderTest.java | 101 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()
|
D | PersistentIntentResolvingTest.java | 84 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()
|
D | InputMethodsTest.java | 58 …Poll.forValue("isCurrentInputMethodSetByOwner", () -> TestApis.devicePolicy().isCurrentInputMethod… in isCurrentInputMethodSetByOwner_isSetByOwner_returnsTrue() 80 …Poll.forValue("isCurrentInputMethodSetByOwner", () -> TestApis.devicePolicy().isCurrentInputMethod… in isCurrentInputMethodSetByOwner_isNotSetByOwner_returnsFalse()
|
D | ProfileOwnerTest.kt | 131 Poll.forValue( in <lambda>() 166 Poll.forValue( in <lambda>() 201 Poll.forValue( in <lambda>() 256 Poll.forValue( in <lambda>()
|
D | AudioTest.java | 108 Poll.forValue("isMicrophoneMute", sAudioManager::isMicrophoneMute) in disallowUnmuteMicrophoneIsNotSet_canUnmuteMicrophone() 124 Poll.forValue("isMicrophoneMute", sAudioManager::isMicrophoneMute) in disallowUnmuteMicrophoneIsSet_canNotUnmuteMicrophone()
|
D | PermissionGrantTest.java | 667 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 …]
|
D | EphemeralUserTest.kt | 50 Poll.forValue { user.exists() } in <lambda>()
|
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/sharesheet/ |
D | AreThereWorkAndPersonalTabsStepAutomation.java | 35 boolean personalTabExists = Poll.forValue("doesPersonalTabButtonExist", in automate() 40 boolean workTabExists = Poll.forValue("doesWorkTabButtonExist", in automate()
|
D | DoesTheSelectedTabContainAMessageSayingPersonalAppsStepAutomation.java | 32 return Poll.forValue("isNoPersonalAppsTextPresent", in automate()
|
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/launcher/ |
D | AreThereWorkAndPersonalTabsStepAutomation.java | 35 boolean personalTabExists = Poll.forValue("doesPersonalTabButtonExist", in automate() 41 boolean workTabExists = Poll.forValue("doesWorkTabButtonExist", in automate()
|
D | IsPhoneShortcutWorkBadgedStepAutomation.java | 32 return Poll.forValue("isPhoneShortcutWorkBadgedStep", in automate()
|
D | IsSmsAppShortcutWorkBadgedStepAutomation.java | 32 return Poll.forValue("isSmsAppShortcutWorkBadgedStep", in automate()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/ |
D | ProcessReferenceTest.java | 53 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/ |
D | AppOpsMode.java | 45 static AppOpsMode forValue(int value) { in forValue() method in AppOpsMode
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/logcat/ |
D | BlockingLogcatListener.java | 34 Poll.forValue("matching lines", () -> TestApis.logcat().dump(mFilter)) in awaitMatch()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | Poll.java | 89 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
|
D | Retry.java | 61 mPoll = Poll.forValue(supplier) in Retry()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/wifi/ |
D | Wifi.kt | 47 Poll.forValue("Wifi enabled") { isEnabled } in <lambda>()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/bluetooth/ |
D | Bluetooth.java | 88 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/ |
D | BaseTestAppActivity.java | 48 return Poll.forValue("activity for className", () -> { in findActivity()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/location/ |
D | Locations.java | 73 Location unused = Poll.forValue("Last known location is null", in setLocationEnabled()
|