Home
last modified time | relevance | path

Searched refs:shouldSucceed (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideNetworkTestCase.java84 boolean shouldSucceed) in uninstallPackage() argument
88 if (shouldSucceed) { in uninstallPackage()
94 boolean shouldSucceed) in uninstallPackage() argument
96 uninstallPackage(getTestInformation(), packageName, shouldSucceed); in uninstallPackage() local
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DHostapdHalTest.java82 private void initializeWithAidlImp(boolean shouldSucceed) { in initializeWithAidlImp() argument
84 when(mIHostapdAidlMock.initialize()).thenReturn(shouldSucceed); in initializeWithAidlImp()
85 assertEquals(mHostapdHal.initialize(), shouldSucceed); in initializeWithAidlImp() local
90 private void initializeWithHidlImp(boolean shouldSucceed) { in initializeWithHidlImp() argument
92 when(mIHostapdHidlMock.initialize()).thenReturn(shouldSucceed); in initializeWithHidlImp()
93 assertEquals(mHostapdHal.initialize(), shouldSucceed); in initializeWithHidlImp() local
DSupplicantStaIfaceHalTest.java144 private void initializeWithAidlImpl(boolean shouldSucceed) { in initializeWithAidlImpl() argument
145 when(mStaIfaceHalAidlMock.initialize()).thenReturn(shouldSucceed); in initializeWithAidlImpl()
146 assertEquals(shouldSucceed, mDut.initialize()); in initializeWithAidlImpl()
154 private void initializeWithHidlImpl(boolean shouldSucceed) { in initializeWithHidlImpl() argument
156 when(mStaIfaceHalHidlMock.initialize()).thenReturn(shouldSucceed); in initializeWithHidlImpl()
157 assertEquals(shouldSucceed, mDut.initialize()); in initializeWithHidlImpl()
DHostapdHalHidlImpTest.java717 boolean shouldSucceed = !causeRegisterRemoteException && !causeRegisterFailure; in executeAndValidateInitializationSequence()
728 assertEquals(shouldSucceed, mHostapdHal.initialize()); in executeAndValidateInitializationSequence()
734 if (shouldSucceed) { in executeAndValidateInitializationSequence()
753 boolean shouldSucceed = !causeCallbackFailure; in executeAndValidateInitializationSequenceV1_1()
780 assertEquals(shouldSucceed, mHostapdHal.isInitializationComplete()); in executeAndValidateInitializationSequenceV1_1()
791 boolean shouldSucceed = !causeCallbackFailure; in executeAndValidateInitializationSequenceV1_2()
820 assertEquals(shouldSucceed, mHostapdHal.isInitializationComplete()); in executeAndValidateInitializationSequenceV1_2()
831 boolean shouldSucceed = !causeCallbackFailure; in executeAndValidateInitializationSequenceV1_3()
864 assertEquals(shouldSucceed, mHostapdHal.isInitializationComplete()); in executeAndValidateInitializationSequenceV1_3()
DHostapdHalAidlImpTest.java610 boolean shouldSucceed) throws Exception { in executeAndValidateInitializationSequence() argument
612 if (!shouldSucceed) { in executeAndValidateInitializationSequence()
628 assertTrue(mHostapdHal.startDaemon() == shouldSucceed); in executeAndValidateInitializationSequence()
634 assertEquals(shouldSucceed, mHostapdHal.isInitializationComplete()); in executeAndValidateInitializationSequence()
DSupplicantStaIfaceHalHidlImplTest.java2757 boolean shouldSucceed = in executeAndValidateInitializationSequence()
2811 assertEquals(shouldSucceed, mDut.setupIface(WLAN0_IFACE_NAME)); in executeAndValidateInitializationSequence()
2836 boolean shouldSucceed = !causeRemoteException && !getNullInterface; in executeAndValidateInitializationSequenceV1_1()
2875 assertTrue(mDut.setupIface(WLAN0_IFACE_NAME) == shouldSucceed); in executeAndValidateInitializationSequenceV1_1()
DSupplicantStaIfaceHalAidlImplTest.java2865 boolean shouldSucceed = !causeRemoteException && !getNullInterface; in executeAndValidateInitializationSequence()
2890 assertEquals(shouldSucceed, mDut.setupIface(WLAN0_IFACE_NAME)); in executeAndValidateInitializationSequence()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/
DHostsideNetworkPolicyTestCase.java94 boolean shouldSucceed) in uninstallPackage() argument
98 if (shouldSucceed) { in uninstallPackage()
104 boolean shouldSucceed) in uninstallPackage() argument
106 uninstallPackage(getTestInformation(), packageName, shouldSucceed); in uninstallPackage() local
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java126 private void initializeWithAidlImpl(boolean shouldSucceed) { in initializeWithAidlImpl() argument
127 when(mP2pIfaceHalAidlMock.initialize()).thenReturn(shouldSucceed); in initializeWithAidlImpl()
128 assertEquals(shouldSucceed, mDut.initialize()); in initializeWithAidlImpl()
136 private void initializeWithHidlImpl(boolean shouldSucceed) { in initializeWithHidlImpl() argument
138 when(mP2pIfaceHalHidlMock.initialize()).thenReturn(shouldSucceed); in initializeWithHidlImpl()
139 assertEquals(shouldSucceed, mDut.initialize()); in initializeWithHidlImpl()
DWifiP2pServiceImplTest.java6951 private void verifySetVendorElement(boolean isP2pActivated, boolean shouldSucceed, in verifySetVendorElement() argument
6977 if (shouldSucceed) { in verifySetVendorElement()
6986 if (shouldSucceed) { in verifySetVendorElement()
7003 boolean isP2pActivated = false, shouldSucceed = true; in testSetVendorElementsSuccessForIdleShutdown()
7005 verifySetVendorElement(isP2pActivated, shouldSucceed, in testSetVendorElementsSuccessForIdleShutdown()
7015 boolean isP2pActivated = true, shouldSucceed = true; in testSetVendorElementsSuccessForActiveP2p()
7017 verifySetVendorElement(isP2pActivated, shouldSucceed, in testSetVendorElementsSuccessForActiveP2p()
7027 boolean isP2pActivated = false, shouldSucceed = false; in testSetVendorElementsFailureWithoutNearbyPermission()
7029 verifySetVendorElement(isP2pActivated, shouldSucceed, in testSetVendorElementsFailureWithoutNearbyPermission()
7034 boolean shouldSucceed) throws Exception { in verifyAddExternalApprover() argument
[all …]
DSupplicantP2pIfaceHalHidlImplTest.java2792 boolean shouldSucceed = !causeRemoteException && !getZeroInterfaces && !getNullInterface; in executeAndValidateInitializationSequence()
2833 assertTrue(mDut.setupIface(mIfaceName) == shouldSucceed); in executeAndValidateInitializationSequence()
2860 boolean shouldSucceed = !causeRemoteException && !getNullInterface; in executeAndValidateInitializationSequenceV1_1()
2890 assertTrue(mDut.setupIface(mIfaceName) == shouldSucceed); in executeAndValidateInitializationSequenceV1_1()
DSupplicantP2pIfaceHalAidlImplTest.java2733 boolean shouldSucceed = !causeRemoteException && !getNullInterface; in executeAndValidateInitializationSequence()
2751 assertEquals(shouldSucceed, mDut.setupIface(mIfaceName)); in executeAndValidateInitializationSequence()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomServiceImplTest.java1060 boolean shouldSucceed) throws RemoteException { in registerPhoneAccountTestHelper() argument
1069 if (shouldSucceed) { in registerPhoneAccountTestHelper()