Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java312 when(mP2pIfaceHalAidlMock.setGroupIdle(anyString(), anyInt())).thenReturn(true); in testSetGroupIdle()
313 assertTrue(mDut.setGroupIdle(IFACE_NAME, timeout)); in testSetGroupIdle()
314 verify(mP2pIfaceHalAidlMock).setGroupIdle(eq(IFACE_NAME), eq(timeout)); in testSetGroupIdle()
DSupplicantP2pIfaceHalAidlImplTest.java583 doNothing().when(mISupplicantP2pIfaceMock).setGroupIdle(eq(mIfaceName), anyInt()); in testSetGroupIdle_success()
585 assertFalse(mDut.setGroupIdle(mIfaceName, 1)); in testSetGroupIdle_success()
587 assertTrue(mDut.setGroupIdle(mIfaceName, 1)); in testSetGroupIdle_success()
588 assertFalse(mDut.setGroupIdle(mIfaceName, -1)); in testSetGroupIdle_success()
598 .when(mISupplicantP2pIfaceMock).setGroupIdle(eq(mIfaceName), anyInt()); in testSetGroupIdle_failure()
599 assertFalse(mDut.setGroupIdle(mIfaceName, 1)); in testSetGroupIdle_failure()
611 .when(mISupplicantP2pIfaceMock).setGroupIdle(eq(mIfaceName), anyInt()); in testSetGroupIdle_exception()
612 assertFalse(mDut.setGroupIdle(mIfaceName, 1)); in testSetGroupIdle_exception()
DSupplicantP2pIfaceHalHidlImplTest.java632 when(mISupplicantP2pIfaceMock.setGroupIdle(eq(mIfaceName), anyInt())) in testSetGroupIdle_success()
635 assertFalse(mDut.setGroupIdle(mIfaceName, 1)); in testSetGroupIdle_success()
637 assertTrue(mDut.setGroupIdle(mIfaceName, 1)); in testSetGroupIdle_success()
638 assertFalse(mDut.setGroupIdle(mIfaceName, -1)); in testSetGroupIdle_success()
647 when(mISupplicantP2pIfaceMock.setGroupIdle(eq(mIfaceName), anyInt())) in testSetGroupIdle_failure()
649 assertFalse(mDut.setGroupIdle(mIfaceName, 1)); in testSetGroupIdle_failure()
660 when(mISupplicantP2pIfaceMock.setGroupIdle(eq(mIfaceName), anyInt())) in testSetGroupIdle_exception()
662 assertFalse(mDut.setGroupIdle(mIfaceName, 1)); in testSetGroupIdle_exception()
DWifiP2pNativeTest.java533 when(mSupplicantP2pIfaceHalMock.setGroupIdle(anyString(), anyInt())).thenReturn(true); in testSetP2pGroupIdle()
535 verify(mSupplicantP2pIfaceHalMock).setGroupIdle(eq(TEST_IFACE), eq(TEST_IDLE_TIME)); in testSetP2pGroupIdle()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DISupplicantP2pIfaceHal.java172 boolean setGroupIdle(String groupIfName, int timeoutInSec); in setGroupIdle() method
DSupplicantP2pIfaceHal.java334 public boolean setGroupIdle(String groupIfName, int timeoutInSec) { in setGroupIdle() method in SupplicantP2pIfaceHal
340 return mP2pIfaceHal.setGroupIdle(groupIfName, timeoutInSec); in setGroupIdle()
DWifiP2pNative.java442 return mSupplicantP2pIfaceHal.setGroupIdle(iface, time); in setP2pGroupIdle()
DSupplicantP2pIfaceHalAidlImpl.java714 public boolean setGroupIdle(String groupIfName, int timeoutInSec) { in setGroupIdle() method in SupplicantP2pIfaceHalAidlImpl
731 mISupplicantP2pIface.setGroupIdle(groupIfName, timeoutInSec); in setGroupIdle()
DSupplicantP2pIfaceHalHidlImpl.java901 public boolean setGroupIdle(String groupIfName, int timeoutInSec) { in setGroupIdle() method in SupplicantP2pIfaceHalHidlImpl
913 result.setResult(mISupplicantP2pIface.setGroupIdle(groupIfName, timeoutInSec)); in setGroupIdle()