Home
last modified time | relevance | path

Searched refs:setPowerSave (Results 1 – 16 of 16) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java379 verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockAcquireCauseDisablePS()
389 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testHiPerfLockReleaseCauseEnablePS()
395 inOrder.verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockReleaseCauseEnablePS()
400 inOrder.verify(mClientModeImpl).setPowerSave(true); in testHiPerfLockReleaseCauseEnablePS()
412 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testHiPerfLockAcquireReleaseTwice()
419 inOrder.verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockAcquireReleaseTwice()
426 inOrder.verify(mClientModeImpl, never()).setPowerSave(anyBoolean()); in testHiPerfLockAcquireReleaseTwice()
435 inOrder.verify(mClientModeImpl, never()).setPowerSave(anyBoolean()); in testHiPerfLockAcquireReleaseTwice()
443 inOrder.verify(mClientModeImpl).setPowerSave(true); in testHiPerfLockAcquireReleaseTwice()
459 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testFullScanOnlyAcquireRelease()
[all …]
DWifiNativeTest.java632 mWifiNative.setPowerSave(WIFI_IFACE_NAME, true); in testSetPowerSaveTrue()
633 verify(mStaIfaceHal).setPowerSave(WIFI_IFACE_NAME, true); in testSetPowerSaveTrue()
641 mWifiNative.setPowerSave(WIFI_IFACE_NAME, false); in testSetPowerSaveFalse()
642 verify(mStaIfaceHal).setPowerSave(WIFI_IFACE_NAME, false); in testSetPowerSaveFalse()
DSupplicantStaIfaceHalTest.java1549 when(mISupplicantStaIfaceMock.setPowerSave(anyBoolean())) in testHandleRemoteExceptionAndDeathNotification()
1551 assertFalse(mDut.setPowerSave(WLAN0_IFACE_NAME, true)); in testHandleRemoteExceptionAndDeathNotification()
1552 verify(mISupplicantStaIfaceMock).setPowerSave(true); in testHandleRemoteExceptionAndDeathNotification()
1558 assertFalse(mDut.setPowerSave(WLAN0_IFACE_NAME, true)); in testHandleRemoteExceptionAndDeathNotification()
DClientModeImplTest.java3532 assertTrue(mCmi.setPowerSave(true)); in verifySetPowerSaveTrueSuccess()
3533 verify(mWifiNative).setPowerSave(WIFI_IFACE_NAME, true); in verifySetPowerSaveTrueSuccess()
3543 assertTrue(mCmi.setPowerSave(false)); in verifySetPowerSaveFalseSuccess()
3544 verify(mWifiNative).setPowerSave(WIFI_IFACE_NAME, false); in verifySetPowerSaveFalseSuccess()
3555 assertFalse(mCmi.setPowerSave(powerSave)); in verifySetPowerSaveFailure()
3556 verify(mWifiNative, never()).setPowerSave(anyString(), anyBoolean()); in verifySetPowerSaveFailure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerImpl.java157 setPowerSave(intent.getBooleanExtra(PowerManager.EXTRA_POWER_SAVE_MODE, false)); in onReceive()
270 setPowerSave(mPowerManager.isPowerSaveMode()); in updatePowerSave()
273 private void setPowerSave(boolean powerSave) { in setPowerSave() method in BatteryControllerImpl
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLockManager.java579 if (!mClientModeImpl.setPowerSave(true)) { in updateOpMode()
608 if (!mClientModeImpl.setPowerSave(false)) { in updateOpMode()
672 if (!mClientModeImpl.setPowerSave(!enabled)) { in setLowLatencyMode()
680 if (!mClientModeImpl.setPowerSave(!enabled)) { in setLowLatencyMode()
DWifiNative.java2056 public void setPowerSave(@NonNull String ifaceName, boolean enabled) { in setPowerSave() method in WifiNative
2057 mSupplicantStaIfaceHal.setPowerSave(ifaceName, enabled); in setPowerSave()
DClientModeImpl.java3056 setPowerSave(false); in handlePreDhcpSetup()
3078 setPowerSave(true); in handlePostDhcpSetup()
3094 public boolean setPowerSave(boolean ps) { in setPowerSave() method in ClientModeImpl
3099 mWifiNative.setPowerSave(mInterfaceName, ps); in setPowerSave()
3821 setPowerSave(true); in setupClientMode()
DSupplicantStaIfaceHal.java1618 public boolean setPowerSave(@NonNull String ifaceName, boolean enable) { in setPowerSave() method in SupplicantStaIfaceHal
1624 SupplicantStatus status = iface.setPowerSave(enable); in setPowerSave()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DBatteryMeterDrawableTest.java77 mBatteryMeter.setPowerSave(true); in testDrawNoTextIfPowerSaveEnabled()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java67 mBatteryDrawable.setPowerSave(saver); in testDrawingForTypicalValues()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pNativeTest.java261 when(mSupplicantP2pIfaceHalMock.setPowerSave(anyString(), anyBoolean())).thenReturn(true); in testSetP2pPowerSave()
263 verify(mSupplicantP2pIfaceHalMock).setPowerSave(eq(TEST_IFACE), eq(true)); in testSetP2pPowerSave()
DSupplicantP2pIfaceHalTest.java532 when(mISupplicantP2pIfaceMock.setPowerSave(eq(mIfaceName), anyBoolean())) in testSetPowerSave_success()
535 assertFalse(mDut.setPowerSave(mIfaceName, true)); in testSetPowerSave_success()
537 assertTrue(mDut.setPowerSave(mIfaceName, true)); in testSetPowerSave_success()
546 when(mISupplicantP2pIfaceMock.setPowerSave(eq(mIfaceName), anyBoolean())) in testSetPowerSave_failure()
548 assertFalse(mDut.setPowerSave(mIfaceName, true)); in testSetPowerSave_failure()
559 when(mISupplicantP2pIfaceMock.setPowerSave(eq(mIfaceName), anyBoolean())) in testSetPowerSave_exception()
561 assertFalse(mDut.setPowerSave(mIfaceName, true)); in testSetPowerSave_exception()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pNative.java408 return mSupplicantP2pIfaceHal.setPowerSave(iface, enabled); in setP2pPowerSave()
DSupplicantP2pIfaceHal.java691 public boolean setPowerSave(String groupIfName, boolean enable) { in setPowerSave() method in SupplicantP2pIfaceHal
697 result.setResult(mISupplicantP2pIface.setPowerSave(groupIfName, enable)); in setPowerSave()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java208 public void setPowerSave(boolean val) { in setPowerSave() method in BatteryMeterDrawableBase