/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
H A D | WallpaperTileInfo.java | 50 int height = size.y; 64 (int) rotatedBounds[0], (int) rotatedBounds[1], width, height, leftAligned); 65 return streamProvider.readCroppedBitmap(cropRect, width, height, rotation);
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cube/ |
H A D | CubeRenderer.java | 88 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 89 gl.glViewport(0, 0, width, height); 97 float ratio = (float) width / height;
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | EventGeometry.java | 38 public void setMinEventHeight(float height) { argument 39 mMinEventHeight = height; 42 public void setHourHeight(float height) { argument 43 mMinuteHeight = height / 60.0f;
|
H A D | MultiStateButton.java | 165 final int height = mButtonDrawable.getIntrinsicHeight(); 173 y = getHeight() - height; 176 y = (getHeight() - height) / 2; 188 mButtonDrawable.setBounds(x, y, x + width, y + height);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | BasicTexture.java | 78 public void setSize(int width, int height) { argument 80 mHeight = height; 82 mTextureHeight = height > 0 ? Utils.nextPowerOf2(height) : 0; 112 // Returns the height rounded to the next power of 2.
|
H A D | GLCanvas.java | 29 // [x, x+width) * [y, y+height) 38 // who only want to draw on the GLCanvas. Both width and height must be 40 public abstract void setSize(int width, int height); argument 92 public abstract void fillRect(float x, float y, float width, float height, int color); argument 96 BasicTexture texture, int x, int y, int width, int height); 206 * Gets the bounds given by x, y, width, and height as well as the internal 214 * @param height The height of the input rectangle. 216 public abstract void getBounds(Rect bounds, int x, int y, int width, int height); argument 95 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument
|
H A D | GLES20Canvas.java | 346 public void setSize(int width, int height) { argument 348 mHeight = height; 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 355 mScreenHeight = height; 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 486 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument 487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint); 491 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument 493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth()); 496 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument 554 draw(ShaderParameter[] params, int type, int count, float x, float y, float width, float height) argument 566 setMatrix(ShaderParameter[] params, float x, float y, float width, float height) argument 575 fillRect(float x, float y, float width, float height, int color) argument 582 drawTexture(BasicTexture texture, int x, int y, int width, int height) argument 993 getBounds(Rect bounds, int x, int y, int width, int height) argument [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic_renderer/ |
H A D | FrameBuffer.h | 15 bool Init(int width, int height, GLenum format);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | LogoUtils.java | 99 * Returns a new Bitmap with the specified maximum width and height. Does scaling if 105 int height = bitmap.getHeight(); 106 double ratio = Math.max((double) width / maxWidth, (double) height / maxHeight); 110 height /= ratio; 111 bitmap = Bitmap.createScaledBitmap(bitmap, width, height, false);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/auto/ |
H A D | GrantPermissionsAutoViewHandler.java | 44 outLayoutParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | BasicTexture.java | 75 public void setSize(int width, int height) { argument 77 mHeight = height; 79 mTextureHeight = height > 0 ? Utils.nextPowerOf2(height) : 0; 105 // Returns the height rounded to the next power of 2.
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
H A D | VideoChatTestActivity.java | 96 logMessage(size.width + "x" + size.height); 258 public FrameCatcher(int width, int height) { argument 259 mExpectedSize = width * height * 3 / 2; 299 int width, int height, 303 width + "x" + height + " " + 308 Log.v(TAG, "Start test -- id " + whichCamera + " " + width + "x" + height + 338 publishProgress("Changing preview parameters " + width + "x" + height + baseStatus); 340 parameters.setPreviewSize(width, height); 350 if (setSize.width != width || setSize.height != height) { 298 TestCamera(int whichCamera, int width, int height, int frameRate, List<Integer> setDisplayOrentationAngles) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/ |
H A D | SetupStartIndicatorView.java | 101 final int height = getHeight(); 102 final float halfHeight = height / 2.0f; 109 path.lineTo(width, height); 114 path.lineTo(0.0f, height);
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | DragPreviewProvider.java | 112 int height = mView.getHeight(); 118 height = bounds.height(); 122 height = (int) (mView.getHeight() * scale); 125 Bitmap b = Bitmap.createBitmap(width + blurSizeOutline, height + blurSizeOutline, 154 int height = mView.getHeight(); 159 height = (int) Math.floor(mView.getHeight() * scale); 162 Bitmap b = Bitmap.createBitmap(width + blurSizeOutline, height + blurSizeOutline, 181 if (bounds.width() == 0 || bounds.height() == 0) {
|
H A D | ShadowGenerator.java | 74 int height = resize ? mIconSize : icon.getHeight(); 79 Bitmap result = Bitmap.createBitmap(width, height, Config.ARGB_8888); 147 public Builder setupBlurForSize(int height) { argument 148 shadowBlur = height * 1f / 32; 149 keyShadowDistance = height * 1f / 16; 153 public Bitmap createPill(int width, int height) { argument 154 radius = height / 2; 159 bounds.set(0, 0, width, height); 160 bounds.offsetTo(center - width / 2, center - height / 2);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | LeaveBehindItem.java | 52 * The height of this view. Typically, this matches the height of the originating 110 ToastBarOperation undoOp, Conversation target, Folder folder, int height) { 115 mHeight = height; 163 * Animate shrinking the height of this view. 169 final ObjectAnimator height = ObjectAnimator.ofInt(this, "animatedHeight", mHeight, 0); 172 height.setInterpolator(new DecelerateInterpolator(1.75f)); 173 height.setDuration(sShrinkAnimationDuration); 174 height.addListener(listener); 175 height 109 bind(int pos, Account account, AnimatedAdapter adapter, ToastBarOperation undoOp, Conversation target, Folder folder, int height) argument 285 setAnimatedHeight(int height) argument [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
H A D | GalleryThumbnailView.java | 45 * @return width / height 136 Log.e(TAG, "onMeasure: must have an exact height or match_parent! " + 143 float height = getMeasuredHeight() / portSpaces; 144 mLargeColumnWidth = (int) (height / ASPECT_RATIO); 146 height = getMeasuredHeight() / portSpaces; 147 mSmallColumnWidth = (int) (height / ASPECT_RATIO); 157 final int height = b - t; 158 mLeftEdge.setSize(width, height); 159 mRightEdge.setSize(width, height); 438 final int height 729 LayoutParams(int height) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
H A D | Storage.java | 88 * @param height The height of the media file after the orientation is 93 int height) throws IOException { 95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, 114 * @param height The height of the media file after the orientation is 122 int height, String mimeType) throws IOException { 128 path, width, height, mimeType); 143 * @param height The height o 91 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height) argument 120 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] data, int width, int height, String mimeType) argument 149 addImageToMediaStore(ContentResolver resolver, String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument 172 getContentValuesForData(String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument 269 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument 285 setImageSize(ContentValues values, int width, int height) argument 395 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument [all...] |
H A D | Thumbnail.java | 59 int height = bitmap.getHeight(); 63 int h = Math.round(scale * height);
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | ActivityPicker.java | 336 public IconResizer(int width, int height, DisplayMetrics metrics) { argument 342 mIconHeight = height; 359 int height = mIconHeight; 362 return new EmptyDrawable(width, height); 369 painter.setIntrinsicHeight(height); 382 if (width < iconWidth || height < iconHeight) { 386 height = (int) (width / ratio); 388 width = (int) (height * ratio); 403 final int y = (mIconHeight - height) / 2; 404 icon.setBounds(x, y, x + width, y + height); 441 EmptyDrawable(int width, int height) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/session/ |
H A D | StackSaverImpl.java | 62 public Uri saveStackedImage(File inputImagePath, String title, int width, int height, argument 73 mGpsLocation, imageOrientation, fileLength, filePath, width, height,
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | TimerCircleFrameLayout.java | 44 * width and height values. 59 final int height = MeasureSpec.getSize(heightMeasureSpec) - paddingTop - paddingBottom; 60 final int smallestDimension = Math.min(width, height);
|
/packages/apps/Gallery2/jni/filters/ |
H A D | bwfilter.c | 20 void JNIFUNCF(ImageFilterBwFilter, nativeApplyFilter, jobject bitmap, jint width, jint height, jint rw, jint gw, jint bw) argument 38 int len = width * height * 4;
|
H A D | gradient.c | 19 void JNIFUNCF(ImageFilter, nativeApplyGradientFilter, jobject bitmap, jint width, jint height, argument 35 int len = width * height * 4;
|
H A D | hue.c | 19 void JNIFUNCF(ImageFilterHue, nativeApplyFilter, jobject bitmap, jint width, jint height, jfloatArray matrix) argument 25 int len = width * height * 4;
|