summaryrefslogtreecommitdiff
path: root/app/src/main/java/com/draco/buoy/repositories/profiles/BatterySaverConstantsConfigProfiles.kt
blob: bae82b8a9d10859bfbc306c377ee46564d8c2ca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.draco.buoy.repositories.profiles

import com.draco.buoy.models.BatterySaverConstantsConfig
import com.draco.buoy.repositories.constants.PowerManagerLocationModes

object BatterySaverConstantsConfigProfiles {
    /**
     * Keep the system running smoothly with some idle tweaks
     */
    val LIGHT = BatterySaverConstantsConfig(
        advertiseIsEnabled = false,
        enableNightMode = false,
        launchBoostDisabled = false,
        vibrationDisabled = false,
        soundTriggerDisabled = false,
        fireWallDisabled = false,
        gpsMode = PowerManagerLocationModes.THROTTLE_SCREEN_OFF,
        forceAllAppsStandby = false,
        forceBackgroundCheck = false,
        aodDisabled = false
    )

    /**
     * Start using some mildly intrusive tweaks to save power
     */
    val MODERATE = BatterySaverConstantsConfig(
        launchBoostDisabled = false,
        vibrationDisabled = false,
        soundTriggerDisabled = false,
        fireWallDisabled = false,
        gpsMode = PowerManagerLocationModes.THROTTLE_SCREEN_OFF,
        forceAllAppsStandby = false,
        forceBackgroundCheck = false,
    )

    /**
     * Sacrifice performance for some extra battery life
     */
    val HIGH = BatterySaverConstantsConfig(
        dataSaverDisabled = false,
        adjustBrightnessDisabled = false,
        adjustBrightnessFactor = 0.75f
    )

    /**
     * The most we can possibly do to save power
     */
    val EXTREME = BatterySaverConstantsConfig(
        dataSaverDisabled = false,
        animationDisabled = true,
        adjustBrightnessDisabled = false
    )
}