/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/support/compat/src/main/java/androidx/core/graphics/ |
H A D | ColorUtils.java | 52 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument 54 int fgAlpha = Color.alpha(foreground); 57 int r = compositeComponent(Color.red(foreground), fgAlpha, 59 int g = compositeComponent(Color.green(foreground), fgAlpha, 61 int b = compositeComponent(Color.blue(foreground), fgAlpha, 72 * If the two colors have different color spaces, the foreground color is converted to the 91 public static Color compositeColors(@NonNull Color foreground, @NonNull Color background) { argument 92 if (!Objects.equals(foreground.getModel(), background.getModel())) { 94 "Color models must match (" + foreground.getModel() + " vs. " 98 Color s = Objects.equals(background.getColorSpace(), foreground 158 calculateContrast(@olorInt int foreground, @ColorInt int background) argument 185 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 | 6073 // want as long as it's a 1dp foreground-colored rectangle. 14997 * ImageView with only the foreground image. The default implementation returns true; subclasses 20219 // Step 6, draw decorations (foreground, scrollbars) 20375 // Step 6, draw decorations (foreground, scrollbars) 21215 * <li>In both background and foreground, {@link android.R.attr#state_focused} 21226 public boolean isDefaultFocusHighlightNeeded(Drawable background, Drawable foreground) { argument 21229 && (foreground == null || !foreground.isStateful() 21230 || !foreground.hasFocusStateSpecified()); 21696 * Returns the drawable used as the foreground o 21714 setForeground(Drawable foreground) argument [all...] |
/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 calculateMinimumBackgroundAlpha(@olorInt int foreground, @ColorInt int background, float minContrastRatio) argument 143 calculateMinimumAlpha(@olorInt int foreground, @ColorInt int background, float minContrastRatio) argument 175 binaryAlphaSearch(@olorInt int foreground, @ColorInt int background, float minContrastRatio, ContrastCalculator calculator) argument 662 calculateContrast(int foreground, int background, int alpha) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 295 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background. 365 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background. 618 public static int compositeColors(int foreground, int background) { argument 619 return ColorUtilsFromCompat.compositeColors(foreground, background); 646 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument 648 int fgAlpha = Color.alpha(foreground); 651 int r = compositeComponent(Color.red(foreground), fgAlpha, 653 int g = compositeComponent(Color.green(foreground), fgAlpha, 655 int b = compositeComponent(Color.blue(foreground), fgAlpha, 683 * Returns the contrast ratio between {@code foreground} an 689 calculateContrast(@olorInt int foreground, @ColorInt int background) argument [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | SignalDrawable.java | 201 public void setColors(int background, int foreground) { argument 203 mForegroundPaint.setColor(foreground);
|
/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 | 1641 public boolean isDefaultFocusHighlightNeeded(Drawable background, Drawable foreground) { argument 1644 return super.isDefaultFocusHighlightNeeded(background, foreground) && lackFocusState;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
H A D | ApplicationsState.java | 196 * This is a trick to prevent the foreground thread from being delayed. 708 boolean foreground) { 716 mRebuildForeground = foreground; 707 rebuild(AppFilter filter, Comparator<AppEntry> comparator, boolean foreground) argument
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | AppStateTracker.java | 69 * - UID foreground/active state 110 /** UIDs that are in the foreground. */ 280 * This is called when the foreground state changed for a UID. 370 * Called when an app goes into forced app standby and its foreground 396 * Called when a UID comes into the foreground or the background. 400 public void onUidForeground(int uid, boolean foreground) { argument 1083 * @return whether foreground services should be suppressed in the background 1158 * @return whether a UID is in the foreground or not.
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | UserController.java | 173 // Holds the current foreground user's id. Use mLock when updating 177 // once target user goes into the foreground. Use mLock when updating 560 int restartUser(final int userId, final boolean foreground) { argument 566 mHandler.post(() -> startUser(userId, foreground)); 866 startUser(profilesToStart.get(i).id, /* foreground= */ false); 876 boolean startUser(final int userId, final boolean foreground) { argument 877 return startUser(userId, foreground, null); 882 * <p>The user will be brought to the foreground, if {@code foreground} parameter is set. 887 * user and all profiles of this user. Sent only if {@code foreground} paramete 909 startUser( final int userId, final boolean foreground, @Nullable IProgressListener unlockListener) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActivityManager.java | 335 * a task was simply brought to the foreground. 495 /** @hide Process is hosting a foreground service. */ 498 /** @hide Process is hosting a foreground service due to a system binding. */ 519 * perspective of oom_adj, receivers run at a higher foreground level, but for our 1964 * foreground. 2331 * Set to true if the service has asked to run as a foreground process. 2333 public boolean foreground; field in class:ActivityManager.RunningServiceInfo 2379 * run as a foreground process. 2425 dest.writeInt(foreground ? 1 : 0); 2442 foreground [all...] |