All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.com.android.clockwork.flags.ClockworkFlags Maven / Gradle / Ivy

Go to download

A library jar that provides APIs for Applications written for the Google Android Platform.

There is a newer version: 15-robolectric-12650502
Show newest version
package com.android.clockwork.flags;

import android.content.ContentResolver;
import android.provider.Settings;

public final class ClockworkFlags {
    private ClockworkFlags() {}

    /**
     * Enable or disable the User Absent, Touch Off Feature.
     */
    public static BooleanFlag userAbsentTouchOff(ContentResolver contentResolver) {
        return new BooleanFlag(
                contentResolver,
                Settings.Global.USER_ABSENT_TOUCH_OFF_FOR_SMALL_BATTERY_ENABLED,
                true);
    }

    /**
     * Enable or disable the User Absent, Radios Off Feature.
     */
    public static BooleanFlag userAbsentRadiosOff(ContentResolver contentResolver) {
        return new BooleanFlag(
                contentResolver,
                Settings.Global.USER_ABSENT_RADIOS_OFF_FOR_SMALL_BATTERY_ENABLED,
                true);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy