Home
last modified time | relevance | path

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

12345678910>>...17

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DUdfpsAnimationView.java54 abstract UdfpsDrawable getDrawable(); in getDrawable() method in UdfpsAnimationView
57 getDrawable().onSensorRectUpdated(bounds); in onSensorRectUpdated()
61 getDrawable().setDisplayConfigured(true); in onDisplayConfiguring()
62 getDrawable().invalidateSelf(); in onDisplayConfiguring()
66 getDrawable().setDisplayConfigured(false); in onDisplayUnconfigured()
67 getDrawable().invalidateSelf(); in onDisplayUnconfigured()
87 getDrawable().setAlpha(alpha); in updateAlpha()
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A 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);
485 cap = context.getDrawable(R.drawable.cap);
486 mouth = context.getDrawable(R.drawable.mouth);
495 back = context.getDrawable(R.drawable.back);
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A 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()
H A DNumPadButton.java104 ((VectorDrawable) getDrawable()).setTintList(ColorStateList.valueOf(imageColor)); in reloadColors()
129 setBackground(getContext().getDrawable(R.drawable.num_pad_key_background)); in setTransparentMode()
143 mStyleAttr, getDrawable()); in setupAnimator()
H A DPinShapeNonHintingView.java84 if (pinDot.getDrawable() != null) {
85 Drawable wrappedDrawable = DrawableCompat.wrap(pinDot.getDrawable());
88 if (pinDot.getDrawable() instanceof AnimatedVectorDrawable) {
89 ((AnimatedVectorDrawable) pinDot.getDrawable()).start();
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
H A DRoundedCornerResDelegate.kt111 topRoundedDrawable = getDrawable(
116 bottomRoundedDrawable = getDrawable(
147 private fun getDrawable( regex
155 array.getDrawable(displayConfigIndex)
157 res.getDrawable(backupDrawableId, null)
/aosp14/frameworks/base/core/java/android/app/admin/
H A 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()
/aosp14/frameworks/base/core/java/android/widget/
H A DTabWidget.java124 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()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DHardwareBgDrawable.java54 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImplTest.java67 when(iv.getDrawable()).thenReturn(null); in testNoFirstAnimation()
69 verify(s.icon, never()).getDrawable(any()); in testNoFirstAnimation()
74 when(iv.getDrawable()).thenReturn(mock(Drawable.class)); in testNoFirstAnimation()
76 verify(s.icon).getDrawable(any()); in testNoFirstAnimation()
88 when(s.icon.getDrawable(eq(mContext))).thenReturn(originalDrawable); in testMutateIconDrawable()
148 when(s.icon.getDrawable(any())).thenReturn(d); in testIconStartedAndStoppedWhenAllowAnimationsFalse()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/
H A DKeyguardRootView.kt75 ResourcesCompat.getDrawable(
81 ResourcesCompat.getDrawable(
99 ResourcesCompat.getDrawable(
105 ResourcesCompat.getDrawable(
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A 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()
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/res/
H A 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()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DIllustrationPreferenceTest.java117 doReturn(drawable).when(mAnimationView).getDrawable(); in playAnimationWithUri_animatedImageDrawable_success()
128 doReturn(drawable).when(mAnimationView).getDrawable(); in playAnimationWithUri_animatedVectorDrawable_success()
139 doReturn(drawable).when(mAnimationView).getDrawable(); in playAnimationWithUri_animationDrawable_success()
149 doReturn(null).when(mAnimationView).getDrawable(); in playLottieAnimationWithUri_verifyFailureListener()
162 doReturn(null).when(mAnimationView).getDrawable(); in playLottieAnimationWithResource_verifyFailureListener()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A 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()
/aosp14/frameworks/base/core/java/android/text/style/
H A DDynamicDrawableSpan.java138 public abstract Drawable getDrawable(); in getDrawable() method in DynamicDrawableSpan
186 d = getDrawable(); in getCachedDrawable()
197 + ", drawable=" + getDrawable() in toString()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DMutateDrawable.java35 ok.setBackgroundDrawable(getResources().getDrawable( in onCreate()
40 cancel.setBackgroundDrawable(getResources().getDrawable( in onCreate()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DComplexMediaDevice.java55 return mContext.getDrawable(R.drawable.ic_media_avr_device); in getIcon()
60 return mContext.getDrawable(R.drawable.ic_media_avr_device); in getIconWithoutBackground()
/aosp14/frameworks/base/core/java/android/content/res/
H A DCompatResources.java45 public Drawable getDrawable(@DrawableRes int id) throws NotFoundException { in getDrawable() method in CompatResources
46 return getDrawable(id, getTheme()); in getDrawable()
/aosp14/frameworks/base/core/java/android/util/
H A DIconDrawableFactory.java83 Drawable badge = mContext.getDrawable( in getBadgedIcon()
91 Drawable badge = mDpm.getResources().getDrawable( in getBadgedIcon()
106 return mContext.getResources().getDrawable(mUm.getUserIconBadgeResId(userId)); in getDefaultUserIconBadge()
/aosp14/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DBoundsCheckTest.java43 mBitmap1 = (BitmapDrawable) res.getDrawable(R.drawable.icon); in BitmapsView()
44 mVector1 = (VectorDrawable) res.getDrawable(R.drawable.vector_drawable28); in BitmapsView()

12345678910>>...17