/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiLockManagerTest.java | 379 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 …]
|
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 | 3532 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/ |
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 | 579 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()
|
D | WifiNative.java | 2056 public void setPowerSave(@NonNull String ifaceName, boolean enabled) { in setPowerSave() method in WifiNative 2057 mSupplicantStaIfaceHal.setPowerSave(ifaceName, enabled); in setPowerSave()
|
D | ClientModeImpl.java | 3056 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()
|
D | SupplicantStaIfaceHal.java | 1618 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/ |
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
|