Home
last modified time | relevance | path

Searched refs:bg (Results 1 – 23 of 23) sorted by relevance

/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
Dballs.rscript59 BallGrid_t *bg = (BallGrid_t *)rsGetElementAt(gGrid, x, y);
60 bg->count = 0;
61 bg->idx = -1;
70 BallGrid_t *bg = (BallGrid_t *)rsGetElementAt(gGrid, p.x, p.y);
71 bg->count ++;
72 balls[ct].next = bg->idx;
73 bg->idx = ct;
80 BallGrid_t *bg = (BallGrid_t *)rsGetElementAt(gGrid, x, y);
81 bg->cacheIdx = gridIdx;
83 int idx = bg->idx;
Dball_physics.rscript55 … const BallGrid_t *bg = (const BallGrid_t *)rsGetElementAt(gGrid, gridPos[gct].x, gridPos[gct].y);
57 for (int cidx = 0; cidx < bg->count; cidx++) {
58 float2 bcptr = rsGetElementAt_float2(gGridCache, bg->cacheIdx + cidx);
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java302 int bg = findFg ? other : color; in findContrastColor() local
303 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
308 ColorUtilsFromCompat.colorToLAB(findFg ? fg : bg, lab); in findContrastColor()
317 bg = ColorUtilsFromCompat.LABToColor(l, a, b); in findContrastColor()
319 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
338 int bg = backgroundColor; in findAlphaToMeetContrast() local
339 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findAlphaToMeetContrast()
351 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findAlphaToMeetContrast()
373 int bg = findFg ? other : color; in findContrastColorAgainstDark() local
374 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColorAgainstDark()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContainer.java87 public void setPrimaryBackground(Drawable bg) { in setPrimaryBackground() argument
92 mBackground = bg; in setPrimaryBackground()
93 if (bg != null) { in setPrimaryBackground()
94 bg.setCallback(this); in setPrimaryBackground()
105 public void setStackedBackground(Drawable bg) { in setStackedBackground() argument
110 mStackedBackground = bg; in setStackedBackground()
111 if (bg != null) { in setStackedBackground()
112 bg.setCallback(this); in setStackedBackground()
123 public void setSplitBackground(Drawable bg) { in setSplitBackground() argument
128 mSplitBackground = bg; in setSplitBackground()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java35 public static float computeContrastBetweenColors(int bg, int fg) { in computeContrastBetweenColors() argument
36 float bgR = Color.red(bg) / 255f; in computeContrastBetweenColors()
37 float bgG = Color.green(bg) / 255f; in computeContrastBetweenColors()
38 float bgB = Color.blue(bg) / 255f; in computeContrastBetweenColors()
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/
DSubActivity.java50 View bg = findViewById(R.id.bg_container); in onResume() local
51 bg.setAlpha(0f); in onResume()
52 bg.animate().alpha(1f).setDuration(MainActivity.DURATION); in onResume()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSlowNestedRecyclerViewActivity.java95 GradientDrawable bg = new GradientDrawable(); in onCreateViewHolder() local
96 bg.setCornerRadius(10 * density); in onCreateViewHolder()
97 bg.setColor(Color.BLACK); in onCreateViewHolder()
100 view.setBackgroundDrawable(new InsetDrawable(bg, pad)); in onCreateViewHolder()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/
DCarSetupWizardDesignLayoutTest.java53 ColorDrawable bg = (ColorDrawable) mCarSetupWizardLayout.getBackground(); in testShouldApplyLayoutBackground() local
54 assertThat(bg.getColor()).isEqualTo(FakeOverrideContentProvider.ANDROID_COLOR_DARK_GRAY); in testShouldApplyLayoutBackground()
DCarSetupWizardCompatLayoutTest.java477 ColorDrawable bg = (ColorDrawable) layout.getBackground(); in testShouldNotApplyLayoutBackground() local
478 assertThat(bg).isNull(); in testShouldNotApplyLayoutBackground()
/frameworks/base/tools/stringslint/
Dstringslint.py41 def format(fg=None, bg=None, bright=False, bold=False, dim=False, reset=False): argument
47 if not bg is None:
48 if not bright: codes.append("4%d" % (bg))
49 else: codes.append("10%d" % (bg))
/frameworks/base/core/java/android/app/
DSharedElementCallback.java181 Drawable bg = imageView.getBackground(); in onCaptureSharedElementSnapshot() local
182 if (d != null && (bg == null || bg.getAlpha() == 0)) { in onCaptureSharedElementSnapshot()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/utilities/
DUtilities.java312 public static float computeContrastBetweenColors(int bg, int fg) { in computeContrastBetweenColors() argument
313 float bgR = Color.red(bg) / 255f; in computeContrastBetweenColors()
314 float bgG = Color.green(bg) / 255f; in computeContrastBetweenColors()
315 float bgB = Color.blue(bg) / 255f; in computeContrastBetweenColors()
/frameworks/base/cmds/incident_helper/testdata/
Dcpuinfo.txt14 28 28 root -2 0 1.4 S 0 0 bg rcuc/3 [rcuc/3]
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java124 return binaryAlphaSearch(foreground, background, minContrastRatio, (fg, bg, alpha) -> { in calculateMinimumBackgroundAlpha()
125 int testBackground = blendARGB(leastContrastyColor, bg, alpha/255f); in calculateMinimumBackgroundAlpha()
150 ContrastCalculator contrastCalculator = (fg, bg, alpha) -> { in calculateMinimumAlpha()
152 return calculateContrast(testForeground, bg); in calculateMinimumAlpha()
/frameworks/av/apex/
Dcom.android.media.swcodec.pem5 fwwueWj++bg/iz7dq0mz7iKpnxYscNm4RhJjqcG2Usmg4Ejhr8h5UmOUmTJbObC/
/frameworks/base/core/java/android/view/animation/
DAnimation.java640 public void setBackgroundColor(@ColorInt int bg) { in setBackgroundColor() argument
641 mBackgroundColor = bg; in setBackgroundColor()
/frameworks/base/core/java/android/widget/
DAbsSeekBar.java968 final Drawable bg = getBackground();
969 if (bg != null) {
970 bg.setHotspot(x, y);
DActionMenuPresenter.java919 final Drawable bg = getBackground(); in setFrame() local
920 if (d != null && bg != null) { in setFrame()
928 bg.setHotspotBounds(centerX - halfEdge, centerY - halfEdge, in setFrame()
DSpinner.java1096 public void setBackgroundDrawable(Drawable bg); in setBackgroundDrawable() argument
1158 public void setBackgroundDrawable(Drawable bg) { in setBackgroundDrawable() argument
DPopupWindow.java318 final Drawable bg = a.getDrawable(R.styleable.PopupWindow_popupBackground); in PopupWindow() local
350 setBackgroundDrawable(bg); in PopupWindow()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java639 Drawable bg = super.getBackground();
640 if (bg != null) {
641 bg.setBounds(drawingBounds);
1637 Drawable bg = getBackground(); in drawableChanged() local
1639 if (bg != null) { in drawableChanged()
1641 opacity = bg.getOpacity(); in drawableChanged()
1647 int bop = bg.getOpacity(); in drawableChanged()
1669 Log.v(mLogTag, "Background: " + bg + ", Frame: " + fg); in drawableChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java478 final Drawable bg = s.getBackground(); in reset()
479 if (bg != null) bg.setColorFilter(Color.rgb(c,c,c), PorterDuff.Mode.MULTIPLY); in reset()
/frameworks/base/core/java/android/view/
DView.java22892 final Drawable bg = mBackground; in drawableStateChanged() local
22893 if (bg != null && bg.isStateful()) { in drawableStateChanged()
22894 changed |= bg.setState(state); in drawableStateChanged()