Home
last modified time | relevance | path

Searched refs:mainColor (Results 1 – 11 of 11) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DCustomizationParams.java39 public final int mainColor; field in CustomizationParams
54 int statusBarColor, mainColor; in createInstance() local
56 if (params.mainColor != null) { in createInstance()
57 statusBarColor = mainColor = params.mainColor; in createInstance()
61 mainColor = utils.getAccentColor(context); in createInstance()
66 return new CustomizationParams(mainColor, statusBarColor, useSetupStatusBarColor, in createInstance()
70 private CustomizationParams(int mainColor, int statusBarColor, boolean useSetupStatusBarColor, in CustomizationParams() argument
72 this.mainColor = mainColor; in CustomizationParams()
DProvisioningParams.java205 public final Integer mainColor; field in ProvisioningParams
314 mainColor = builder.mMainColor; in ProvisioningParams()
355 putIntegerIfNotNull(bundle, EXTRA_PROVISIONING_MAIN_COLOR, mainColor); in toPersistableBundle()
609 public Builder setMainColor(Integer mainColor) { in setMainColor() argument
610 mMainColor = mainColor; in setMainColor()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DCustomizationParamsTest.java73 assertThat(instance.mainColor, equalTo(DEFAULT_MAIN_COLOR)); in defaultColorManagedProfile()
86 assertThat(instance.mainColor, equalTo(DEFAULT_MAIN_COLOR)); in defaultColorDeviceOwner()
99 assertThat(instance.mainColor, equalTo(SAMPLE_COLOR)); in respectsMainColor()
166 private ProvisioningParams createParams(String provisioningAction, Integer mainColor, in createParams() argument
174 if (mainColor != null) { in createParams()
175 builder.setMainColor(mainColor); in createParams()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityTest.java151 private Intent createIntent(String provisioningAction, Integer mainColor) { in createIntent() argument
154 if (mainColor != null) { in createIntent()
155 intent.putExtra(EXTRA_PROVISIONING_MAIN_COLOR, mainColor); in createIntent()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DSetupGlifLayoutActivity.java69 layout.setPrimaryColor(ColorStateList.valueOf(params.mainColor)); in initializeLayoutParams()
77 layout.setIcon(LogoUtils.getOrganisationLogo(this, params.mainColor)); in initializeLayoutParams()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DManagedProfileSettingsTask.java83 if (mProvisioningParams.mainColor != null) { in run()
86 dpm.setOrganizationColorForUser(mProvisioningParams.mainColor, userId); in run()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DWallpaperColorInfo.java71 return mExtractionInfo.mainColor; in getMainColor()
87 return mExtractionInfo.mainColor == MAIN_COLOR_DARK; in isMainColorDark()
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
DColorExtractionAlgorithm.java121 int mainColor = getColorInt(primaryIndex, h, s, l); in extractInto() local
125 ColorUtils.colorToHSL(mainColor, mTmpHSL); in extractInto()
150 return new Pair<>(mainColor, secondaryColor); in extractInto()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParser.java576 Integer mainColor = ProvisioningParams.DEFAULT_MAIN_COLOR; in parseMinimalistSupportedProvisioningDataInternal() local
579 mainColor = getIntExtraFromLongName( in parseMinimalistSupportedProvisioningDataInternal()
622 .setMainColor(mainColor) in parseMinimalistSupportedProvisioningDataInternal()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityTest.java272 private void assertColorsCorrect(Intent intent, int mainColor, int statusBarColor) in assertColorsCorrect() argument
279 customizationVerifier.assertDefaultLogoCorrect(mainColor); in assertColorsCorrect()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/
DBenefitsAnimation.java109 .findTheme(customizationParams.mainColor); in setTopInfoDrawable()