private void calculateTrimArea(Rect bounds){
  float size=Math.min(bounds.height(),bounds.width());
  float yOffset=(bounds.height() - size) / 2f;
  float xOffset=(bounds.width() - size) / 2f;
  float padding=mPadding + (bounds.height() - 2f * mPadding) * 1f / 6f;
  mInternalBounds.set(bounds.left + padding + xOffset,bounds.top + padding + yOffset,bounds.right - padding - xOffset,bounds.bottom - padding - yOffset);
  mCenter=mInternalBounds.centerX();
  mSize=mInternalBounds.width();
  mPlayTipOffset=1f / 6f * mSize;
  mPlayBaseOffset=0.07735f * mSize;
  setTransitionState(0f,0f);
}

private void calculateTrimArea ( Rect bounds ) { float size = Math . min ( bounds . height ( ) , bounds . width ( ) ) ; float yOffset = ( bounds . height ( ) - size ) / 2f ; float xOffset = ( bounds . width ( ) - size ) / 2f ; float padding = mPadding + ( bounds . height ( ) - 2f * mPadding ) * 1f / 6f ; mInternalBounds . set ( bounds . left + padding + xOffset , bounds . top + padding + yOffset , bounds . right - padding - xOffset , bounds . bottom - padding - yOffset ) ; mCenter = mInternalBounds . centerX ( ) ; mSize = mInternalBounds . width ( ) ; mPlayTipOffset = 1f / 6f * mSize ; mPlayBaseOffset = 0.07735f * mSize ; setTransitionState ( 0f , 0f ) ; }
this calculates the trim area for the icon as specified in the guidelines
