Home | History | Annotate | Download | only in cts

Lines Matching defs:InsetDrawable

39 import android.graphics.drawable.InsetDrawable;
62 private InsetDrawable mInsetDrawable;
68 mInsetDrawable = new InsetDrawable(mPassDrawable, 0);
73 new InsetDrawable(mPassDrawable, 1);
74 new InsetDrawable(mPassDrawable, 1, 1, 1, 1);
76 new InsetDrawable(null, -1);
77 new InsetDrawable(null, -1, -1, -1, -1);
79 new InsetDrawable(mPassDrawable, .1f);
80 new InsetDrawable(mPassDrawable, .1f, .1f, .1f, .1f);
85 InsetDrawable insetDrawable = new InsetDrawable(null, 0);
92 insetDrawable.inflate(r, parser, attrs);
102 InsetDrawable insetDrawable = new InsetDrawable(null, 0);
104 insetDrawable.inflate(null, null, null);
152 InsetDrawable insetDrawable = new InsetDrawable(mPassDrawable, 1, 2, 3, 4);
159 assertTrue(insetDrawable.getPadding(r));
167 insetDrawable = new InsetDrawable(mPassDrawable, .0f);
175 assertFalse(insetDrawable.getPadding(r));
185 InsetDrawable insetDrawable = new InsetDrawable(mPassDrawable, .1f, .2f, .3f, .4f);
186 insetDrawable.setBounds(0, 0, 10, 10);
193 assertTrue(insetDrawable.getPadding(r));
201 insetDrawable = new InsetDrawable(mPassDrawable, 0);
209 assertFalse(insetDrawable.getPadding(r));
219 InsetDrawable insetDrawable = new InsetDrawable(mPassDrawable, 1, 2, 3, 4);
220 insetDrawable.getPadding(null);
266 MockInsetDrawable insetDrawable = new MockInsetDrawable(mPassDrawable, 10);
270 assertFalse("child did not change", insetDrawable.onStateChange(state));
274 insetDrawable = new MockInsetDrawable(mPassDrawable, 10);
276 insetDrawable.onStateChange(state);
280 insetDrawable.onStateChange(null);
286 MockInsetDrawable insetDrawable = new MockInsetDrawable(mPassDrawable, 5);
295 insetDrawable.onBoundsChange(r);
307 MockInsetDrawable insetDrawable = new MockInsetDrawable(mPassDrawable, 0.1f);
316 insetDrawable.onBoundsChange(r);
329 MockInsetDrawable insetDrawable = new MockInsetDrawable(mPassDrawable, inset);
332 insetDrawable.getIntrinsicWidth());
334 insetDrawable.getIntrinsicHeight());
336 Rect r = new Rect(0, 0, insetDrawable.getIntrinsicWidth(),
337 insetDrawable.getIntrinsicHeight());
338 insetDrawable.onBoundsChange(r);
341 assertEquals((int)(insetDrawable.getIntrinsicWidth() * inset), r.left);
342 assertEquals((int)(insetDrawable.getIntrinsicHeight() * inset), r.top);
343 assertEquals(insetDrawable.getIntrinsicWidth()
344 - (int)((inset) * insetDrawable.getIntrinsicWidth()), r.right);
345 assertEquals(insetDrawable.getIntrinsicHeight()
346 - (int)((inset) * insetDrawable.getIntrinsicHeight()), r.bottom);
355 MockInsetDrawable insetDrawable = new MockInsetDrawable(mPassDrawable, 5);
357 insetDrawable.onBoundsChange(null);
366 mInsetDrawable = new InsetDrawable(mPassDrawable, 0);
372 mInsetDrawable = new InsetDrawable(mPassDrawable, 20);
392 mInsetDrawable = new InsetDrawable(mPassDrawable, 0);
398 mInsetDrawable = new InsetDrawable(mPassDrawable, 20);
424 InsetDrawable first = (InsetDrawable) res.getDrawable(R.drawable.inset_mutate, null);
425 InsetDrawable pre = (InsetDrawable) res.getDrawable(R.drawable.inset_mutate, null);
432 InsetDrawable post = (InsetDrawable) res.getDrawable(R.drawable.inset_mutate, null);
467 final InsetDrawable preloadedDrawable = new InsetDrawable(null, 0);
476 final InsetDrawable halfDrawable =
477 (InsetDrawable) preloadedConstantState.newDrawable(res);
485 final InsetDrawable doubleDrawable =
486 (InsetDrawable) preloadedConstantState.newDrawable(res);
492 final InsetDrawable origDrawable =
493 (InsetDrawable) preloadedConstantState.newDrawable();
509 private class MockInsetDrawable extends InsetDrawable {