Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DFrameLayoutTest.java102 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/
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.java152 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()
DBatterySaverAlarmTest.java150 private String startService(String targetPackage, boolean foreground) in startService() argument
152 final String action = "start_service_" + getRandomInt() + "_fg=" + foreground; in startService()
158 .setForeground(foreground) in startService()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSystemPalette.java145 final int foreground = palette[shadeToArrayIndex(shades.second)]; in testContrastRatio() local
146 final double contrast = ColorUtils.calculateContrast(foreground, background); in testContrastRatio()
149 + " (#" + Integer.toHexString(foreground) + ")").that(contrast) in testContrastRatio()
155 final int foreground = palette[shadeToArrayIndex(shades.second)]; in testContrastRatio() local
156 final double contrast = ColorUtils.calculateContrast(foreground, background); in testContrastRatio()
159 + " (#" + Integer.toHexString(foreground) + ")").that(contrast) in testContrastRatio()
/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/systemui/src/android/systemui/cts/
DLightBarTests.java424 private int mixSrcOver(int background, int foreground) { in mixSrcOver() argument
430 int fgAlpha = Color.alpha(foreground); in mixSrcOver()
431 int fgRed = Color.red(foreground); in mixSrcOver()
432 int fgGreen = Color.green(foreground); in mixSrcOver()
433 int fgBlue = Color.blue(foreground); in mixSrcOver()
/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.java250 ForegroundColorSpan[] foreground = s.getSpans(0, s.length(), ForegroundColorSpan.class); in testStylesFromHtml() local
251 assertEquals(1, foreground.length); in testStylesFromHtml()
252 assertEquals(0xFFFF0000, foreground[0].getForegroundColor()); in testStylesFromHtml()
/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DTvTestBase.kt196 override fun onForegroundActivitiesChanged(pid: Int, uid: Int, foreground: Boolean) {} in onForegroundActivitiesChanged()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DAtomTests.java540 if (serviceName.equals(service.service.getClassName()) && service.foreground) { in checkIfServiceRunning()