HomeSort by relevance Sort by last modified time
    Searched refs:constantState (Results 1 - 17 of 17) sorted by null

  /frameworks/support/design/src/android/support/design/widget/
DrawableUtils.java 40 Drawable.ConstantState constantState) {
42 return setContainerConstantStateV9(drawable, constantState);
46 Drawable.ConstantState constantState) {
59 sSetConstantStateMethod.invoke(drawable, constantState);
  /frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
AnimatedVectorDrawableTest.java 23 import android.graphics.drawable.Drawable.ConstantState;
150 ConstantState constantState = d1.getConstantState();
152 if (constantState != null) {
154 assertEquals(0, constantState.getChangingConfigurations());
160 assertEquals(0, constantState.getChangingConfigurations());
163 constantState = d1.getConstantState();
164 assertEquals(0xff, constantState.getChangingConfigurations());
168 assertEquals(0xff, constantState.getChangingConfigurations());
175 ConstantState constantState = mAnimatedVectorDrawable.getConstantState()
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
AnimatedVectorDrawableTest.java 30 import android.graphics.drawable.Drawable.ConstantState;
174 ConstantState constantState = avd.getConstantState();
177 assertEquals(0, constantState.getChangingConfigurations());
183 assertEquals(0, constantState.getChangingConfigurations());
186 constantState = avd.getConstantState();
187 assertEquals(0xff, constantState.getChangingConfigurations());
191 assertEquals(0xff, constantState.getChangingConfigurations());
198 ConstantState constantState = AnimatedVectorDrawable.getConstantState()
    [all...]
VectorDrawableTest.java 33 import android.graphics.drawable.Drawable.ConstantState;
342 ConstantState constantState = vectorDrawable.getConstantState();
345 assertEquals(0, constantState.getChangingConfigurations());
351 assertEquals(0, constantState.getChangingConfigurations());
354 constantState = vectorDrawable.getConstantState();
355 assertEquals(0xff, constantState.getChangingConfigurations());
359 assertEquals(0xff, constantState.getChangingConfigurations());
366 ConstantState constantState = vectorDrawable.getConstantState()
    [all...]
NinePatchDrawableTest.java 42 import android.graphics.drawable.Drawable.ConstantState;
135 ConstantState constantState = mNinePatchDrawable.getConstantState();
138 assertEquals(0, constantState.getChangingConfigurations());
144 assertEquals(0, constantState.getChangingConfigurations());
147 constantState = mNinePatchDrawable.getConstantState();
148 assertEquals(0xff, constantState.getChangingConfigurations());
152 assertEquals(0xff, constantState.getChangingConfigurations());
320 ConstantState constantState = mNinePatchDrawable.getConstantState()
    [all...]
ScaleDrawableTest.java 34 import android.graphics.drawable.Drawable.ConstantState;
419 ConstantState constantState = scaleDrawable.getConstantState();
420 assertNotNull(constantState);
421 assertEquals(0, constantState.getChangingConfigurations());
424 constantState = scaleDrawable.getConstantState();
425 assertNotNull(constantState);
426 assertEquals(1, constantState.getChangingConfigurations());
ShapeDrawableTest.java 28 import android.graphics.drawable.Drawable.ConstantState;
86 ConstantState constantState = shapeDrawable.getConstantState();
87 assertNotNull(constantState);
88 assertEquals(1, constantState.getChangingConfigurations());
BitmapDrawableTest.java 41 import android.graphics.drawable.Drawable.ConstantState;
323 ConstantState constantState = bitmapDrawable.getConstantState();
324 assertNotNull(constantState);
325 assertEquals(0, constantState.getChangingConfigurations());
328 constantState = bitmapDrawable.getConstantState();
329 assertNotNull(constantState);
330 assertEquals(1, constantState.getChangingConfigurations());
539 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState();
InsetDrawableTest.java 31 import android.graphics.drawable.Drawable.ConstantState;
338 ConstantState constantState = insetDrawable.getConstantState();
339 assertNotNull(constantState);
378 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState();
GradientDrawableTest.java 32 import android.graphics.drawable.Drawable.ConstantState;
111 ConstantState constantState = gradientDrawable.getConstantState();
112 assertNotNull(constantState);
517 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState();
LayerDrawableTest.java 33 import android.graphics.drawable.Drawable.ConstantState;
    [all...]
DrawableWrapperTest.java 30 import android.graphics.drawable.Drawable.ConstantState;
375 ConstantState constantState = wrapper.getConstantState();
  /frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
VectorDrawableTest.java 276 Drawable.ConstantState constantState = vectorDrawable.getConstantState();
279 assertEquals(0, constantState.getChangingConfigurations());
285 assertEquals(0, constantState.getChangingConfigurations());
288 constantState = vectorDrawable.getConstantState();
289 assertEquals(0xff, constantState.getChangingConfigurations());
293 assertEquals(0xff, constantState.getChangingConfigurations());
301 Drawable.ConstantState constantState = vectorDrawable.getConstantState();
302 assertNotNull(constantState);
    [all...]
  /frameworks/opt/bitmap/src/com/android/bitmap/drawable/
ExtendedBitmapDrawable.java 102 ConstantState constantState = mOpts.placeholder.getConstantState();
103 if (constantState != null) {
104 placeholder = constantState.newDrawable(mResources);
  /frameworks/base/core/java/android/animation/
AnimatorInflater.java 24 import android.content.res.ConstantState;
129 final ConstantState<Animator> constantState = animator.createConstantState();
130 if (constantState != null) {
134 animatorCache.put(id, theme, constantState);
136 animator = constantState.newInstance(resources, theme);
173 final ConstantState<StateListAnimator> constantState = animator
175 if (constantState != null) {
176 cache.put(id, theme, constantState);
    [all...]
  /packages/apps/Camera2/src/com/android/camera/ui/
BottomBar.java 80 private final Drawable.ConstantState[] mShutterButtonBackgroundConstantStates;
103 mShutterButtonBackgroundConstantStates = new Drawable.ConstantState[len];
404 private LayerDrawable newDrawableFromConstantState(Drawable.ConstantState constantState) {
405 return (LayerDrawable) constantState.newDrawable(getContext().getResources());
  /prebuilts/sdk/current/support/design/libs/
android-support-design.jar 

Completed in 770 milliseconds