/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | Paper.java | 64 public void setSize(int width, int height) { argument 86 Matrix.translateM(mMatrix, 0, mMatrix, 0, -rect.width() / 2, -rect.height() / 2, 0);
|
H A D | TiledScreenNail.java | 62 public TiledScreenNail(int width, int height) { argument 63 setSize(width, height); 75 private void setSize(int width, int height) { argument 76 if (width == 0 || height == 0) { 78 height = sMaxSide * 3 / 4; 80 float scale = Math.min(1, (float) sMaxSide / Math.max(width, height)); 82 mHeight = Math.round(scale * height); 98 // height, and Bitmap, then recycle the other. 114 public void updatePlaceholderSize(int width, int height) { argument 116 if (width == 0 || height 155 draw(GLCanvas canvas, int x, int y, int width, int height) argument [all...] |
/packages/apps/Gallery2/src/com/android/photos/drawables/ |
H A D | AutoThumbnailDrawable.java | 71 public void setImage(T data, int width, int height) { argument 75 mImageHeight = height; 133 int vheight = mBounds.height(); 157 int vheight = mBounds.height(); 240 int sampleSize, width, height; 246 height = mImageHeight; 251 sampleSize = calculateSampleSizeLocked(width, height); 271 mOptions.inBitmap = sBitmapPool.get(width / sampleSize, height / sampleSize);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | InCallVideoCallCallbackNotifier.java | 210 * @param height New peer height. 212 public void peerDimensionsChanged(Call call, int width, int height) { argument 214 listener.onUpdatePeerDimensions(call, width, height); 223 * @param height The new camera video height. 225 public void cameraDimensionsChanged(Call call, int width, int height) { argument 227 listener.onCameraDimensionsChange(call, width, height); 328 * @param height 330 public void onUpdatePeerDimensions(Call call, int width, int height); argument 340 onCameraDimensionsChange(Call call, int width, int height) argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | DragView.java | 67 int left, int top, int width, int height, final float initialScale) { 110 mBitmap = Bitmap.createBitmap(bitmap, left, top, width, height); 111 setDragRegion(new Rect(0, 0, width, height)); 140 return mDragRegion.height(); 254 lp.height = mBitmap.getHeight(); 66 DragView(Launcher launcher, Bitmap bitmap, int registrationX, int registrationY, int left, int top, int width, int height, final float initialScale) argument
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | BasicTexture.java | 77 public void setSize(int width, int height) { argument 79 mHeight = height; 81 mTextureHeight = height > 0 ? Utils.nextPowerOf2(height) : 0; 111 // Returns the height rounded to the next power of 2.
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
H A D | WallpaperCropActivity.java | 413 defaultWallpaperSize.y / cropScale - cropRect.height(); 421 final int outHeight = (int) Math.round(cropRect.height() * cropScale); 440 protected void updateWallpaperDimensions(int width, int height) { argument 444 if (width != 0 && height != 0) { 446 editor.putInt(WALLPAPER_HEIGHT_KEY, height);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
H A D | TiledImageView.java | 180 final int height = swap ? mRenderer.source.getImageWidth() 182 mTempRectF.set(0, 0, width, height); 186 int cy = height / 2; 189 int yoffset = Math.round((getHeight() - mTempRectF.height()) / 2 / scale); 219 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 220 mCanvas.setSize(width, height); 221 mRenderer.image.setViewSize(width, height);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InvariantDeviceProfile.java | 130 // This guarantees that width < height 174 // width, height, #rows, #columns, #folder rows, #folder columns, 245 * Returns the closest device profiles ordered by closeness to the specified width and height 249 final float width, final float height, ArrayList<InvariantDeviceProfile> points) { 255 return (int) (dist(width, height, a.minWidthDps, a.minHeightDps) 256 - dist(width, height, b.minWidthDps, b.minHeightDps)); 264 InvariantDeviceProfile invDistWeightedInterpolate(float width, float height, argument 269 if (dist(width, height, p.minWidthDps, p.minHeightDps) == 0) { 276 float w = weight(width, height, p.minWidthDps, p.minHeightDps, WEIGHT_POWER); 248 findClosestDeviceProfiles( final float width, final float height, ArrayList<InvariantDeviceProfile> points) argument
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | LauncherEdgeEffect.java | 106 * @param height Effect height in pixels 108 public void setSize(int width, int height) { argument 112 final float or = height * 0.75f / SIN; 119 mBounds.set(mBounds.left, mBounds.top, width, (int) Math.min(height, h)); 195 Math.sqrt(Math.abs(mPullDistance) * mBounds.height()) - 0.3d) / 0.7d); 283 * 1.f of height. 293 final float centerY = mBounds.height() - mRadius; 312 * Return the maximum height that the edge effect will be drawn at given the original 314 * @return The maximum height o [all...] |
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | ImageUtils.cpp | 28 void ImageUtils::rgba2yvu(ImageType out, ImageType in, int width, int height) argument 32 ImageType vimg = yimg + width*height; 33 ImageType uimg = vimg + width*height; 36 for (int ii = 0; ii < height; ii++) { 73 void ImageUtils::rgb2yvu(ImageType out, ImageType in, int width, int height) argument 77 ImageType vimg = yimg + width*height; 78 ImageType uimg = vimg + width*height; 81 for (int ii = 0; ii < height; ii++) { 116 ImageType ImageUtils::rgb2gray(ImageType in, int width, int height) argument 121 ImageType out = ImageUtils::allocateImage(width, height, 146 rgb2gray(ImageType out, ImageType in, int width, int height) argument 176 imageTypeToRowPointers(ImageType in, int width, int height) argument 190 yvu2rgb(ImageType out, ImageType in, int width, int height) argument 235 yvu2bgr(ImageType out, ImageType in, int width, int height) argument 281 readBinaryPPM(const char *filename, int &width, int &height) argument 311 writeBinaryPPM(ImageType image, const char *filename, int width, int height, int numChannels) argument 333 allocateImage(int width, int height, int numChannels, short int border) argument 355 allocateImage(unsigned short width, unsigned short height) argument [all...] |
H A D | MosaicTypes.h | 72 int width, height; member in class:MosaicFrame 81 height = _height; 84 image = ImageUtils::allocateImage(width, height, ImageUtils::IMAGE_TYPE_NUM_CHANNELS); 100 return (image + (width*height)); 108 return (image + (width*height*2)); 116 ImageType U = image + (width*height); 125 ImageType U = image + (width*height*2);
|
H A D | Pyramid.cpp | 28 real width, real height, real border) 31 int lines, size = calcStorage(width, height, border2, levels, &lines); 43 curr->height = height; 49 for (int j = height + border2; j--; y++, position += curr->pitch) { 54 height >>= 1; 62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) argument 66 calloc(sizeof(PyramidShort) + sizeof(short *) * (height + border2) + 67 sizeof(short) * (width + border2) * (height + border2), 1); 71 short *position = (short *) &y[height 27 allocatePyramidPacked(real levels, real width, real height, real border) argument 96 calcStorage(real width, real height, real border2, int levels, int *lines) argument 115 int off, off2, height, h, w; local [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | BitmapPool.java | 65 * width as each other and height as each other, but not necessarily the same). 124 * @return The pool key for the provided image dimensions or 0 if either width or height is 127 private int getPoolKey(final int width, final int height) { argument 128 if (width > MAX_SUPPORTED_IMAGE_DIMENSION || height > MAX_SUPPORTED_IMAGE_DIMENSION) { 131 return (width << 16) | height; 139 private Bitmap findPoolBitmap(final int width, final int height) { argument 140 final int poolKey = getPoolKey(width, height); 158 * height and then set that in the bitmap options properly. 160 * TODO: Why do we take a width/height? Shouldn't this already be in the 165 * @param height Th 167 assignPoolBitmap(final BitmapFactory.Options optionsTmp, final int width, final int height) argument 186 decodeSampledBitmapFromResource(final int resourceId, @NonNull final Resources resources, @NonNull final BitmapFactory.Options optionsTmp, final int width, final int height) argument 226 decodeSampledBitmapFromInputStream(@onNull final InputStream inputStream, @NonNull final BitmapFactory.Options optionsTmp, final int width, final int height) argument 265 decodeByteArray(@onNull final byte[] bytes, @NonNull final BitmapFactory.Options optionsTmp, final int width, final int height) argument 304 createOrReuseBitmap(final int width, final int height) argument 318 createBitmap(final int width, final int height) argument 353 isFull(final int width, final int height) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | PoolableImageCache.java | 131 * @param height The height of the bitmap. 137 final int width, final int height) throws IOException { 138 if (width <= 0 || height <= 0) { 145 assignPoolBitmap(optionsTmp, width, height); 172 * @param height The height of the bitmap. 178 final int height) throws OutOfMemoryError, IOException { 179 if (width <= 0 || height <= 0) { 187 assignPoolBitmap(optionsTmp, width, height); 135 decodeSampledBitmapFromInputStream(@onNull final InputStream inputStream, @NonNull final BitmapFactory.Options optionsTmp, final int width, final int height) argument 176 decodeByteArray(@onNull final byte[] bytes, @NonNull final BitmapFactory.Options optionsTmp, final int width, final int height) argument 257 getReusableBitmapFromPool(final int width, final int height) argument 344 createOrReuseBitmap(final int width, final int height) argument 355 createOrReuseBitmap(final int width, final int height, final int backgroundColor) argument 370 assignPoolBitmap(final BitmapFactory.Options optionsTmp, final int width, final int height) argument 382 getPoolKey(final int width, final int height) argument [all...] |
/packages/apps/Nfc/src/com/android/nfc/beam/ |
H A D | FireflyRenderer.java | 95 // The surface to render the flies on, including width and height 132 public void start(SurfaceTexture surface, int width, int height) { argument 135 mDisplayHeight = height;
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | ActivityPicker.java | 332 public IconResizer(int width, int height, DisplayMetrics metrics) { argument 338 mIconHeight = height; 355 int height = mIconHeight; 358 return new EmptyDrawable(width, height); 365 painter.setIntrinsicHeight(height); 378 if (width < iconWidth || height < iconHeight) { 382 height = (int) (width / ratio); 384 width = (int) (height * ratio); 399 final int y = (mIconHeight - height) / 2; 400 icon.setBounds(x, y, x + width, y + height); 437 EmptyDrawable(int width, int height) argument [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | BitmapWorkerOptions.java | 131 public Builder height(int height) { argument 132 if (height > 0) { 133 mHeight = height; 135 throw new IllegalArgumentException("Can't set height to " + height);
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
H A D | AbstractAvatarDrawable.java | 110 protected void drawBitmap(final Bitmap bitmap, final int width, final int height, argument 120 final float boundsHeight = (float) bounds.height(); 121 final float scale = Math.max(boundsWidth / width, boundsHeight / height);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ConversationTipView.java | 83 params.height = ViewGroup.LayoutParams.WRAP_CONTENT; 254 * Instead, we'll just leave the item in the list with a height of 0, and the next 265 public void setAnimatedHeight(final int height) { argument 266 mAnimatedHeight = height;
|
H A D | FolderDisplayer.java | 183 public static void drawFolder(Canvas canvas, float x, float y, int width, int height, argument 186 drawFolder(canvas, x, y, width, height, f.name, 191 public static void drawFolder(Canvas canvas, float x, float y, int width, int height, argument 200 final RectF rect = new RectF(0, 0, width, height); 259 final int textY = height / 2 - (int) (paint.descent() + paint.ascent()) / 2;
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
H A D | SurfaceTextureView.java | 204 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 206 mViewHeight = height;
|
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/keyboard/ |
H A D | ProximityInfo.java | 61 ProximityInfo(final int gridWidth, final int gridHeight, final int minWidth, final int height, argument 69 mCellHeight = (height + mGridHeight - 1) / mGridHeight; 71 mKeyboardHeight = height; 76 if (minWidth == 0 || height == 0) { 196 final int hitBoxHeight = hitBox.height(); 298 | | | |***|**########*|***| | | | | Adding half the cell height to the top 310 [Zoomed in diagram] | the height of the cell. 318 | (left)| | | ^ = | | of top cell | the height of the cell, we start the
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | MoreSuggestions.java | 254 final int y, final int width, final int height) { 255 super(params, x, y, width, height); 253 Divider(final KeyboardParams params, final Drawable icon, final int x, final int y, final int width, final int height) argument
|