/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/ |
D | BluetoothDeviceLayerDrawableTest.java | 52 assertThat(drawable.getDrawable(0)).isInstanceOf(VectorDrawable.class); in testCreateLayerDrawable_configCorrect() 53 assertThat(drawable.getDrawable(1)).isInstanceOf( in testCreateLayerDrawable_configCorrect() 56 drawable.getDrawable(0).getIntrinsicWidth()); in testCreateLayerDrawable_configCorrect() 65 assertThat(drawable.getDrawable(0)).isInstanceOf(VectorDrawable.class); in testCreateLayerDrawable_withIconScale_configCorrect() 66 assertThat(drawable.getDrawable(1)).isInstanceOf( in testCreateLayerDrawable_withIconScale_configCorrect() 69 drawable.getDrawable(0).getIntrinsicWidth()); in testCreateLayerDrawable_withIconScale_configCorrect() 92 assertThat(twinDrawable.getDrawable(0)).isNotNull(); in testConstantState_returnTwinBluetoothLayerDrawable() 93 assertThat(twinDrawable.getDrawable(1)).isNotNull(); in testConstantState_returnTwinBluetoothLayerDrawable() 102 (BluetoothDeviceLayerDrawable.BatteryMeterDrawable) drawable.getDrawable(1); in testCreateLayerDrawable_bluetoothDrawable_hasCorrectFrameColor()
|
/frameworks/base/core/java/android/widget/ |
D | TabWidget.java | 111 mLeftStrip = a.getDrawable(R.styleable.TabWidget_tabStripLeft); in TabWidget() 113 mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left_v4); in TabWidget() 115 mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left); in TabWidget() 120 mRightStrip = a.getDrawable(R.styleable.TabWidget_tabStripRight); in TabWidget() 122 mRightStrip = context.getDrawable(R.drawable.tab_bottom_right_v4); in TabWidget() 124 mRightStrip = context.getDrawable(R.drawable.tab_bottom_right); in TabWidget() 256 setDividerDrawable(mContext.getDrawable(resId)); in setDividerDrawable() 283 setLeftStripDrawable(mContext.getDrawable(resId)); in setLeftStripDrawable() 322 setRightStripDrawable(mContext.getDrawable(resId)); in setRightStripDrawable()
|
D | AnalogClock.java | 89 mDial = a.getDrawable(com.android.internal.R.styleable.AnalogClock_dial); in AnalogClock() 91 mDial = context.getDrawable(com.android.internal.R.drawable.clock_dial); in AnalogClock() 94 mHourHand = a.getDrawable(com.android.internal.R.styleable.AnalogClock_hand_hour); in AnalogClock() 96 mHourHand = context.getDrawable(com.android.internal.R.drawable.clock_hand_hour); in AnalogClock() 99 mMinuteHand = a.getDrawable(com.android.internal.R.styleable.AnalogClock_hand_minute); in AnalogClock() 101 mMinuteHand = context.getDrawable(com.android.internal.R.drawable.clock_hand_minute); in AnalogClock()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | HardwareBgDrawable.java | 54 context.getDrawable(drawable).mutate(), in getLayers() 55 context.getDrawable(drawable).mutate(), in getLayers() 59 context.getDrawable(drawable).mutate(), in getLayers() 60 context.getDrawable(roundEnd ? R.drawable.rounded_full_bg_bottom in getLayers()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | SetupWizardLayout.java | 98 final Drawable background = a.getDrawable(R.styleable.SuwSetupWizardLayout_suwBackground); in init() 103 a.getDrawable(R.styleable.SuwSetupWizardLayout_suwBackgroundTile); in init() 110 final Drawable illustration = a.getDrawable(R.styleable.SuwSetupWizardLayout_suwIllustration); in init() 115 a.getDrawable(R.styleable.SuwSetupWizardLayout_suwIllustrationImage); in init() 117 a.getDrawable(R.styleable.SuwSetupWizardLayout_suwIllustrationHorizontalTile); in init() 311 final Drawable backgroundTileDrawable = getContext().getResources().getDrawable(backgroundTile); in setBackgroundTile() 324 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration() 325 final Drawable tile = context.getResources().getDrawable(horizontalTile); in getIllustration()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImplTest.java | 63 when(iv.getDrawable()).thenReturn(null); in testNoFirstAnimation() 65 verify(s.icon, never()).getDrawable(any()); in testNoFirstAnimation() 70 when(iv.getDrawable()).thenReturn(mock(Drawable.class)); in testNoFirstAnimation() 72 verify(s.icon).getDrawable(any()); in testNoFirstAnimation()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | MoreNinePatchesActivity.java | 53 mDrawable1 = res.getDrawable(R.drawable.progress_vertical_holo_dark); in PatchView() 54 mDrawable2 = res.getDrawable(R.drawable.scrubber_progress_vertical_holo_dark); in PatchView() 55 mDrawable3 = res.getDrawable(R.drawable.scrubber_vertical_primary_holo); in PatchView()
|
D | ThinPatchesActivity.java | 54 mPatch1 = resources.getDrawable(R.drawable.patch); in PatchView() 55 mPatch2 = resources.getDrawable(R.drawable.btn_toggle_on); in PatchView() 56 mPatch3 = resources.getDrawable(R.drawable.patch2); in PatchView()
|
D | StackActivity.java | 41 getResources().getDrawable(R.drawable.sunset1), in onCreate() 42 getResources().getDrawable(R.drawable.sunset2), in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesDrawableTest.java | 45 Drawable drawable = resources.getDrawable(R.color.color1); in testLoadColorAsDrawable() 57 resources.getDrawable(R.color.drawable_in_color_dir_invalid); in testLoadColorAsDrawableFailureThrowsOriginalException() 78 Drawable drawable = resources.getDrawable(R.color.drawable_in_color_dir_valid); in testLoadNormalDrawableInColorDir()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | EmphasizedNotificationButton.java | 57 mRipple = (RippleDrawable) background.getDrawable(); in EmphasizedNotificationButton() 72 GradientDrawable inner = (GradientDrawable) mRipple.getDrawable(0); in setButtonBackground() 79 GradientDrawable inner = (GradientDrawable) mRipple.getDrawable(0); in setHasStroke()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | DrawableLayoutDirectionHelperTest.java | 60 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableLtr() 83 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableRtl() 101 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableViewRtl() 128 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableContextRtl()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | IconMixinTest.java | 76 assertSame(drawable, mIconView.getDrawable()); in testSetIcon() 86 Drawable drawable = mIconView.getDrawable(); in setIcon_resourceId_shouldSetIcon() 120 (BitmapDrawable) mContext.getResources().getDrawable(android.R.drawable.ic_menu_add); in testSetIconFromXml() 121 final BitmapDrawable actual = (BitmapDrawable) mIconView.getDrawable(); in testSetIconFromXml()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | BaselineButtonsTest.java | 65 int pauseHeight = Math.max(mPause.getDrawable().getIntrinsicHeight() in testLayout() 68 int prevHeight = Math.max(mPrev.getDrawable().getIntrinsicHeight() + mPrev.getPaddingTop() in testLayout() 71 int nextHeight = Math.max(mNext.getDrawable().getIntrinsicHeight() + mNext.getPaddingTop() in testLayout()
|
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/ |
D | RemoteDrawableParamsAdapter.java | 45 public ResourceValue getDrawable() throws RemoteException { in getDrawable() method in RemoteDrawableParamsAdapter 46 return mDelegate.getDrawable(); in getDrawable()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MutateDrawable.java | 35 ok.setBackgroundDrawable(getResources().getDrawable( in onCreate() 40 cancel.setBackgroundDrawable(getResources().getDrawable( in onCreate()
|
D | DrawableBgMinSize.java | 57 mBackgroundDrawable = getResources().getDrawable(R.drawable.drawable_background); in onCreate() 58 mBigBackgroundDrawable = getResources().getDrawable(R.drawable.big_drawable_background); in onCreate()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatResources.java | 45 public Drawable getDrawable(@DrawableRes int id) throws NotFoundException { in getDrawable() method in CompatResources 46 return getDrawable(id, getTheme()); in getDrawable()
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
D | BoundsCheckTest.java | 43 mBitmap1 = (BitmapDrawable) res.getDrawable(R.drawable.icon); in BitmapsView() 44 mVector1 = (VectorDrawable) res.getDrawable(R.drawable.vector_drawable28); in BitmapsView()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | CrossProfileAppsTest.java | 83 when(mResources.getDrawable(anyInt(), nullable(Resources.Theme.class))) in mockResources() 122 verify(mResources).getDrawable(R.drawable.ic_corp_badge, null); in getProfileSwitchingIcon_managedProfile() 130 verify(mResources).getDrawable(R.drawable.ic_account_circle, null); in getProfileSwitchingIcon_personalProfile()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockImageSpan.java | 44 public Drawable getDrawable() { in getDrawable() method in RestrictedLockImageSpan 51 Drawable drawable = getDrawable(); in draw()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | ScaleDrawable.java | 141 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes() 193 final Drawable d = getDrawable(); in draw() 201 final Drawable d = getDrawable(); in getOpacity() 224 final Drawable d = getDrawable(); in onBoundsChange()
|
/frameworks/base/packages/SettingsLib/ActionButtonsPreference/src/com/android/settingslib/widget/ |
D | ActionButtonsPreference.java | 133 icon = getContext().getDrawable(iconResId); in setButton1Icon() 198 icon = getContext().getDrawable(iconResId); in setButton2Icon() 263 icon = getContext().getDrawable(iconResId); in setButton3Icon() 328 icon = getContext().getDrawable(iconResId); in setButton4Icon()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/ |
D | RecyclerItemAdapter.java | 103 typedArray.getDrawable( in onCreateViewHolder() 107 typedArray.getDrawable(R.styleable.SuwRecyclerItemAdapter_selectableItemBackground); in onCreateViewHolder() 113 typedArray.getDrawable(R.styleable.SuwRecyclerItemAdapter_android_colorBackground); in onCreateViewHolder()
|
/frameworks/base/core/java/android/util/ |
D | LauncherIcons.java | 109 Drawable badgeShadow = overlayableRes.getDrawable( in getBadgedDrawable() 112 Drawable badgeColor = overlayableRes.getDrawable( in getBadgedDrawable() 116 Drawable badgeForeground = overlayableRes.getDrawable(foregroundRes); in getBadgedDrawable()
|