summaryrefslogtreecommitdiff
path: root/aosp/binder_service_android.cc
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2018-06-14 01:10:09 +0200
committeralk3pInjection <webmaster@raspii.tech>2023-12-27 00:35:28 +0800
commit3821b4eeb50bdf0faf99577dcb1c0e47978e5692 (patch)
tree76c39c4476df0c7ab3660541bb983267254cb12b /aosp/binder_service_android.cc
parentb52aa7706ec32556e3749284bc52f5de9ce595c7 (diff)
update_engine: Add performance modeumineko
Author: Gabriele M <moto.falcon.git@gmail.com> Date: Thu Jun 14 01:10:09 2018 +0200 update_engine: Add performance mode Allow to move update_engine from the system-background cgroup to the foreground cgroup to speed up the installation of the updates. Change-Id: Iaa531a925f9e1a26e834d7448c4755151adcfea2 Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: Mon Mar 4 14:57:28 2019 +0100 Move performance mode to top app Change-Id: I436102b4f8d046b8f3d897882613ec46acf9e2c5 luca020400: Move to TaskProfiles API Change-Id: Id7e27b0c42d80c4a3ce1dc7f8540313a7042db53
Diffstat (limited to 'aosp/binder_service_android.cc')
-rw-r--r--aosp/binder_service_android.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/aosp/binder_service_android.cc b/aosp/binder_service_android.cc
index 84b5b7a9..c2231fb0 100644
--- a/aosp/binder_service_android.cc
+++ b/aosp/binder_service_android.cc
@@ -258,4 +258,11 @@ Status BinderUpdateEngineAndroidService::cleanupSuccessfulUpdate(
return Status::ok();
}
+Status BinderUpdateEngineAndroidService::setPerformanceMode(bool enable) {
+ brillo::ErrorPtr error;
+ if (!service_delegate_->SetPerformanceMode(enable, &error))
+ return ErrorPtrToStatus(error);
+ return Status::ok();
+}
+
} // namespace chromeos_update_engine