Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DAnimationDynamicColorsHelper.java96 public void setupAnimationDynamicColors(AnimationWrapper animationWrapper, int nightMode) { in setupAnimationDynamicColors() argument
98 () -> setupAnimationDynamicColorsInternal(animationWrapper, nightMode)); in setupAnimationDynamicColors()
102 AnimationWrapper animationWrapper, int nightMode) { in setupAnimationDynamicColorsInternal() argument
103 setupSymmetricLayerColors(animationWrapper, nightMode); in setupAnimationDynamicColorsInternal()
104 setupLightToDarkLayerColors(animationWrapper, nightMode); in setupAnimationDynamicColorsInternal()
107 private void setupLightToDarkLayerColors(AnimationWrapper animationWrapper, int nightMode) { in setupLightToDarkLayerColors() argument
108 if (nightMode == AppCompatDelegate.MODE_NIGHT_NO) { in setupLightToDarkLayerColors()
117 private void setupSymmetricLayerColors(AnimationWrapper animationWrapper, int nightMode) { in setupSymmetricLayerColors() argument
118 Map<ColorItem, ColorItem> colorMap = getColorMap(nightMode); in setupSymmetricLayerColors()
125 private Map<ColorItem, ColorItem> getColorMap(int nightMode) { in getColorMap() argument
[all …]
DSetupLayoutActivity.java103 int nightMode = mThemeHelper.getDefaultNightMode(this, getIntent()); in updateDefaultNightMode() local
105 delegate.setLocalNightMode(nightMode); in updateDefaultNightMode()
/packages/services/Car/service/src/com/android/car/
DCarNightService.java96 boolean nightMode = (Boolean) value.getValue(); in onNightModeCarPropertyEventLocked()
98 + nightMode + " at timestamp: " + mLastSensorEventTime); in onNightModeCarPropertyEventLocked()
99 setNightModeLocked(nightMode); in onNightModeCarPropertyEventLocked()
105 private void setNightModeLocked(boolean nightMode) { in setNightModeLocked() argument
106 if (nightMode) { in setNightModeLocked()
/packages/apps/Settings/src/com/android/settings/slices/
DSettingsSliceProvider.java222 final boolean nightMode = Utils.isNightMode(getContext()); in onBindSlice()
224 mNightMode = nightMode; in onBindSlice()
226 } else if (mNightMode != nightMode) { in onBindSlice()
228 mNightMode = nightMode; in onBindSlice()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DAnimationDynamicColorsHelperTest.java94 private Map<String, Integer> getUpdatedLayersForMode(int nightMode) { in getUpdatedLayersForMode() argument
98 nightMode); in getUpdatedLayersForMode() local
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivity.java550 int nightMode = getResources().getConfiguration().uiMode & UI_MODE_NIGHT_MASK;
551 analyticsTracker.logIsNightMode(nightMode == UI_MODE_NIGHT_YES);
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java146 int nightMode = configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK; in isDarkTheme() local
147 return nightMode == Configuration.UI_MODE_NIGHT_YES; in isDarkTheme()