Searched refs:foreground (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | FrameLayoutTest.java | 102 final BitmapDrawable foreground in testSetForegroundGravity() local 104 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity() 105 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicWidth(), mActivity); in testSetForegroundGravity() 106 assertTrue(mFrameLayout.getHeight() > foreground.getIntrinsicHeight()); in testSetForegroundGravity() 107 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity() 111 () -> mFrameLayout.setForeground(foreground)); in testSetForegroundGravity() 112 assertSame(foreground, mFrameLayout.getForeground()); in testSetForegroundGravity() 114 assertTrue(foreground.isVisible()); in testSetForegroundGravity() 115 final Rect rect = foreground.getBounds(); in testSetForegroundGravity() 126 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManager_RunningServiceInfoTest.java | 38 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/ |
D | BatterySaverBgServiceTest.java | 152 private String tryStartTestServiceAndReturnAction(String targetPackage, boolean foreground) in tryStartTestServiceAndReturnAction() argument 154 final String action = "start_service_" + getRandomInt() + "_fg=" + foreground; in tryStartTestServiceAndReturnAction() 160 .setForeground(foreground) in tryStartTestServiceAndReturnAction()
|
D | BatterySaverAlarmTest.java | 144 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/ |
D | LightBarTests.java | 277 private int mixSrcOver(int background, int foreground) { in mixSrcOver() argument 283 int fgAlpha = Color.alpha(foreground); in mixSrcOver() 284 int fgRed = Color.red(foreground); in mixSrcOver() 285 int fgGreen = Color.green(foreground); in mixSrcOver() 286 int fgBlue = Color.blue(foreground); in mixSrcOver()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 316 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/ |
D | battery_saver_cts_common.proto | 32 optional bool foreground = 1; field
|
/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 192 ForegroundColorSpan[] foreground = s.getSpans(0, s.length(), ForegroundColorSpan.class); in testStylesFromHtml() local 193 assertEquals(1, foreground.length); in testStylesFromHtml() 194 assertEquals(0xFFFF0000, foreground[0].getForegroundColor()); in testStylesFromHtml()
|