/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 390 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 …]
|
D | WifiNativeTest.java | 632 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()
|
D | SupplicantStaIfaceHalTest.java | 1549 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()
|
D | ClientModeImplTest.java | 3328 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/ |
D | BatteryControllerImpl.java | 157 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/ |
D | WifiLockManager.java | 577 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()
|
D | WifiNative.java | 2055 public void setPowerSave(@NonNull String ifaceName, boolean enabled) { in setPowerSave() method in WifiNative 2056 mSupplicantStaIfaceHal.setPowerSave(ifaceName, enabled); in setPowerSave()
|
D | ClientModeImpl.java | 3042 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()
|
D | SupplicantStaIfaceHal.java | 1594 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/ |
D | BatteryMeterDrawableTest.java | 77 mBatteryMeter.setPowerSave(true); in testDrawNoTextIfPowerSaveEnabled()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/graph/ |
D | BatteryMeterDrawableBaseTest.java | 67 mBatteryDrawable.setPowerSave(saver); in testDrawingForTypicalValues()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pNativeTest.java | 261 when(mSupplicantP2pIfaceHalMock.setPowerSave(anyString(), anyBoolean())).thenReturn(true); in testSetP2pPowerSave() 263 verify(mSupplicantP2pIfaceHalMock).setPowerSave(eq(TEST_IFACE), eq(true)); in testSetP2pPowerSave()
|
D | SupplicantP2pIfaceHalTest.java | 532 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/ |
D | WifiP2pNative.java | 408 return mSupplicantP2pIfaceHal.setPowerSave(iface, enabled); in setP2pPowerSave()
|
D | SupplicantP2pIfaceHal.java | 691 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/ |
D | BatteryMeterDrawableBase.java | 208 public void setPowerSave(boolean val) { in setPowerSave() method in BatteryMeterDrawableBase
|