Home
last modified time | relevance | path

Searched refs:getDrawable (Results 1 – 25 of 535) sorted by relevance

12345678910>>...22

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawableTest.java52 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/SystemUI/src/com/android/systemui/keyguard/ui/view/
DDeviceEntryIconView.kt102 context.getDrawable(R.drawable.ic_lock)!!, in <lambda>()
108 context.getDrawable(R.drawable.ic_unlocked)!!, in <lambda>()
114 context.getDrawable(R.drawable.ic_fingerprint)!!, in <lambda>()
122 context.getDrawable(R.drawable.ic_lock_aod)!!, in <lambda>()
128 context.getDrawable(R.drawable.ic_unlocked_aod)!!, in <lambda>()
145 context.getDrawable(R.color.transparent)!!, in <lambda>()
155 context.getDrawable(R.drawable.fp_to_unlock) as AnimatedVectorDrawable, in <lambda>()
161 context.getDrawable(R.drawable.unlock_to_fp) as AnimatedVectorDrawable, in <lambda>()
169 context.getDrawable(R.drawable.lock_aod_to_ls) as AnimatedVectorDrawable, in <lambda>()
175 context.getDrawable(R.drawable.lock_ls_to_aod) as AnimatedVectorDrawable, in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsAnimationView.java51 abstract UdfpsDrawable getDrawable(); in getDrawable() method in UdfpsAnimationView
54 getDrawable().onSensorRectUpdated(bounds); in onSensorRectUpdated()
58 getDrawable().setDisplayConfigured(true); in onDisplayConfiguring()
59 getDrawable().invalidateSelf(); in onDisplayConfiguring()
63 getDrawable().setDisplayConfigured(false); in onDisplayUnconfigured()
64 getDrawable().invalidateSelf(); in onDisplayUnconfigured()
84 getDrawable().setAlpha(alpha); in updateAlpha()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DCat.java473 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/SystemUI/src/com/android/keyguard/
DPinShapeHintingView.java59 if (pinDot.getDrawable() != null) { in PinShapeHintingView()
60 Drawable drawable = DrawableCompat.wrap(pinDot.getDrawable()); in PinShapeHintingView()
107 if (pinDot.getDrawable() != null) { in setAnimatedDrawable()
108 Drawable drawable = DrawableCompat.wrap(pinDot.getDrawable()); in setAnimatedDrawable()
111 if (pinDot.getDrawable() instanceof AnimatedVectorDrawable) { in setAnimatedDrawable()
112 ((AnimatedVectorDrawable) pinDot.getDrawable()).start(); in setAnimatedDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DRoundedCornerResDelegate.kt111 topRoundedDrawable = getDrawable( in reloadRes()
116 bottomRoundedDrawable = getDrawable( in reloadRes()
147 private fun getDrawable( in getDrawable() method in com.android.systemui.decor.RoundedCornerResDelegateImpl
155 array.getDrawable(displayConfigIndex) in getDrawable()
157 res.getDrawable(backupDrawableId, null) in getDrawable()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DCachingIconViewTest.java55 Drawable drawable = view.getDrawable(); in invalidIcon_skipsLoadSuccessfully()
64 Drawable drawable = view.getDrawable(); in customDrawable_setImageIcon_skipsResizeSuccessfully()
73 Drawable drawable = view.getDrawable(); in customDrawable_setImageIconAsync_skipsResizeSuccessfully()
82 Drawable drawable = view.getDrawable(); in customDrawable_setImageResource_skipsResizeSuccessfully()
91 Drawable drawable = view.getDrawable(); in customDrawable_setImageResourceAsync_skipsResizeSuccessfully()
102 Drawable drawable = view.getDrawable(); in customDrawable_setImageUri_skipsResizeSuccessfully()
113 Drawable drawable = view.getDrawable(); in customDrawable_setImageUriAsync_skipsResizeSuccessfully()
238 Drawable drawable = view.getDrawable(); in assertDrawableResized()
253 Drawable drawable = view.getDrawable(); in assertDrawableNotResized()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyResourcesManager.java158 public Drawable getDrawable( in getDrawable() method in DevicePolicyResourcesManager
162 return getDrawable( in getDrawable()
190 public Drawable getDrawable( in getDrawable() method in DevicePolicyResourcesManager
211 ParcelableResource resource = mService.getDrawable( in getDrawable()
216 return resource.getDrawable( in getDrawable()
308 ParcelableResource resource = mService.getDrawable( in getDrawableForDensity()
313 return resource.getDrawable(mContext, density, defaultDrawableLoader); in getDrawableForDensity()
355 ParcelableResource resource = mService.getDrawable( in getDrawableAsIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/
DBaseShortcutSection.kt33 ResourcesCompat.getDrawable( in addLeftShortcut()
39 ResourcesCompat.getDrawable( in addLeftShortcut()
62 ResourcesCompat.getDrawable( in addRightShortcut()
68 ResourcesCompat.getDrawable( in addRightShortcut()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DDismissCircleView.java48 setBackground(ContextCompat.getDrawable(getContext(), mBackgroundResId)); in onConfigurationChanged()
65 setBackground(ContextCompat.getDrawable(getContext(), backgroundResId)); in setup()
66 mIconView.setImageDrawable(ContextCompat.getDrawable(getContext(), iconResId)); in setup()
/frameworks/base/core/java/android/widget/
DTabWidget.java128 mLeftStrip = a.getDrawable(R.styleable.TabWidget_tabStripLeft); in TabWidget()
130 mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left_v4); in TabWidget()
132 mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left); in TabWidget()
137 mRightStrip = a.getDrawable(R.styleable.TabWidget_tabStripRight); in TabWidget()
139 mRightStrip = context.getDrawable(R.drawable.tab_bottom_right_v4); in TabWidget()
141 mRightStrip = context.getDrawable(R.drawable.tab_bottom_right); in TabWidget()
273 setDividerDrawable(mContext.getDrawable(resId)); in setDividerDrawable()
300 setLeftStripDrawable(mContext.getDrawable(resId)); in setLeftStripDrawable()
339 setRightStripDrawable(mContext.getDrawable(resId)); in setRightStripDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DHardwareBgDrawable.java55 context.getDrawable(drawable).mutate(), in getLayers()
56 context.getDrawable(drawable).mutate(), in getLayers()
60 context.getDrawable(drawable).mutate(), in getLayers()
61 context.getDrawable(roundEnd ? R.drawable.rounded_full_bg_bottom in getLayers()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DMoreNinePatchesActivity.java53 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()
DThinPatchesActivity.java54 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java66 when(iv.getDrawable()).thenReturn(null); in testNoFirstAnimation()
68 verify(s.icon, never()).getDrawable(any()); in testNoFirstAnimation()
73 when(iv.getDrawable()).thenReturn(mock(Drawable.class)); in testNoFirstAnimation()
75 verify(s.icon).getDrawable(any()); in testNoFirstAnimation()
87 when(s.icon.getDrawable(eq(mContext))).thenReturn(originalDrawable); in testMutateIconDrawable()
147 when(s.icon.getDrawable(any())).thenReturn(d); in testIconStartedAndStoppedWhenAllowAnimationsFalse()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesDrawableTest.java47 Drawable drawable = resources.getDrawable(R.color.color1); in testLoadColorAsDrawable()
59 resources.getDrawable(R.color.drawable_in_color_dir_invalid); in testLoadColorAsDrawableFailureThrowsOriginalException()
80 Drawable drawable = resources.getDrawable(R.color.drawable_in_color_dir_valid); in testLoadNormalDrawableInColorDir()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DSetupWizardLayout.java98 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/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DDrawableLayoutDirectionHelperTest.java60 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableLtr()
83 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableRtl()
101 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableViewRtl()
128 insetDrawable.getDrawable()); in testCreateRelativeInsetDrawableContextRtl()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DIllustrationPreferenceTest.java131 doReturn(drawable).when(mAnimationView).getDrawable(); in playAnimationWithUri_animatedImageDrawable_success()
142 doReturn(drawable).when(mAnimationView).getDrawable(); in playAnimationWithUri_animatedVectorDrawable_success()
153 doReturn(drawable).when(mAnimationView).getDrawable(); in playAnimationWithUri_animationDrawable_success()
163 doReturn(null).when(mAnimationView).getDrawable(); in playLottieAnimationWithUri_verifyFailureListener()
177 doReturn(null).when(mAnimationView).getDrawable(); in playLottieAnimationWithResource_verifyFailureListener()
190 doReturn(null).when(mAnimationView).getDrawable(); in handleImageWithAnimation_emptyInputStreamDisabledFlag_verifyContainerVisible()
221 doReturn(null).when(mAnimationView).getDrawable(); in handleImageWithAnimation_nonEmptyInputStreamEnabledFlag_verifyContainerVisible()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DIconMixinTest.java76 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/java/android/text/style/
DDynamicDrawableSpan.java138 public abstract Drawable getDrawable(); in getDrawable() method in DynamicDrawableSpan
186 d = getDrawable(); in getCachedDrawable()
197 + ", drawable=" + getDrawable() in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/screenrecord/domain/ui/
DScreenRecordTileMapper.kt48 resources.getDrawable(iconRes!!, theme), in map()
60 resources.getDrawable(iconRes!!, theme), in map()
73 resources.getDrawable(iconRes!!, theme), in map()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineButtonsTest.java65 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/core/tests/coretests/src/android/view/
DMutateDrawable.java35 ok.setBackgroundDrawable(getResources().getDrawable( in onCreate()
40 cancel.setBackgroundDrawable(getResources().getDrawable( in onCreate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DComplexMediaDevice.java57 return mContext.getDrawable(R.drawable.ic_media_avr_device); in getIcon()
62 return mContext.getDrawable(R.drawable.ic_media_avr_device); in getIconWithoutBackground()

12345678910>>...22