Home
last modified time | relevance | path

Searched refs:startWpsPbc (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pNativeTest.java179 when(mSupplicantP2pIfaceHalMock.startWpsPbc(anyString(), anyString())).thenReturn(true); in testStartWpsPbc()
180 assertTrue(mWifiP2pNative.startWpsPbc(TEST_IFACE, TEST_BSSID)); in testStartWpsPbc()
181 verify(mSupplicantP2pIfaceHalMock).startWpsPbc(eq(TEST_IFACE), eq(TEST_BSSID)); in testStartWpsPbc()
DSupplicantP2pIfaceHalTest.java2102 when(mISupplicantP2pIfaceMock.startWpsPbc(eq(mIfaceName), eq(mPeerMacAddressBytes))) in testStartWpsPbc_success()
2105 assertFalse(mDut.startWpsPbc(mIfaceName, mPeerMacAddress)); in testStartWpsPbc_success()
2107 assertTrue(mDut.startWpsPbc(mIfaceName, mPeerMacAddress)); in testStartWpsPbc_success()
2116 when(mISupplicantP2pIfaceMock.startWpsPbc(anyString(), any(byte[].class))) in testStartWpsPbc_invalidArguments()
2120 assertFalse(mDut.startWpsPbc(mIfaceName, address)); in testStartWpsPbc_invalidArguments()
2123 assertFalse(mDut.startWpsPbc(null, mPeerMacAddress)); in testStartWpsPbc_invalidArguments()
2132 when(mISupplicantP2pIfaceMock.startWpsPbc(anyString(), any(byte[].class))) in testStartWpsPbc_failure()
2134 assertFalse(mDut.startWpsPbc(mIfaceName, mPeerMacAddress)); in testStartWpsPbc_failure()
2145 when(mISupplicantP2pIfaceMock.startWpsPbc(anyString(), any(byte[].class))) in testStartWpsPbc_exception()
2147 assertFalse(mDut.startWpsPbc(mIfaceName, mPeerMacAddress)); in testStartWpsPbc_exception()
DWifiP2pServiceImplTest.java2474 when(mWifiNative.startWpsPbc(anyString(), any())).thenReturn(true); in testStartWpsWithPbcSuccess()
2478 verify(mWifiNative).startWpsPbc(eq(IFACE_NAME_P2P), isNull()); in testStartWpsWithPbcSuccess()
2555 when(mWifiNative.startWpsPbc(anyString(), any())).thenReturn(false); in testStartWpsWithPbcFailureWhenNativeCallFailure()
2559 verify(mWifiNative).startWpsPbc(eq(IFACE_NAME_P2P), isNull()); in testStartWpsWithPbcFailureWhenNativeCallFailure()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java306 public boolean startWpsPbc(String iface, String bssid) { in startWpsPbc() method in WifiP2pNative
307 return mSupplicantP2pIfaceHal.startWpsPbc(iface, bssid); in startWpsPbc()
DSupplicantP2pIfaceHal.java1708 public boolean startWpsPbc(String groupIfName, String bssid) { in startWpsPbc() method in SupplicantP2pIfaceHal
1727 result.setResult(mISupplicantP2pIface.startWpsPbc(groupIfName, macAddress)); in startWpsPbc()
DWifiP2pServiceImpl.java2753 ret = mWifiNative.startWpsPbc(mGroup.getInterface(), null); in processMessage()
2883 mWifiNative.startWpsPbc(mGroup.getInterface(), null); in processMessage()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaIfaceHalTest.java1636 when(mISupplicantStaIfaceMock.startWpsPbc(any(byte[].class))).thenReturn(mStatusSuccess); in testStartWpsPbc()
1642 assertFalse(mDut.startWpsPbc(WLAN0_IFACE_NAME, bssid)); in testStartWpsPbc()
1643 verify(mISupplicantStaIfaceMock, never()).startWpsPbc(any(byte[].class)); in testStartWpsPbc()
1647 assertTrue(mDut.startWpsPbc(WLAN0_IFACE_NAME, bssid)); in testStartWpsPbc()
1648 verify(mISupplicantStaIfaceMock).startWpsPbc(eq(bssidBytes)); in testStartWpsPbc()
1650 assertTrue(mDut.startWpsPbc(WLAN0_IFACE_NAME, null)); in testStartWpsPbc()
1651 verify(mISupplicantStaIfaceMock).startWpsPbc(eq(anyBssidBytes)); in testStartWpsPbc()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceHal.java2128 public boolean startWpsPbc(@NonNull String ifaceName, String bssidStr) { in startWpsPbc() method in SupplicantStaIfaceHal
2131 return startWpsPbc(ifaceName, NativeUtil.macAddressToByteArray(bssidStr)); in startWpsPbc()
2140 private boolean startWpsPbc(@NonNull String ifaceName, byte[/* 6 */] bssid) { in startWpsPbc() method in SupplicantStaIfaceHal
2146 SupplicantStatus status = iface.startWpsPbc(bssid); in startWpsPbc()
DWifiNative.java1834 public boolean startWpsPbc(@NonNull String ifaceName, String bssid) { in startWpsPbc() method in WifiNative
1835 return mSupplicantStaIfaceHal.startWpsPbc(ifaceName, bssid); in startWpsPbc()