Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/accessibility/
DColorPreference.java89 final int argb = getValue(); in onBindViewHolder() local
90 if (Color.alpha(argb) < 255) { in onBindViewHolder()
97 mPreviewColor = new ColorDrawable(argb); in onBindViewHolder()
100 mPreviewColor.setColor(argb); in onBindViewHolder()
116 final int argb = getValueAt(index); in onBindListItem() local
117 final int alpha = Color.alpha(argb); in onBindListItem()
128 ((ColorDrawable) foreground).setColor(argb); in onBindListItem()
130 swatch.setImageDrawable(new ColorDrawable(argb)); in onBindListItem()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DColorExtractor.java71 int argb = bitmap.getPixel(x, y); in findDominantColorByHue() local
72 int alpha = 0xFF & (argb >> 24); in findDominantColorByHue()
78 int rgb = argb | 0xFF000000; in findDominantColorByHue()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DCameraController.java421 private void convertARGBToRGBA(ByteBuffer argb) { in convertARGBToRGBA() argument
424 for (int i = 0; i < argb.capacity(); i+= 4) { in convertARGBToRGBA()
425 byte r = argb.get(i); in convertARGBToRGBA()
426 byte g = argb.get(i + 1); in convertARGBToRGBA()
427 byte b = argb.get(i + 2); in convertARGBToRGBA()
428 byte a = argb.get(i + 3); in convertARGBToRGBA()
431 argb.put(i, b); in convertARGBToRGBA()
432 argb.put(i + 1, g); in convertARGBToRGBA()
433 argb.put(i + 2, r); in convertARGBToRGBA()
434 argb.put(i + 3, a); in convertARGBToRGBA()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragShadowBuilder.java79 paint.setShadowLayer(mShadowRadius, 0, 0, Color.argb(opacity, 0, 0, 0)); in onDrawShadow()
84 paint.setShadowLayer(mShadowRadius, 0, mShadowRadius, Color.argb(opacity, 0, 0, 0)); in onDrawShadow()
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/data/
DDockAppItemTest.kt114 iconColorScrim = Color.argb( in compareAppItems_notEqual_differentIconColorScrim()
124 iconColorScrim = Color.argb( in compareAppItems_notEqual_differentIconColorScrim()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java687 public void clearBuffer(float[] argb) { in clearBuffer() argument
688 if(argb != null && argb.length == 4) { in clearBuffer()
689 mGL.glClearColor(argb[1], argb[2], argb[3], argb[0]); in clearBuffer()
DGLES20Canvas.java370 public void clearBuffer(float[] argb) { in clearBuffer() argument
371 GLES20.glClearColor(argb[1], argb[2], argb[3], argb[0]); in clearBuffer()
DGLCanvas.java45 public abstract void clearBuffer(float[] argb); in clearBuffer() argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java225 int startColor = Color.argb(0, 0, 0, 0); in onDraw()
226 int endColor = Color.argb(200, 0, 0, 0); in onDraw()
DCategorySelected.java26 mPaint.setColor(Color.argb(128, 128, 128, 128)); in onDraw()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DColorPreferenceTest.java181 final int argb = mColorPreference.getValueAt(testIndex); in onBindListItem_colorDrawable_matchColor() local
182 final int alpha = Color.alpha(argb); in onBindListItem_colorDrawable_matchColor()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoProcessorTest.java50 assertEquals(Color.argb(255, 255, 255, 255), normalized.getPixel(0, 0)); in testTransparency()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DFadeBackground.java60 Color.argb(0, Color.red(color), Color.green(color), Color.blue(color)); in createAnimator()
/packages/apps/Camera2/src/com/android/camera/ui/
DProgressRenderer.java121 paint.setColor(Color.argb((int) (alpha * 255), 255, 255, 255)); in createProgressPaint()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DKidsNavLayoutter.kt85 val whiteWith10PctAlpha = Color.argb(0.1f, 1f, 1f, 1f) in layoutButtons()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DCea708Data.java155 return Color.argb( in getArgbValue()
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/view/animation/
DExcitementAnimationHelper.kt194 Color.argb(value, 0f, 0f, 0f), in getExcitementAnimator()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/task/thumbnail/
DTaskThumbnailViewModelTest.kt163 colorBackground = Color.argb(taskId, taskId, taskId, taskId) in createTaskWithId()
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/view/
DDockItemViewHolder.kt110 Color.argb(excitedIconColorFilterAlpha, 0f, 0f, 0f),
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java161 selectedPaint.setColor(Color.argb(255, 51, 181, 229)); in init()
165 subPaint.setColor(Color.argb(200, 250, 230, 128)); in init()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java159 mSelectedPaint.setColor(Color.argb(255, 51, 181, 229)); in init()
163 mSubPaint.setColor(Color.argb(200, 250, 230, 128)); in init()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/about/
DUtils.java113 return Color.argb((int) (alpha), Color.red(inputColor), Color.green(inputColor), in applyAlpha()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DLibUtils.java143 return Color.argb((int) (alpha), Color.red(inputColor), Color.green(inputColor), in applyAlpha()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java33 p.setColor(Color.argb(128, 255, 255, 255)); in drawRuleOfThird()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DBaseFiltersManager.java203 int creamColor = Color.argb(255, 237, 237, 227); in addBorders()

12