Searched refs:mWidth (Results 1 – 5 of 5) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | NumericSprite.java | 39 mWidth[i] = (int) Math.ceil(mLabelMaker.getWidth(i)); in initialize() 75 x += mWidth[digit]; in draw() 85 width += mWidth[c - '0']; in width() 96 private int[] mWidth = new int[10]; field in NumericSprite
|
D | SpriteTextRenderer.java | 193 mLabels.beginDrawing(gl, mWidth, mHeight); in onDrawFrame() 197 float msPFX = mWidth - mLabels.getWidth(mLabelMsPF) - 1; in onDrawFrame() 219 mNumericSprite.draw(gl, x, 0, mWidth, mHeight); in drawMsPF() 241 mWidth = w; in onSurfaceChanged() 259 private int mWidth; field in SpriteTextRenderer
|
/development/samples/browseable/BasicAccessibility/src/com.example.android.basicaccessibility/ |
D | DialView.java | 47 private float mWidth; field in DialView 182 mWidth = w; in onSizeChanged() 186 mRadius = (float) (Math.min(mWidth, mHeight) / 2 * 0.8); in onSizeChanged() 202 canvas.drawCircle(mWidth / 2, mHeight / 2, (float) mRadius, mDialPaint); in onDraw() 233 result[0] = (float) (radius * Math.cos(angle)) + (mWidth / 2); in computeXYForPosition()
|
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
D | OverlayDisplayWindow.java | 56 protected final int mWidth; field in OverlayDisplayWindow 65 mWidth = width; in OverlayDisplayWindow() 137 if (mWidth > mHeight) { in show() 138 height = mHeight * width / mWidth; in show() 140 width = mWidth * height / mHeight; in show() 243 if (mWidth * height < mHeight * width) { in updateAspectRatio() 244 mTextureView.getLayoutParams().width = mWidth; in updateAspectRatio() 245 mTextureView.getLayoutParams().height = mWidth * height / width; in updateAspectRatio() 276 mTextureView.getLayoutParams().width = mWidth; in createWindow() 318 scale = Math.min(scale, (float)mDefaultDisplayMetrics.widthPixels / mWidth); in updateWindowParams() [all …]
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | ComplicationSimpleWatchFaceService.java | 101 private int mWidth; field in ComplicationSimpleWatchFaceService.Engine 331 (mWidth / 2), // right in getTappedComplicationId() 339 (mWidth / 2), // left in getTappedComplicationId() 341 mWidth, // right in getTappedComplicationId() local 480 mWidth = width; in onSurfaceChanged() 488 mCenterX = mWidth / 2f; in onSurfaceChanged() 610 complicationsX = (int) ((mWidth / 2) - textWidth) / 2; in drawComplications() 613 int offset = (int) ((mWidth / 2) - textWidth) / 2; in drawComplications() 614 complicationsX = (mWidth / 2) + offset; in drawComplications()
|