/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestUtilsMatchers.java | 49 final int viewWidth = view.getWidth(); 50 if (viewWidth < minWidth) { 52 "width " + viewWidth + " is less than minimum " + minWidth; 74 final int viewWidth = view.getWidth(); 75 if (viewWidth > maxWidth) { 77 "width " + viewWidth + " is more than maximum " + maxWidth;
|
/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
|
/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...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
CircleView.java | 93 int viewWidth = getWidth(); 94 if (viewWidth == 0 || !mIsInitialized) {
|
AmPmCirclesView.java | 152 int viewWidth = getWidth(); 153 if (viewWidth == 0 || !mIsInitialized) {
|
RadialTextsView.java | 175 int viewWidth = getWidth(); 176 if (viewWidth == 0 || !mIsInitialized) {
|
RadialSelectorView.java | 273 int viewWidth = getWidth(); 274 if (viewWidth == 0 || !mIsInitialized) {
|
/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/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/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...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
CircleImageView.java | 146 final int viewWidth = CircleImageView.this.getWidth(); 148 canvas.drawCircle(viewWidth / 2, viewHeight / 2, (mCircleDiameter / 2 + mShadowRadius), 150 canvas.drawCircle(viewWidth / 2, viewHeight / 2, (mCircleDiameter / 2), paint);
|
/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;
|
/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;
|
/cts/tests/tests/widget/src/android/widget/cts/ |
MediaControllerTest.java | 219 final int viewWidth = videoView.getWidth(); 222 final float x = xy[0] + viewWidth / 2.0f;
|
PopupWindowTest.java | [all...] |
/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;
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationItemViewModel.java | 94 public int viewWidth; 208 return Objects.hashCode(mDataHashCode, viewWidth, standardScaledDimen, gadgetMode);
|
/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));
|
/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...] |
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
Camera2MultiViewTestCase.java | 180 int viewWidth = textureView.getWidth(); 182 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); 201 Math.max(viewWidth / (float) effectiveWidth, viewHeight / (float) effectiveHeight);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
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);
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
CircledImageView.java | 346 final int viewWidth = getMeasuredWidth(); 354 ? imageCirclePercentage * viewWidth / nativeDrawableWidth : 1, 364 final int drawableLeft = (viewWidth - drawableWidth) / 2
|
/frameworks/base/core/java/com/android/internal/widget/ |
LockPatternView.java | 648 int viewWidth = resolveMeasured(widthMeasureSpec, minimumWidth); 653 viewWidth = viewHeight = Math.min(viewWidth, viewHeight); 656 viewHeight = Math.min(viewWidth, viewHeight); 659 viewWidth = Math.min(viewWidth, viewHeight); 662 // Log.v(TAG, "LockPatternView dimensions: " + viewWidth + "x" + viewHeight); 663 setMeasuredDimension(viewWidth, viewHeight); [all...] |
/packages/apps/TV/src/com/android/tv/ui/ |
TvViewUiManager.java | 225 int viewWidth = mContentView.getWidth(); 229 if (viewWidth <= 0 || viewHeight <= 0 || videoDisplayAspectRatio <= 0f) { 233 + "viewWidth=" + viewWidth 241 float viewRatio = viewWidth / (float) viewHeight; [all...] |