Lines Matching refs:setPowerSave
509 * Sunny day scenario for setPowerSave()
513 when(mISupplicantP2pIfaceMock.setPowerSave(eq(mIfaceName), anyBoolean()))
516 assertFalse(mDut.setPowerSave(mIfaceName, true));
518 assertTrue(mDut.setPowerSave(mIfaceName, true));
522 * Verify that setPowerSave returns false, if status is not SUCCESS.
527 when(mISupplicantP2pIfaceMock.setPowerSave(eq(mIfaceName), anyBoolean()))
529 assertFalse(mDut.setPowerSave(mIfaceName, true));
535 * Verify that setPowerSave disconnects and returns false, if HAL throws exception.
540 when(mISupplicantP2pIfaceMock.setPowerSave(eq(mIfaceName), anyBoolean()))
542 assertFalse(mDut.setPowerSave(mIfaceName, true));