![JAR search and dependency download from the Maven repository](/logo.png)
src.com.android.clockwork.flags.ClockworkFlags Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-all Show documentation
Show all versions of android-all Show documentation
A library jar that provides APIs for Applications written for the Google Android Platform.
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