Home
last modified time | relevance | path

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

/frameworks/base/cmds/incident_helper/testdata/
Dps.txt2 … 1 1 0 15816 2636 SyS_epoll_wait 0 S 19 0 - 0 fg 00:00:01 init
3 … 2 2 0 0 0 kthreadd 0 S 19 0 - 0 fg 00:00:00 kthreadd
4 … 499 534 1 73940 22024 futex_wait_queue_me 0 S 42 -9 2 1 fg 00:00:00 EventThread
5 …670 2004 1 43064 7272 poll_schedule_timeout 0 S 19 0 - 0 fg 00:00:00 Loc_hal_wor…
9 … 2645 2645 802 11664 2972 0 7f67a2f8b4 R 19 0 - 0 fg 00:00:00 ps
Dcpuinfo.txt13 916 916 system 18 -2 1.4 S 4.6G 404M fg system_server system_server
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java76 public static float computeContrastBetweenColors(int bg, int fg) { in computeContrastBetweenColors() argument
85 float fgR = Color.red(fg) / 255f; in computeContrastBetweenColors()
86 float fgG = Color.green(fg) / 255f; in computeContrastBetweenColors()
87 float fgB = Color.blue(fg) / 255f; in computeContrastBetweenColors()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java301 int fg = findFg ? color : other; in findContrastColor() local
303 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
308 ColorUtilsFromCompat.colorToLAB(findFg ? fg : bg, lab); in findContrastColor()
315 fg = ColorUtilsFromCompat.LABToColor(l, a, b); in findContrastColor()
319 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
337 int fg = color; in findAlphaToMeetContrast() local
339 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findAlphaToMeetContrast()
350 fg = Color.argb(alpha, r, g, b); in findAlphaToMeetContrast()
351 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findAlphaToMeetContrast()
372 int fg = findFg ? color : other; in findContrastColorAgainstDark() local
[all …]
/frameworks/base/tools/stringslint/
Dstringslint.py39 def format(fg=None, bg=None, bright=False, bold=False, dim=False, reset=False): argument
44 if not fg is None: codes.append("3%d" % (fg))
58 value = "%sLine %d: '%s':%s %s" % (format(fg=color, bold=True),
/frameworks/base/tools/apilint/
Ddeprecated_at_birth.py27 def format(fg=None, bg=None, bright=False, bold=False, dim=False, reset=False): argument
32 if not fg is None: codes.append("3%d" % (fg))
235 … dump = "%s%s:%s %s" % (format(fg=RED, bg=BLACK, bold=True), self.head, format(reset=True), msg)
238 … dump = "%s%s:%s %s" % (format(fg=YELLOW, bg=BLACK, bold=True), self.head, format(reset=True), msg)
310 print("%s Deprecated at birth %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True),
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleBadgeIconFactory.java93 CircularAdaptiveIcon(Drawable bg, Drawable fg) { in CircularAdaptiveIcon() argument
94 super(bg, fg); in CircularAdaptiveIcon()
DBubbleOverflow.kt98 val fg = InsetDrawable(overflowBtn?.iconDrawable, overflowIconInset) in updateBtnTheme() constant
100 AdaptiveIconDrawable(ColorDrawable(colorAccent), fg)).icon in updateBtnTheme()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java129 return binaryAlphaSearch(foreground, background, minContrastRatio, (fg, bg, alpha) -> { in calculateMinimumBackgroundAlpha()
134 return calculateContrast(fg, testBackground); in calculateMinimumBackgroundAlpha()
155 ContrastCalculator contrastCalculator = (fg, bg, alpha) -> { in calculateMinimumAlpha()
156 int testForeground = setAlphaComponent(fg, alpha); in calculateMinimumAlpha()
/frameworks/base/core/java/android/app/
DHomeVisibilityListener.java70 public void onForegroundActivitiesChanged(int pid, int uid, boolean fg) { in HomeVisibilityListener()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java88 boolean fg = msg.arg1 != 0;
91 if (fg) {
96 scheduleSpam(!fg);
627 void scheduleSpam(boolean fg) { in scheduleSpam() argument
629 Message msg = mHandler.obtainMessage(MSG_SPAM, fg ? 1 : 0, 0); in scheduleSpam()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DRenderInfo.kt53 val (fg, bg) = deviceColorMap.getValue(key) in lookup() constant
70 return RenderInfo(icon!!.constantState.newDrawable(context.resources), fg, bg) in lookup()
DControlViewHolder.kt286 val fg = context.resources.getColorStateList(ri.foreground, context.theme) in applyRenderInfo() constant
295 updateStatusRow(enabled, newText, ri.icon, fg, control) in applyRenderInfo()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DIconProvider.java272 Drawable fg = new InsetDrawable(d, inset); in loadPaddedDrawable() local
273 return fg; in loadPaddedDrawable()
DClockDrawableWrapper.java112 Drawable fg = themeData.mResources.getDrawable(resId).mutate(); in applyThemeData()
113 return new AdaptiveIconDrawable(bg, fg); in applyThemeData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlAdapter.kt287 val fg = context.getResources().getColorStateList(ri.foreground, context.getTheme()) in applyRenderInfo() constant
297 icon.setImageTintList(fg) in applyRenderInfo()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java2301 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg, in runTestBgCurrentDrainExemptionOnce() argument
2329 runTestBgCurrentDrainMonitorOnce(listener, stats, uids, bg, fgs, fg, cached, in runTestBgCurrentDrainExemptionOnce()
2587 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg,
2589 runTestBgCurrentDrainMonitorOnce(listener, stats, uids, bg, fgs, fg, cached, true,
2594 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg,
2600 setUidBatteryConsumptions(stats, uids, bg, fgs, fg, cached);
2605 double[] fgs, double[] fg, double[] cached) {
2608 consumers.add(mockUidBatteryConsumer(uids[i], bg[i], fgs[i], fg[i], cached[i]));
2613 private UidBatteryConsumer mockUidBatteryConsumer(int uid, double bg, double fgs, double fg,
2621 doReturn(fg).when(uidConsumer).getConsumedPower(
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java658 Drawable fg = getForeground();
659 if (fg != null) {
665 fg.setBounds(drawingBounds);
1737 Drawable fg = getForeground(); in drawableChanged() local
1739 if (fg == null) { in drawableChanged()
1745 int fop = fg.getOpacity(); in drawableChanged()
1768 Log.v(mLogTag, "Background: " + bg + ", Frame: " + fg); in drawableChanged()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java112 public void onForegroundActivitiesChanged(int pid, int uid, boolean fg) { in onStart()
/frameworks/base/services/core/java/com/android/server/app/
DGameServiceProviderInstanceImpl.java162 public void onForegroundActivitiesChanged(int pid, int uid, boolean fg) {
/frameworks/base/services/core/java/com/android/server/am/
DAppFGSTracker.java92 public void onForegroundActivitiesChanged(int pid, int uid, boolean fg) {
DActiveServices.java3595 private boolean bumpServiceExecutingLocked(ServiceRecord r, boolean fg, String why, in bumpServiceExecutingLocked() argument
3622 r.executeFg = fg; in bumpServiceExecutingLocked()
3633 psr.setExecServicesFg(psr.shouldExecServicesFg() || fg); in bumpServiceExecutingLocked()
3638 } else if (r.app != null && fg) { in bumpServiceExecutingLocked()
3656 r.executeFg |= fg; in bumpServiceExecutingLocked()
/frameworks/base/core/java/android/view/
DView.java15504 final Drawable fg = mForegroundInfo != null ? mForegroundInfo.mDrawable : null; in onVisibilityAggregated() local
15505 if (fg != null && isVisible != fg.isVisible()) { in onVisibilityAggregated()
15506 fg.setVisible(isVisible, false); in onVisibilityAggregated()
24233 final Drawable fg = mForegroundInfo != null ? mForegroundInfo.mDrawable : null; in drawableStateChanged() local
24234 if (fg != null && fg.isStateful()) { in drawableStateChanged()
24235 changed |= fg.setState(state); in drawableStateChanged()
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto6431 // FIELD: Millis since caller app's process record fg interaction
/frameworks/base/services/
Dart-profile15833 …trics/sensors/face/aidl/FaceProvider;->$r8$lambda$hOTp41xO8oKEfx7IFhOgpGK-9fg(Lcom/android/server/…