Home
last modified time | relevance | path

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

12

/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/src/com/android/systemui/battery/unified/
DBatteryDrawableState.kt81 val fg: Int constant
107 override val fg = Color.BLACK constant
126 override val fg = Color.WHITE constant
DBatteryLayersDrawable.kt132 frame.setTint(colorInfo.fg) in updateColorProfile()
134 textOnly.setTint(colorInfo.fg) in updateColorProfile()
135 spaceSharingText.setTint(colorInfo.fg) in updateColorProfile()
136 attribution.setTint(colorInfo.fg) in updateColorProfile()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java77 public static float computeContrastBetweenColors(int bg, int fg) { in computeContrastBetweenColors() argument
86 float fgR = Color.red(fg) / 255f; in computeContrastBetweenColors()
87 float fgG = Color.green(fg) / 255f; in computeContrastBetweenColors()
88 float fgB = Color.blue(fg) / 255f; in computeContrastBetweenColors()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java389 int fg = findFg ? color : other; in findContrastColor() local
391 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
396 ColorUtilsFromCompat.colorToLAB(findFg ? fg : bg, lab); in findContrastColor()
403 fg = ColorUtilsFromCompat.LABToColor(l, a, b); in findContrastColor()
407 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
425 int fg = color; in findAlphaToMeetContrast() local
427 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findAlphaToMeetContrast()
438 fg = Color.argb(alpha, r, g, b); in findAlphaToMeetContrast()
439 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findAlphaToMeetContrast()
460 int fg = findFg ? color : other; in findContrastColorAgainstDark() local
[all …]
/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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBubbleIconFactory.java132 CircularAdaptiveIcon(Drawable bg, Drawable fg) { in CircularAdaptiveIcon() argument
133 super(bg, fg); in CircularAdaptiveIcon()
DIconProvider.java272 Drawable fg = new InsetDrawable(d, inset); in loadPaddedDrawable() local
273 return fg; in loadPaddedDrawable()
DClockDrawableWrapper.java114 Drawable fg = themeData.mResources.getDrawable(resId).mutate(); in applyThemeData()
115 return new AdaptiveIconDrawable(bg, fg); in applyThemeData()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleOverflow.kt144 val fg = InsetDrawable(overflowBtn?.iconDrawable, overflowIconInset) in updateBtnTheme() constant
147 .createBadgedIconBitmap(AdaptiveIconDrawable(ColorDrawable(colorAccent), fg)) 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/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/core/java/android/app/
DHomeVisibilityListener.java77 public void onForegroundActivitiesChanged(int pid, int uid, boolean fg) { in HomeVisibilityListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DRenderInfo.kt53 val (fg, bg) = deviceColorMap.getValue(key) in lookup() constant
71 checkNotNull(icon?.constantState).newDrawable(context.resources), fg, bg) in lookup()
DControlViewHolder.kt288 val fg = context.resources.getColorStateList(ri.foreground, context.theme) in applyRenderInfo() constant
297 updateStatusRow(enabled, newText, ri.icon, fg, control) in applyRenderInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlAdapter.kt292 val fg = context.getResources().getColorStateList(ri.foreground, context.getTheme()) in applyRenderInfo() constant
304 icon.setImageTintList(fg) in applyRenderInfo()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DShadeHeader.kt411 val fg = Utils.getColorAttrDefaultColor(themedContext, android.R.attr.textColorPrimary) in BatteryIcon() constant
421 batteryIcon.updateColors(fg, bg, fg) in BatteryIcon()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java617 Drawable fg = getForeground();
618 if (fg != null) {
624 fg.setBounds(drawingBounds);
1716 Drawable fg = getForeground(); in drawableChanged() local
1718 if (fg == null) { in drawableChanged()
1724 int fop = fg.getOpacity(); in drawableChanged()
1747 Log.v(mLogTag, "Background: " + bg + ", Frame: " + fg); in drawableChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java2354 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg, in runTestBgCurrentDrainExemptionOnce() argument
2382 runTestBgCurrentDrainMonitorOnce(listener, stats, uids, bg, fgs, fg, cached, in runTestBgCurrentDrainExemptionOnce()
2649 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg,
2651 runTestBgCurrentDrainMonitorOnce(listener, stats, uids, bg, fgs, fg, cached, true,
2656 BatteryUsageStats stats, int[] uids, double[] bg, double[] fgs, double[] fg,
2662 setUidBatteryConsumptions(stats, uids, bg, fgs, fg, cached);
2667 double[] fgs, double[] fg, double[] cached) {
2670 consumers.add(mockUidBatteryConsumer(uids[i], bg[i], fgs[i], fg[i], cached[i]));
2675 private UidBatteryConsumer mockUidBatteryConsumer(int uid, double bg, double fgs, double fg,
2683 doReturn(fg).when(uidConsumer).getConsumedPower(
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceStateManagerService.java198 public void onForegroundActivitiesChanged(int pid, int uid, boolean fg) {
208 if (!fg) {
/frameworks/base/services/core/java/com/android/server/app/
DGameServiceProviderInstanceImpl.java163 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.java5125 ServiceRecord r, boolean fg, String why, @OomAdjReason int oomAdjReason, in bumpServiceExecutingLocked() argument
5156 r.executeFg = fg; in bumpServiceExecutingLocked()
5167 psr.setExecServicesFg(psr.shouldExecServicesFg() || fg); in bumpServiceExecutingLocked()
5176 } else if (r.app != null && fg) { in bumpServiceExecutingLocked()
5200 r.executeFg |= fg; in bumpServiceExecutingLocked()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java214 public void onForegroundActivitiesChanged(int pid, int uid, boolean fg) { in onStart()

12