/frameworks/base/libs/androidfw/tests/data/system/ |
H A D | R.h | 28 foreground = 0x01010001, // default member in struct:android::R::attr
|
/frameworks/base/core/java/android/content/res/ |
H A D | StringBlock.java | 315 * @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/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 48 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument 50 int fgAlpha = Color.alpha(foreground); 53 int r = compositeComponent(Color.red(foreground), fgAlpha, 55 int g = compositeComponent(Color.green(foreground), fgAlpha, 57 int b = compositeComponent(Color.blue(foreground), fgAlpha, 85 * Returns the contrast ratio between {@code foreground} and {@code background}. 91 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { argument 96 if (Color.alpha(foreground) < 255) { 97 // If the foreground is translucent, composite the foreground ove 118 calculateMinimumAlpha(@olorInt int foreground, @ColorInt int background, float minContrastRatio) argument [all...] |
/frameworks/support/core-utils/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 47 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 D | TextureView.java | 306 public void setForeground(Drawable foreground) { argument 307 if (foreground != null && !sTextureViewIgnoresDrawableSetters) { 309 "TextureView doesn't support displaying a foreground drawable");
|
H A D | View.java | 5775 // want as long as it's a 1dp foreground-colored rectangle. 14141 * ImageView with only the foreground image. The default implementation returns true; subclasses 19131 // Step 6, draw decorations (foreground, scrollbars) 19289 // Step 6, draw decorations (foreground, scrollbars) 20067 * <li>In both background and foreground, {@link android.R.attr#state_focused} 20078 public boolean isDefaultFocusHighlightNeeded(Drawable background, Drawable foreground) { argument 20081 && (foreground == null || !foreground.isStateful() 20082 || !foreground.hasFocusStateSpecified()); 20548 * Returns the drawable used as the foreground o 20566 setForeground(Drawable foreground) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 255 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background. 325 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background. 543 public static int compositeColors(int foreground, int background) { argument 544 return ColorUtilsFromCompat.compositeColors(foreground, background); 571 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument 573 int fgAlpha = Color.alpha(foreground); 576 int r = compositeComponent(Color.red(foreground), fgAlpha, 578 int g = compositeComponent(Color.green(foreground), fgAlpha, 580 int b = compositeComponent(Color.blue(foreground), fgAlpha, 608 * Returns the contrast ratio between {@code foreground} an 614 calculateContrast(@olorInt int foreground, @ColorInt int background) argument [all...] |
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
H A D | TestService.java | 319 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/core/java/android/widget/ |
H A D | ImageView.java | 1648 public boolean isDefaultFocusHighlightNeeded(Drawable background, Drawable foreground) { argument 1651 return super.isDefaultFocusHighlightNeeded(background, foreground) && lackFocusState;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
H A D | ApplicationsState.java | 157 * This is a trick to prevent the foreground thread from being delayed. 635 boolean foreground) { 643 mRebuildForeground = foreground; 634 rebuild(AppFilter filter, Comparator<AppEntry> comparator, boolean foreground) argument
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | UserController.java | 126 // Holds the current foreground user's id 467 int restartUser(final int userId, final boolean foreground) { argument 473 mHandler.post(() -> startUser(userId, foreground)); 773 startUser(profilesToStart.get(i).id, /* foreground= */ false); 786 * <p>The user will be brought to the foreground, if {@code foreground} parameter is set. 791 * user and all profiles of this user. Sent only if {@code foreground} parameter is true 793 * user and all profiles of this user. Sent only if {@code foreground} parameter is true 795 * Sent only if {@code foreground} parameter is true 810 * @param foreground tru 813 startUser(final int userId, final boolean foreground) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActivityManager.java | 334 * a task was simply brought to the foreground. 473 /** @hide Process is hosting a foreground service due to a system binding. */ 476 /** @hide Process is hosting a foreground service. */ 504 * perspective of oom_adj receivers run at a higher foreground level, but for our 2083 * foreground. 2480 * Set to true if the service has asked to run as a foreground process. 2482 public boolean foreground; field in class:ActivityManager.RunningServiceInfo 2528 * run as a foreground process. 2574 dest.writeInt(foreground ? 1 : 0); 2591 foreground [all...] |