Searched refs:foreground (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/data/system/
H A DR.h28 foreground = 0x01010001, // default member in struct:android::R::attr
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DNonOverlappingLinearLayoutWithForeground.java26 * Implements foreground drawable before M and falls back to M's foreground implementation.
49 // don't need do anything, base View constructor >=M already reads the foreground if
55 new int[] { android.R.attr.foreground });
66 // From M, foreground is naturally supported.
69 // before M, do our own customized foreground draw.
94 final Drawable foreground = mForeground;
101 foreground.setBounds(selfBounds);
103 foreground.draw(canvas);
/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/support/design/src/android/support/design/internal/
H A DForegroundLinearLayout.java81 * Describes how the foreground is positioned.
83 * @return foreground gravity.
92 * Describes how the foreground is positioned. Defaults to START and TOP.
178 * Returns the drawable used as the foreground of this FrameLayout. The
179 * foreground drawable, if non-null, is always drawn on top of the children.
181 * @return A Drawable or null if no foreground was set.
205 final Drawable foreground = mForeground;
222 Gravity.apply(mForegroundGravity, foreground.getIntrinsicWidth(),
223 foreground.getIntrinsicHeight(), selfBounds, overlayBounds);
224 foreground
[all...]
/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java48 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 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/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/util/
H A DFallbackThemeWrapperTest.java59 mThemedContext.obtainStyledAttributes(new int[] {android.R.attr.foreground});
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java255 * @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/core/java/com/android/internal/widget/
H A DWatchListDecorLayout.java198 // Check against our foreground's minimum height and width
246 final Drawable foreground = getForeground();
247 if (getForegroundGravity() == Gravity.FILL && foreground != null) {
249 if (foreground.getPadding(padding)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java243 int foreground = getColorForDarkIntensity(intensity, mLightModeFillColor,
247 mDrawable.setColors(foreground, background);
248 setTextColor(foreground);
/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/base/core/java/android/widget/
H A DFrameLayout.java105 * Describes how the foreground is positioned. Defaults to START and TOP.
119 final Drawable foreground = getForeground();
120 if (getForegroundGravity() == Gravity.FILL && foreground != null) {
122 if (foreground.getPadding(padding)) {
209 // Check against our foreground's minimum height and width
H A DImageView.java1648 public boolean isDefaultFocusHighlightNeeded(Drawable background, Drawable foreground) { argument
1651 return super.isDefaultFocusHighlightNeeded(background, foreground) && lackFocusState;
/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.java5775 // 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/services/core/java/com/android/server/am/
H A DUserController.java126 // 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...]
H A DActiveServices.java165 * Information about an app that is currently running one or more foreground services.
365 // If this isn't a direct-to-foreground start, check our ability to kick off an
394 // is in the foreground passing it a pending intent to start the service when
419 // If this is not coming from a foreground caller, then we may want
488 // Show a permission review UI only for starting from a foreground app
749 // If the app was ever at the top of the screen while the foreground
774 // If the foreground service has only run while the screen is
797 if (DEBUG_FOREGROUND_SERVICE) Slog.d(TAG, "Updating foreground apps for user "
946 // If screen is turning on, then we now reset the start time of any foreground
1025 // Instant apps need permission to create foreground service
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DOnboardingFragment.java60 * are composed of background, contents and foreground.
68 * <li>{@link #onCreateForegroundView} to provide the foreground view. Foreground view has the same
671 View foreground = onCreateForegroundView(inflater, foregroundContainer);
672 if (foreground != null) {
674 foregroundContainer.addView(foreground);
856 * Called to have the inherited class create foreground view. This is optional and the fragment
857 * which doesn't need the foreground view can return {@code null}. This is called inside
860 * <p>This foreground view would have the highest z-order.
866 * @return The foreground view for the onboarding screen, or {@code null}.
H A DOnboardingSupportFragment.java63 * are composed of background, contents and foreground.
71 * <li>{@link #onCreateForegroundView} to provide the foreground view. Foreground view has the same
674 View foreground = onCreateForegroundView(inflater, foregroundContainer);
675 if (foreground != null) {
677 foregroundContainer.addView(foreground);
859 * Called to have the inherited class create foreground view. This is optional and the fragment
860 * which doesn't need the foreground view can return {@code null}. This is called inside
863 * <p>This foreground view would have the highest z-order.
869 * @return The foreground view for the onboarding screen, or {@code null}.
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp558 // current format in the foreground
1291 // cause a portion or all of the foreground displayFrame
1293 Rectangle foreground(foregroundFormat, startDim, startDim);
1294 foreground.displayFrame.left += 5;
1295 foreground.displayFrame.top += 5;
1296 foreground.displayFrame.right += 5;
1297 foreground.displayFrame.bottom += 5;
1299 rectList.push_back(foreground);
/frameworks/base/services/core/java/com/android/server/
H A DLocationManagerService.java322 // listen for background/foreground changes
327 boolean foreground = isImportanceForeground(importance);
335 && record.mIsForegroundUid != foreground) {
337 + (foreground ? "foreground" : "background)"));
338 record.mIsForegroundUid = foreground;
354 + " is now " + (foreground ? "foreground" : "background)"));
355 if (foreground || isThrottlingExemptLocked(entry.getValue())) {
368 + (foreground
[all...]
/frameworks/base/core/java/android/text/
H A DHtml.java1160 Foreground foreground = getLast(text, Foreground.class);
1161 if (foreground != null) {
1162 setSpanFromMark(text, foreground,
1163 new ForegroundColorSpan(foreground.mForegroundColor));
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DListRowPresenterTest.java126 Drawable foreground = getForeground(view);
128 foreground instanceof ColorDrawable
129 ? ((ColorDrawable) foreground).getColor() : Color.TRANSPARENT);
366 // supports foreground
391 // supports foreground
416 // supports foreground
441 // supports foreground
466 // supports foreground
491 // supports foreground
516 // supports foreground
[all...]
/frameworks/base/core/java/android/app/
H A DActivityManager.java334 * 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...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DApplicationsState.java157 * 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

Completed in 2272 milliseconds

12