Home
last modified time | relevance | path

Searched refs:foreground (Results 1 – 25 of 63) 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/base/services/core/java/com/android/server/location/
DAppForegroundHelper.java48 void onAppForegroundChanged(int uid, boolean foreground); in onAppForegroundChanged() argument
97 boolean foreground = isForeground(importance); in onAppForegroundChanged()
100 listener.onAppForegroundChanged(uid, foreground); in onAppForegroundChanged()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveIcon.java47 public AdaptiveIcon(Context context, Drawable foreground) { in AdaptiveIcon() argument
50 foreground in AdaptiveIcon()
55 mAdaptiveConstantState = new AdaptiveConstantState(context, foreground); in AdaptiveIcon()
/frameworks/base/core/proto/android/service/
Dprocstats_enum.proto45 // Important foreground process (ime, wallpaper, etc).
88 // Bound top foreground process; BOUND_TOP or BOUND_FOREGROUND_SERVICE in ActivityManager
90 // Important foreground process; FOREGROUND_SERVICE in ActivityManager
92 // Important foreground process ; IMPORTANT_FOREGROUND in ActivityManager
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java617 public static int compositeColors(int foreground, int background) { in compositeColors() argument
618 return ColorUtilsFromCompat.compositeColors(foreground, background); in compositeColors()
645 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
647 int fgAlpha = Color.alpha(foreground); in compositeColors()
650 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
652 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
654 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
700 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
705 if (Color.alpha(foreground) < 255) { in calculateContrast()
707 foreground = compositeColors(foreground, background); in calculateContrast()
[all …]
/frameworks/layoutlib/validator/resources/
Dstrings.properties41 question_id_message_confirm_foreground_background_colors = Are the detected foreground and backgrou…
43 question_id_message_provide_foreground_color = What is the correct foreground color?
62 …ufficient = Consider increasing the contrast ratio between this image\'s foreground and background.
70 …f_text_contrast_not_sufficient = Consider increasing this item\'s text foreground to background co…
88 …image\'s contrast ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%3…
89 …image\'s contrast ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%3…
120 …\'s text contrast ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%2…
121 …\'s text contrast ratio is %1$.2f. This ratio is based on the provided foreground color of <tt>#%2…
122 …\'s text contrast ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%2…
123 …\'s text contrast ratio is %1$.2f. This ratio is based on the provided foreground color of <tt>#%2…
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssManagerService.java316 private void onAppForegroundChanged(int uid, boolean foreground) { in onAppForegroundChanged() argument
323 foreground); in onAppForegroundChanged()
331 foreground); in onAppForegroundChanged()
339 foreground); in onAppForegroundChanged()
347 foreground); in onAppForegroundChanged()
356 boolean foreground) { in updateListenersOnForegroundChangedLocked() argument
367 if (foreground || isThrottlingExempt(callerIdentity)) { in updateListenersOnForegroundChangedLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DEventLogTags.logtags18 # An activity has been resumed into the foreground but was not already running:
20 # An activity has been resumed and is now in the foreground:
34 # An activity has been relaunched, resumed, and is now in the foreground:
/frameworks/base/libs/androidfw/tests/data/system/
DR.h28 foreground = 0x01010001, // default enumerator
/frameworks/av/services/mediaextractor/
Dmediaextractor.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/drm/drmserver/
Ddrmserver.rc5 writepid /dev/cpuset/foreground/tasks
/frameworks/av/services/mediacodec/
Dmediaswcodec.rc7 writepid /dev/cpuset/foreground/tasks
Dandroid.hardware.media.omx@1.0-service.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/apex/
Dmediaswcodec.rc7 writepid /dev/cpuset/foreground/tasks
/frameworks/av/media/codec2/hidl/services/
Dandroid.hardware.media.c2@1.1-default-service.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DIlluminationDrawable.kt175 } else if (lightSource.foreground is LightSourceDrawable) { in registerLightSource()
176 lightSources.add(lightSource.foreground as LightSourceDrawable) in registerLightSource()
/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/av/drm/mediadrm/plugins/clearkey/hidl/
Dandroid.hardware.drm@1.2-service-lazy.clearkey.rc14 writepid /dev/cpuset/foreground/tasks
Dandroid.hardware.drm@1.2-service.clearkey.rc13 writepid /dev/cpuset/foreground/tasks
Dandroid.hardware.drm@1.3-service.clearkey.rc14 writepid /dev/cpuset/foreground/tasks
Dandroid.hardware.drm@1.3-service-lazy.clearkey.rc16 writepid /dev/cpuset/foreground/tasks
/frameworks/base/core/proto/android/os/
Dbatterystats.proto655 // Mobile data traffic (total, background + foreground).
658 // Wifi data traffic (total, background + foreground).
661 // Bluetooth data traffic (total, background + foreground).
664 // In packets (total, background + foreground).
718 // Time the process was running in the foreground.
739 // top > foreground service > foreground > background > top sleeping > heavy weight > cache
743 // Time this uid has any process with a started foreground service, but
746 // Time this uid has any process in an active foreground state, but none in the
747 // "foreground service" or better state. Persistent and other foreground states go here.
750 // in the "foreground" or better state.
[all …]
/frameworks/base/core/proto/android/app/
Denums.proto62 // Process is hosting a foreground service.
64 // Process is hosting a service bound by the system or another foreground app.
79 // perspective of oom_adj, receivers run at a higher foreground level, but
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/util/
DFallbackThemeWrapperTest.java56 mThemedContext.obtainStyledAttributes(new int[] {android.R.attr.foreground}); in testThemeValueOnlyInFallback()

123