Searched refs:background (Results 1 - 25 of 42) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/utils/
H A DThreadUtilsTest.java35 Thread background = new Thread(new Runnable() {
40 background.start();
41 background.join();
47 Thread background = new Thread(new Runnable() {
51 fail("Should not pass ensureMainThread in a background thread");
56 background.start();
57 background.join();
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DDetailsViewBackgroundHelper.java39 LoadBackgroundRunnable(Drawable background) { argument
40 mBackGround = background;
65 * Sets the given image to background.
67 public void setBackground(Drawable background) { argument
71 mRunnable = new LoadBackgroundRunnable(background);
76 * Sets the background color.
85 * Sets the background scrim.
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyPreviewView.java80 final Drawable background = getBackground();
81 if (background == null) {
84 background.getPadding(mBackgroundPadding);
85 final int maxWidth = background.getIntrinsicWidth() - mBackgroundPadding.left
132 final Drawable background = getBackground();
133 if (background == null) {
137 background.setState(KEY_PREVIEW_BACKGROUND_STATE_TABLE[position][hasMoreKeysState]);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAnimatorUtils.java52 new Property<View, Integer>(Integer.class, "background.alpha") {
55 Drawable background = view.getBackground();
56 if (background instanceof LayerDrawable
57 && ((LayerDrawable) background).getNumberOfLayers() > 0) {
58 background = ((LayerDrawable) background).getDrawable(0);
60 return background.getAlpha();
70 * Sets the alpha of the top layer's drawable (of the background) only, if the background is a
71 * layer drawable, to ensure that the other layers (i.e., the selectable item background, an
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsRecyclerViewContainerView.java64 public void setPressedIcon(BubbleTextView icon, Bitmap background) { argument
65 if (icon == null || background == null) {
68 } else if (mTouchFeedbackView.setBitmap(background)) {
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/
H A DExtractionUtils.java50 // Run on a background thread, since the service is asynchronous anyway.
112 /** @return Whether the foreground color is legible on the background color. */
113 private static boolean isLegible(int foreground, int background) { argument
114 background = ColorUtils.setAlphaComponent(background, 255);
115 return ColorUtils.calculateContrast(foreground, background) >= MIN_CONTRAST_RATIO;
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DViews.java54 public static void setBackground(View testView, Drawable background) { argument
55 Mockito.when(testView.getBackground()).thenReturn(background);
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DAppScanStats.java55 boolean background; field in class:AppScanStats.LastScan
59 public LastScan(long timestamp, long duration, boolean opportunistic, boolean background, argument
64 this.background = background;
137 scan.background = (settings.getCallbackType() & ScanSettings.CALLBACK_TYPE_FIRST_MATCH) != 0;
149 boolean isUnoptimized = !(scan.filtered || scan.background || scan.opportunistic);
267 if (lastScan.background) sb.append(" (Background)");
297 if (scan.background) sb.append("Back ");
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastListItem.java68 Drawable background = message.isRead() ?
72 setBackground(background);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DIEmailService.aidl31 boolean background);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationTipView.java117 if (attr.background != -1) {
118 image.setBackgroundResource(attr.background);
273 public int background; field in class:ConversationTipView.ImageAttrSet
276 public ImageAttrSet(int resId, int background, String contentDescription) { argument
278 this.background = background;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardView.java288 final Drawable background = getBackground();
294 if (!isHardwareAccelerated && background != null) {
295 // Need to draw keyboard background on {@link #mOffscreenBuffer}.
297 background.draw(canvas);
308 if (background != null) {
309 // Need to redraw key's background on {@link #mOffscreenBuffer}.
316 background.draw(canvas);
338 final Drawable background = key.selectBackgroundDrawable(
340 if (background != null) {
341 onDrawKeyBackground(key, canvas, background);
350 onDrawKeyBackground(@onnull final Key key, @Nonnull final Canvas canvas, @Nonnull final Drawable background) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DBubbleTextView.java133 // Otherwise, either clear the pressed/focused background, or create a background
142 // background to null so that it will get created when the view is drawn.
280 final Drawable background = mBackground;
281 if (background != null) {
286 background.setBounds(0, 0, getRight() - getLeft(), getBottom() - getTop());
291 background.draw(canvas);
294 background.draw(canvas);
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DItemDragListener.java100 Drawable background = v.getBackground();
101 if (background != null) {
102 background.setHotspot(x, y);
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
H A DFanSpeedBar.java182 GradientDrawable background = (GradientDrawable) mMaxButton.getBackground();
184 background.setColor(mFanMaxEnabledBgColor);
187 background.setColor(Color.TRANSPARENT);
194 GradientDrawable background = (GradientDrawable) mOffButton.getBackground();
196 background.setColor(mFanOffEnabledBgColor);
199 background.setColor(Color.TRANSPARENT);
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
H A DVUMeter.java53 Drawable background = context.getResources().getDrawable(R.drawable.vumeter);
54 setBackgroundDrawable(background);
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
H A DCallComposerActivity.java122 private FrameLayout background; field in class:CallComposerActivity
151 background = (FrameLayout) findViewById(R.id.background);
165 background.addOnLayoutChangeListener(this);
534 animator -> background.setBackgroundColor((int) animator.getAnimatedValue()));
570 animator -> background.setBackgroundColor((int) animator.getAnimatedValue()));
585 layoutParams.height = background.getHeight();
589 layoutParams.height = background.getHeight() - toolbar.getHeight();
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
H A DSmsBottomSheetFragment.java90 Drawable background = typedArray.getDrawable(0);
98 textView.setBackground(background);
/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationInfo.java111 public Drawable getIconForBackground(Context context, int background) { argument
116 mIconColor = IconPalette.resolveContrastColor(context, mIconColor, background);
/packages/apps/TV/src/com/android/tv/ui/
H A DFullscreenDialogView.java146 View backgroundView = findViewById(R.id.background);
161 View backgroundView = findViewById(R.id.background);
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
H A DCheckableLabeledButton.java48 private Drawable background; field in class:CheckableLabeledButton
68 background = getResources().getDrawable(R.drawable.incall_button_background, null);
137 iconView.setBackground(shouldShow ? backgroundMore : background);
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DIconPalette.java63 // Get slightly more saturated background color.
122 * color of an icon or text on the given background color.
124 * @return a color of the same hue with enough contrast against the background.
128 public static int resolveContrastColor(Context context, int color, int background) { argument
131 int contrastingColor = ensureTextContrast(resolvedColor, background);
137 "%s (over background) by changing #%s to %s",
139 contrastChange(resolvedColor, contrastingColor, background),
179 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background.
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
H A DSwipeButtonView.java435 final Drawable background = getBackground();
437 if (background != null) {
438 background.mutate().setAlpha(endAlpha);
450 if (background != null) {
451 background.mutate().setAlpha(alpha);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DFrameLayoutWithShadows.java71 public void setBackground(Drawable background) { argument
72 super.setBackground(background);
73 if (background != null) {
74 // framework adds a callback on background to trigger a repaint
79 background.setCallback(null);
80 background.setAlpha((int)(255 * mAlpha));
121 // draw background 9 patch
/packages/apps/Launcher3/src/com/android/launcher3/
H A DBubbleTextView.java168 // Draw the background itself as the parent is drawn twice.
402 final Drawable background = mBackground;
403 if (background != null) {
408 background.setBounds(0, 0, getRight() - getLeft(), getBottom() - getTop());
413 background.draw(canvas);
416 background.draw(canvas);
673 void setPressedIcon(BubbleTextView icon, Bitmap background); argument

Completed in 652 milliseconds

12