Home
last modified time | relevance | path

Searched defs:drawable (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/drawable/
DDrawableSizeTest.kt28 val drawable = ShapeDrawable() in testDownscaleToSize_drawableZeroSize_unchanged() constant
35 val drawable = in testDownscaleToSize_drawableSmallerThanRequirement_unchanged() constant
48 val drawable = in testDownscaleToSize_drawableLargerThanRequirementWithDensity_resized() constant
62 val drawable = in testDownscaleToSize_drawableAnimated_unchanged() constant
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DCachingIconViewTest.java55 Drawable drawable = view.getDrawable(); in invalidIcon_skipsLoadSuccessfully() local
64 Drawable drawable = view.getDrawable(); in customDrawable_setImageIcon_skipsResizeSuccessfully() local
73 Drawable drawable = view.getDrawable(); in customDrawable_setImageIconAsync_skipsResizeSuccessfully() local
82 Drawable drawable = view.getDrawable(); in customDrawable_setImageResource_skipsResizeSuccessfully() local
91 Drawable drawable = view.getDrawable(); in customDrawable_setImageResourceAsync_skipsResizeSuccessfully() local
102 Drawable drawable = view.getDrawable(); in customDrawable_setImageUri_skipsResizeSuccessfully() local
113 Drawable drawable = view.getDrawable(); in customDrawable_setImageUriAsync_skipsResizeSuccessfully() local
238 Drawable drawable = view.getDrawable(); in assertDrawableResized() local
253 Drawable drawable = view.getDrawable(); in assertDrawableNotResized() local
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java53 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testDraw() local
70 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testDrawTwice() local
92 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testScaleToCanvasSquare() local
108 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testScaleToCanvasTall() local
125 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testScaleToCanvasWide() local
142 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testScaleToCanvasMaxSize() local
158 final GlifPatternDrawable drawable = new GlifPatternDrawable(Color.RED); in testMemoryAllocation() local
DDrawableLayoutDirectionHelperTest.java46 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableLtr() local
69 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableRtl() local
92 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableViewRtl() local
115 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableContextRtl() local
/frameworks/base/libs/hwui/jni/
DAnimatedImageDrawable.cpp116 sk_sp<AnimatedImageDrawable> drawable( in AnimatedImageDrawable_nCreate() local
121 static void AnimatedImageDrawable_destruct(AnimatedImageDrawable* drawable) { in AnimatedImageDrawable_destruct()
134 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nDraw() local
141 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nSetAlpha() local
146 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nGetAlpha() local
152 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nSetColorFilter() local
159 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nIsRunning() local
164 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nStart() local
169 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nStop() local
177 auto* drawable = reinterpret_cast<AnimatedImageDrawable*>(nativePtr); in AnimatedImageDrawable_nGetRepeatCount() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DBatteryMeterViewTest.kt271 val drawable = getBatteryDrawable() in isBatteryDefenderChanged_true_drawableGetsTrue_flagOff() constant
292 val drawable = getBatteryDrawable() in isBatteryDefenderChanged_false_drawableGetsFalse_flagOff() constant
321 val drawable = getBatteryDrawable() in isBatteryDefenderChanged_true_featureflagOff_drawableGetsFalse_flagOff() constant
342 val drawable = getBatteryDrawable() in isIncompatibleChargingChanged_true_drawableGetsChargingFalse_flagOff() constant
365 val drawable = getBatteryDrawable() in isIncompatibleChargingChanged_false_drawableGetsChargingTrue_flagOff() constant
DAccessorizedBatteryDrawableTest.kt32 val drawable = AccessorizedBatteryDrawable(context, frameColor = 0) in intrinsicSize_shieldFalse_isBatterySize() constant
42 val drawable = AccessorizedBatteryDrawable(context, frameColor = 0) in intrinsicSize_shieldTrue_isBatteryPlusShieldSize() constant
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawableTest.java49 BluetoothDeviceLayerDrawable drawable = BluetoothDeviceLayerDrawable.createLayerDrawable( in testCreateLayerDrawable_configCorrect() local
62 BluetoothDeviceLayerDrawable drawable = BluetoothDeviceLayerDrawable.createLayerDrawable( in testCreateLayerDrawable_withIconScale_configCorrect() local
86 BluetoothDeviceLayerDrawable drawable = BluetoothDeviceLayerDrawable.createLayerDrawable( in testConstantState_returnTwinBluetoothLayerDrawable() local
99 BluetoothDeviceLayerDrawable drawable = BluetoothDeviceLayerDrawable.createLayerDrawable( in testCreateLayerDrawable_bluetoothDrawable_hasCorrectFrameColor() local
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DDrawableLayoutDirectionHelper.java35 Drawable drawable, int insetStart, int insetTop, int insetEnd, int insetBottom, View view) { in createRelativeInsetDrawable()
49 Drawable drawable, in createRelativeInsetDrawable()
71 Drawable drawable, in createRelativeInsetDrawable()
87 Drawable drawable, in createRelativeInsetDrawable()
/frameworks/base/core/java/com/android/internal/widget/
DCachingIconView.java105 Drawable drawable = loadSizeRestrictedIcon(icon); in setImageIcon() local
124 Drawable drawable = loadSizeRestrictedIcon(icon); in setImageIconAsync() local
137 Drawable drawable = loadSizeRestrictedDrawable(resId); in setImageResource() local
156 Drawable drawable = loadSizeRestrictedDrawable(resId); in setImageResourceAsync() local
168 Drawable drawable = loadSizeRestrictedUri(uri); in setImageURI() local
187 Drawable drawable = loadSizeRestrictedUri(uri); in setImageURIAsync() local
196 public void setImageDrawable(@Nullable Drawable drawable) { in setImageDrawable()
369 Drawable drawable = getBackground(); in setGrayedOut() local
DBigPictureNotificationImageView.java99 final Drawable drawable = loadImage(uri); in setImageURIAsync() local
120 final Drawable drawable = loadImage(icon); in setImageIconAsync() local
125 public void setImageDrawable(@Nullable Drawable drawable) { in setImageDrawable()
DEmphasizedNotificationButton.java122 final Drawable drawable = icon == null ? null : icon.loadDrawable(mContext); in setImageIcon() local
131 final Drawable drawable = icon == null ? null : icon.loadDrawable(mContext); in setImageIconAsync() local
135 private void setImageDrawable(@Nullable Drawable drawable) { in setImageDrawable()
155 final Drawable drawable = icon == null ? null : icon.loadDrawable(mContext); in glueIcon() local
164 final Drawable drawable = icon == null ? null : icon.loadDrawable(mContext); in glueIconAsync() local
184 private void prepareIcon(@NonNull Drawable drawable) { in prepareIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/
DScrimViewTest.java66 Drawable drawable = new ColorDrawable(Color.GREEN); in testSetDrawable_UpdateDrawable() local
73 ScrimDrawable drawable = (ScrimDrawable) mView.getDrawable(); in testCreation_initialColor() local
95 ColorDrawable drawable = new ColorDrawable(); in setDrawableBounds_propagatesToDrawable() local
/frameworks/base/core/java/android/text/style/
DImageSpan.java127 public ImageSpan(@NonNull Drawable drawable) { in ImageSpan()
138 public ImageSpan(@NonNull Drawable drawable, int verticalAlignment) { in ImageSpan()
150 public ImageSpan(@NonNull Drawable drawable, @NonNull String source) { in ImageSpan()
162 public ImageSpan(@NonNull Drawable drawable, @NonNull String source, int verticalAlignment) { in ImageSpan()
228 Drawable drawable = null; in getDrawable() local
/frameworks/base/core/java/android/view/
DViewOverlay.java77 public void add(@NonNull Drawable drawable) { in add()
89 public void remove(@NonNull Drawable drawable) { in remove()
150 public void add(@NonNull Drawable drawable) { in add()
165 public void remove(@NonNull Drawable drawable) { in remove()
239 public void invalidateDrawable(@NonNull Drawable drawable) { in invalidateDrawable()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DCenteredImageSpan.java30 public CenteredImageSpan(Drawable drawable) { in CenteredImageSpan()
37 final Drawable drawable = getCachedDrawable(); in getSize() local
62 final Drawable drawable = getCachedDrawable(); in draw() local
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DIconMixinTest.java72 final ColorDrawable drawable = new ColorDrawable(Color.CYAN); in testSetIcon() local
86 Drawable drawable = mIconView.getDrawable(); in setIcon_resourceId_shouldSetIcon() local
101 final ColorDrawable drawable = new ColorDrawable(Color.BLUE); in testGetIcon() local
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatable2.java53 public void onAnimationStart(Drawable drawable) {}; in onAnimationStart()
59 public void onAnimationEnd(Drawable drawable) {}; in onAnimationEnd()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DIconCache.java43 Drawable drawable = mMap.get(icon); in getIcon() local
51 public void updateIcon(Icon icon, Drawable drawable) { in updateIcon()
/frameworks/base/libs/hwui/hwui/
DAnimatedImageThread.cpp42 const sk_sp<AnimatedImageDrawable>& drawable) { in decodeNextFrame()
47 const sk_sp<AnimatedImageDrawable>& drawable) { in reset()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesDrawableTest.java47 Drawable drawable = resources.getDrawable(R.color.color1); in testLoadColorAsDrawable() local
80 Drawable drawable = resources.getDrawable(R.color.drawable_in_color_dir_valid); in testLoadNormalDrawableInColorDir() local
/frameworks/base/core/java/android/widget/
DSuggestionsAdapter.java407 Drawable drawable = getDrawableFromResourceValue(value); in getIcon1() local
426 private void setViewDrawable(ImageView v, Drawable drawable, int nullVisibility) { in setViewDrawable()
559 Drawable drawable = checkIconCache(drawableUri); in getDrawableFromResourceValue() local
633 private void storeInIconCache(String resourceUri, Drawable drawable) { in storeInIconCache()
648 Drawable drawable = getActivityIconWithCache(mSearchable.getSearchActivity()); in getDefaultIcon1() local
674 Drawable drawable = getActivityIcon(component); in getActivityIconWithCache() local
700 Drawable drawable = pm.getDrawable(pkg, iconId, activityInfo.applicationInfo); in getActivityIcon() local
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DIllustrationPreferenceTest.java130 final AnimatedImageDrawable drawable = mock(AnimatedImageDrawable.class); in playAnimationWithUri_animatedImageDrawable_success() local
141 final AnimatedVectorDrawable drawable = mock(AnimatedVectorDrawable.class); in playAnimationWithUri_animatedVectorDrawable_success() local
152 final AnimationDrawable drawable = mock(AnimationDrawable.class); in playAnimationWithUri_animationDrawable_success() local
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DBitmapView.java48 ExtendedBitmapDrawable drawable = getTypedDrawable(); in onSizeChanged() local
58 ExtendedBitmapDrawable drawable = getTypedDrawable(); in onDraw() local
/frameworks/base/tests/InputScreenshotTest/src/android/input/screenshot/
DLayoutPreview.kt32 val drawable = im.getKeyboardLayoutPreview(layout, width, height)!! in createLayoutPreview() constant

12345678910>>...13