HomeSort by relevance Sort by last modified time
    Searched refs:Outline (Results 1 - 25 of 124) sorted by null

1 2 3 4 5

  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowOutline.java 5 import android.graphics.Outline;
10 @Implements(value = Outline.class, minSdk = LOLLIPOP)
  /frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
OutlinePerfTest.java 19 import android.graphics.Outline;
37 Outline outline = new Outline(); local
39 outline.setEmpty();
46 Outline outline = new Outline(); local
48 outline.setRoundRect(50, 50, 150, 150, 5);
RenderNodePerfTest.java 19 import android.graphics.Outline;
115 Outline a = new Outline();
117 Outline b = new Outline();
  /frameworks/base/core/java/android/view/
ViewOutlineProvider.java 19 import android.graphics.Outline;
23 * Interface by which a View builds its {@link Outline}, used for shadow casting and clipping.
27 * Default outline provider for Views, which queries the Outline from the View's background,
28 * or generates a 0 alpha, rectangular Outline the size of the View if a background
31 * @see Drawable#getOutline(Outline)
35 public void getOutline(View view, Outline outline) {
38 background.getOutline(outline);
40 outline.setRect(0, 0, view.getWidth(), view.getHeight())
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowOutlineTest.java 5 import android.graphics.Outline;
18 final Outline outline = new Outline(); local
19 outline.setConvexPath(new Path());
  /cts/tests/tests/graphics/src/android/graphics/cts/
OutlineTest.java 23 import android.graphics.Outline;
37 Outline outline = new Outline(); local
39 assertEquals(0.0f, outline.getAlpha(), 0.0f);
40 assertTrue(outline.isEmpty());
42 assertFalse(outline.getRect(outRect));
43 assertTrue(outline.getRadius() < 0);
48 Outline orig = new Outline();
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/shapes/
ArcShape.java 20 import android.graphics.Outline;
68 public void getOutline(Outline outline) {
70 // to provide an outline.
OvalShape.java 20 import android.graphics.Outline;
41 public void getOutline(Outline outline) {
43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
RectShape.java 20 import android.graphics.Outline;
42 public void getOutline(Outline outline) {
44 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
Shape.java 21 import android.graphics.Outline;
105 * Computes the Outline of the shape and return it in the supplied Outline
106 * parameter. The default implementation does nothing and {@code outline}
109 * @param outline the Outline to be populated with the result. Must be
112 public void getOutline(@NonNull Outline outline) {}
  /cts/tests/tests/view/src/android/view/cts/
ViewOutlineProviderTest.java 23 import android.graphics.Outline;
61 Outline outline = new Outline(); local
62 outline.setAlpha(1.0f);
65 // No background - outline is 0 alpha, width x height rect
66 ViewOutlineProvider.BACKGROUND.getOutline(view, outline);
67 outline.getRect(queryRect);
69 assertEquals(0f, outline.getAlpha(), 0f);
71 // With background - outline is passed directly from backgroun
90 Outline outline = new Outline(); local
112 Outline outline = new Outline(); local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
TriangleShape.java 19 import android.graphics.Outline;
53 public void getOutline(@NonNull Outline outline) {
54 outline.setConvexPath(mTriangularPath);
  /frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
RoundedBitmapDrawable21.java 21 import android.graphics.Outline;
35 public void getOutline(Outline outline) {
37 outline.setRoundRect(mDstRect, getCornerRadius());
  /packages/apps/Launcher3/src/com/android/launcher3/graphics/
TriangleShape.java 19 import android.graphics.Outline;
53 public void getOutline(@NonNull Outline outline) {
54 outline.setConvexPath(mTriangularPath);
  /packages/apps/Messaging/src/com/android/messaging/ui/conversation/
SimIconView.java 19 import android.graphics.Outline;
39 public void getOutline(View v, Outline outline) {
40 outline.setOval(0, 0, v.getWidth(), v.getHeight());
  /packages/apps/Contacts/src/com/android/contacts/util/
ViewUtil.java 20 import android.graphics.Outline;
65 public void getOutline(View view, Outline outline) {
66 outline.setOval(0, 0, view.getWidth(), view.getHeight());
79 public void getOutline(View view, Outline outline) {
80 outline.setRect(0, 0, view.getWidth(), view.getHeight());
89 * Adds a rectangular outline to a view. This can be useful when you want to add a shadow
91 * @param view view that the outline is added to
  /frameworks/support/leanback/src/main/java/androidx/leanback/widget/
RoundedRectHelperApi21.java 16 import android.graphics.Outline;
38 public void getOutline(View view, Outline outline) {
39 outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), mRadius);
40 outline.setAlpha(1f);
ShadowHelperApi21.java 16 import android.graphics.Outline;
33 public void getOutline(View view, Outline outline) {
34 outline.setRect(0, 0, view.getWidth(), view.getHeight());
35 outline.setAlpha(1.0f);
  /frameworks/support/leanback-preference/api21/androidx/leanback/preference/internal/
OutlineOnlyWithChildrenFrameLayout.java 22 import android.graphics.Outline;
32 * {@link FrameLayout} subclass that provides an outline only when it has children, so that it does
76 public void getOutline(View view, Outline outline) {
78 mInnerOutlineProvider.getOutline(view, outline);
80 ViewOutlineProvider.BACKGROUND.getOutline(view, outline);
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
ActionBarBackgroundDrawable.java 21 import android.graphics.Outline;
67 public void getOutline(@NonNull Outline outline) {
70 mContainer.mSplitBackground.getOutline(outline);
75 mContainer.mBackground.getOutline(outline);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
ViewOutlineProviderCompatUtilsLXX.java 20 import android.graphics.Outline;
61 public void getOutline(final View view, final Outline outline) {
64 ViewOutlineProvider.BACKGROUND.getOutline(view, outline);
68 outline.setRect(
  /frameworks/base/graphics/java/android/graphics/
Outline.java 35 * @see Drawable#getOutline(Outline)
37 public final class Outline {
76 * Constructs an empty Outline. Call one of the setter methods to make
77 * the outline valid for use with a View.
79 public Outline() {}
82 * Constructs an Outline with a copy of the data in src.
84 public Outline(@NonNull Outline src) {
89 * Sets the outline to be empty.
104 * Returns whether the Outline is empty
    [all...]
  /frameworks/base/libs/hwui/protos/
hwui.proto 54 optional Outline outline = 23;
65 message Outline {
  /developers/build/prebuilts/gradle/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/
FloatingActionButton.java 20 import android.graphics.Outline;
81 // Set the outline provider for this view. The provider is given the outline which it can
82 // then modify as needed. In this case we set the outline to be an oval fitting the height
86 public void getOutline(View view, Outline outline) {
87 outline.setOval(0, 0, getWidth(), getHeight());
91 // Finally, enable clipping to the outline, using the provider we set above
147 // As we have changed size, we should invalidate the outline so that is the the
  /developers/samples/android/ui/views/FloatingActionButton/FloatingActionButtonBasic/Application/src/main/java/com/example/android/floatingactionbuttonbasic/
FloatingActionButton.java 20 import android.graphics.Outline;
81 // Set the outline provider for this view. The provider is given the outline which it can
82 // then modify as needed. In this case we set the outline to be an oval fitting the height
86 public void getOutline(View view, Outline outline) {
87 outline.setOval(0, 0, getWidth(), getHeight());
91 // Finally, enable clipping to the outline, using the provider we set above
147 // As we have changed size, we should invalidate the outline so that is the the

Completed in 417 milliseconds

1 2 3 4 5