Home
last modified time | relevance | path

Searched refs:foreground (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DFrameLayoutTest.java101 final BitmapDrawable foreground in testSetForegroundGravity() local
103 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity()
104 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicWidth(), mActivity); in testSetForegroundGravity()
105 assertTrue(mFrameLayout.getHeight() > foreground.getIntrinsicHeight()); in testSetForegroundGravity()
106 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity()
110 () -> mFrameLayout.setForeground(foreground)); in testSetForegroundGravity()
111 assertSame(foreground, mFrameLayout.getForeground()); in testSetForegroundGravity()
113 assertTrue(foreground.isVisible()); in testSetForegroundGravity()
114 final Rect rect = foreground.getBounds(); in testSetForegroundGravity()
125 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity()
[all …]
/cts/tests/app/src/android/app/cts/
DActivityManager_RunningServiceInfoTest.java38 mRunningServiceInfo.foreground = true; in setUp()
65 assertTrue(values.foreground); in testWriteToParcel()
85 assertTrue(values.foreground); in testReadFromParcel()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverBgServiceTest.java151 private String tryStartTestServiceAndReturnAction(String targetPackage, boolean foreground) in tryStartTestServiceAndReturnAction() argument
153 final String action = "start_service_" + getRandomInt() + "_fg=" + foreground; in tryStartTestServiceAndReturnAction()
159 .setForeground(foreground) in tryStartTestServiceAndReturnAction()
DBatterySaverAlarmTest.java144 private String startService(String targetPackage, boolean foreground) in startService() argument
146 final String action = "start_service_" + getRandomInt() + "_fg=" + foreground; in startService()
152 .setForeground(foreground) in startService()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java270 private int mixSrcOver(int background, int foreground) { in mixSrcOver() argument
276 int fgAlpha = Color.alpha(foreground); in mixSrcOver()
277 int fgRed = Color.red(foreground); in mixSrcOver()
278 int fgGreen = Color.green(foreground); in mixSrcOver()
279 int fgBlue = Color.blue(foreground); in mixSrcOver()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java316 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
318 int fgAlpha = Color.alpha(foreground); in compositeColors()
321 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
323 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
325 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
/cts/tests/tests/batterysaving/common/proto/
Dbattery_saver_cts_common.proto32 optional bool foreground = 1; field
/cts/tests/tests/text/src/android/text/cts/
DHtmlTest.java191 ForegroundColorSpan[] foreground = s.getSpans(0, s.length(), ForegroundColorSpan.class); in testStylesFromHtml() local
192 assertEquals(1, foreground.length); in testStylesFromHtml()
193 assertEquals(0xFFFF0000, foreground[0].getForegroundColor()); in testStylesFromHtml()