Home
last modified time | relevance | path

Searched refs:SAMPLE_COLOR (Results 1 – 5 of 5) sorted by relevance

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DLogoUtilsTest.java34 private static final int SAMPLE_COLOR = Color.RED; field in LogoUtilsTest
44 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(5, 5)); in testPartiallyResizedBitmap()
58 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(1, 1)); in testPartiallyResizedElongatedBitmap()
70 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(2, 2)); in testResizeBitmapKeepRatio()
80 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(2, 2)); in testResizeBitmapNoScalingNeeded()
88 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(2, 2)); in testResizeBitmapNoIntegerRatio()
96 Drawable drawable = LogoUtils.getOrganisationLogo(getContext(), SAMPLE_COLOR); in testSaveGetOrganisationLogo()
109 expected.setColorFilter(SAMPLE_COLOR, PorterDuff.Mode.SRC_ATOP); in testDefaultOrganisationLogo()
112 Drawable actual = LogoUtils.getOrganisationLogo(getContext(), SAMPLE_COLOR); in testDefaultOrganisationLogo()
122 paint.setColor(SAMPLE_COLOR); in createSampleBitmap()
DHtmlToSpannedParserTest.java32 private static final int SAMPLE_COLOR = Color.MAGENTA; field in HtmlToSpannedParserTest
38 new HtmlToSpannedParser(new ClickableSpanFactory(SAMPLE_COLOR), in setUp()
40 url, SAMPLE_COLOR)); in setUp()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityTest.java60 private static final int SAMPLE_COLOR = Color.parseColor("#ffd40000"); field in PreProvisioningActivityTest
115 createIntent(ACTION_PROVISION_MANAGED_PROFILE, SAMPLE_COLOR)); in profileOwnerCustomColors()
118 v.assertStatusBarColorCorrect(SAMPLE_COLOR); in profileOwnerCustomColors()
119 v.assertSwiperColorCorrect(SAMPLE_COLOR); in profileOwnerCustomColors()
134 createIntent(ACTION_PROVISION_MANAGED_DEVICE, SAMPLE_COLOR)); in deviceOwnerCustomColor()
136 v.assertStatusBarColorCorrect(SAMPLE_COLOR); in deviceOwnerCustomColor()
137 v.assertDefaultLogoCorrect(SAMPLE_COLOR); in deviceOwnerCustomColor()
145 createIntent(ACTION_PROVISION_MANAGED_DEVICE, SAMPLE_COLOR).putExtra( in deviceOwnerCustomLogo()
DEncryptDeviceActivityTest.java65 private static final int SAMPLE_COLOR = Color.parseColor("#d40000"); field in EncryptDeviceActivityTest
68 .setMainColor(SAMPLE_COLOR)
73 .setMainColor(SAMPLE_COLOR)
135 new CustomizationVerifier(activity).assertStatusBarColorCorrect(SAMPLE_COLOR); in testProfileOwner()
158 new CustomizationVerifier(activity).assertStatusBarColorCorrect(SAMPLE_COLOR); in testDeviceOwner()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DCustomizationParamsTest.java49 private static final int SAMPLE_COLOR = Color.rgb(11, 22, 33); field in CustomizationParamsTest
92 ProvisioningParams params = createParams(null, SAMPLE_COLOR, null, null); in respectsMainColor()
98 assertThat(instance.statusBarColor, equalTo(SAMPLE_COLOR)); in respectsMainColor()
99 assertThat(instance.mainColor, equalTo(SAMPLE_COLOR)); in respectsMainColor()