Home
last modified time | relevance | path

Searched refs:p2pFind (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java412 public boolean p2pFind() { in p2pFind() method in WifiP2pNative
413 return p2pFind(0); in p2pFind()
424 public boolean p2pFind(int timeout) { in p2pFind() method in WifiP2pNative
DWifiP2pServiceImpl.java1708 if (mWifiNative.p2pFind(DISCOVER_TIMEOUT_S)) { in processMessage()
1733 if (mWifiNative.p2pFind(DISCOVER_TIMEOUT_S)) { in processMessage()
1774 if (mWifiNative.p2pFind(DISCOVER_TIMEOUT_S)) { in processMessage()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java1289 verify(mWifiNative, never()).p2pFind(anyInt()); in testDiscoverPeersFailureWhenNoChannelUpdated()
1304 verify(mWifiNative, never()).p2pFind(anyInt()); in testDiscoverPeersFailureWhenChannelUpdateWrongPkgName()
1320 verify(mWifiNative, never()).p2pFind(anyInt()); in testDiscoverPeersFailureWhenPermissionDenied()
1340 verify(mWifiNative, never()).p2pFind(anyInt()); in testDiscoverPeersFailureWhenLocationModeDisabled()
1352 when(mWifiNative.p2pFind(anyInt())).thenReturn(true); in testDiscoverPeersSuccess()
1355 verify(mWifiNative).p2pFind(anyInt()); in testDiscoverPeersSuccess()
1367 when(mWifiNative.p2pFind(anyInt())).thenReturn(false); in testDiscoverPeersFailureWhenNativeCallFailure()
1370 verify(mWifiNative).p2pFind(anyInt()); in testDiscoverPeersFailureWhenNativeCallFailure()
1388 verify(mWifiNative, never()).p2pFind(anyInt()); in testDiscoverServicesFailureWhenNoChannelUpdated()
1406 verify(mWifiNative, never()).p2pFind(anyInt()); in testDiscoverServicesFailureWhenChannelUpdateWrongPkgName()
[all …]
DWifiP2pNativeTest.java310 assertTrue(mWifiP2pNative.p2pFind()); in testP2pFindIndefinitely()
320 assertTrue(mWifiP2pNative.p2pFind(TEST_P2P_FIND_TIMEOUT)); in testP2pFindWithTimeout()