Home
last modified time | relevance | path

Searched refs:setWfdDeviceInfo (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalAidlImplTest.java2314 doNothing().when(mISupplicantP2pIfaceMock).setWfdDeviceInfo(eq(mValidServiceRequestBytes)); in testSetWfdDeviceInfo_success()
2316 assertFalse(mDut.setWfdDeviceInfo(mValidServiceRequestString)); in testSetWfdDeviceInfo_success()
2318 assertTrue(mDut.setWfdDeviceInfo(mValidServiceRequestString)); in testSetWfdDeviceInfo_success()
2327 doNothing().when(mISupplicantP2pIfaceMock).setWfdDeviceInfo(any(byte[].class)); in testSetWfdDeviceInfo_invalidArguments()
2328 assertFalse(mDut.setWfdDeviceInfo(null)); in testSetWfdDeviceInfo_invalidArguments()
2329 assertFalse(mDut.setWfdDeviceInfo(mInvalidServiceRequestString)); in testSetWfdDeviceInfo_invalidArguments()
2339 .when(mISupplicantP2pIfaceMock).setWfdDeviceInfo(any(byte[].class)); in testSetWfdDeviceInfo_failure()
2340 assertFalse(mDut.setWfdDeviceInfo(mValidServiceRequestString)); in testSetWfdDeviceInfo_failure()
2352 .setWfdDeviceInfo(any(byte[].class)); in testSetWfdDeviceInfo_exception()
2353 assertFalse(mDut.setWfdDeviceInfo(mValidServiceRequestString)); in testSetWfdDeviceInfo_exception()
DSupplicantP2pIfaceHalHidlImplTest.java2453 when(mISupplicantP2pIfaceMock.setWfdDeviceInfo(eq(mValidServiceRequestBytes))) in testSetWfdDeviceInfo_success()
2456 assertFalse(mDut.setWfdDeviceInfo(mValidServiceRequestString)); in testSetWfdDeviceInfo_success()
2458 assertTrue(mDut.setWfdDeviceInfo(mValidServiceRequestString)); in testSetWfdDeviceInfo_success()
2467 when(mISupplicantP2pIfaceMock.setWfdDeviceInfo(any(byte[].class))) in testSetWfdDeviceInfo_invalidArguments()
2470 assertFalse(mDut.setWfdDeviceInfo(null)); in testSetWfdDeviceInfo_invalidArguments()
2471 assertFalse(mDut.setWfdDeviceInfo(mInvalidServiceRequestString)); in testSetWfdDeviceInfo_invalidArguments()
2480 when(mISupplicantP2pIfaceMock.setWfdDeviceInfo(any(byte[].class))) in testSetWfdDeviceInfo_failure()
2482 assertFalse(mDut.setWfdDeviceInfo(mValidServiceRequestString)); in testSetWfdDeviceInfo_failure()
2493 when(mISupplicantP2pIfaceMock.setWfdDeviceInfo(any(byte[].class))) in testSetWfdDeviceInfo_exception()
2495 assertFalse(mDut.setWfdDeviceInfo(mValidServiceRequestString)); in testSetWfdDeviceInfo_exception()
DSupplicantP2pIfaceHalTest.java641 when(mP2pIfaceHalAidlMock.setWfdDeviceInfo(anyString())).thenReturn(true); in testSetWfdDeviceInfo()
642 assertTrue(mDut.setWfdDeviceInfo(PARAMS)); in testSetWfdDeviceInfo()
643 verify(mP2pIfaceHalAidlMock).setWfdDeviceInfo(eq(PARAMS)); in testSetWfdDeviceInfo()
DWifiP2pNativeTest.java563 when(mSupplicantP2pIfaceHalMock.setWfdDeviceInfo(anyString())).thenReturn(true); in testSetWfdDeviceInfo()
564 assertTrue(mWifiP2pNative.setWfdDeviceInfo(TEST_WFD_DEVICE_INFO)); in testSetWfdDeviceInfo()
565 verify(mSupplicantP2pIfaceHalMock).setWfdDeviceInfo(eq(TEST_WFD_DEVICE_INFO)); in testSetWfdDeviceInfo()
DWifiP2pServiceImplTest.java5058 when(mWifiNative.setWfdDeviceInfo(anyString())).thenReturn(true); in testSetWfdInfoSuccessWithWfdEnabled()
5065 verify(mWifiNative).setWfdDeviceInfo(eq(mTestThisDevice.wfdInfo.getDeviceInfoHex())); in testSetWfdInfoSuccessWithWfdEnabled()
5189 when(mWifiNative.setWfdDeviceInfo(anyString())).thenReturn(false); in testSetWfdInfoFailureWithWfdEnabledWhenNativeCallFailure2()
5196 verify(mWifiNative).setWfdDeviceInfo(eq(mTestThisDevice.wfdInfo.getDeviceInfoHex())); in testSetWfdInfoFailureWithWfdEnabledWhenNativeCallFailure2()
6454 when(mWifiNative.setWfdDeviceInfo(anyString())).thenReturn(true); in testSetWfdR2InfoSuccessWithWfdEnabled()
6462 verify(mWifiNative).setWfdDeviceInfo(eq(mTestThisDevice.wfdInfo.getDeviceInfoHex())); in testSetWfdR2InfoSuccessWithWfdEnabled()
6488 when(mWifiNative.setWfdDeviceInfo(anyString())).thenReturn(true); in testSetWfdR2InfoFailureWithWfdEnabledWhenNativeCallFailure2()
6496 verify(mWifiNative).setWfdDeviceInfo(eq(mTestThisDevice.wfdInfo.getDeviceInfoHex())); in testSetWfdR2InfoFailureWithWfdEnabledWhenNativeCallFailure2()
6602 when(mWifiNative.setWfdDeviceInfo(anyString())).thenReturn(true); in testWfdInfoIsSetAtP2pEnabledStateForIdleShutdown()
6615 when(mWifiNative.setWfdDeviceInfo(anyString())).thenReturn(true); in testWfdInfoIsSetAtP2pEnabledStateForIdleShutdown()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DISupplicantP2pIfaceHal.java464 boolean setWfdDeviceInfo(String info); in setWfdDeviceInfo() method
DWifiP2pNative.java474 public boolean setWfdDeviceInfo(String hex) { in setWfdDeviceInfo() method in WifiP2pNative
475 return mSupplicantP2pIfaceHal.setWfdDeviceInfo(hex); in setWfdDeviceInfo()
DSupplicantP2pIfaceHal.java855 public boolean setWfdDeviceInfo(String info) { in setWfdDeviceInfo() method in SupplicantP2pIfaceHal
861 return mP2pIfaceHal.setWfdDeviceInfo(info); in setWfdDeviceInfo()
DSupplicantP2pIfaceHalAidlImpl.java1941 public boolean setWfdDeviceInfo(String info) { in setWfdDeviceInfo() method in SupplicantP2pIfaceHalAidlImpl
1961 mISupplicantP2pIface.setWfdDeviceInfo(wfdInfo); in setWfdDeviceInfo()
DSupplicantP2pIfaceHalHidlImpl.java2053 public boolean setWfdDeviceInfo(String info) { in setWfdDeviceInfo() method in SupplicantP2pIfaceHalHidlImpl
2072 result.setResult(mISupplicantP2pIface.setWfdDeviceInfo(wfdInfo)); in setWfdDeviceInfo()
DWifiP2pServiceImpl.java6828 if (!mWifiNative.setWfdDeviceInfo(wfdInfo.getDeviceInfoHex())) { in setWfdInfo()