Home
last modified time | relevance | path

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

123

/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java390 private void threadFinished(boolean foreground) { in threadFinished() argument
392 if (foreground) { in threadFinished()
445 void onInit(Context context, boolean foreground) { in onInit() argument
576 void onInit(Context context, boolean foreground) { in onInit() argument
601 void onInit(Context context, boolean foreground) { in onInit() argument
621 void onInit(Context context, boolean foreground) { in onInit() argument
666 void onInit(Context context, boolean foreground) { in onInit() argument
684 void onInit(Context context, boolean foreground) { in onInit() argument
702 void onInit(Context context, boolean foreground) { in onInit() argument
724 void onInit(Context context, boolean foreground) { in onInit() argument
[all …]
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java48 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
50 int fgAlpha = Color.alpha(foreground); in compositeColors()
53 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
55 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
57 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
91 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
96 if (Color.alpha(foreground) < 255) { in calculateContrast()
98 foreground = compositeColors(foreground, background); in calculateContrast()
101 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()
118 public static int calculateMinimumBackgroundAlpha(@ColorInt int foreground, in calculateMinimumBackgroundAlpha() argument
[all …]
/frameworks/support/compat/src/main/java/androidx/core/graphics/
DColorUtils.java52 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
54 int fgAlpha = Color.alpha(foreground); in compositeColors()
57 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
59 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
61 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
91 public static Color compositeColors(@NonNull Color foreground, @NonNull Color background) { in compositeColors() argument
92 if (!Objects.equals(foreground.getModel(), background.getModel())) { in compositeColors()
94 "Color models must match (" + foreground.getModel() + " vs. " in compositeColors()
98 Color s = Objects.equals(background.getColorSpace(), foreground.getColorSpace()) in compositeColors()
99 ? foreground in compositeColors()
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DNonOverlappingLinearLayoutWithForeground.java55 new int[] { android.R.attr.foreground }); in NonOverlappingLinearLayoutWithForeground()
94 final Drawable foreground = mForeground; in draw() local
101 foreground.setBounds(selfBounds); in draw()
103 foreground.draw(canvas); in draw()
/frameworks/av/services/mediaanalytics/
Dmediametrics.rc6 writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
/frameworks/av/media/mediaserver/
Dmediaserver.rc6 writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
/frameworks/av/media/audioserver/
Daudioserver.rc7 writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java618 public static int compositeColors(int foreground, int background) { in compositeColors() argument
619 return ColorUtilsFromCompat.compositeColors(foreground, background); in compositeColors()
646 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
648 int fgAlpha = Color.alpha(foreground); in compositeColors()
651 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
653 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
655 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
689 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
694 if (Color.alpha(foreground) < 255) { in calculateContrast()
696 foreground = compositeColors(foreground, background); in calculateContrast()
[all …]
/frameworks/base/libs/androidfw/tests/data/system/
DR.h28 foreground = 0x01010001, // default enumerator
/frameworks/av/services/mediadrm/
Dmediadrmserver.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/services/mediaextractor/
Dmediaextractor.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/drm/drmserver/
Ddrmserver.rc5 writepid /dev/cpuset/foreground/tasks
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
Dandroid.hardware.drm@1.1-service.clearkey.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/services/mediacodec/
Dandroid.hardware.media.omx@1.0-service.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/base/core/java/com/android/internal/widget/
DWatchListDecorLayout.java246 final Drawable foreground = getForeground(); in setForegroundGravity() local
247 if (getForegroundGravity() == Gravity.FILL && foreground != null) { in setForegroundGravity()
249 if (foreground.getPadding(padding)) { in setForegroundGravity()
/frameworks/base/core/proto/android/app/
Denums.proto59 // Process is hosting a foreground service.
61 // Process is hosting a foreground service due to a system binding.
76 // perspective of oom_adj, receivers run at a higher foreground level, but
/frameworks/base/core/proto/android/os/
Dbatterystats.proto651 // Mobile data traffic (total, background + foreground).
654 // Wifi data traffic (total, background + foreground).
657 // Bluetooth data traffic (total, background + foreground).
660 // In packets (total, background + foreground).
714 // Time the process was running in the foreground.
735 // top > foreground service > foreground > background > top sleeping > heavy weight > cache
739 // Time this uid has any process with a started foreground service, but
742 // Time this uid has any process in an active foreground state, but none in the
743 // "foreground service" or better state. Persistent and other foreground states go here.
746 // in the "foreground" or better state.
[all …]
/frameworks/native/services/surfaceflinger/
Dsurfaceflinger.rc6 writepid /dev/stune/foreground/tasks
/frameworks/base/core/java/android/widget/
DFrameLayout.java119 final Drawable foreground = getForeground(); in setForegroundGravity() local
120 if (getForegroundGravity() == Gravity.FILL && foreground != null) { in setForegroundGravity()
122 if (foreground.getPadding(padding)) { in setForegroundGravity()
/frameworks/base/core/proto/android/net/
Dnetworkrequest.proto60 // NET_CAPABILITY_FOREGROUND capability. A network with no foreground
62 // background requests and loses its last foreground request to a
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java560 int restartUser(final int userId, final boolean foreground) { in restartUser() argument
566 mHandler.post(() -> startUser(userId, foreground)); in restartUser()
876 boolean startUser(final int userId, final boolean foreground) {
877 return startUser(userId, foreground, null);
911 final boolean foreground,
923 Slog.i(TAG, "Starting userid:" + userId + " fg:" + foreground);
932 if (foreground) {
941 if (foreground && userInfo.isManagedProfile()) {
946 if (foreground && mUserSwitchUiEnabled) {
969 mHandler.post(() -> startUser(userId, foreground, unlockListener));
[all …]
DEventLogTags.logtags26 # An activity has been resumed into the foreground but was not already running:
28 # An activity has been resumed and is now in the foreground:
52 # An activity has been relaunched, resumed, and is now in the foreground:
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/util/
DFallbackThemeWrapperTest.java59 mThemedContext.obtainStyledAttributes(new int[] {android.R.attr.foreground}); in testThemeValueOnlyInFallback()
/frameworks/base/core/java/android/content/res/
DStringBlock.java322 private static CharacterStyle getColor(String color, boolean foreground) { in getColor() argument
332 if (foreground) { in getColor()
347 if (foreground) { in getColor()
/frameworks/base/core/java/android/view/
DTextureView.java306 public void setForeground(Drawable foreground) { in setForeground() argument
307 if (foreground != null && !sTextureViewIgnoresDrawableSetters) { in setForeground()

123