/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/battery/ui/ |
D | BatterySaverTileMapperTest.kt | 62 val expectedState = in map_standard_notPluggedInNotPowerSaving() constant 69 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in map_standard_notPluggedInNotPowerSaving() 78 val expectedState = in map_standard_notPluggedInPowerSaving() constant 85 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in map_standard_notPluggedInPowerSaving() 94 val expectedState = in map_standard_pluggedInPowerSaving() constant 101 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in map_standard_pluggedInPowerSaving() 110 val expectedState = in map_standard_pluggedInNotPowerSaving() constant 117 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in map_standard_pluggedInNotPowerSaving() 126 val expectedState = in map_extremeSaverDisabledNotPluggedInNotPowerSaving() constant 133 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in map_extremeSaverDisabledNotPluggedInNotPowerSaving() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/night/ui/ |
D | NightDisplayTileMapperTest.kt | 73 val expectedState = in disabledModel_whenAutoModeOff() constant 78 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in disabledModel_whenAutoModeOff() 88 val expectedState = in disabledModel_whenAutoModeOff_whenForceEnable() constant 93 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in disabledModel_whenAutoModeOff_whenForceEnable() 102 val expectedState = in enabledModel_whenAutoModeOff() constant 107 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in enabledModel_whenAutoModeOff() 116 val expectedState = in enabledModel_forceAutoMode_whenAutoModeOff() constant 121 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in enabledModel_forceAutoMode_whenAutoModeOff() 130 val expectedState = createNightDisplayTileState(QSTileState.ActivationState.ACTIVE, null) in enabledModel_autoModeTwilight_locationOff() constant 131 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in enabledModel_autoModeTwilight_locationOff() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/ |
D | UiModeNightTileMapperTest.kt | 97 val expectedState = in mapsEnabledDataToUnavailableStateWhenOnPowerSave() constant 103 QSTileStateSubject.assertThat(actualState).isEqualTo(expectedState) in mapsEnabledDataToUnavailableStateWhenOnPowerSave() 117 val expectedState = in mapsDisabledDataToUnavailableStateWhenOnPowerSave() constant 123 QSTileStateSubject.assertThat(actualState).isEqualTo(expectedState) in mapsDisabledDataToUnavailableStateWhenOnPowerSave() 134 val expectedState = in mapsDisabledDataToInactiveState() constant 141 QSTileStateSubject.assertThat(actualState).isEqualTo(expectedState) in mapsDisabledDataToInactiveState() 152 val expectedState = in mapsEnabledDataToActiveState() constant 160 QSTileStateSubject.assertThat(actualState).isEqualTo(expectedState) in mapsEnabledDataToActiveState() 171 val expectedState = in mapsEnabledDataToOnIconState() constant 179 QSTileStateSubject.assertThat(actualState).isEqualTo(expectedState) in mapsEnabledDataToOnIconState() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/startable/ |
D | ScrimStartableTest.kt | 77 expectedState = ScrimState.KEYGUARD, in <lambda>() 86 expectedState = null, in <lambda>() 95 expectedState = ScrimState.BOUNCER, in <lambda>() 103 expectedState = ScrimState.BOUNCER_SCRIMMED, in <lambda>() 112 expectedState = ScrimState.BRIGHTNESS_MIRROR, in <lambda>() 120 expectedState = ScrimState.BRIGHTNESS_MIRROR, in <lambda>() 130 expectedState = ScrimState.SHADE_LOCKED, in <lambda>() 138 expectedState = ScrimState.PULSING, in <lambda>() 147 expectedState = ScrimState.OFF, in <lambda>() 155 expectedState = ScrimState.AOD, in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/alarm/domain/ |
D | AlarmTileMapperTest.kt | 69 val expectedState = in notAlarmSet() constant 74 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in notAlarmSet() 91 val expectedState = in nextAlarmSet24HourFormat() constant 93 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in nextAlarmSet24HourFormat() 110 val expectedState = in nextAlarmSet12HourFormat() constant 112 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in nextAlarmSet12HourFormat() 130 val expectedState = in nextAlarmSetMoreThanAWeekLater_mapsSecondaryLabelToDisplayDateOnly() constant 132 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in nextAlarmSetMoreThanAWeekLater_mapsSecondaryLabelToDisplayDateOnly() 150 val expectedState = in nextAlarmSetOneMinuteLessThanAWeekLater_mapsSecondaryLabelToDisplayTime() constant 152 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in nextAlarmSetOneMinuteLessThanAWeekLater_mapsSecondaryLabelToDisplayTime() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/sensorprivacy/ui/ |
D | SensorPrivacyToggleTileMapperTest.kt | 53 val expectedState = in mapCamera_notBlocked() constant 61 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in mapCamera_notBlocked() 71 val expectedState = in mapCamera_blocked() constant 79 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in mapCamera_blocked() 89 val expectedState = in mapMic_notBlocked() constant 97 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in mapMic_notBlocked() 107 val expectedState = in mapMic_blocked() constant 115 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in mapMic_blocked()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CellularNetworkServiceTest.java | 152 NetworkRegistrationInfo expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfo() local 160 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationInfo() 177 expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfo() 185 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationInfo() 254 NetworkRegistrationInfo expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfoV1_5() local 262 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationInfoV1_5() 274 expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfoV1_5() 283 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationInfoV1_5() 352 NetworkRegistrationInfo expectedState = new NetworkRegistrationInfo( in testGetNetworkRegistrationInfoV1_6WithLte() local 360 eq(NetworkServiceCallback.RESULT_SUCCESS), eq(expectedState)); in testGetNetworkRegistrationInfoV1_6WithLte() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/screenrecord/ui/ |
D | ScreenRecordTileMapperTest.kt | 65 val expectedState = in activeStateMatchesRecordingDataModel() constant 71 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in activeStateMatchesRecordingDataModel() 81 val expectedState = in activeStateMatchesStartingDataModel() constant 87 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in activeStateMatchesStartingDataModel() 96 val expectedState = in inactiveStateMatchesDisabledDataModel() constant 102 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in inactiveStateMatchesDisabledDataModel()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 157 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument 161 if (ni != null && expectedState.equals(ni.getState())) { in waitForNetworkState() 176 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument 180 if (state == expectedState) { in waitForWifiState() 185 logv("waitForWifiState timeout: expected=%d, actual=%d", expectedState, state); in waitForWifiState() 188 logv("waitForWifiState interim: expected=%d, actual=%d", expectedState, state); in waitForWifiState() 195 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument 199 if (state == expectedState) { in waitForWifiApState() 205 expectedState, state)); in waitForWifiApState() 209 expectedState, state)); in waitForWifiApState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/impl/work/ui/ |
D | WorkModeTileMapperTest.kt | 85 val expectedState = createWorkModeTileState(QSTileState.ActivationState.INACTIVE) in mapsDisabledDataToInactiveState() constant 86 QSTileStateSubject.assertThat(actualState).isEqualTo(expectedState) in mapsDisabledDataToInactiveState() 96 val expectedState = createWorkModeTileState(QSTileState.ActivationState.ACTIVE) in mapsEnabledDataToActiveState() constant 97 QSTileStateSubject.assertThat(actualState).isEqualTo(expectedState) in mapsEnabledDataToActiveState() 104 val expectedState = createWorkModeTileState(QSTileState.ActivationState.UNAVAILABLE) in mapsNoActiveProfileDataToUnavailableState() constant 105 QSTileStateSubject.assertThat(actualState).isEqualTo(expectedState) in mapsNoActiveProfileDataToUnavailableState()
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | StorageManagerBaseTest.java | 229 protected String mountObb(String obbFilePath, int expectedState) { in mountObb() argument 230 return doMountObb(obbFilePath, expectedState); in mountObb() 277 protected String doMountObb_noThrow(String obbFilePath, int expectedState) { in doMountObb_noThrow() argument 285 success &= (expectedState == obbListener.state()); in doMountObb_noThrow() 287 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb_noThrow() 309 protected String doMountObb(String obbFilePath, int expectedState) { in doMountObb() argument 317 assertEquals("OBB mount state not what was expected!", expectedState, in doMountObb() 320 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb() 324 } else if (OnObbStateChangeListener.UNMOUNTED == expectedState) { in doMountObb() 329 assertEquals("Mount state is not what was expected!", expectedState, in doMountObb()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/rotation/ui/mapper/ |
D | RotationLockTileMapperTest.kt | 77 val expectedState = in rotationNotLocked_cameraRotationDisabled() constant 83 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in rotationNotLocked_cameraRotationDisabled() 92 val expectedState = in rotationNotLocked_cameraRotationEnabled() constant 98 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in rotationNotLocked_cameraRotationEnabled() 107 val expectedState = in rotationLocked_cameraRotationNotEnabled() constant 113 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in rotationLocked_cameraRotationNotEnabled()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/colorcorrection/domain/ |
D | ColorCorrectionTileMapperTest.kt | 58 val expectedState = in disabledModel() constant 60 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in disabledModel() 69 val expectedState = in enabledModel() constant 71 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in enabledModel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/onehanded/ui/ |
D | OneHandedModeTileMapperTest.kt | 68 val expectedState = in disabledModel() constant 74 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in disabledModel() 83 val expectedState = in enabledModel() constant 89 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in enabledModel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/inversion/domain/ |
D | ColorInversionTileMapperTest.kt | 62 val expectedState = in disabledModel() constant 68 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in disabledModel() 77 val expectedState = in enabledModel() constant 83 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in enabledModel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/saver/domain/ |
D | DataSaverTileMapperTest.kt | 59 val expectedState = in activeStateMatchesEnabledModel() constant 64 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in activeStateMatchesEnabledModel() 73 val expectedState = in inactiveStateMatchesDisabledModel() constant 78 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in inactiveStateMatchesDisabledModel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/reducebrightness/ui/ |
D | ReduceBrightColorsTileMapperTest.kt | 64 val expectedState = in disabledModel() constant 68 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in disabledModel() 77 val expectedState = createReduceBrightColorsTileState(QSTileState.ActivationState.ACTIVE) in enabledModel() constant 78 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in enabledModel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/qr/ui/ |
D | QRCodeScannerTileMapperTest.kt | 67 val expectedState = in availableModel() constant 72 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in availableModel() 81 val expectedState = in temporarilyUnavailableModel() constant 88 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in temporarilyUnavailableModel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/internet/domain/ |
D | InternetTileMapperTest.kt | 68 val expectedState = in withActiveModel_mappedStateMatchesDataModel() constant 76 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in withActiveModel_mappedStateMatchesDataModel() 92 val expectedState = in withInactiveModel_mappedStateMatchesDataModel() constant 103 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in withInactiveModel_mappedStateMatchesDataModel()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | ConnectionUtil.java | 437 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument 443 if (mCM.getNetworkInfo(networkType).getState() != expectedState) { in waitForNetworkState() 453 " to be " + expectedState.toString()); in waitForNetworkState() 472 (mNetworkInfo.getState() != expectedState)) { in waitForNetworkState() 488 public boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument 494 if (mWifiState != expectedState) { in waitForWifiState() 500 Log.v(LOG_TAG, "Wait for wifi state to be: " + expectedState); in waitForWifiState() 507 if (mWifiState != expectedState) { in waitForWifiState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/fontscaling/domain/ |
D | FontScalingTileMapperTest.kt | 55 val expectedState = createFontScalingTileState() in activeStateMatchesEnabledModel() constant 56 QSTileStateSubject.assertThat(outputState).isEqualTo(expectedState) in activeStateMatchesEnabledModel()
|
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
D | ActivityThreadClientTest.java | 264 ActivityClientRecord r, int expectedState) throws Exception { in recreateAndVerifyRelaunched() argument 271 PollingCheck.check("Waiting for the expected state " + expectedState + " timeout", in recreateAndVerifyRelaunched() 273 () -> expectedState == r.getLifecycleState()); in recreateAndVerifyRelaunched() 274 assertEquals(expectedState, r.getLifecycleState()); in recreateAndVerifyRelaunched()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayActorEnforcerTests.kt | 61 val expectedState = testCase.state.takeUnless { type == Params.Type.ALLOWED } in <lambda>() constant 65 return Params(caseIndex, expectedState, testName, type, case) in <lambda>() 319 assertThat(testState.toResult()).isEqualTo(params.expectedState) in <lambda>() 327 var expectedState: ActorState, in <lambda>() variable in com.android.server.om.OverlayActorEnforcerTests.Params
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BstatsCpuTimesValidationTest.java | 604 final String expectedState = "(" + state + ")"; in assertProcState() local 608 return expectedState.equals(actualState) ? null in assertProcState() 609 : "expected=" + expectedState + ", actual" + actualState; in assertProcState() 613 private void assertProcState(int expectedState) throws Exception { in assertProcState() argument 618 return (actualState == expectedState) ? null in assertProcState() 619 : "expected=" + getStateName(BatteryStats.Uid.class, expectedState) in assertProcState()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_various.cpp | 179 aaudio_stream_state_t expectedState) { in checkStateTransition() argument 288 ASSERT_EQ(originalState, expectedState); in checkStateTransition() 290 EXPECT_EQ(expectedState, state); in checkStateTransition() 291 if (state != expectedState) { in checkStateTransition() 293 AAudio_convertStreamStateToText(expectedState), in checkStateTransition()
|