Home
last modified time | relevance | path

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

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DImagePreviewImageLoaderTest.kt64 private val imageSize = Size(300, 300) constant in com.android.intentresolver.contentpreview.ImagePreviewImageLoaderTest
76 imageSize.width,
86 verify(contentResolver, times(1)).loadThumbnail(uriOne, imageSize, null) in prePopulate_cachesImagesUpToTheCacheSize()
87 verify(contentResolver, never()).loadThumbnail(uriTwo, imageSize, null) in prePopulate_cachesImagesUpToTheCacheSize()
90 verify(contentResolver, times(1)).loadThumbnail(uriOne, imageSize, null) in prePopulate_cachesImagesUpToTheCacheSize()
118 imageSize.width, in invoke_overlappedRequests_Deduplicate()
139 verify(contentResolver, times(2)).loadThumbnail(uriOne, imageSize, null) in invoke_oldRecordsEvictedFromTheCache()
140 verify(contentResolver, times(1)).loadThumbnail(uriTwo, imageSize, null) in invoke_oldRecordsEvictedFromTheCache()
150 verify(contentResolver, times(2)).loadThumbnail(uriOne, imageSize, null) in invoke_doNotCacheNulls()
160 imageSize.width, in invoke_onClosedImageLoaderScope_throwsCancellationException()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DStaticWallpaperPreviewBinder.kt89 val imageSize = Point(fullResImageView.width, fullResImageView.height) in <lambda>() constant
96 imageSize, in <lambda>()
103 imageSize, in <lambda>()
105 hostViewSize = imageSize, in <lambda>()
109 max(imageSize.x, imageSize.y), in <lambda>()
110 min(imageSize.x, imageSize.y), in <lambda>()
111 imageSize.x, in <lambda>()
112 imageSize.y, in <lambda>()
DFullWallpaperPreviewBinder.kt262 val imageSize = in <lambda>() constant
267 max(imageSize.x, imageSize.y), in <lambda>()
268 min(imageSize.x, imageSize.y), in <lambda>()
269 imageSize.x, in <lambda>()
270 imageSize.y in <lambda>()
280 hostViewSize = imageSize, in <lambda>()
/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/modules/NeuralNetworks/common/include/
DOperationsExecutionUtils.h83 inline int32_t computeOutSize(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSize() argument
85 return (imageSize - filterSize + stride + paddingHead + paddingTail) / stride; in computeOutSize()
88 inline int32_t computeOutSize(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSize() argument
91 return (imageSize - effectiveFilterSize + stride + paddingHead + paddingTail) / stride; in computeOutSize()
94 inline int32_t computeOutSizeTransposeConv(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSizeTransposeConv() argument
96 return imageSize * stride + filterSize - stride - paddingHead - paddingTail; in computeOutSizeTransposeConv()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java471 final Rect imageSize = ImageUtils.decodeImageBounds( in decodeAndSaveSizeIfImage() local
473 if (imageSize.width() != ImageRequest.UNSPECIFIED_SIZE && in decodeAndSaveSizeIfImage()
474 imageSize.height() != ImageRequest.UNSPECIFIED_SIZE) { in decodeAndSaveSizeIfImage()
475 mWidth = imageSize.width(); in decodeAndSaveSizeIfImage()
476 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/Dialer/java/com/android/incallui/incall/impl/
DCheckableLabeledButton.java86 int imageSize = getResources().getDimensionPixelSize(R.dimen.incall_labeled_button_icon_size); in init() local
87 int iconPadding = (iconSize - imageSize) / 2; in init()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListItemView.java490 final int imageSize = resources.getDimensionPixelSize( in bind() local
493 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.java470 int imageSize = getDataLength(context, imageUri); in addPicturePart() local
471 if (imageSize <= 0) { in addPicturePart()
477 LogUtil.v(TAG, "addPicturePart size: " + imageSize + " width: " in addPicturePart()
489 if (imageSize <= maxPartSize && in addPicturePart()
508 imageSize = part.getData().length; in addPicturePart()
516 LogUtil.v(TAG, "addPicturePart size: " + imageSize); in addPicturePart()
519 return imageSize; in addPicturePart()