/cts/tests/tests/widget/src/android/widget/cts/ |
D | FrameLayoutTest.java | 110 final BitmapDrawable foreground in testSetForegroundGravity() local 112 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicHeight(), mActivity); in testSetForegroundGravity() 113 WidgetTestUtils.assertScaledPixels(48, foreground.getIntrinsicWidth(), mActivity); in testSetForegroundGravity() 114 assertTrue(mFrameLayout.getHeight() > foreground.getIntrinsicHeight()); in testSetForegroundGravity() 115 assertTrue(mFrameLayout.getWidth() > foreground.getIntrinsicWidth()); in testSetForegroundGravity() 119 () -> mFrameLayout.setForeground(foreground)); in testSetForegroundGravity() 120 assertSame(foreground, mFrameLayout.getForeground()); in testSetForegroundGravity() 122 assertTrue(foreground.isVisible()); in testSetForegroundGravity() 123 final Rect rect = foreground.getBounds(); in testSetForegroundGravity() 134 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 | 154 private String tryStartTestServiceAndReturnAction(String targetPackage, boolean foreground) in tryStartTestServiceAndReturnAction() argument 156 final String action = "start_service_" + getRandomInt() + "_fg=" + foreground; in tryStartTestServiceAndReturnAction() 162 .setForeground(foreground) in tryStartTestServiceAndReturnAction()
|
D | BatterySaverAlarmTest.java | 151 private String startService(String targetPackage, boolean foreground) in startService() argument 153 final String action = "start_service_" + getRandomInt() + "_fg=" + foreground; in startService() 159 .setForeground(foreground) in startService()
|
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/ |
D | ActivityManagerShortFgsTest.java | 346 if (srp.foreground == null) { in assertFgsRunning() 1063 assertThat(sr.foreground.foregroundServiceType) in testTypeChange_fromShort_toAnother() 1088 assertThat(sr.foreground.foregroundServiceType) in testTypeChange_fromShort_toAnother() 1108 assertThat(sr.foreground.foregroundServiceType) in testTypeChange_fromShort_toAnother() 1141 assertThat(sr.foreground.foregroundServiceType) in testTimeoutExtension() 1173 assertThat(sr.foreground.foregroundServiceType) in testTimeoutExtension() 1185 assertThat(sr.foreground.id).isEqualTo(notificationId); in testTimeoutExtension() 1214 assertThat(sr.foreground.foregroundServiceType) in testStartForeground_onTimedOutShortService() 1264 assertThat(sr.foreground.foregroundServiceType) in testStartForeground_onTimedOutShortService()
|
/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/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 473 private int mixSrcOver(int background, int foreground) { in mixSrcOver() argument 479 int fgAlpha = Color.alpha(foreground); in mixSrcOver() 480 int fgRed = Color.red(foreground); in mixSrcOver() 481 int fgGreen = Color.green(foreground); in mixSrcOver() 482 int fgBlue = Color.blue(foreground); in mixSrcOver()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | SystemPaletteTest.kt | 162 val foreground = palette[shadeToArrayIndex(shades.second)] in <lambda>() constant 165 Hct.fromInt(foreground).tone, in <lambda>() 721 val foreground = mContext.getColor(fgRes) in <lambda>() constant 722 val contrast = ColorUtils.calculateContrast(foreground, background) in <lambda>() 747 val foreground = context.getColor(fgRes) in <lambda>() constant 749 Hct.fromInt(foreground).tone, in <lambda>()
|
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/ |
D | FgsTimeoutTest.java | 394 assertThat(sr.foreground.foregroundServiceType) in testTypeChange_fromTimeRestrictedToNormal() 407 assertThat(sr.foreground.foregroundServiceType) in testTypeChange_fromTimeRestrictedToNormal() 420 assertThat(sr.foreground.foregroundServiceType) in testTypeChange_fromTimeRestrictedToNormal() 660 if (srp.foreground == null) { in assertFgsRunning()
|
/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 | 250 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/ |
D | TvTestBase.kt | 205 override fun onForegroundActivitiesChanged(pid: Int, uid: Int, foreground: Boolean) {} in onForegroundActivitiesChanged()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | AtomTests.java | 412 if (serviceName.equals(service.service.getClassName()) && service.foreground) { in checkIfServiceRunning()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 851 field public static final int foreground = 16843017; // 0x1010109 4859 field public boolean foreground;
|