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.java390 verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockAcquireCauseDisablePS()
400 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testHiPerfLockReleaseCauseEnablePS()
406 inOrder.verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockReleaseCauseEnablePS()
411 inOrder.verify(mClientModeImpl).setPowerSave(true); in testHiPerfLockReleaseCauseEnablePS()
423 when(mClientModeImpl.setPowerSave(anyBoolean())).thenReturn(true); in testHiPerfLockAcquireReleaseTwice()
430 inOrder.verify(mClientModeImpl).setPowerSave(false); in testHiPerfLockAcquireReleaseTwice()
437 inOrder.verify(mClientModeImpl, never()).setPowerSave(anyBoolean()); in testHiPerfLockAcquireReleaseTwice()
446 inOrder.verify(mClientModeImpl, never()).setPowerSave(anyBoolean()); in testHiPerfLockAcquireReleaseTwice()
454 inOrder.verify(mClientModeImpl).setPowerSave(true); in testHiPerfLockAcquireReleaseTwice()
470 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.java3328 assertTrue(mCmi.setPowerSave(true)); in verifySetPowerSaveTrueSuccess()
3329 verify(mWifiNative).setPowerSave(WIFI_IFACE_NAME, true); in verifySetPowerSaveTrueSuccess()
3339 assertTrue(mCmi.setPowerSave(false)); in verifySetPowerSaveFalseSuccess()
3340 verify(mWifiNative).setPowerSave(WIFI_IFACE_NAME, false); in verifySetPowerSaveFalseSuccess()
3351 assertFalse(mCmi.setPowerSave(powerSave)); in verifySetPowerSaveFailure()
3352 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.java577 if (!mClientModeImpl.setPowerSave(true)) { in updateOpMode()
606 if (!mClientModeImpl.setPowerSave(false)) { in updateOpMode()
670 if (!mClientModeImpl.setPowerSave(!enabled)) { in setLowLatencyMode()
678 if (!mClientModeImpl.setPowerSave(!enabled)) { in setLowLatencyMode()
DWifiNative.java2055 public void setPowerSave(@NonNull String ifaceName, boolean enabled) { in setPowerSave() method in WifiNative
2056 mSupplicantStaIfaceHal.setPowerSave(ifaceName, enabled); in setPowerSave()
DClientModeImpl.java3042 setPowerSave(false); in handlePreDhcpSetup()
3064 setPowerSave(true); in handlePostDhcpSetup()
3080 public boolean setPowerSave(boolean ps) { in setPowerSave() method in ClientModeImpl
3085 mWifiNative.setPowerSave(mInterfaceName, ps); in setPowerSave()
3793 setPowerSave(true); in setupClientMode()
DSupplicantStaIfaceHal.java1594 public boolean setPowerSave(@NonNull String ifaceName, boolean enable) { in setPowerSave() method in SupplicantStaIfaceHal
1600 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