Lines Matching refs:Secure
28 import android.provider.Settings.Secure;
108 return Secure.getIntForUser(mContext.getContentResolver(),
109 Secure.NIGHT_DISPLAY_ACTIVATED, 0, mUserId) == 1;
119 return Secure.putIntForUser(mContext.getContentResolver(),
120 Secure.NIGHT_DISPLAY_ACTIVATED, activated ? 1 : 0, mUserId);
129 int autoMode = Secure.getIntForUser(mContext.getContentResolver(),
130 Secure.NIGHT_DISPLAY_AUTO_MODE, -1, mUserId);
133 Slog.d(TAG, "Using default value for setting: " + Secure.NIGHT_DISPLAY_AUTO_MODE);
164 return Secure.putIntForUser(mContext.getContentResolver(),
165 Secure.NIGHT_DISPLAY_AUTO_MODE, autoMode, mUserId);
173 int startTimeValue = Secure.getIntForUser(mContext.getContentResolver(),
174 Secure.NIGHT_DISPLAY_CUSTOM_START_TIME, -1, mUserId);
178 + Secure.NIGHT_DISPLAY_CUSTOM_START_TIME);
198 return Secure.putIntForUser(mContext.getContentResolver(),
199 Secure.NIGHT_DISPLAY_CUSTOM_START_TIME, startTime.toMillis(), mUserId);
207 int endTimeValue = Secure.getIntForUser(mContext.getContentResolver(),
208 Secure.NIGHT_DISPLAY_CUSTOM_END_TIME, -1, mUserId);
212 + Secure.NIGHT_DISPLAY_CUSTOM_END_TIME);
232 return Secure.putIntForUser(mContext.getContentResolver(),
233 Secure.NIGHT_DISPLAY_CUSTOM_END_TIME, endTime.toMillis(), mUserId);
243 case Secure.NIGHT_DISPLAY_ACTIVATED:
246 case Secure.NIGHT_DISPLAY_AUTO_MODE:
249 case Secure.NIGHT_DISPLAY_CUSTOM_START_TIME:
252 case Secure.NIGHT_DISPLAY_CUSTOM_END_TIME:
273 cr.registerContentObserver(Secure.getUriFor(Secure.NIGHT_DISPLAY_ACTIVATED),
275 cr.registerContentObserver(Secure.getUriFor(Secure.NIGHT_DISPLAY_AUTO_MODE),
277 cr.registerContentObserver(Secure.getUriFor(Secure.NIGHT_DISPLAY_CUSTOM_START_TIME),
279 cr.registerContentObserver(Secure.getUriFor(Secure.NIGHT_DISPLAY_CUSTOM_END_TIME),