/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/packages/EasterEgg/src/com/android/egg/neko/ |
D | Cat.java | 473 body = context.getDrawable(R.drawable.body); 474 head = context.getDrawable(R.drawable.head); 475 leg1 = context.getDrawable(R.drawable.leg1); 476 leg2 = context.getDrawable(R.drawable.leg2); 477 leg3 = context.getDrawable(R.drawable.leg3); 478 leg4 = context.getDrawable(R.drawable.leg4); 479 tail = context.getDrawable(R.drawable.tail); 480 leftEar = context.getDrawable(R.drawable.left_ear); 481 rightEar = context.getDrawable(R.drawable.right_ear); 482 rightEarInside = context.getDrawable(R.drawable.right_ear_inside); [all …]
|
/frameworks/base/packages/CarSystemUI/tests/src/com/android/systemui/car/navigationbar/ |
D | CarNavigationButtonTest.java | 80 assertThat(icon.getDrawable()).isNotNull(); in onCreate_iconIsVisible() 87 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_selectedIconDefined_togglesIcon() 92 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_selectedIconDefined_togglesIcon() 104 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_selectedIconUndefined_displaysSameIcon() 109 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_selectedIconUndefined_displaysSameIcon() 185 Drawable appIcon = getContext().getDrawable(R.drawable.ic_android); in onUnselected_withAppIcon_showsAppIcon() 191 R.id.car_nav_button_icon_image)).getDrawable(); in onUnselected_withAppIcon_showsAppIcon() 201 roleBasedButton.setAppIcon(getContext().getDrawable(R.drawable.ic_android)); in onUnselected_withAppIcon_applyUnselectedAlpha() 210 Drawable appIcon = getContext().getDrawable(R.drawable.ic_android); in onSelected_withAppIcon_showsAppIconWithSelectedAlpha() 216 R.id.car_nav_button_icon_image)).getDrawable(); in onSelected_withAppIcon_showsAppIconWithSelectedAlpha() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | TabWidget.java | 124 mLeftStrip = a.getDrawable(R.styleable.TabWidget_tabStripLeft); in TabWidget() 126 mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left_v4); in TabWidget() 128 mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left); in TabWidget() 133 mRightStrip = a.getDrawable(R.styleable.TabWidget_tabStripRight); in TabWidget() 135 mRightStrip = context.getDrawable(R.drawable.tab_bottom_right_v4); in TabWidget() 137 mRightStrip = context.getDrawable(R.drawable.tab_bottom_right); in TabWidget() 269 setDividerDrawable(mContext.getDrawable(resId)); in setDividerDrawable() 296 setLeftStripDrawable(mContext.getDrawable(resId)); in setLeftStripDrawable() 335 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/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/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/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/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/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/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiEntryPreference.java | 111 final Drawable drawablehelp = getDrawable(R.drawable.ic_help); in onBindViewHolder() 212 return frictionSld != null ? (StateListDrawable) frictionSld.getDrawable(0) : null; in getFrictionStateListDrawable() 264 return mContext.getDrawable(Utils.getWifiIconResource(level)); in getIcon() 296 private Drawable getDrawable(@DrawableRes int iconResId) { in getDrawable() method in WifiEntryPreference 300 buttonIcon = getContext().getDrawable(iconResId); in getDrawable()
|
/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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | DismissCircleView.java | 41 setBackground(res.getDrawable(R.drawable.dismiss_circle_background)); in DismissCircleView() 43 mIconView.setImageDrawable(res.getDrawable(R.drawable.ic_close_white)); in DismissCircleView()
|
/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/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/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/SystemUI/src/com/android/systemui/statusbar/ |
D | ScreenRecordDrawable.java | 61 setDrawable(r.getDrawable(R.drawable.ic_screen_record_background, theme).mutate()); in inflate() 62 mFillDrawable = r.getDrawable(R.drawable.ic_screen_record_background, theme).mutate(); in inflate() 63 mIconDrawable = r.getDrawable(R.drawable.ic_screenrecord, theme).mutate(); in inflate()
|