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

12

/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/
H A DExtractionUtils.java49 // Run on a background thread, since the service is asynchronous anyway.
111 /** @return Whether the foreground color is legible on the background color. */
112 private static boolean isLegible(int foreground, int background) { argument
113 background = ColorUtils.setAlphaComponent(background, 255);
114 return ColorUtils.calculateContrast(foreground, background) >= MIN_CONTRAST_RATIO;
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsRecyclerViewContainerView.java63 public void setPressedIcon(BubbleTextView icon, Bitmap background) { argument
64 if (icon == null || background == null) {
67 } else if (mTouchFeedbackView.setBitmap(background)) {
/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/Bluetooth/src/com/android/bluetooth/gatt/
H A DAppScanStats.java46 boolean background; field in class:AppScanStats.LastScan
50 boolean opportunistic, boolean background) {
54 this.background = background;
107 scan.background = (settings.getCallbackType() & ScanSettings.CALLBACK_TYPE_FIRST_MATCH) != 0;
222 if (lastScan.background) sb.append(" (Background)");
249 if (scan.background) sb.append("Back ");
49 LastScan(long timestamp, long duration, boolean opportunistic, boolean background) argument
/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);
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/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...]
H A DKey.java150 /** Background type that represents different key background visual than normal one. */
985 * Returns the background drawable for the key, based on the current state and type of the key.
986 * @return the background drawable of the key.
993 final Drawable background;
995 background = functionalKeyBackground;
997 background = spacebarBackground;
999 background = keyBackground;
1002 background.setState(state);
1003 return background;
/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/SoundRecorder/src/com/android/soundrecorder/
H A DVUMeter.java53 Drawable background = context.getResources().getDrawable(R.drawable.vumeter);
54 setBackgroundDrawable(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/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.java139 // Draw the background itself as the parent is drawn twice.
387 final Drawable background = mBackground;
388 if (background != null) {
393 background.setBounds(0, 0, getRight() - getLeft(), getBottom() - getTop());
398 background.draw(canvas);
401 background.draw(canvas);
682 void setPressedIcon(BubbleTextView icon, Bitmap background); argument
/packages/apps/Messaging/src/com/android/messaging/
H A DBugleApplication.java185 final boolean background = getMainLooper().getThread() != thread;
186 if (background) {
187 LogUtil.e(TAG, "Uncaught exception in background thread " + thread, ex);
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DCallAudioModeStateMachineTest.java443 "Ringing call disconnects with a holding call in the background",
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
H A DExpandedAlarmViewHolder.java73 final LayerDrawable background = new LayerDrawable(new Drawable[] {
76 itemView.setBackground(background);
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramItemView.java165 Drawable background = getBackground();
167 setProgress(background, R.id.reverse_progress, MAX_PROGRESS - progress);
/packages/apps/TV/src/com/android/tv/recommendation/
H A DNotificationService.java464 private Bitmap overlayChannelLogo(Bitmap logo, Bitmap background) { argument
466 background, Integer.MAX_VALUE, mCardImageHeight);
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
H A DGlowPadView.java327 // View should be large enough to contain the background + handle and
787 final Drawable background = getBackground();
788 if (mAlwaysTrackFinger && background != null) {
792 mBackgroundAnimator = Tweener.to(background, duration,
/packages/apps/TV/src/com/android/tv/menu/
H A DPlayControlsRowView.java97 mBackgroundView = findViewById(R.id.background);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationItemView.java210 /** The resource id of the color to use to override the background. */
747 Utils.traceBeginSection("set background resource");
955 // the background is dark blue for activated versus gray for non-activated.
1347 * Set the background for this item based on:
1348 * 1. Read / Unread (unread messages have a lighter background)
1354 final int background;
1356 background = mBackgroundOverrideResId;
1358 background = R.drawable.conversation_item_background;
1360 setBackgroundResource(background);
1410 // We update the background afte
[all...]
/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 DPop3Service.java81 final long attachmentId, final boolean background) throws RemoteException {

Completed in 971 milliseconds

12