/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 50 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/ |
D | TestService.java | 390 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/ |
D | WeatherEffectsRepository.kt | 42 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/ |
D | NoEffect.kt | 26 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/ |
D | utils.agsl | 80 * 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.
|
D | fog_effect.agsl | 17 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.
|
D | snow_accumulation.agsl | 17 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/ |
D | FakeAppForegroundHelper.java | 33 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/ |
D | AdaptiveIcon.java | 48 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/ |
D | AppForegroundHelper.java | 38 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()
|
D | LocationUsageLogger.java | 54 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()
|
D | SystemAppForegroundHelper.java | 58 boolean foreground = isForeground(importance); in onAppForegroundChanged() 59 FgThread.getHandler().post(() -> notifyAppForeground(uid, foreground)); in onAppForegroundChanged()
|
/frameworks/proto_logging/stats/enums/service/ |
D | procstats_enum.proto | 46 // 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/ |
D | ContrastColorUtilTest.java | 187 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/ |
D | WeatherEngine.kt | 95 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/ |
D | RainEffectConfig.kt | 38 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/ |
D | SnowEffectConfig.kt | 41 val foreground: Bitmap, constant in com.google.android.wallpaper.weathereffects.graphics.snow.SnowEffectConfig 62 foreground: Bitmap, 73 foreground,
|
D | SnowEffect.kt | 108 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/ |
D | FogEffectConfig.kt | 44 val foreground: Bitmap, constant in com.google.android.wallpaper.weathereffects.graphics.fog.FogEffectConfig 66 foreground: Bitmap, 78 foreground,
|
/frameworks/base/core/java/android/app/ |
D | ServiceStartNotAllowedException.java | 35 public static ServiceStartNotAllowedException newInstance(boolean foreground, in newInstance() argument 37 if (foreground) { in newInstance()
|
/frameworks/base/cmds/gpu_counter_producer/ |
D | main.cpp | 112 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/ |
D | SyncManager.md | 19 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/ |
D | WeatherEffectsContentProvider.kt | 82 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/ |
D | ClockDrawableWrapper.java | 191 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/ |
D | SplashscreenIconDrawableFactory.java | 67 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()
|