| java.lang.Object | |
| ↳ | com.datalogic.device.configuration.EnterpriseBatterySaverProfiles.Profile.Builder |
The builder for the Profile.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new Builder for the Profile object, with the following default values:
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Create a new Builder for the Profile object, with the following default values:
Add an application to the blacklist. The application is identified by its package name. The name must be non empty.
| application | The package name of the application to add to the blacklist. |
|---|
| IllegalArgumentException | if the name is empty or null. |
|---|
Build and return a newly created Profile object. The created object is guaranteed to be valid and ready to use.
| IllegalStateException | if the name is not set or is empty. |
|---|
Control if the adaptive brightness is enabled.
| adaptiveBrightness | true to enable the adaptive brightness, false otherwise. |
|---|
Set the CPU frequency limit.
| cpuFrequencyLimit | The CPU frequency limit. Valid values are
FREQUENCY_LIMIT_NONE,
FREQUENCY_LIMIT_INTERMEDIATE,
FREQUENCY_LIMIT_AGGRESSIVE. |
|---|
| IllegalArgumentException | if the value is not one of the above. |
|---|
Control if the dark theme is enabled.
| darkThemeEnabled | true to enable the dark theme, false otherwise. |
|---|
Control if the 5G is disabled.
Control if Bluetooth is disabled.
| disableBluetooth | true to disable Bluetooth, false otherwise. |
|---|
Control if the Location service is disabled.
| disableLocation | true to disable the location service, false otherwise. |
|---|
Control if NFC is disabled.
| disableNfc | true to disable NFC, false otherwise. |
|---|
Control if the Telephony service is disabled.
| disableTelephony | true to disable the telephony service, false otherwise. |
|---|
Control if Wi-Fi is disabled.
| disableWifi | true to disable Wifi, false otherwise. |
|---|
Set the download rate limit in Kbps. Any non negative value is accepted but the following values are recommended:
| downloadRateLimitKbps | The download rate limit in Kbps. |
|---|
| IllegalArgumentException | if the value is negative. |
|---|
Set the GPU frequency limit.
| gpuFrequencyLimit | The GPU frequency limit. Values are the same as for the CPU
frequency limit (see withCpuFrequencyLimit(int)). |
|---|
| IllegalArgumentException | if the value is not one of the above. |
|---|
Control if the halves brightness adjustment is enabled.
| halvesBrightnessAdjustment | true to enable the halves brightness adjustment, false otherwise. |
|---|
Set the profile's install location.
| installLocation | The install location of the profile (see EnterpriseBatterySaverProfiles.Profile.Location).
|
|---|
Control if the mobile data is always active.
| mobileDataAlwaysActive | true to keep the mobile data always active, false otherwise. |
|---|
Set the profile name. The name must be non empty and unique among all profiles. It is used to identify the profile when creating an `ActivationItem`.
| name | The name of the profile. |
|---|
| IllegalArgumentException | if the name is empty or null. |
|---|
Control if the power save governor is used. The power save governor is a CPU governor that is optimized for power savings. It sets the CPU statically to the minimum frequency and dynamically changes the CPU frequency based on the CPU load.
| usePowerSaveGovernor | true to use the power save governor, false otherwise. |
|---|