Home
last modified time | relevance | path

Searched refs:accentColor (Results 1 – 12 of 12) sorted by relevance

/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/theme/
DAccentColorHelper.kt39 private var accentColor = Color.Unspecified variable
58 accentColor = checkColorValidityAndGetColor(inputColor) in <lambda>()
63 if (accentColor != Color.Unspecified) { in <lambda>()
66 if (isAccentColorBright(accentColor.luminance())) in <lambda>()
115 return accentColor in isAccentColorBright()
DAccentColorScheme.kt37 private val accentColor = accentColorHelper.getAccentColor() constant
47 return when (accentColor.isUnspecified) { in getAccentColorIfDefinedOrElse()
49 false -> accentColor in getAccentColorIfDefinedOrElse()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryWifiParser.java22 public BatteryWifiParser(int accentColor) { in BatteryWifiParser() argument
23 super(accentColor, false, 0); in BatteryWifiParser()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModelTest.java815 long accentColor = 0xFFFF0000; in testParseValuesFromPickImagesIntent_validAccentColor() local
817 intent.putExtra(MediaStore.EXTRA_PICK_IMAGES_ACCENT_COLOR, accentColor); in testParseValuesFromPickImagesIntent_validAccentColor()
823 Color.parseColor(String.format("#%06X", (0xFFFFFF & accentColor)))); in testParseValuesFromPickImagesIntent_validAccentColor()
831 long accentColor = 0xFF6; in testParseValuesFromPickImagesIntent_invalidAccentColor() local
834 intent.putExtra(MediaStore.EXTRA_PICK_IMAGES_ACCENT_COLOR, accentColor); in testParseValuesFromPickImagesIntent_invalidAccentColor()
864 for (long accentColor: accentColors) { in testParseValuesFromPickImagesIntent_accentColorsWithUnacceptedBrightness()
866 intent.putExtra(MediaStore.EXTRA_PICK_IMAGES_ACCENT_COLOR, accentColor); in testParseValuesFromPickImagesIntent_accentColorsWithUnacceptedBrightness()
871 assertWithMessage("Input accent color " + accentColor in testParseValuesFromPickImagesIntent_accentColorsWithUnacceptedBrightness()
876 + accentColor + " should be false but was true.") in testParseValuesFromPickImagesIntent_accentColorsWithUnacceptedBrightness()
884 long accentColor = 0xFFFF0000; in testParseValuesFromGetContentIntent_accentColor() local
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/color/
DColorProvider.kt311 Style.TONAL_SPOT -> intArrayOf(colorScheme.accentColor, colorScheme.accentColor) in getPresetColorPreview()
391 val lightColor = lightColorScheme.accentColor in buildPreset()
392 val darkColor = darkColorScheme.accentColor in buildPreset()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DAllAppsEduView.java254 int accentColor = Themes.getColorAccent(launcher); in init() local
258 : new int[]{ColorUtils.setAlphaComponent(accentColor, 127), in init()
259 ColorUtils.setAlphaComponent(accentColor, 0)}); in init()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/controlbar/
DControlBarMediaController.java215 ColorStateList accentColor = colors != null ? ColorStateList.valueOf( in updateViewsWithMediaSourceColors() local
220 mPlayPauseButton.setBackgroundTintList(accentColor); in updateViewsWithMediaSourceColors()
223 mSeekBar.setProgressTintList(accentColor); in updateViewsWithMediaSourceColors()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DAllSetActivity.java142 int accentColor = intent.getIntExtra( in onCreate() local
146 ((ImageView) findViewById(R.id.icon)).getDrawable().mutate().setTint(accentColor); in onCreate()
160 settings.setTextColor(accentColor); in onCreate()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/audio/media/
DMediaCardController.java261 ColorStateList accentColor = colors != null ? ColorStateList.valueOf( in updateViewsWithMediaSourceColors() local
266 mPlayPauseButton.setBackgroundTintList(accentColor); in updateViewsWithMediaSourceColors()
269 mSeekBar.setProgressTintList(accentColor); in updateViewsWithMediaSourceColors()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DThemedIconDrawable.java219 Drawable loadMonochromeDrawable(int accentColor) { in loadMonochromeDrawable() argument
221 d.setTint(accentColor); in loadMonochromeDrawable()
/packages/providers/MediaProvider/tools/photopicker/src/com/android/providers/media/tools/photopicker/
DPhotoPickerToolActivity.java213 long accentColor = Long.decode(mAccentColorText.getText().toString()); in onLaunchButtonClicked() local
214 intent.putExtra(EXTRA_PICK_IMAGES_ACCENT_COLOR, accentColor); in onLaunchButtonClicked()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DTabFragment.java409 private void setCustomPickerButtonColors(int accentColor) { in setCustomPickerButtonColors() argument
414 mAddButton.setBackgroundColor(accentColor); in setCustomPickerButtonColors()
416 mViewSelectedButton.setTextColor(accentColor); in setCustomPickerButtonColors()
417 mViewSelectedButton.setIconTint(ColorStateList.valueOf(accentColor)); in setCustomPickerButtonColors()