Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java313 public boolean startWpsPbc(String iface, String bssid) { in startWpsPbc() method in WifiP2pNative
314 return mSupplicantP2pIfaceHal.startWpsPbc(iface, bssid); in startWpsPbc()
DSupplicantP2pIfaceHal.java1715 public boolean startWpsPbc(String groupIfName, String bssid) { in startWpsPbc() method in SupplicantP2pIfaceHal
1734 result.setResult(mISupplicantP2pIface.startWpsPbc(groupIfName, macAddress)); in startWpsPbc()
DWifiP2pServiceImpl.java2845 ret = mWifiNative.startWpsPbc(mGroup.getInterface(), null); in processMessage()
2980 mWifiNative.startWpsPbc(mGroup.getInterface(), null); in processMessage()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pNativeTest.java200 when(mSupplicantP2pIfaceHalMock.startWpsPbc(anyString(), anyString())).thenReturn(true); in testStartWpsPbc()
201 assertTrue(mWifiP2pNative.startWpsPbc(TEST_IFACE, TEST_BSSID)); in testStartWpsPbc()
202 verify(mSupplicantP2pIfaceHalMock).startWpsPbc(eq(TEST_IFACE), eq(TEST_BSSID)); in testStartWpsPbc()
DSupplicantP2pIfaceHalTest.java2122 when(mISupplicantP2pIfaceMock.startWpsPbc(eq(mIfaceName), eq(mPeerMacAddressBytes))) in testStartWpsPbc_success()
2125 assertFalse(mDut.startWpsPbc(mIfaceName, mPeerMacAddress)); in testStartWpsPbc_success()
2127 assertTrue(mDut.startWpsPbc(mIfaceName, mPeerMacAddress)); in testStartWpsPbc_success()
2136 when(mISupplicantP2pIfaceMock.startWpsPbc(anyString(), any(byte[].class))) in testStartWpsPbc_invalidArguments()
2140 assertFalse(mDut.startWpsPbc(mIfaceName, address)); in testStartWpsPbc_invalidArguments()
2143 assertFalse(mDut.startWpsPbc(null, mPeerMacAddress)); in testStartWpsPbc_invalidArguments()
2152 when(mISupplicantP2pIfaceMock.startWpsPbc(anyString(), any(byte[].class))) in testStartWpsPbc_failure()
2154 assertFalse(mDut.startWpsPbc(mIfaceName, mPeerMacAddress)); in testStartWpsPbc_failure()
2165 when(mISupplicantP2pIfaceMock.startWpsPbc(anyString(), any(byte[].class))) in testStartWpsPbc_exception()
2167 assertFalse(mDut.startWpsPbc(mIfaceName, mPeerMacAddress)); in testStartWpsPbc_exception()
DWifiP2pServiceImplTest.java2602 when(mWifiNative.startWpsPbc(anyString(), any())).thenReturn(true); in testStartWpsWithPbcSuccess()
2606 verify(mWifiNative).startWpsPbc(eq(IFACE_NAME_P2P), isNull()); in testStartWpsWithPbcSuccess()
2686 when(mWifiNative.startWpsPbc(anyString(), any())).thenReturn(false); in testStartWpsWithPbcFailureWhenNativeCallFailure()
2690 verify(mWifiNative).startWpsPbc(eq(IFACE_NAME_P2P), isNull()); in testStartWpsWithPbcFailureWhenNativeCallFailure()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaIfaceHalTest.java1471 when(mISupplicantStaIfaceMock.startWpsPbc(any(byte[].class))).thenReturn(mStatusSuccess); in testStartWpsPbc()
1477 assertFalse(mDut.startWpsPbc(WLAN0_IFACE_NAME, bssid)); in testStartWpsPbc()
1478 verify(mISupplicantStaIfaceMock, never()).startWpsPbc(any(byte[].class)); in testStartWpsPbc()
1482 assertTrue(mDut.startWpsPbc(WLAN0_IFACE_NAME, bssid)); in testStartWpsPbc()
1483 verify(mISupplicantStaIfaceMock).startWpsPbc(eq(bssidBytes)); in testStartWpsPbc()
1485 assertTrue(mDut.startWpsPbc(WLAN0_IFACE_NAME, null)); in testStartWpsPbc()
1486 verify(mISupplicantStaIfaceMock).startWpsPbc(eq(anyBssidBytes)); in testStartWpsPbc()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceHal.java2298 public boolean startWpsPbc(@NonNull String ifaceName, String bssidStr) { in startWpsPbc() method in SupplicantStaIfaceHal
2301 return startWpsPbc(ifaceName, NativeUtil.macAddressToByteArray(bssidStr)); in startWpsPbc()
2310 private boolean startWpsPbc(@NonNull String ifaceName, byte[/* 6 */] bssid) { in startWpsPbc() method in SupplicantStaIfaceHal
2316 SupplicantStatus status = iface.startWpsPbc(bssid); in startWpsPbc()
DWifiNative.java2051 public boolean startWpsPbc(@NonNull String ifaceName, String bssid) {
2052 return mSupplicantStaIfaceHal.startWpsPbc(ifaceName, bssid);