/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/ |
D | DataSaverModeTest.java | 209 private void assertDataSaverStatusOnBackground(int expectedStatus) throws Exception { in assertDataSaverStatusOnBackground() argument 210 assertRestrictBackgroundStatus(expectedStatus); in assertDataSaverStatusOnBackground() 211 assertBackgroundNetworkAccess(expectedStatus != RESTRICT_BACKGROUND_STATUS_ENABLED); in assertDataSaverStatusOnBackground()
|
D | NetworkPolicyTestUtils.java | 355 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),
|
D | AbstractRestrictBackgroundNetworkTestCase.java | 336 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/ |
D | ApplicationQosPolicyRequestHandlerTest.java | 175 @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()
|
D | ApplicationQosPolicyTrackingTableTest.java | 96 @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/ |
D | XmlUtilTest.java | 413 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/ |
D | CarDevicePolicyServiceTest.java | 262 @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/ |
D | vhal_emulator_test.py | 160 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/ |
D | WatchdogServiceHelperTest.cpp | 138 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()
|
D | WatchdogProcessServiceTest.cpp | 230 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()
|
D | IoOveruseMonitorTest.cpp | 282 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/ |
D | BaseCarUserServiceTestCase.java | 1087 @UserRemovalResult.Status int expectedStatus) { in assertUserRemovalResultStatus() argument 1090 expectedStatus, UserRemovalResult.statusToString(expectedStatus), in assertUserRemovalResultStatus() 1092 .that(actualStatus).isEqualTo(expectedStatus); in assertUserRemovalResultStatus()
|
D | CarUserServiceTest.java | 2942 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/ |
D | UserMonitorTest.kt | 597 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/ |
D | SupplicantP2pIfaceCallbackHidlImplTest.java | 478 int halStatus, int expectedStatus) throws Exception { in verifyProvisionDiscoveryFailureEvent() argument 490 eq(expectedStatus), discEventCaptor.capture()); in verifyProvisionDiscoveryFailureEvent()
|
D | SupplicantP2pIfaceCallbackAidlImplTest.java | 869 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/ |
D | CarPowerManagementTest.java | 1024 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/ |
D | UserHalServiceTest.java | 2016 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/ |
D | TetheringTest.java | 2198 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/ |
D | IkeSessionStateMachineTest.java | 7608 @IkeSessionCallback.LivenessStatus int expectedStatus) { in verifyLivenessStatusCallback() 7609 verify(mMockIkeSessionCallback).onLivenessStatusChanged(eq(expectedStatus)); in verifyLivenessStatusCallback()
|