Home
last modified time | relevance | path

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

123

/packages/apps/DeskClock/src/com/android/deskclock/
DAnimatorUtils.java55 Drawable background = view.getBackground();
56 if (background instanceof LayerDrawable
57 && ((LayerDrawable) background).getNumberOfLayers() > 0) {
58 background = ((LayerDrawable) background).getDrawable(0);
60 return background.getAlpha();
78 Drawable background = view.getBackground(); in setBackgroundAlpha() local
79 if (background instanceof LayerDrawable in setBackgroundAlpha()
80 && ((LayerDrawable) background).getNumberOfLayers() > 0) { in setBackgroundAlpha()
81 background = ((LayerDrawable) background).getDrawable(0); in setBackgroundAlpha()
83 background.setAlpha(value); in setBackgroundAlpha()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/
Ddoxygenextra.css4 background-color: #f8f8f8;
28 background-color: #eee;
32 background-image: none;
33 background-color: white;
45 background-color: #f8f8f8;
115 background-color: #f8f8f8;
125 background-color: #fff;
151 background-color: #f8f8f8;
191 background-color: #343131;
199 background-color: transparent;
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardView.java288 final Drawable background = getBackground(); in onDrawKeyboard() local
294 if (!isHardwareAccelerated && background != null) { in onDrawKeyboard()
297 background.draw(canvas); in onDrawKeyboard()
308 if (background != null) { in onDrawKeyboard()
316 background.draw(canvas); in onDrawKeyboard()
338 final Drawable background = key.selectBackgroundDrawable( in onDrawKey() local
340 if (background != null) { in onDrawKey()
341 onDrawKeyBackground(key, canvas, background); in onDrawKey()
351 @Nonnull final Drawable background) { in onDrawKeyBackground() argument
358 final int intrinsicWidth = background.getIntrinsicWidth(); in onDrawKeyBackground()
[all …]
DKey.java993 final Drawable background; in selectBackgroundDrawable() local
995 background = functionalKeyBackground; in selectBackgroundDrawable()
997 background = spacebarBackground; in selectBackgroundDrawable()
999 background = keyBackground; in selectBackgroundDrawable()
1002 background.setState(state); in selectBackgroundDrawable()
1003 return background; in selectBackgroundDrawable()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyPreviewView.java80 final Drawable background = getBackground(); in setTextAndScaleX() local
81 if (background == null) { in setTextAndScaleX()
84 background.getPadding(mBackgroundPadding); in setTextAndScaleX()
85 final int maxWidth = background.getIntrinsicWidth() - mBackgroundPadding.left in setTextAndScaleX()
132 final Drawable background = getBackground(); in setPreviewBackground() local
133 if (background == null) { in setPreviewBackground()
137 background.setState(KEY_PREVIEW_BACKGROUND_STATE_TABLE[position][hasMoreKeysState]); in setPreviewBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/utils/
DThreadUtilsTest.java35 Thread background = new Thread(new Runnable() { in testMainThread() local
40 background.start(); in testMainThread()
41 background.join(); in testMainThread()
47 Thread background = new Thread(new Runnable() { in testEnsureMainThread() local
56 background.start(); in testEnsureMainThread()
57 background.join(); in testEnsureMainThread()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAppScanStats.java55 boolean background; field in AppScanStats.LastScan
59 public LastScan(long timestamp, long duration, boolean opportunistic, boolean background, in LastScan() argument
64 this.background = background; in LastScan()
137 … scan.background = (settings.getCallbackType() & ScanSettings.CALLBACK_TYPE_FIRST_MATCH) != 0; in recordScanStart()
149 boolean isUnoptimized = !(scan.filtered || scan.background || scan.opportunistic); in recordScanStart()
267 if (lastScan.background) sb.append(" (Background)"); in dumpToString()
297 if (scan.background) sb.append("Back "); in dumpToString()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationTipView.java117 if (attr.background != -1) { in bindIcon()
118 image.setBackgroundResource(attr.background); in bindIcon()
273 public int background; field in ConversationTipView.ImageAttrSet
276 public ImageAttrSet(int resId, int background, String contentDescription) { in ImageAttrSet() argument
278 this.background = background; in ImageAttrSet()
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
DFanSpeedBar.java182 GradientDrawable background = (GradientDrawable) mMaxButton.getBackground(); in setMaxButtonEnabled() local
184 background.setColor(mFanMaxEnabledBgColor); in setMaxButtonEnabled()
187 background.setColor(Color.TRANSPARENT); in setMaxButtonEnabled()
194 GradientDrawable background = (GradientDrawable) mOffButton.getBackground(); in setOffButtonEnabled() local
196 background.setColor(mFanOffEnabledBgColor); in setOffButtonEnabled()
199 background.setColor(Color.TRANSPARENT); in setOffButtonEnabled()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDetailsViewBackgroundHelper.java39 LoadBackgroundRunnable(Drawable background) { in LoadBackgroundRunnable() argument
40 mBackGround = background; in LoadBackgroundRunnable()
67 public void setBackground(Drawable background) { in setBackground() argument
71 mRunnable = new LoadBackgroundRunnable(background); in setBackground()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCallComposerActivity.java122 private FrameLayout background; field in CallComposerActivity
151 background = (FrameLayout) findViewById(R.id.background); in onCreate()
165 background.addOnLayoutChangeListener(this); in onCreate()
534 animator -> background.setBackgroundColor((int) animator.getAnimatedValue()));
570 animator -> background.setBackgroundColor((int) animator.getAnimatedValue())); in runExitAnimation()
585 layoutParams.height = background.getHeight(); in showFullscreen()
589 layoutParams.height = background.getHeight() - toolbar.getHeight(); in showFullscreen()
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/
DExtractionUtils.java113 private static boolean isLegible(int foreground, int background) { in isLegible() argument
114 background = ColorUtils.setAlphaComponent(background, 255); in isLegible()
115 return ColorUtils.calculateContrast(foreground, background) >= MIN_CONTRAST_RATIO; in isLegible()
/packages/apps/Launcher2/src/com/android/launcher2/
DBubbleTextView.java280 final Drawable background = mBackground; in draw() local
281 if (background != null) { in draw()
286 background.setBounds(0, 0, getRight() - getLeft(), getBottom() - getTop()); in draw()
291 background.draw(canvas); in draw()
294 background.draw(canvas); in draw()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DFrameLayoutWithShadows.java71 public void setBackground(Drawable background) { in setBackground() argument
72 super.setBackground(background); in setBackground()
73 if (background != null) { in setBackground()
79 background.setCallback(null); in setBackground()
80 background.setAlpha((int)(255 * mAlpha)); in setBackground()
/packages/apps/Launcher3/src/com/android/launcher3/
DBubbleTextView.java402 final Drawable background = mBackground; in draw() local
403 if (background != null) { in draw()
408 background.setBounds(0, 0, getRight() - getLeft(), getBottom() - getTop()); in draw()
413 background.draw(canvas); in draw()
416 background.draw(canvas); in draw()
673 void setPressedIcon(BubbleTextView icon, Bitmap background); in setPressedIcon() argument
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonView.java435 final Drawable background = getBackground(); in setImageAlpha() local
437 if (background != null) { in setImageAlpha()
438 background.mutate().setAlpha(endAlpha); in setImageAlpha()
450 if (background != null) { in setImageAlpha()
451 background.mutate().setAlpha(alpha); in setImageAlpha()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsRecyclerViewContainerView.java64 public void setPressedIcon(BubbleTextView icon, Bitmap background) { in setPressedIcon() argument
65 if (icon == null || background == null) { in setPressedIcon()
68 } else if (mTouchFeedbackView.setBitmap(background)) { in setPressedIcon()
/packages/apps/Gallery2/res/raw/
Dbackdropper.graph53 @filter MediaSource background {
88 @connect background[video] => replacer[background];
/packages/apps/Camera2/res/raw/
Dbackdropper.graph53 @filter MediaSource background {
88 @connect background[video] => replacer[background];
/packages/apps/LegacyCamera/res/raw/
Dbackdropper.graph53 @filter MediaSource background {
86 @connect background[video] => replacer[background];
/packages/apps/DocumentsUI/src/com/android/documentsui/
DItemDragListener.java100 Drawable background = v.getBackground(); in handleLocationEvent() local
101 if (background != null) { in handleLocationEvent()
102 background.setHotspot(x, y); in handleLocationEvent()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconPalette.java128 public static int resolveContrastColor(Context context, int color, int background) { in resolveContrastColor() argument
131 int contrastingColor = ensureTextContrast(resolvedColor, background); in resolveContrastColor()
139 contrastChange(resolvedColor, contrastingColor, background), in resolveContrastColor()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DCheckableLabeledButton.java48 private Drawable background; field in CheckableLabeledButton
68 background = getResources().getDrawable(R.drawable.incall_button_background, null); in init()
137 iconView.setBackground(shouldShow ? backgroundMore : background); in setShouldShowMoreIndicator()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DViews.java54 public static void setBackground(View testView, Drawable background) { in setBackground() argument
55 Mockito.when(testView.getBackground()).thenReturn(background); in setBackground()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastListItem.java68 Drawable background = message.isRead() ? in bind() local
72 setBackground(background); in bind()

123