/external/replicaisland/src/com/replica/replicaisland/ |
ContextParameters.java | 23 public int viewWidth;
|
DrawableBitmap.java | 68 * @param viewWidth The width of the screen. 71 public static void beginDrawing(GL10 gl, float viewWidth, float viewHeight) { 80 gl.glOrthof(0.0f, viewWidth, 0.0f, viewHeight, 0.0f, 1.0f); 113 final float viewWidth = mViewWidth; 117 if (viewWidth > 0) { 119 || snappedX > viewWidth
|
Game.java | 62 public void bootstrap(Context context, int viewWidth, int viewHeight, int gameWidth, int gameHeight, int difficulty) { 72 params.viewWidth = viewWidth; 76 params.viewScaleX = (float)viewWidth / gameWidth; 126 GameObjectManager gameManager = new GameObjectManager(params.viewWidth * 2);
|
/packages/apps/Phone/src/com/android/phone/ |
SmallerHitTargetTouchListener.java | 87 int viewWidth = v.getWidth(); 91 int touchXPercent = (int) ((float) (touchX * 100) / (float) viewWidth);
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
ImageViewTouchBase.java | 183 final int viewWidth = getWidth(); 184 if (viewWidth <= 0) { 264 final float viewWidth = getWidth(); 274 float widthScale = Math.min(viewWidth / w, 10.0f); 278 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F); 280 matrix.postTranslate((viewWidth - w) / 2F, (viewHeight - h) / 2F); 327 public static float maxZoom(int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) { 328 final float fw = (float)bitmapWidth / viewWidth; 504 int viewWidth = getWidth(); 505 if (width < viewWidth) { [all...] |
OverlayLinearLayout.java | 599 final int viewWidth = getWidth() - (2 * mHalfParentWidth); 617 left = leftViewWidth + (int)((mediaItemStartTimeMs * viewWidth) / 622 viewWidth) / totalDurationMs); 628 mediaItem.getAppBoundaryBeginTime()) * viewWidth) / 633 durationMs) * viewWidth) / totalDurationMs); 637 viewWidth) / totalDurationMs); 640 overlay.getAppDuration()) * viewWidth) / totalDurationMs); 643 left = leftViewWidth + (int)((mediaItemStartTimeMs * viewWidth) / 646 + mediaItem.getAppTimelineDuration()) * viewWidth) / totalDurationMs); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
PhotoView.java | 106 int viewWidth; 133 viewWidth, viewHeight); 151 viewWidth, viewHeight, degrees); 159 viewWidth, viewHeight, horizontalDegrees, verticalDegrees); 181 RendererUtils.renderTexture(renderContext, photo.texture(), viewWidth, viewHeight); 187 viewWidth = width;
|
/external/webkit/Source/WebCore/svg/ |
SVGFitToViewBox.h | 41 static AffineTransform viewBoxToViewTransform(const FloatRect& viewBoxRect, const SVGPreserveAspectRatio&, float viewWidth, float viewHeight);
|
SVGFitToViewBox.cpp | 83 AffineTransform SVGFitToViewBox::viewBoxToViewTransform(const FloatRect& viewBoxRect, const SVGPreserveAspectRatio& preserveAspectRatio, float viewWidth, float viewHeight) 88 return preserveAspectRatio.getCTM(viewBoxRect.x(), viewBoxRect.y(), viewBoxRect.width(), viewBoxRect.height(), viewWidth, viewHeight);
|
SVGMarkerElement.h | 57 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) const;
|
SVGSVGElement.h | 119 AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) const;
|
SVGMarkerElement.cpp | 76 AffineTransform SVGMarkerElement::viewBoxToViewTransform(float viewWidth, float viewHeight) const 78 return SVGFitToViewBox::viewBoxToViewTransform(viewBox(), preserveAspectRatio(), viewWidth, viewHeight);
|
/packages/apps/Gallery/src/com/android/camera/ |
ImageViewTouchBase.java | 155 final int viewWidth = getWidth(); 157 if (viewWidth <= 0) { 216 int viewWidth = getWidth(); 217 if (width < viewWidth) { 218 deltaX = (viewWidth - width) / 2 - rect.left; 221 } else if (rect.right < viewWidth) { 222 deltaX = viewWidth - rect.right; 260 float viewWidth = getWidth(); 269 float widthScale = Math.min(viewWidth / w, 3.0f); 277 (viewWidth - w * scale) / 2F [all...] |
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 236 final int viewWidth = v.getWidth(); 239 final float x = xy[0] + (viewWidth / 2.0f); 256 final int viewWidth = v.getWidth(); 259 final float x = xy[0] + (viewWidth / 2.0f); 296 final int viewWidth = v.getWidth(); 299 final float x = xy[0] + (viewWidth / 2.0f); 331 final int viewWidth = v.getWidth(); 334 final float x = xy[0] + (viewWidth / 2.0f); 392 final int viewWidth = v.getWidth(); 395 final float x = xy[0] + (viewWidth / 2.0f) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SlideshowView.java | 142 int viewWidth = getWidth(); 146 viewWidth / mWidth, (float) viewHeight / mHeight)); 149 float centerX = viewWidth / 2 + mMovingVector.x * mProgress;
|
/frameworks/base/core/java/com/android/internal/widget/ |
PasswordEntryKeyboardHelper.java | 85 private void createKeyboardsWithSpecificSize(int viewWidth, int viewHeight) { 87 viewWidth, viewHeight); 89 R.xml.password_kbd_qwerty, R.id.mode_normal, viewWidth, viewHeight); 94 R.id.mode_normal, viewWidth, viewHeight); 99 viewWidth, viewHeight); 103 R.xml.password_kbd_symbols_shift, viewWidth, viewHeight);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
NumericSprite.java | 68 float viewWidth, float viewHeight) { 70 mLabelMaker.beginDrawing(gl, viewWidth, viewHeight);
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/external/webkit/Source/WebCore/rendering/ |
RenderView.h | 58 int viewWidth() const; 59 int viewLogicalWidth() const { return style()->isHorizontalWritingMode() ? viewWidth() : viewHeight(); } 60 int viewLogicalHeight() const { return style()->isHorizontalWritingMode() ? viewHeight() : viewWidth(); }
|
/frameworks/base/core/java/android/widget/ |
FastScroller.java | 216 int viewWidth = mList.getWidth(); 217 mList.invalidate(viewWidth - mThumbW, mThumbY, viewWidth, mThumbY + mThumbH); 229 final int viewWidth = mList.getWidth(); 234 mThumbDrawable.setBounds(viewWidth - mThumbW, 0, viewWidth, mThumbH); 319 final int viewWidth = mList.getWidth(); 332 left = viewWidth - (mThumbW * alpha) / ScrollFade.ALPHA_MAX; 402 mList.invalidate(viewWidth - mThumbW, 0, viewWidth, mList.getHeight()) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
ModePicker.java | 283 int viewWidth = mModeSelectionIcon[MODE_CAMERA].getWidth(); 286 int padding = (viewWidth - iconWidth) / 2; 287 int l = mModeSelectionFrame.getLeft() + mCurrentMode * viewWidth;
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
ModePicker.java | 258 int viewWidth = mModeSelectionIcon[MODE_CAMERA].getWidth(); 261 int padding = (viewWidth - iconWidth) / 2; 262 int l = mModeSelectionFrame.getLeft() + mCurrentMode * viewWidth;
|
/packages/apps/Browser/src/com/android/browser/view/ |
BookmarkExpandableView.java | 367 public void measureChildren(int viewWidth) { 368 if (mLastViewWidth == viewWidth) return; 370 int rowCount = viewWidth / mColumnWidth; 374 int rowPadding = (viewWidth - (rowCount * mColumnWidth)) / 2; 378 mLastViewWidth = viewWidth;
|
/cts/tests/tests/widget/src/android/widget/cts/ |
MediaControllerTest.java | 208 final int viewWidth = videoView.getWidth(); 211 final float x = xy[0] + viewWidth / 2.0f;
|
/external/jmonkeyengine/engine/src/core/com/jme3/renderer/ |
RenderManager.java | 81 private int viewX, viewY, viewWidth, viewHeight;
425 tempVec4.set(viewX, viewY, viewWidth, viewHeight);
429 tempVec2.set(viewWidth, viewHeight);
433 tempVec2.set(1f / viewWidth, 1f / viewHeight);
437 float aspect = ((float) viewWidth) / viewHeight;
[all...] |