Home
last modified time | relevance | path

Searched refs:imageSize (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/ui/
DZoomView.java72 Point imageSize = FilmstripItemUtils.decodeBitmapDimension(isForDimensions); in doInBackground() local
78 if (imageSize == null) { in doInBackground()
82 RectF fullResRect = new RectF(0, 0, imageSize.x - 1, imageSize.y - 1); in doInBackground()
89 rotationMatrix.mapRect(fullResRect, new RectF(0, 0, imageSize.x - 1, in doInBackground()
90 imageSize.y - 1)); in doInBackground()
116 region.intersect(0, 0, imageSize.x - 1, imageSize.y - 1); in doInBackground()
/packages/apps/LegacyCamera/jni/
Dfeature_mos_jni.cpp577 int imageSize = width * height; in Java_com_android_camera_panorama_Mosaic_getFinalMosaic() local
584 LOGV("MosBytes: %d, W = %d, H = %d", imageSize, width, height); in Java_com_android_camera_panorama_Mosaic_getFinalMosaic()
586 int* image = new int[imageSize]; in Java_com_android_camera_panorama_Mosaic_getFinalMosaic()
603 jintArray bytes = env->NewIntArray(imageSize+2); in Java_com_android_camera_panorama_Mosaic_getFinalMosaic()
609 env->SetIntArrayRegion(bytes, 0, imageSize, (jint*) image); in Java_com_android_camera_panorama_Mosaic_getFinalMosaic()
610 env->SetIntArrayRegion(bytes, imageSize, 2, (jint*) dims); in Java_com_android_camera_panorama_Mosaic_getFinalMosaic()
626 int imageSize = 1.5*width * height; in Java_com_android_camera_panorama_Mosaic_getFinalMosaicNV21() local
640 LOGV("MosBytes: %d, W = %d, H = %d", imageSize, width, height); in Java_com_android_camera_panorama_Mosaic_getFinalMosaicNV21()
654 jbyteArray bytes = env->NewByteArray(imageSize+8); in Java_com_android_camera_panorama_Mosaic_getFinalMosaicNV21()
660 env->SetByteArrayRegion(bytes, 0, imageSize, (jbyte*) resultYVU); in Java_com_android_camera_panorama_Mosaic_getFinalMosaicNV21()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTileGrid.java158 final int imageSize = (widthMinusPadding) / mColumnCount; in onMeasureForTiles() local
159 final int remainder = widthMinusPadding - (imageSize * mColumnCount); in onMeasureForTiles()
164 final int childWidth = imageSize + (i < remainder ? 1 : 0); in onMeasureForTiles()
167 MeasureSpec.makeMeasureSpec(imageSize, MeasureSpec.EXACTLY) in onMeasureForTiles()
175 numRows * (imageSize + getChildAt(0).getPaddingBottom()) + in onMeasureForTiles()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java453 final Rect imageSize = ImageUtils.decodeImageBounds( in decodeAndSaveSizeIfImage() local
455 if (imageSize.width() != ImageRequest.UNSPECIFIED_SIZE && in decodeAndSaveSizeIfImage()
456 imageSize.height() != ImageRequest.UNSPECIFIED_SIZE) { in decodeAndSaveSizeIfImage()
457 mWidth = imageSize.width(); in decodeAndSaveSizeIfImage()
458 mHeight = imageSize.height(); in decodeAndSaveSizeIfImage()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskConvertImageToRGBPreview.java138 protected int calculateBestSubsampleFactor(Size imageSize, Size targetSize) { in calculateBestSubsampleFactor() argument
139 int maxSubsample = Math.min(imageSize.getWidth() / targetSize.getWidth(), in calculateBestSubsampleFactor()
140 imageSize.getHeight() / targetSize.getHeight()); in calculateBestSubsampleFactor()
149 if (((imageSize.getWidth() % (2 * i) == 0) in calculateBestSubsampleFactor()
150 && (imageSize.getHeight() % (2 * i) == 0))) { in calculateBestSubsampleFactor()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java613 final int imageSize = (width - totalWhitespaceInPixels) / mColumnCount;
614 final int remainder = width - (imageSize * mColumnCount) - totalWhitespaceInPixels;
618 final int childWidth = imageSize + child.getPaddingRight() + child.getPaddingLeft()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewWidget.java156 int[] imageSize = getPreviewSize(); in applyPreview() local
157 int centerAmount = (imageSize[0] - preview.getIntrinsicWidth()) / 2; in applyPreview()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListItemView.java483 final int imageSize = resources.getDimensionPixelSize( in bind() local
486 new UriImageRequestDescriptor(previewImageUri, imageSize, imageSize, in bind()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
DInfoPanel.java77 mImageSize = (TextView) mMainView.findViewById(R.id.imageSize); in onCreateView()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java465 int imageSize = getDataLength(context, imageUri); in addPicturePart() local
466 if (imageSize <= 0) { in addPicturePart()
472 LogUtil.v(TAG, "addPicturePart size: " + imageSize + " width: " in addPicturePart()
484 if (imageSize <= maxPartSize && in addPicturePart()
503 imageSize = part.getData().length; in addPicturePart()
511 LogUtil.v(TAG, "addPicturePart size: " + imageSize); in addPicturePart()
514 return imageSize; in addPicturePart()