Lines Matching defs:restrictBackground
289 private static final String ATTR_RESTRICT_BACKGROUND = "restrictBackground";
670 // Update the restrictBackground if battery saver is turned on
2378 public void setRestrictBackground(boolean restrictBackground) {
2386 if (restrictBackground == mRestrictBackground) {
2388 Slog.w(TAG, "setRestrictBackground: already " + restrictBackground);
2391 setRestrictBackgroundUL(restrictBackground);
2398 mHandler.obtainMessage(MSG_RESTRICT_BACKGROUND_CHANGED, restrictBackground ? 1 : 0, 0)
2405 private void setRestrictBackgroundUL(boolean restrictBackground) {
2406 Slog.d(TAG, "setRestrictBackgroundUL(): " + restrictBackground);
2408 mRestrictBackground = restrictBackground;
3546 boolean restrictBackground) {
3549 listener.onRestrictBackgroundChanged(restrictBackground);
3611 final boolean restrictBackground = msg.arg1 != 0;
3615 dispatchRestrictBackgroundChanged(listener, restrictBackground);
3984 boolean restrictBackground = result.batterySaverEnabled;
3990 // Try to turn on restrictBackground if (1) it is off and (2) batter saver need to
3996 // Try to restore the restrictBackground if it doesn't change in bsm
3998 restrictBackground = mRestrictBackgroundBeforeBsm;
4002 setRestrictBackground(restrictBackground);