Searched defs:foreground (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/libs/androidfw/tests/data/system/
H A DR.h26 foreground = 0x01010001, // default enumerator in enum:android::R::attr::__anon1051
/frameworks/base/core/java/android/content/res/
H A DStringBlock.java315 * @param foreground True if the color will be used as the foreground color,
322 private static CharacterStyle getColor(String color, boolean foreground) { argument
332 if (foreground) {
347 if (foreground) {
/frameworks/support/core-utils/java/android/support/v4/graphics/
H A DColorUtils.java47 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument
49 int fgAlpha = Color.alpha(foreground);
52 int r = compositeComponent(Color.red(foreground), fgAlpha,
54 int g = compositeComponent(Color.green(foreground), fgAlpha,
56 int b = compositeComponent(Color.blue(foreground), fgAlpha,
84 * Returns the contrast ratio between {@code foreground} and {@code background}.
90 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { argument
95 if (Color.alpha(foreground) < 255) {
96 // If the foreground is translucent, composite the foreground ove
117 calculateMinimumAlpha(@olorInt int foreground, @ColorInt int background, float minContrastRatio) argument
[all...]
/frameworks/base/core/java/android/view/
H A DTextureView.java306 public void setForeground(Drawable foreground) { argument
307 if (foreground != null && !sTextureViewIgnoresDrawableSetters) {
309 "TextureView doesn't support displaying a foreground drawable");
H A DView.java5160 // want as long as it's a 1dp foreground-colored rectangle.
12332 * ImageView with only the foreground image. The default implementation returns true; subclasses
17195 // Step 6, draw decorations (foreground, scrollbars)
17344 // Step 6, draw decorations (foreground, scrollbars)
18472 * Returns the drawable used as the foreground of this View. The
18473 * foreground drawable, if non-null, is always drawn on top of the view's content.
18475 * @return a Drawable or null if no foreground was set
18486 * @param foreground the Drawable to be drawn on top of the children
18490 public void setForeground(Drawable foreground) { argument
18492 if (foreground
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java237 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background.
377 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument
379 int fgAlpha = Color.alpha(foreground);
382 int r = compositeComponent(Color.red(foreground), fgAlpha,
384 int g = compositeComponent(Color.green(foreground), fgAlpha,
386 int b = compositeComponent(Color.blue(foreground), fgAlpha,
414 * Returns the contrast ratio between {@code foreground} and {@code background}.
420 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { argument
425 if (Color.alpha(foreground) < 255) {
426 // If the foreground i
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DUserController.java122 // Holds the current foreground user's id
738 startUser(profilesToStart.get(i).id, /* foreground= */ false);
760 * <p>The user will be brought to the foreground, if {@code foreground} parameter is set.
765 * user and all profiles of this user. Sent only if {@code foreground} parameter is true
767 * user and all profiles of this user. Sent only if {@code foreground} parameter is true
769 * Sent only if {@code foreground} parameter is true
784 * @param foreground true if user should be brought to the foreground
787 boolean startUser(final int userId, final boolean foreground) { argument
[all...]
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
H A DTestService.java319 mForegroundThread = new RunnerThread("foreground", new Runnable() {
390 private void threadFinished(boolean foreground) { argument
392 if (foreground) {
445 void onInit(Context context, boolean foreground) { argument
576 void onInit(Context context, boolean foreground) { argument
601 void onInit(Context context, boolean foreground) { argument
621 void onInit(Context context, boolean foreground) { argument
666 void onInit(Context context, boolean foreground) { argument
684 void onInit(Context context, boolean foreground) { argument
702 void onInit(Context context, boolean foreground) { argument
724 onInit(Context context, boolean foreground) argument
746 onInit(Context context, boolean foreground) argument
768 onInit(Context context, boolean foreground) argument
790 onInit(Context context, boolean foreground) argument
812 onInit(Context context, boolean foreground) argument
831 onInit(Context context, boolean foreground) argument
851 onInit(Context context, boolean foreground) argument
871 onInit(Context context, boolean foreground) argument
892 onInit(Context context, boolean foreground) argument
912 onInit(Context context, boolean foreground) argument
933 onInit(Context context, boolean foreground) argument
953 onInit(Context context, boolean foreground) argument
973 onInit(Context context, boolean foreground) argument
996 onInit(Context context, boolean foreground) argument
1021 onInit(Context context, boolean foreground) argument
1050 onInit(Context context, boolean foreground) argument
1094 onInit(Context context, boolean foreground) argument
1141 onInit(Context context, boolean foreground) argument
1268 onInit(Context context, boolean foreground) argument
1295 onInit(Context context, boolean foreground) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DApplicationsState.java145 * This is a trick to prevent the foreground thread from being delayed.
584 boolean foreground) {
592 mRebuildForeground = foreground;
583 rebuild(AppFilter filter, Comparator<AppEntry> comparator, boolean foreground) argument
/frameworks/base/core/java/android/app/
H A DActivityManager.java258 * a task was simply brought to the foreground.
389 /** @hide Process is hosting a foreground service due to a system binding. */
392 /** @hide Process is hosting a foreground service. */
417 * perspective of oom_adj receivers run at a higher foreground level, but for our
1829 * foreground.
2133 * Set to true if the service has asked to run as a foreground process.
2135 public boolean foreground; field in class:ActivityManager.RunningServiceInfo
2181 * run as a foreground process.
2227 dest.writeInt(foreground ? 1 : 0);
2244 foreground
[all...]

Completed in 361 milliseconds