/frameworks/layoutlib/bridge/src/android/view/ |
H A D | ViewGroup_Delegate.java | 68 float elevation = getElevation(child, parent); 70 RectShadowPainter.paintShadow(outline, elevation, canvas); 75 shadow = getPathShadow(outline, canvas, elevation); 84 newBounds.inset((int)-elevation, (int)-elevation); 94 private static BufferedImage getPathShadow(Outline outline, Canvas canvas, float elevation) { argument 104 return ShadowPainter.createDropShadow(image, (int) elevation);
|
H A D | RectShadowPainter.java | 49 public static void paintShadow(Outline viewOutline, float elevation, Canvas canvas) { argument 58 float shadowSize = elevationToShadow(elevation); 119 private static float elevationToShadow(float elevation) { argument 121 return elevation * 0.5f;
|
/frameworks/support/design/lollipop/android/support/design/widget/ |
H A D | ViewUtilsLollipop.java | 56 * Creates and sets a {@link StateListAnimator} with a custom elevation value 58 static void setDefaultAppBarLayoutStateListAnimator(final View view, final float elevation) { argument 66 ObjectAnimator.ofFloat(view, "elevation", 0f).setDuration(dur)); 70 ObjectAnimator.ofFloat(view, "elevation", elevation).setDuration(dur)); 74 ObjectAnimator.ofFloat(view, "elevation", 0).setDuration(0));
|
H A D | FloatingActionButtonLollipop.java | 86 void onElevationsChanged(final float elevation, final float pressedTranslationZ) { argument 91 mView.setElevation(elevation); 104 // Animate elevation and translationZ to our values when pressed 106 set.play(ObjectAnimator.ofFloat(mView, "elevation", elevation).setDuration(0)) 114 set.play(ObjectAnimator.ofFloat(mView, "elevation", elevation).setDuration(0)) 123 animators.add(ObjectAnimator.ofFloat(mView, "elevation", elevation).setDuration(0)); 140 set.play(ObjectAnimator.ofFloat(mView, "elevation", [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | I3DDoppler.cpp | 43 SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter speed) 50 thiz->mVelocitySpherical.mElevation = elevation; 42 I3DDoppler_SetVelocitySpherical(SL3DDopplerItf self, SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter speed) argument
|
H A D | I3DLocation.cpp | 43 SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter distance) 48 (-90000 <= elevation) && (elevation <= 90000) && 55 thiz->mLocationSpherical.mElevation = elevation; 42 I3DLocation_SetLocationSpherical(SL3DLocationItf self, SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter distance) argument
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardViewApi21Impl.java | 29 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { 35 view.setElevation(elevation); 76 public void setElevation(CardViewDelegate cardView, float elevation) { argument 77 cardView.getCardView().setElevation(elevation); 91 float elevation = getMaxElevation(cardView); 94 .calculateHorizontalPadding(elevation, radius, cardView.getPreventCornerOverlap())); 96 .calculateVerticalPadding(elevation, radius, cardView.getPreventCornerOverlap())); 28 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
|
H A D | CardViewImpl.java | 27 float radius, float elevation, float maxElevation); 33 void setElevation(CardViewDelegate cardView, float elevation); argument 26 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
|
H A D | CardViewBaseImpl.java | 80 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { 82 elevation, maxElevation); 89 ColorStateList backgroundColor, float radius, float elevation, 92 elevation, maxElevation); 138 public void setElevation(CardViewDelegate cardView, float elevation) { argument 139 getShadowBackground(cardView).setShadowSize(elevation); 79 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument 88 createBackground(Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
|
H A D | CardView.java | 36 * CardView uses <code>elevation</code> property on Lollipop for shadows and falls back to a 58 * To change CardView's elevation in a backward compatible way, use 59 * {@link #setCardElevation(float)}. CardView will use elevation API on Lollipop and before 61 * shadow size is clamped by {@link #getMaxCardElevation()}. If you want to change elevation 242 float elevation = a.getDimension(R.styleable.CardView_cardElevation, 0); 255 if (elevation > maxElevation) { 256 maxElevation = elevation; 263 elevation, maxElevation); 365 * Updates the backward compatible elevation of the CardView. 367 * @param elevation Th 372 setCardElevation(float elevation) argument [all...] |
/frameworks/base/core/java/android/view/autofill/ |
H A D | AutofillPopupWindow.java | 305 public void setElevation(float elevation) { argument
|
/frameworks/base/core/java/android/view/ |
H A D | ViewStructure.java | 70 * Set the visual elevation (shadow) of the view, as per 75 public abstract void setElevation(float elevation); argument
|
/frameworks/support/design/base/android/support/design/widget/ |
H A D | FloatingActionButtonImpl.java | 100 // Reset back to elevation by default 171 final void setElevation(float elevation) { argument 172 if (mElevation != elevation) { 173 mElevation = elevation; 174 onElevationsChanged(elevation, mPressedTranslationZ); 189 void onElevationsChanged(float elevation, float pressedTranslationZ) { argument 191 mShadowDrawable.setShadowSize(elevation, elevation + mPressedTranslationZ);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | FloatingActionButton.java | 168 final float elevation = a.getDimension(R.styleable.FloatingActionButton_elevation, 0f); 181 getImpl().setElevation(elevation); 769 * Returns the backward compatible elevation of the FloatingActionButton. 771 * @return the backward compatible elevation in pixels. 780 * Updates the backward compatible elevation of the FloatingActionButton. 782 * @param elevation The backward compatible elevation in pixels. 787 public void setCompatElevation(float elevation) { argument 788 getImpl().setElevation(elevation);
|
H A D | AppBarLayout.java | 559 * @deprecated target elevation is now deprecated. AppBarLayout's elevation is now 561 * elevation is set, either by this method or the {@code app:elevation} attribute, 562 * a new state list animator is created which uses the given {@code elevation} value. 567 public void setTargetElevation(float elevation) { argument 569 ViewUtilsLollipop.setDefaultAppBarLayoutStateListAnimator(this, elevation); 574 * @deprecated target elevation is now deprecated. AppBarLayout's elevation is now 1064 // Update the AppBarLayout's drawable state for any elevation change [all...] |
/frameworks/support/design/tests/src/android/support/design/testutils/ |
H A D | ViewStructureImpl.java | 115 public void setElevation(float elevation) { argument
|
/frameworks/base/core/java/android/app/ |
H A D | ActionBar.java | 1019 * Set the Z-axis elevation of the action bar in pixels. 1021 * <p>The action bar's elevation is the distance it is placed from its parent surface. Higher 1024 * @param elevation Elevation value in pixels 1026 public void setElevation(float elevation) { argument 1027 if (elevation != 0) { 1028 throw new UnsupportedOperationException("Setting a non-zero elevation is " + 1034 * Get the Z-axis elevation of the action bar in pixels. 1036 * <p>The action bar's elevation is the distance it is placed from its parent surface. Higher
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ToolbarActionBar.java | 136 public void setElevation(float elevation) { argument 137 mDecorToolbar.getViewGroup().setElevation(elevation);
|
H A D | WindowDecorActionBar.java | 229 final int elevation = a.getDimensionPixelSize(R.styleable.ActionBar_elevation, 0); 230 if (elevation != 0) { 231 setElevation(elevation); 248 public void setElevation(float elevation) { argument 249 mContainerView.setElevation(elevation); 251 mSplitView.setElevation(elevation);
|
/frameworks/base/core/jni/ |
H A D | android_view_RenderNode.cpp | 204 static jboolean android_view_RenderNode_setElevation(jlong renderNodePtr, float elevation) { argument 205 return SET_AND_DIRTY(setElevation, elevation, RenderNode::Z);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 1012 * Set the Z-axis elevation of the action bar in pixels. 1014 * <p>The action bar's elevation is the distance it is placed from its parent surface. Higher 1017 * @param elevation Elevation value in pixels 1019 public void setElevation(float elevation) { argument 1020 if (elevation != 0) { 1021 throw new UnsupportedOperationException("Setting a non-zero elevation is " + 1027 * Get the Z-axis elevation of the action bar in pixels. 1029 * <p>The action bar's elevation is the distance it is placed from its parent surface. Higher
|
H A D | ToolbarActionBar.java | 134 public void setElevation(float elevation) { argument 135 ViewCompat.setElevation(mDecorToolbar.getViewGroup(), elevation);
|
/frameworks/base/core/java/android/widget/ |
H A D | PopupWindow.java | 549 * @return the elevation for this popup window in pixels 558 * Specifies the elevation for this popup window. 560 * @param elevation the popup's elevation in pixels 564 public void setElevation(float elevation) { argument 565 mElevation = elevation;
|
/frameworks/base/libs/hwui/ |
H A D | RenderProperties.h | 259 bool setElevation(float elevation) { argument 260 return RP_SET(mPrimitiveFields.mElevation, elevation);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | DrawerLayout.java | 188 /** Whether the drawer shadow comes from setting elevation on the drawer. */ 365 * Sets the base elevation of the drawer(s) relative to the parent, in pixels. Note that the 366 * elevation change is only supported in API 21 and above. 368 * @param elevation The base depth position of the view, in pixels. 370 public void setDrawerElevation(float elevation) { argument 371 mDrawerElevation = elevation; 381 * The base elevation of the drawer(s) relative to the parent, in pixels. Note that the 382 * elevation change is only supported in API 21 and above. For unsupported API levels, 0 will 383 * be returned as the elevation. 408 * nonzero intrinsic width. For API 21 and above, an elevation wil [all...] |