Searched defs:background (Results 1 - 18 of 18) sorted by relevance

/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/TV/src/com/android/tv/dvr/ui/browse/
H A DDetailsViewBackgroundHelper.java37 LoadBackgroundRunnable(Drawable background) { argument
38 mBackGround = background;
63 /** Sets the given image to background. */
64 public void setBackground(Drawable background) { argument
68 mRunnable = new LoadBackgroundRunnable(background);
72 /** Sets the background color. */
79 /** Sets the background scrim. */
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DIconPalette.java59 * color of an icon or text on the given background color.
61 * @return a color of the same hue with enough contrast against the background.
65 public static int resolveContrastColor(Context context, int color, int background) { argument
68 int contrastingColor = ensureTextContrast(resolvedColor, background);
74 "%s (over background) by changing #%s to %s",
76 contrastChange(resolvedColor, contrastingColor, background),
/packages/apps/Launcher3/src/com/android/launcher3/notification/
H A DNotificationInfo.java115 public Drawable getIconForBackground(Context context, int background) { argument
120 mIconColor = IconPalette.resolveContrastColor(context, mIconColor, background);
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
H A DIoStatsEntry.java72 * Statistics for apps running in background.
74 public final IoStatsEntry.Metrics background; field in class:IoStatsEntry
77 long runtimeMillis, IoStatsEntry.Metrics foreground, IoStatsEntry.Metrics background) {
81 this.background = Objects.requireNonNull(background);
88 background = in.readParcelable(IoStatsEntry.Metrics.class.getClassLoader());
99 background = new IoStatsEntry.Metrics(record.background_rchar,
116 dest.writeParcelable(background, flags);
124 jsonWriter.name("background"); background
76 IoStatsEntry(int uid, long runtimeMillis, IoStatsEntry.Metrics foreground, IoStatsEntry.Metrics background) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DAppScanStats.java62 public boolean background; field in class:AppScanStats.LastScan
67 LastScan(long timestamp, long duration, boolean opportunistic, boolean background, argument
72 this.background = background;
160 scan.background =
176 boolean isUnoptimized = !(scan.filtered || scan.background || scan.opportunistic);
226 boolean isUnoptimized = !(scan.filtered || scan.background || scan.opportunistic);
261 statsLogState, scan.filtered, scan.background, scan.opportunistic);
270 statsLogState, scan.filtered, scan.background, scan.opportunistic);
356 if (lastScan.background) {
[all...]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
H A DCheckableLabeledButton.java52 private Drawable background; field in class:CheckableLabeledButton
72 background = getResources().getDrawable(R.drawable.incall_button_background, null);
156 iconView.setBackground(shouldShow ? backgroundMore : background);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DEmailServiceProxy.java106 * non-background loading. The service MUST use the loadAttachmentStatus callback when
113 * @param background whether or not this request corresponds to a background action (i.e.
118 final long attachmentId, final boolean background)
124 mService.loadAttachment(cb, accountId, attachmentId, background);
117 loadAttachment(final IEmailServiceCallback cb, final long accountId, final long attachmentId, final boolean background) argument
/packages/apps/Email/provider_src/com/android/email/service/
H A DEmailServiceStub.java124 final long attachmentId, final boolean background) throws RemoteException {
123 loadAttachment(final IEmailServiceCallback cb, final long accountId, final long attachmentId, final boolean background) argument
H A DEmailServiceUtils.java83 * no background thread that happens to be running will continue, possibly hitting an
87 * be a lot cleaner if our background services could handle this without crashing.
702 final long attachmentId, final boolean background) throws RemoteException {
701 loadAttachment(final IEmailServiceCallback cb, final long accountId, final long attachmentId, final boolean background) argument
/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/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/apps/TV/src/com/android/tv/recommendation/
H A DNotificationService.java488 private Bitmap overlayChannelLogo(Bitmap logo, Bitmap background) { argument
490 BitmapUtils.getScaledMutableBitmap(background, Integer.MAX_VALUE, mCardImageHeight);
498 return 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/Dialer/java/com/android/dialer/callcomposer/
H A DCallComposerActivity.java152 private FrameLayout background; field in class:CallComposerActivity
183 background = findViewById(R.id.background);
646 animator -> background.setBackgroundColor((int) animator.getAnimatedValue()));
682 animator -> background.setBackgroundColor((int) animator.getAnimatedValue()));
698 layoutParams.height = background.getHeight();
702 layoutParams.height = background.getHeight() - toolbar.getHeight();
/packages/services/Telephony/src/com/android/phone/
H A DPhoneUtils.java300 * <li>Else if there's a background call, hang that up.
319 log("hangup(): hanging up background call");
359 static boolean hangupHoldingCall(Call background) { argument
361 return hangup(background);
403 // handle foreground call hangup while there is background call
704 // multiple background calls, for now, always act on the first background call.
709 * @param heldCall is the background call want to be swapped
1844 // for background holding calls may do.
/packages/apps/Camera2/src/com/android/camera/ui/
H A DModeListView.java98 // 60% opaque black background.
1116 * Sets the alpha on the list background. This is called whenever the list
1117 * is scrolling or animating, so that background can adjust its dimness.
1119 * @param alpha new alpha to be applied on list background color
1124 // Change alpha on the background color.
1127 // Set new color to list background.
1669 * When visible width of list is changed, the background of the list needs
1677 // background should be 50% transparent.
1689 * Gets called when UI elements such as background and gear icon need to adjust
2098 * Sets the bitmap to be drawn in the background an
2104 setBackground(Bitmap background, RectF drawArea) argument
[all...]
/packages/apps/Settings/src/com/android/settings/applications/
H A DRunningState.java202 // background update thread and the UI thread.
633 boolean update(Context context, boolean background) { argument
634 mBackground = background;
1380 // The background items have changed; we need to re-build the
1386 // We now need to re-build the per-user list so that background

Completed in 2756 milliseconds