/cts/tests/tests/view/src/android/view/cts/util/ |
DrawingUtils.java | 42 final int viewWidth = view.getWidth(); 45 final Bitmap bitmap = Bitmap.createBitmap(viewWidth, viewHeight, Bitmap.Config.ARGB_8888); 52 final Bitmap goldenBitmap = Bitmap.createBitmap(viewWidth, viewHeight, 60 goldenCanvas.drawRect(0, 0, viewWidth, viewHeight, goldenPaint); 70 int[] rowPixels = new int[viewWidth]; 71 int[] rowGoldenPixels = new int[viewWidth]; 73 bitmap.getPixels(rowPixels, 0, viewWidth, 0, row, viewWidth, 1); 74 goldenBitmap.getPixels(rowGoldenPixels, 0, viewWidth, 0, row, viewWidth, 1) [all...] |
/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
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
TouchUtils.java | 37 final int viewWidth = v.getWidth(); 40 final float x = xy[0] + (viewWidth / 2.0f); 68 final int viewWidth = v.getWidth(); 71 final float x = xy[0] + (viewWidth / 2.0f); 95 final int viewWidth = v.getWidth(); 98 final float x = xy[0] + (viewWidth / 2.0f); 132 final int viewWidth = v.getWidth(); 135 final float x = xy[0] + (viewWidth / 2.0f); 173 final int viewWidth = v.getWidth(); 176 final float x = xy[0] + (viewWidth / 2.0f) [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
CircleImageView.java | 145 final int viewWidth = CircleImageView.this.getWidth(); 147 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2, mShadowPaint); 148 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2 - mShadowRadius, paint);
|
/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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
GeometryMathUtils.java | 332 boolean reflectRotation, Rect bmapDimens, float viewWidth, float viewHeight) { 335 bmapDimens.height(), viewWidth, viewHeight); 374 float originalHeight, float viewWidth, float viewHeight) { 381 (int) originalHeight, (int) viewWidth, (int) viewHeight); 402 Bitmap photo, int viewWidth, int viewHeight) { 408 viewWidth, viewHeight); 441 int bitmapHeight, int viewWidth, int viewHeight) { 448 float scale = GeometryMathUtils.scale(bw, bh, viewWidth, viewHeight); 450 float s = Math.min(viewWidth / (float) bitmapWidth, viewHeight / (float) bitmapHeight); 453 m.postTranslate(viewWidth / 2f, viewHeight / 2f) [all...] |
ImageStraighten.java | 207 int imageHeight, int viewWidth, int viewHeight) { 225 float scale = GeometryMathUtils.scale(iw, ih, viewWidth, viewHeight); 229 tmp.offset(viewWidth / 2f - tmp.centerX(), viewHeight / 2f - tmp.centerY()); 232 imageHeight, viewWidth, viewHeight); 253 int viewWidth = canvas.getWidth(); 258 imageHeight, viewWidth, viewHeight); 269 imageHeight, viewWidth, viewHeight); 281 float step = Math.max(viewWidth, viewHeight) / NBLINES; 291 canvas.drawLine(0, p, viewWidth, p, mPaint);
|
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 230 final int viewWidth = v.getWidth(); 233 final float x = xy[0] + (viewWidth / 2.0f); 250 final int viewWidth = v.getWidth(); 253 final float x = xy[0] + (viewWidth / 2.0f); 290 final int viewWidth = v.getWidth(); 293 final float x = xy[0] + (viewWidth / 2.0f); 325 final int viewWidth = v.getWidth(); 328 final float x = xy[0] + (viewWidth / 2.0f); 386 final int viewWidth = v.getWidth(); 389 final float x = xy[0] + (viewWidth / 2.0f) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SlideshowView.java | 139 int viewWidth = getWidth(); 143 viewWidth / mWidth, (float) viewHeight / mHeight); 146 float centerX = viewWidth / 2 + mMovingVector.x * mProgress;
|
/pdk/apps/TestingCamera/src/com/android/testingcamera/ |
CallbackProcessor.java | 53 int viewWidth, int viewHeight, 66 tb.setX(viewWidth); 76 mFormat, viewWidth, viewHeight);
|
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/ |
AndroidLiveWallpaperService.java | 70 protected int viewWidth;
262 viewWidth = 0;
278 engineWidth = viewWidth;
322 if (!forceUpdate && format == viewFormat && width == viewWidth && height == viewHeight) {
334 viewWidth = engineWidth;
336 view.surfaceChanged(this.getSurfaceHolder(), viewFormat, viewWidth, viewHeight);
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
MultiSelectManager_GridModelTest.java | 44 private int viewWidth; 71 viewWidth = VIEW_PADDING_PX + numColumns * (VIEW_PADDING_PX + CHILD_VIEW_EDGE_PX); 104 startSelection(new Point(viewWidth - 1, 10)); 105 resizeSelection(new Point(viewWidth - 2, 11)); 189 resizeSelection(new Point(viewWidth - 1, 0)); 198 resizeSelection(new Point(viewWidth - 1, 420));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskViewThumbnail.java | 130 int viewWidth = mTaskViewRect.width(); 132 int thumbnailWidth = Math.min(viewWidth, 142 if (thumbnailWidth < viewWidth) { 145 viewWidth, viewHeight, 151 viewWidth, viewHeight, 159 canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius,
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestUtilsMatchers.java | 55 final int viewWidth = view.getWidth(); 56 if (viewWidth < minWidth) { 58 "width " + viewWidth + " is less than minimum " + minWidth; 80 final int viewWidth = view.getWidth(); 81 if (viewWidth > maxWidth) { 83 "width " + viewWidth + " is more than maximum " + maxWidth;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
NumericSprite.java | 68 float viewWidth, float viewHeight) { 70 mLabelMaker.beginDrawing(gl, viewWidth, viewHeight);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
CircleView.java | 93 int viewWidth = getWidth(); 94 if (viewWidth == 0 || !mIsInitialized) {
|
/developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
ButtonDropTarget.java | 124 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { 151 final int xOffset = (int) -(viewWidth - width) / 2;
|
/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/Messaging/src/com/android/messaging/ui/animation/ |
PopupTransitionAnimation.java | 269 final float viewWidth = mViewToAnimate.getWidth(); 271 if (viewWidth > 0 && viewHeight > 0) { 272 canvas.scale(mCurrentRect.width() / viewWidth,
|
/external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/ |
ViEAndroidGLES20.java | 41 private int viewWidth = 0; 320 if(0 != CreateOpenGLNative(nativeObject, viewWidth, viewHeight)) { 331 viewWidth = width;
|