Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java50 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
52 int fgAlpha = Color.alpha(foreground); in compositeColors()
55 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
57 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
59 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
96 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
101 if (Color.alpha(foreground) < 255) { in calculateContrast()
103 foreground = compositeColors(foreground, background); in calculateContrast()
106 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()
123 public static int calculateMinimumBackgroundAlpha(@ColorInt int foreground, in calculateMinimumBackgroundAlpha() argument
[all …]
/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/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/data/repository/
DWeatherEffectsRepository.kt42 var fgBitmap = _wallpaperImage.value?.foreground in <lambda>()
62 val foreground = fgBitmap!! in <lambda>() constant
65 foreground, in <lambda>()
105 val foreground = _wallpaperImage.value?.foreground in <lambda>() constant
109 success = success and (foreground?.let { in <lambda>()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/none/
DNoEffect.kt26 class NoEffect(val foreground: Bitmap, val background: Bitmap, private var surfaceSize: SizeF) : constant in com.google.android.wallpaper.weathereffects.graphics.none.NoEffect
45 foreground, in draw()
48 SizeF(foreground.width.toFloat(), foreground.height.toFloat()) in draw()
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Dutils.agsl80 * This is the normal blend mode in which the foreground is painted on top of the background based
81 * on the foreground opacity.
84 * @param f the foreground color.
85 * @param o the mask or the foreground alpha.
87 * Note: this blending function expects the foreground to have premultiplied alpha.
98 * This is the normal blend mode in which the foreground is painted on top of the background based
99 * on the foreground opacity.
102 * @param f the foreground color.
103 * @param o the mask or the foreground alpha.
105 * Note: this blending function expects the foreground to NOT have premultiplied alpha.
Dfog_effect.agsl17 uniform shader foreground;
47 * The shader is composed by two image textures (foreground and background) and four layers of
55 // Load foreground and blend it with constant solid fog color.
56 vec4 fgd = foreground.eval(fragCoord * uvScaleFgd + uvOffsetFgd);
123 /* Add third layer: foreground. */
124 // Add the foreground. Any effect from here will be in front of the subject.
127 /* Add fourth layer: foreground fog (far or 1, and close or 2). */
128 // foreground fog, layer 1.
Dsnow_accumulation.agsl17 uniform shader foreground;
34 float aN = foreground.eval(fragCoord + vec2(0., distance)).a;
35 float aS = foreground.eval(fragCoord + vec2(0., -distance)).a;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeAppForegroundHelper.java33 public void setAppForeground(int uid, boolean foreground) { in setAppForeground() argument
34 mForegroundUids.put(uid, foreground); in setAppForeground()
35 notifyAppForeground(uid, foreground); in setAppForeground()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveIcon.java48 public AdaptiveIcon(Context context, Drawable foreground) { in AdaptiveIcon() argument
49 this(context, foreground, R.dimen.dashboard_tile_foreground_image_inset); in AdaptiveIcon()
52 public AdaptiveIcon(Context context, Drawable foreground, int insetResId) { in AdaptiveIcon() argument
55 foreground in AdaptiveIcon()
59 mAdaptiveConstantState = new AdaptiveConstantState(context, foreground); in AdaptiveIcon()
/frameworks/base/services/core/java/com/android/server/location/injector/
DAppForegroundHelper.java38 void onAppForegroundChanged(int uid, boolean foreground); in onAppForegroundChanged() argument
69 protected final void notifyAppForeground(int uid, boolean foreground) { in notifyAppForeground() argument
71 listener.onAppForegroundChanged(uid, foreground); in notifyAppForeground()
DLocationUsageLogger.java54 boolean hasIntent, Geofence geofence, boolean foreground) { in logLocationApiUsage() argument
87 categorizeActivityImportance(foreground), in logLocationApiUsage()
215 private static int categorizeActivityImportance(boolean foreground) { in categorizeActivityImportance() argument
216 if (foreground) { in categorizeActivityImportance()
DSystemAppForegroundHelper.java58 boolean foreground = isForeground(importance); in onAppForegroundChanged()
59 FgThread.getHandler().post(() -> notifyAppForeground(uid, foreground)); in onAppForegroundChanged()
/frameworks/proto_logging/stats/enums/service/
Dprocstats_enum.proto46 // Process bound by top or a foreground service
48 // Processing running a foreground service.
50 // Important foreground process (ime, wallpaper, etc).
80 // Process bound by foreground service
101 // Bound top foreground process; BOUND_TOP or BOUND_FOREGROUND_SERVICE in ActivityManager
103 // Important foreground process; FOREGROUND_SERVICE in ActivityManager
105 // Important foreground process ; IMPORTANT_FOREGROUND in ActivityManager
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DContrastColorUtilTest.java187 public static void assertContrastIsWithinRange(int foreground, int background, in assertContrastIsWithinRange() argument
189 assertContrastIsAtLeast(foreground, background, minContrast); in assertContrastIsWithinRange()
190 assertContrastIsAtMost(foreground, background, maxContrast); in assertContrastIsWithinRange()
193 public static void assertContrastIsAtLeast(int foreground, int background, double minContrast) { in assertContrastIsAtLeast() argument
195 assertThat(calculateContrast(foreground, background)).isAtLeast(minContrast); in assertContrastIsAtLeast()
199 foreground, background), e); in assertContrastIsAtLeast()
203 public static void assertContrastIsAtMost(int foreground, int background, double maxContrast) { in assertContrastIsAtMost() argument
205 assertThat(calculateContrast(foreground, background)).isAtMost(maxContrast); in assertContrastIsAtMost()
209 foreground, background), e); in assertContrastIsAtMost()
/frameworks/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/
DWeatherEngine.kt95 createWeatherEffect(asset.foreground, asset.background, asset.weatherEffect) in <lambda>()
120 foreground: Bitmap, in <lambda>()
129 val rainConfig = RainEffectConfig(context.assets, foreground, background) in <lambda>()
135 context.assets, foreground, background, context.resources.displayMetrics.density in <lambda>()
141 val snowConfig = SnowEffectConfig(context, foreground, background) in <lambda>()
146 activeEffect = NoEffect(foreground, background, screenSize.toSizeF()) in <lambda>()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/rain/
DRainEffectConfig.kt38 val foreground: Bitmap, constant in com.google.android.wallpaper.weathereffects.graphics.rain.RainEffectConfig
57 foreground: Bitmap,
66 foreground,
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/snow/
DSnowEffectConfig.kt41 val foreground: Bitmap, constant in com.google.android.wallpaper.weathereffects.graphics.snow.SnowEffectConfig
62 foreground: Bitmap,
73 foreground,
DSnowEffect.kt108 snowConfig.foreground.width.toFloat(), in <lambda>()
109 snowConfig.foreground.height.toFloat() in <lambda>()
148 BitmapShader(snowConfig.foreground, Shader.TileMode.MIRROR, Shader.TileMode.MIRROR) in <lambda>()
180 BitmapShader(snowConfig.foreground, Shader.TileMode.MIRROR, Shader.TileMode.MIRROR) in <lambda>()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/
DFogEffectConfig.kt44 val foreground: Bitmap, constant in com.google.android.wallpaper.weathereffects.graphics.fog.FogEffectConfig
66 foreground: Bitmap,
78 foreground,
/frameworks/base/core/java/android/app/
DServiceStartNotAllowedException.java35 public static ServiceStartNotAllowedException newInstance(boolean foreground, in newInstance() argument
37 if (foreground) { in newInstance()
/frameworks/base/cmds/gpu_counter_producer/
Dmain.cpp112 bool foreground = false; in main() local
117 foreground = true; in main()
132 if (!foreground) { in main()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.md19 whch means it's possible for a foreground app to request a sync in another app that is either in the
23 likely not in the foreground).
27 made by foreground apps are special cased such that the resulting sync operations will be
44 meaning if the caller has a foreground activity,
48 e.g. when the caller has a foreground service, a service bound by the system of a specific kind,
111 apps. Jobs owned by foreground apps are not affected.
113 - A sync operation requested by a foreground activity will be executed immediately even if the
116 - A sync operation requested by a foreground service (or a "bound foreground" service)
/frameworks/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/provider/
DWeatherEffectsContentProvider.kt82 val foreground = uri.getQueryParameter(WallpaperInfoContract.FOREGROUND_TEXTURE_PARAM) in <lambda>() constant
90 WallpaperGenerationData.FOREGROUND_TEXTURE -> foreground in <lambda>()
100 foreground, in <lambda>()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DClockDrawableWrapper.java191 LayerDrawable foreground = (LayerDrawable) wrapper.getForeground(); in forExtras() local
192 int layerCount = foreground.getNumberOfLayers(); in forExtras()
202 foreground.setDrawable(info.secondLayerIndex, null); in forExtras()
210 info.applyTime(Calendar.getInstance(), foreground); in forExtras() local
231 LayerDrawable foreground = (LayerDrawable) getForeground(); in drawForPersistence() local
232 resetLevel(foreground, mAnimationInfo.hourLayerIndex); in drawForPersistence()
233 resetLevel(foreground, mAnimationInfo.minuteLayerIndex); in drawForPersistence()
234 resetLevel(foreground, mAnimationInfo.secondLayerIndex); in drawForPersistence()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenIconDrawableFactory.java67 Drawable foreground; in makeIconDrawable() local
73 foreground = new AnimatableIconAnimateListener(foregroundDrawable); in makeIconDrawable()
77 foreground = new ImmobileIconDrawable(foregroundDrawable, in makeIconDrawable()
82 foreground = new ImmobileIconDrawable( in makeIconDrawable()
91 return new Drawable[]{foreground, background}; in makeIconDrawable()

12345