Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalAidlImplTest.java1967 doNothing().when(mISupplicantP2pIfaceMock).cancelServiceDiscovery(SERVICE_IDENTIFIER_LONG); in testCancelServiceDiscovery_success()
1969 assertFalse(mDut.cancelServiceDiscovery(SERVICE_IDENTIFIER_STR)); in testCancelServiceDiscovery_success()
1971 assertTrue(mDut.cancelServiceDiscovery(SERVICE_IDENTIFIER_STR)); in testCancelServiceDiscovery_success()
1980 doNothing().when(mISupplicantP2pIfaceMock).cancelServiceDiscovery(SERVICE_IDENTIFIER_LONG); in testCancelServiceDiscovery_invalidArguments()
1981 assertFalse(mDut.cancelServiceDiscovery(null)); in testCancelServiceDiscovery_invalidArguments()
1982 assertFalse(mDut.cancelServiceDiscovery("not a number")); in testCancelServiceDiscovery_invalidArguments()
1992 .when(mISupplicantP2pIfaceMock).cancelServiceDiscovery(anyLong()); in testCancelServiceDiscovery_failure()
1993 assertFalse(mDut.cancelServiceDiscovery(SERVICE_IDENTIFIER_STR)); in testCancelServiceDiscovery_failure()
2006 .cancelServiceDiscovery(anyLong()); in testCancelServiceDiscovery_exception()
2007 assertFalse(mDut.cancelServiceDiscovery(SERVICE_IDENTIFIER_STR)); in testCancelServiceDiscovery_exception()
DSupplicantP2pIfaceHalHidlImplTest.java2065 when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(SERVICE_IDENTIFIER_LONG)) in testCancelServiceDiscovery_success()
2068 assertFalse(mDut.cancelServiceDiscovery(SERVICE_IDENTIFIER_STR)); in testCancelServiceDiscovery_success()
2070 assertTrue(mDut.cancelServiceDiscovery(SERVICE_IDENTIFIER_STR)); in testCancelServiceDiscovery_success()
2079 when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyLong())) in testCancelServiceDiscovery_invalidArguments()
2081 assertFalse(mDut.cancelServiceDiscovery(null)); in testCancelServiceDiscovery_invalidArguments()
2082 assertFalse(mDut.cancelServiceDiscovery("not a number")); in testCancelServiceDiscovery_invalidArguments()
2091 when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyLong())) in testCancelServiceDiscovery_failure()
2093 assertFalse(mDut.cancelServiceDiscovery(SERVICE_IDENTIFIER_STR)); in testCancelServiceDiscovery_failure()
2104 when(mISupplicantP2pIfaceMock.cancelServiceDiscovery(anyLong())) in testCancelServiceDiscovery_exception()
2106 assertFalse(mDut.cancelServiceDiscovery(SERVICE_IDENTIFIER_STR)); in testCancelServiceDiscovery_exception()
DSupplicantP2pIfaceHalTest.java563 when(mP2pIfaceHalAidlMock.cancelServiceDiscovery(anyString())).thenReturn(true); in testCancelServiceDiscovery()
564 assertTrue(mDut.cancelServiceDiscovery(PARAMS)); in testCancelServiceDiscovery()
565 verify(mP2pIfaceHalAidlMock).cancelServiceDiscovery(eq(PARAMS)); in testCancelServiceDiscovery()
DWifiP2pNativeTest.java889 when(mSupplicantP2pIfaceHalMock.cancelServiceDiscovery(anyString())).thenReturn(true); in testP2pServDiscCancelReq()
892 verify(mSupplicantP2pIfaceHalMock).cancelServiceDiscovery( in testP2pServDiscCancelReq()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DISupplicantP2pIfaceHal.java402 boolean cancelServiceDiscovery(String identifier); in cancelServiceDiscovery() method
DSupplicantP2pIfaceHal.java736 public boolean cancelServiceDiscovery(String identifier) { in cancelServiceDiscovery() method in SupplicantP2pIfaceHal
742 return mP2pIfaceHal.cancelServiceDiscovery(identifier); in cancelServiceDiscovery()
DWifiP2pNative.java858 return mSupplicantP2pIfaceHal.cancelServiceDiscovery(id); in p2pServDiscCancelReq()
DSupplicantP2pIfaceHalAidlImpl.java1701 public boolean cancelServiceDiscovery(String identifier) { in cancelServiceDiscovery() method in SupplicantP2pIfaceHalAidlImpl
1721 mISupplicantP2pIface.cancelServiceDiscovery(id); in cancelServiceDiscovery()
DSupplicantP2pIfaceHalHidlImpl.java1813 public boolean cancelServiceDiscovery(String identifier) { in cancelServiceDiscovery() method in SupplicantP2pIfaceHalHidlImpl
1832 result.setResult(mISupplicantP2pIface.cancelServiceDiscovery(id)); in cancelServiceDiscovery()