Home
last modified time | relevance | path

Searched refs:nightMode (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/android/hardware/display/
DBrightnessChangeEvent.java65 public final boolean nightMode; field in BrightnessChangeEvent
109 float powerBrightnessFactor, boolean nightMode, int colorTemperature, in BrightnessChangeEvent() argument
120 this.nightMode = nightMode; in BrightnessChangeEvent()
139 this.nightMode = other.nightMode; in BrightnessChangeEvent()
157 nightMode = source.readBoolean(); in BrightnessChangeEvent()
191 dest.writeBoolean(nightMode); in writeToParcel()
267 public Builder setNightMode(boolean nightMode) { in setNightMode() argument
268 mNightMode = nightMode; in setNightMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java97 boolean nightMode = (mContext.getResources().getConfiguration().uiMode in handleUpdateState()
105 state.secondaryLabel = mContext.getResources().getString(nightMode in handleUpdateState()
111 if (nightMode) { in handleUpdateState()
116 state.secondaryLabel = mContext.getResources().getString(nightMode in handleUpdateState()
123 state.value = nightMode; in handleUpdateState()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPaintActivity.java129 private int nightMode = Configuration.UI_MODE_NIGHT_UNDEFINED; field in PaintActivity
289 if (nightMode != newNightMode) { in refreshNightMode()
290 if (nightMode != Configuration.UI_MODE_NIGHT_UNDEFINED) { in refreshNightMode()
307 nightMode = newNightMode; in refreshNightMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java305 assertFalse(event.nightMode); in testBrightnessEvent()
336 assertTrue(event.nightMode); in testBrightnessFullPopulatedEvent()
476 assertFalse(event.nightMode); in testReadEvents()
493 assertTrue(event.nightMode); in testReadEvents()
593 assertTrue(event.nightMode); in testWriteThenRead()
641 assertTrue(event.nightMode); in testWritePrunesOldEvents()
685 assertEquals(event.nightMode, event2.nightMode); in testParcelUnParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java124 boolean nightMode = (configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK) in needsInversion()
126 if (!nightMode) { in needsInversion()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DSaveUi.java179 boolean nightMode, boolean isUpdate, boolean compatMode) { in SaveUi() argument
180 if (sVerbose) Slog.v(TAG, "nightMode: " + nightMode); in SaveUi()
181 mThemeId = nightMode ? THEME_ID_DARK : THEME_ID_LIGHT; in SaveUi()
DFillUi.java135 @NonNull Drawable serviceIcon, boolean nightMode, @NonNull Callback callback) { in FillUi() argument
136 if (sVerbose) Slog.v(TAG, "nightMode: " + nightMode); in FillUi()
137 mThemeId = nightMode ? THEME_ID_DARK : THEME_ID_LIGHT; in FillUi()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java256 boolean nightMode = (newConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in onConfigurationChanged()
258 if (nightMode != mNightMode) { in onConfigurationChanged()
259 mNightMode = nightMode; in onConfigurationChanged()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java561 out.attribute(null, ATTR_NIGHT_MODE, Boolean.toString(toWrite[i].nightMode)); in writeEventsLocked()
644 String nightMode = parser.getAttributeValue(null, ATTR_NIGHT_MODE); in readEventsLocked() local
645 builder.setNightMode(Boolean.parseBoolean(nightMode)); in readEventsLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRow.java1292 boolean nightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK)
1297 getBackgroundColorWithoutTint(), nightMode);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java2526 String nightMode = mUiModeManager == null ? "null" : mUiModeManager.getNightMode() + ""; in dump() local
2527 pw.println(" dark theme: " + nightMode + in dump()
/frameworks/base/api/
Dtest-current.txt1249 field public final boolean nightMode;
Dsystem-current.txt2437 field public final boolean nightMode;
/frameworks/base/non-updatable-api/
Dsystem-current.txt2385 field public final boolean nightMode;