Home
last modified time | relevance | path

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

12

/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/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/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 …]
DConversationLayout.java365 GradientDrawable bg = (GradientDrawable) mConversationIconBadgeBg.getDrawable(); in setIsImportantConversation() local
366 bg.mutate(); in setIsImportantConversation()
402 bg.setSize(baseSize, baseSize); in setIsImportantConversation()
409 bg.setSize(bgSize, bgSize); in setIsImportantConversation()
/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/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/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/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.java180 Drawable bg = imageView.getBackground(); in onCaptureSharedElementSnapshot() local
181 if (d != null && (bg == null || bg.getAlpha() == 0)) { in onCaptureSharedElementSnapshot()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleOverflow.java101 ColorDrawable bg = new ColorDrawable(res.getColor(R.color.bubbles_light)); in updateIcon() local
104 bg = new ColorDrawable(res.getColor(R.color.bubbles_dark)); in updateIcon()
110 AdaptiveIconDrawable adaptiveIconDrawable = new AdaptiveIconDrawable(bg, fg); in updateIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DPriorityOnboardingDialogController.kt173 val bg = conversationIconBadgeBg.drawable as GradientDrawable in <lambda>() constant
174 bg.mutate() in <lambda>()
211 bg.setSize(baseSize, baseSize); in <lambda>()
217 bg.setSize(bgSize, bgSize); in <lambda>()
/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/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailView.java136 Drawable bg = context.getDrawable(bgRes); in getDrawable() local
137 LayerDrawable drawable = new LayerDrawable(new Drawable[]{bg, icon}); in getDrawable()
/frameworks/native/libs/gui/tests/
DBLASTBufferQueue_test.cpp405 auto bg = mClient->createSurface(String8("BGTest"), 0, 0, PIXEL_FORMAT_RGBA_8888, in TEST_F() local
407 ASSERT_NE(nullptr, bg.get()); in TEST_F()
409 t.setLayerStack(bg, 0) in TEST_F()
410 .setCrop_legacy(bg, Rect(0, 0, mDisplayWidth, mDisplayHeight)) in TEST_F()
411 .setColor(bg, half3{0, 0, 0}) in TEST_F()
412 .setLayer(bg, 0) in TEST_F()
/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/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcher.java324 Drawable bg = context.getDrawable(R.drawable.bg_avatar_selected); in getDrawable() local
325 drawable = new LayerDrawable(new Drawable[]{bg, drawable}); in getDrawable()
/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
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java662 Drawable bg = super.getBackground();
663 if (bg != null) {
664 bg.setBounds(drawingBounds);
1634 Drawable bg = getBackground(); in drawableChanged() local
1636 if (bg != null) { in drawableChanged()
1638 opacity = bg.getOpacity(); in drawableChanged()
1644 int bop = bg.getOpacity(); in drawableChanged()
1666 Log.v(mLogTag, "Background: " + bg + ", Frame: " + fg); in drawableChanged()

12