Home
last modified time | relevance | path

Searched refs:expectedStatus (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DDataSaverModeTest.java209 private void assertDataSaverStatusOnBackground(int expectedStatus) throws Exception { in assertDataSaverStatusOnBackground() argument
210 assertRestrictBackgroundStatus(expectedStatus); in assertDataSaverStatusOnBackground()
211 assertBackgroundNetworkAccess(expectedStatus != RESTRICT_BACKGROUND_STATUS_ENABLED); in assertDataSaverStatusOnBackground()
DNetworkPolicyTestUtils.java355 public static boolean isMyRestrictBackgroundStatus(int expectedStatus) {
357 if (expectedStatus != actualStatus) {
359 + "Expected: " + restrictBackgroundValueToString(expectedStatus)
400 public static void assertMyRestrictBackgroundStatus(int expectedStatus) {
402 assertEquals(restrictBackgroundValueToString(expectedStatus),
DAbstractRestrictBackgroundNetworkTestCase.java336 protected void assertRestrictBackgroundStatus(int expectedStatus) throws Exception { in assertRestrictBackgroundStatus() argument
339 assertEquals(restrictBackgroundValueToString(expectedStatus), in assertRestrictBackgroundStatus()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DApplicationQosPolicyRequestHandlerTest.java175 @SupplicantStaIfaceHal.QosPolicyScsRequestStatusCode int expectedStatus) { in setupSynchronousResponse()
181 List<Integer> statusList = generateIntegerList(policyList.size(), expectedStatus); in setupSynchronousResponse()
194 policyId, expectedStatus)); in setupSynchronousResponse()
210 @SupplicantStaIfaceHal.QosPolicyScsResponseStatusCode int expectedStatus) { in triggerApCallback() argument
213 generateIntegerList(policyList.size(), expectedStatus); in triggerApCallback()
228 @SupplicantStaIfaceHal.QosPolicyScsResponseStatusCode int expectedStatus) { in triggerAndVerifyApCallback() argument
229 triggerApCallback(ifaceName, policyList, expectedStatus); in triggerAndVerifyApCallback()
233 private void verifyApplicationCallback(@WifiManager.QosRequestStatus int expectedStatus) in verifyApplicationCallback() argument
237 mApplicationCallbackResultCaptor.getValue().size(), expectedStatus); in verifyApplicationCallback()
DApplicationQosPolicyTrackingTableTest.java96 @WifiManager.QosRequestStatus int expectedStatus) { in verifyStatusList() argument
98 assertEquals(expectedStatus, status); in verifyStatusList()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java413 NetworkSelectionStatus expectedStatus = new NetworkSelectionStatus(); in testDeprecatedNetworkSelectionStatusDeserialize() local
414 expectedStatus.copy(status); in testDeprecatedNetworkSelectionStatusDeserialize()
415 expectedStatus.setNetworkSelectionStatus(NetworkSelectionStatus.NETWORK_SELECTION_ENABLED); in testDeprecatedNetworkSelectionStatusDeserialize()
416 expectedStatus.setNetworkSelectionDisableReason( in testDeprecatedNetworkSelectionStatusDeserialize()
420 expectedStatus, retrievedStatus); in testDeprecatedNetworkSelectionStatusDeserialize()
462 NetworkSelectionStatus expectedStatus = new NetworkSelectionStatus(); in testDeprecatedNetworkSelectionDisableReasonDeserialize() local
463 expectedStatus.copy(status); in testDeprecatedNetworkSelectionDisableReasonDeserialize()
464 expectedStatus.setNetworkSelectionStatus(NetworkSelectionStatus.NETWORK_SELECTION_ENABLED); in testDeprecatedNetworkSelectionDisableReasonDeserialize()
465 expectedStatus.setNetworkSelectionDisableReason( in testDeprecatedNetworkSelectionDisableReasonDeserialize()
469 expectedStatus, retrievedStatus); in testDeprecatedNetworkSelectionDisableReasonDeserialize()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DCarDevicePolicyServiceTest.java262 @CarDevicePolicyService.NewUserDisclaimerStatus int expectedStatus) { in assertStatusString() argument
265 expectedStatus, newUserDisclaimerStatusToString(expectedStatus), in assertStatusString()
267 .that(actualStatus).isEqualTo(expectedStatus); in assertStatusString()
/packages/services/Car/tools/emulator/
Dvhal_emulator_test.py160 def _rxMsgAndValidate(self, expectedType, expectedStatus): argument
166 if rxMsg.status != expectedStatus:
167 … self._log.error("rxMsg Status expected: 0x%X, received: 0x%X", expectedStatus, rxMsg.status)
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogServiceHelperTest.cpp138 void expectLinkToDeath(AIBinder* aiBinder, ndk::ScopedAStatus expectedStatus) { in expectLinkToDeath() argument
141 .WillOnce(Return(ByMove(std::move(expectedStatus)))); in expectLinkToDeath()
144 void expectUnlinkToDeath(AIBinder* aiBinder, ndk::ScopedAStatus expectedStatus) { in expectUnlinkToDeath() argument
147 .WillOnce(Return(ByMove(std::move(expectedStatus)))); in expectUnlinkToDeath()
DWatchdogProcessServiceTest.cpp230 void expectLinkToDeath(AIBinder* aiBinder, ScopedAStatus expectedStatus) { in expectLinkToDeath() argument
233 .WillOnce(Return(ByMove(std::move(expectedStatus)))); in expectLinkToDeath()
236 void expectUnlinkToDeath(AIBinder* aiBinder, ScopedAStatus expectedStatus) { in expectUnlinkToDeath() argument
239 .WillOnce(Return(ByMove(std::move(expectedStatus)))); in expectUnlinkToDeath()
DIoOveruseMonitorTest.cpp282 void expectLinkToDeath(AIBinder* aiBinder, ndk::ScopedAStatus expectedStatus) { in expectLinkToDeath() argument
285 .WillOnce(Return(ByMove(std::move(expectedStatus)))); in expectLinkToDeath()
288 void expectUnlinkToDeath(AIBinder* aiBinder, ndk::ScopedAStatus expectedStatus) { in expectUnlinkToDeath() argument
291 .WillOnce(Return(ByMove(std::move(expectedStatus)))); in expectUnlinkToDeath()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DBaseCarUserServiceTestCase.java1087 @UserRemovalResult.Status int expectedStatus) { in assertUserRemovalResultStatus() argument
1090 expectedStatus, UserRemovalResult.statusToString(expectedStatus), in assertUserRemovalResultStatus()
1092 .that(actualStatus).isEqualTo(expectedStatus); in assertUserRemovalResultStatus()
DCarUserServiceTest.java2942 private void assertUserSwitchResult(UserSwitchResult result, int expectedStatus) { in assertUserSwitchResult() argument
2943 assertUserSwitchResult(result.getStatus(), expectedStatus); in assertUserSwitchResult() local
2963 private void assertUserSwitchResultWithError(UserSwitchResult result, int expectedStatus, in assertUserSwitchResultWithError() argument
2965 assertUserSwitchResult(result.getStatus(), expectedStatus); in assertUserSwitchResultWithError() local
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/user/
DUserMonitorTest.kt597 val expectedStatus = in <lambda>() constant
606 assertUserStatusIsEqualIgnoringFields(emissions.get(1), expectedStatus) in <lambda>()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackHidlImplTest.java478 int halStatus, int expectedStatus) throws Exception { in verifyProvisionDiscoveryFailureEvent() argument
490 eq(expectedStatus), discEventCaptor.capture()); in verifyProvisionDiscoveryFailureEvent()
DSupplicantP2pIfaceCallbackAidlImplTest.java869 int halStatus, int expectedStatus) throws Exception { in verifyProvisionDiscoveryFailureEvent() argument
881 eq(expectedStatus), discEventCaptor.capture()); in verifyProvisionDiscoveryFailureEvent()
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java1024 public void setExpectedSuspendStatus(boolean expectedStatus) { in setExpectedSuspendStatus() argument
1026 mExpectedSuspendStatus = expectedStatus; in setExpectedSuspendStatus()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java2016 private void assertCallbackStatus(GenericHalCallback<?> callback, int expectedStatus) { in assertCallbackStatus() argument
2018 if (actualStatus == expectedStatus) return; in assertCallbackStatus()
2021 + UserHalHelper.halCallbackStatusToString(expectedStatus) + ", got " in assertCallbackStatus()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java2198 public void expectOffloadStatusChanged(final int expectedStatus) { in expectOffloadStatusChanged() argument
2200 assertEquals(Integer.valueOf(expectedStatus), mOffloadStatus.remove(0)); in expectOffloadStatusChanged()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java7608 @IkeSessionCallback.LivenessStatus int expectedStatus) { in verifyLivenessStatusCallback()
7609 verify(mMockIkeSessionCallback).onLivenessStatusChanged(eq(expectedStatus)); in verifyLivenessStatusCallback()