Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/hardware/display/
DBrightnessChangeEvent.java68 public final boolean nightMode; field in BrightnessChangeEvent
129 float batteryLevel, float powerBrightnessFactor, boolean nightMode, in BrightnessChangeEvent() argument
142 this.nightMode = nightMode; in BrightnessChangeEvent()
165 this.nightMode = other.nightMode; in BrightnessChangeEvent()
187 nightMode = source.readBoolean(); in BrightnessChangeEvent()
225 dest.writeBoolean(nightMode); in writeToParcel()
249 + ", nightMode: " + nightMode in toString()
339 public Builder setNightMode(boolean nightMode) { in setNightMode() argument
340 mNightMode = nightMode; in setNightMode()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapperTest.kt88 val inputModel = createModel(nightMode = true, powerSave = true) in mapsEnabledDataToUnavailableStateWhenOnPowerSave()
108 val inputModel = createModel(nightMode = false, powerSave = true) in mapsDisabledDataToUnavailableStateWhenOnPowerSave()
128 val inputModel = createModel(nightMode = false, powerSave = false) in mapsDisabledDataToInactiveState()
165 val inputModel = createModel(nightMode = true, powerSave = false) in mapsEnabledDataToOnIconState()
184 val inputModel = createModel(nightMode = false, powerSave = false) in mapsDisabledDataToOffIconState()
203 val inputModel = createModel(nightMode = true, powerSave = false) in supportsClickAndLongClickActionsWhenNotInPowerSaveInNightMode()
224 val inputModel = createModel(nightMode = true, powerSave = true) in supportsOnlyLongClickActionWhenUnavailableInPowerSaveInNightMode()
247 val inputModel = createModel(nightMode = false, powerSave = false) in supportsClickAndLongClickActionsWhenNotInPowerSaveNotInNightMode()
268 val inputModel = createModel(nightMode = false, powerSave = true) in supportsOnlyClickActionWhenUnavailableInPowerSaveNotInNightMode()
312 nightMode = true, in secondaryLabelCorrectWhenInNightModeNotInPowerSaveModeLocationEnabledUiModeIsNightAuto()
[all …]
DUiModeNightTileDataInteractorTest.kt89 whenever(uiModeManager.nightMode).thenReturn(expectedNightMode) in <lambda>()
108 verify(uiModeManager).nightMode in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java123 boolean nightMode = (mContext.getResources().getConfiguration().uiMode in handleUpdateState()
131 state.secondaryLabel = mContext.getResources().getString(nightMode in handleUpdateState()
140 if (nightMode) { in handleUpdateState()
145 state.secondaryLabel = mContext.getResources().getString(nightMode in handleUpdateState()
150 state.secondaryLabel = mContext.getResources().getString(nightMode in handleUpdateState()
159 state.value = nightMode; in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/uimodenight/
DUiModeNightTileModelHelper.kt30 nightMode: Boolean = false, in createModel()
41 nightMode, in createModel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/
DUiModeNightTileDataInteractor.kt89 val uiMode = uiModeManager.nightMode in createModel()
90 val nightMode = in createModel() constant
102 nightMode, in createModel()
/frameworks/base/services/core/java/com/android/server/wm/
DPackageConfigurationUpdaterImpl.java57 public ActivityTaskManagerInternal.PackageConfigurationUpdater setNightMode(int nightMode) { in setNightMode() argument
59 mNightMode = nightMode; in setNightMode()
DConfigurationContainer.java646 public boolean applyAppSpecificConfig(Integer nightMode, LocaleList locales, in applyAppSpecificConfig() argument
649 boolean newNightModeSet = (nightMode != null) && setOverrideNightMode(mRequestsTmpConfig, in applyAppSpecificConfig()
650 nightMode); in applyAppSpecificConfig()
665 private boolean setOverrideNightMode(Configuration requestsTmpConfig, int nightMode) { in setOverrideNightMode() argument
668 final int validNightMode = nightMode & Configuration.UI_MODE_NIGHT_MASK; in setOverrideNightMode()
DActivityTaskManagerInternal.java690 public PackageConfig(Integer nightMode, LocaleList locales, in PackageConfig() argument
692 mNightMode = nightMode; in PackageConfig()
715 PackageConfigurationUpdater setNightMode(int nightMode); in setNightMode() argument
DPackageConfigPersister.java108 Integer nightMode = null; in loadUserPackages() local
127 nightMode = Integer.parseInt(attrValue); in loadUserPackages()
141 initRecord.mNightMode = nightMode; in loadUserPackages()
DWindowProcessController.java1027 void updateAppSpecificSettingsForAllActivitiesInPackage(String packageName, Integer nightMode, in updateAppSpecificSettingsForAllActivitiesInPackage() argument
1034 && r.applyAppSpecificConfig(nightMode, localesOverride, gender) in updateAppSpecificSettingsForAllActivitiesInPackage()
/frameworks/base/core/java/android/service/notification/
DZenDeviceEffects.java124 boolean dimWallpaper, boolean nightMode, boolean disableAutoBrightness, in ZenDeviceEffects() argument
130 mNightMode = nightMode; in ZenDeviceEffects()
446 public Builder setShouldUseNightMode(boolean nightMode) { in setShouldUseNightMode() argument
447 mNightMode = nightMode; in setShouldUseNightMode()
/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/locales/
DFakePackageConfigurationUpdater.java39 public PackageConfigurationUpdater setNightMode(int nightMode) { in setNightMode() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DUiModeNightTileTest.kt131 `when`(uiModeManager.nightMode).thenReturn(UiModeManager.MODE_NIGHT_YES) in setNightModeOn()
136 `when`(uiModeManager.nightMode).thenReturn(UiModeManager.MODE_NIGHT_NO) in setNightModeOff()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java130 boolean nightMode = (configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK) in needsInversion()
132 if (!nightMode) { in needsInversion()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessTrackerTest.java321 assertFalse(event.nightMode); in testBrightnessEvent()
412 assertTrue(event.nightMode); in testBrightnessFullPopulatedEvent()
535 assertFalse(event.nightMode); in testReadEvents()
554 assertTrue(event.nightMode); in testReadEvents()
661 assertTrue(event.nightMode); in testWriteThenRead()
718 assertEquals(event.nightMode, event2.nightMode); in testParcelUnParcel()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java776 boolean nightMode = false; in testColors_ensureColors_dayMode_producesValidPalette()
777 resolveColorsInNightMode(nightMode, c, Color.BLUE, colorized); in testColors_ensureColors_dayMode_producesValidPalette()
785 boolean nightMode = true; in testColors_ensureColors_nightMode_producesValidPalette()
786 resolveColorsInNightMode(nightMode, c, Color.BLUE, colorized); in testColors_ensureColors_nightMode_producesValidPalette()
1841 private void resolveColorsInNightMode(boolean nightMode, Notification.Colors c, int rawColor, in resolveColorsInNightMode() argument
1843 runInNightMode(nightMode, in resolveColorsInNightMode()
1844 () -> c.resolvePalette(mContext, rawColor, colorized, nightMode)); in resolveColorsInNightMode()
1847 private void runInNightMode(boolean nightMode, Runnable task) { in runInNightMode() argument
1848 final String initialNightMode = changeNightMode(nightMode); in runInNightMode()
1853 assertEquals(nightMode, isNightMode); in runInNightMode()
[all …]
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DDialogFillUi.java111 boolean nightMode, @NonNull UiCallback callback) { in DialogFillUi() argument
112 if (sVerbose) Slog.v(TAG, "nightMode: " + nightMode); in DialogFillUi()
113 mThemeId = nightMode ? THEME_ID_DARK : THEME_ID_LIGHT; in DialogFillUi()
DSaveUi.java184 boolean nightMode, boolean isUpdate, boolean compatMode, boolean showServiceIcon) { in SaveUi() argument
186 Slogf.v(TAG, "nightMode: %b displayId: %d", nightMode, context.getDisplayId()); in SaveUi()
188 mThemeId = nightMode ? THEME_ID_DARK : THEME_ID_LIGHT; in SaveUi()
DFillUi.java147 @NonNull Drawable serviceIcon, boolean nightMode, int maxInputLengthForAutofill, in FillUi() argument
150 Slogf.v(TAG, "nightMode: %b displayId: %d", nightMode, context.getDisplayId()); in FillUi()
152 mThemeId = nightMode ? THEME_ID_DARK : THEME_ID_LIGHT; in FillUi()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashScreenExitAnimationUtils.java239 int nightMode = configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK; in isDarkTheme() local
240 return nightMode == Configuration.UI_MODE_NIGHT_YES; in isDarkTheme()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java323 boolean nightMode = (newConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in onConfigurationChanged()
325 if (nightMode != mNightMode) { in onConfigurationChanged()
326 mNightMode = nightMode; in onConfigurationChanged()
/frameworks/base/core/java/android/app/
DNotification.java13703 boolean isColorized, boolean nightMode) { in resolvePalette() argument
13706 && mPaletteIsForNightMode == nightMode) { in resolvePalette()
13711 mPaletteIsForNightMode = nightMode; in resolvePalette()
13723 ContrastColorUtil.resolvePrimaryColor(ctx, mBackgroundColor, nightMode), in resolvePalette()
13726 ContrastColorUtil.resolveSecondaryColor(ctx, mBackgroundColor, nightMode), in resolvePalette()
13752 mBackgroundColor = getColor(ta, 0, nightMode ? Color.BLACK : Color.WHITE); in resolvePalette()
13765 mBackgroundColor, nightMode); in resolvePalette()
13770 ctx, mBackgroundColor, nightMode); in resolvePalette()
13774 ctx, mBackgroundColor, nightMode); in resolvePalette()
13788 ctx, mTertiaryAccentColor, nightMode), 0xFF); in resolvePalette()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java624 out.attributeBoolean(null, ATTR_NIGHT_MODE, toWrite[i].nightMode); in writeEventsLocked()

12