Home
last modified time | relevance | path

Searched refs:foreground (Results 1 – 25 of 101) sorted by relevance

12345

/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java390 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/support/v4/java/android/support/v4/graphics/
DColorUtils.java47 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
49 int fgAlpha = Color.alpha(foreground); in compositeColors()
52 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
54 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
56 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
90 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
95 if (Color.alpha(foreground) < 255) { in calculateContrast()
97 foreground = compositeColors(foreground, background); in calculateContrast()
100 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()
117 public static int calculateMinimumAlpha(@ColorInt int foreground, @ColorInt int background, in calculateMinimumAlpha() argument
[all …]
/frameworks/support/design/src/android/support/design/internal/
DForegroundLinearLayout.java195 final Drawable foreground = mForeground; in draw() local
212 Gravity.apply(mForegroundGravity, foreground.getIntrinsicWidth(), in draw()
213 foreground.getIntrinsicHeight(), selfBounds, overlayBounds); in draw()
214 foreground.setBounds(overlayBounds); in draw()
217 foreground.draw(canvas); in draw()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DNonOverlappingLinearLayoutWithForeground.java56 new int[] { android.R.attr.foreground }); in NonOverlappingLinearLayoutWithForeground()
94 final Drawable foreground = mForeground; in draw() local
101 foreground.setBounds(selfBounds); in draw()
103 foreground.draw(canvas); in draw()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java363 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
365 int fgAlpha = Color.alpha(foreground); in compositeColors()
368 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
370 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors()
372 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
406 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
411 if (Color.alpha(foreground) < 255) { in calculateContrast()
413 foreground = compositeColors(foreground, background); in calculateContrast()
416 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()
/frameworks/base/docs/html/guide/topics/connectivity/nfc/
Dadvanced-nfc.jd14 <li><a href="#foreground-dispatch">Using the Foreground Dispatch System</a></li>
20 writing to NFC tags, and foreground dispatching, which allows an application in the foreground to
220 <h2 id="foreground-dispatch">Using the Foreground Dispatch System</h2>
222 <p>The foreground dispatch system allows an activity to intercept an intent and claim
225 intents to your application. To enable the foreground dispatch system:</p>
239 <li>Declare intent filters to handle the intents that you want to intercept. The foreground
242 not match, the foreground dispatch system falls back to the intent dispatch system.
271 foreground dispatch when the activity loses ({@link android.app.Activity#onPause onPause()})
274 the main thread and only when the activity is in the foreground (calling in {@link
/frameworks/base/docs/html/guide/topics/processes/
Dprocess-lifecycle.jd41 <li>A <strong>foreground process</strong> is one that is required for
43 cause its containing process to be considered foreground in different
44 ways. A process is considered to be in the foreground if any of the
67 that is visible to the user on-screen but not in the foreground (its
69 occur, for example, if the foreground Activity is displayed as a dialog
72 required to keep all foreground processes running.
81 running unless there is not enough memory to retain all foreground and visible process.
/frameworks/base/docs/html/preview/features/
Ddata-saver.jd45 apps to use less data in the foreground wherever possible. Users can
55 user has enabled Data Saver and make an effort to limit foreground and
85 usage in the foreground and gracefully handle restrictions to background
95 still make an effort to limit foreground and background data usage.
118 // the app should also use less data in the foreground.
122 // the app should use less data in the foreground and background.
/frameworks/base/libs/androidfw/tests/data/system/
DR.h26 foreground = 0x01010001, // default enumerator
/frameworks/av/services/mediaextractor/
Dmediaextractor.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/services/mediadrm/
Dmediadrmserver.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/services/mediacodec/
Dmediacodec.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/drm/drmserver/
Ddrmserver.rc5 writepid /dev/cpuset/foreground/tasks
/frameworks/native/services/surfaceflinger/
Dsurfaceflinger.rc6 writepid /sys/fs/cgroup/stune/foreground/tasks
/frameworks/av/media/mediaserver/
Dmediaserver.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/camera/cameraserver/
Dcameraserver.rc6 writepid /dev/cpuset/foreground/tasks
/frameworks/av/media/audioserver/
Daudioserver.rc7 writepid /dev/cpuset/foreground/tasks
/frameworks/base/services/core/java/com/android/server/am/
DEventLogTags.logtags26 # An activity has been resumed into the foreground but was not already running:
28 # An activity has been resumed and is now in the foreground:
52 # An activity has been relaunched, resumed, and is now in the foreground:
/frameworks/base/core/java/android/widget/
DFrameLayout.java119 final Drawable foreground = getForeground(); in setForegroundGravity() local
120 if (getForegroundGravity() == Gravity.FILL && foreground != null) { in setForegroundGravity()
122 if (foreground.getPadding(padding)) { in setForegroundGravity()
/frameworks/base/docs/html-intl/intl/ja/preview/features/
Ddata-saver.jd118 // the app should also use less data in the foreground.
122 // the app should use less data in the foreground and background.
/frameworks/base/docs/html-intl/intl/ko/preview/features/
Ddata-saver.jd118 // the app should also use less data in the foreground.
122 // the app should use less data in the foreground and background.
/frameworks/base/docs/html-intl/intl/zh-cn/preview/features/
Ddata-saver.jd118 // the app should also use less data in the foreground.
122 // the app should use less data in the foreground and background.
/frameworks/base/docs/html/guide/components/
Dprocesses-and-threads.jd91 process is considered to be in the foreground if any of the following conditions are true:</p>
101 <li>It hosts a {@link android.app.Service} that's running "in the foreground"&mdash;the
112 <p>Generally, only a few foreground processes exist at any given time. They are killed only as
114 point, the device has reached a memory paging state, so killing some foreground processes is
118 <p>A process that doesn't have any foreground components, but still can
123 <li>It hosts an {@link android.app.Activity} that is not in the foreground, but is still
125 This might occur, for example, if the foreground activity started a dialog, which allows the
128 <li>It hosts a {@link android.app.Service} that's bound to a visible (or foreground)
133 is required to keep all foreground processes running. </p>
142 to retain them along with all foreground and visible processes. </p>
[all …]
/frameworks/base/core/java/android/content/res/
DStringBlock.java322 private static CharacterStyle getColor(String color, boolean foreground) { in getColor() argument
332 if (foreground) { in getColor()
347 if (foreground) { in getColor()
/frameworks/base/core/java/android/view/
DTextureView.java292 public void setForeground(Drawable foreground) { in setForeground() argument
293 if (foreground != null && !sTextureViewIgnoresDrawableSetters) { in setForeground()

12345