Home
last modified time | relevance | path

Searched refs:fullSize (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java670 Bitmap fullSize = null; local
676 fullSize = BitmapFactory.decodeStream(is, null, options);
679 if (fullSize != null) {
681 scaleDownSampleSize = bounds.x / fullSize.getWidth();
689 if (roundedTrueCrop.width() > fullSize.getWidth()) {
691 roundedTrueCrop.right = roundedTrueCrop.left + fullSize.getWidth();
693 if (roundedTrueCrop.right > fullSize.getWidth()) {
700 if (roundedTrueCrop.height() > fullSize.getHeight()) {
702 roundedTrueCrop.bottom = roundedTrueCrop.top + fullSize.getHeight();
704 if (roundedTrueCrop.bottom > fullSize.getHeight()) {
[all …]
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp203 static bool needsFineScale(const int fullSize, const int decodedSize, const int sampleSize) { in needsFineScale() argument
204 if (fullSize % sampleSize == 0 && fullSize / sampleSize != decodedSize) { in needsFineScale()
206 } else if ((fullSize / sampleSize + 1) != decodedSize && in needsFineScale()
207 (fullSize / sampleSize) != decodedSize) { in needsFineScale()
213 static bool needsFineScale(const SkISize fullSize, const SkISize decodedSize, in needsFineScale() argument
215 return needsFineScale(fullSize.width(), decodedSize.width(), sampleSize) || in needsFineScale()
216 needsFineScale(fullSize.height(), decodedSize.height(), sampleSize); in needsFineScale()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp579 uint32_t fullSize = mWidth * mHeight * mBytesPerSample * mSamplesPerPixel; in writeToStream() local
582 if (fullSize != count) { in writeToStream()
584 fullSize); in writeToStream()
596 fullSize); in writeToStream()
630 PRIu32, fullSize); in writeToStream()
713 uint32_t fullSize = mWidth * mHeight * mBytesPerSample * mSamplesPerPixel; in writeToStream() local
715 if (fullSize != count) { in writeToStream()
717 fullSize); in writeToStream()
727 if (stream.write(mPixelBytes, mOffset, fullSize) != OK || mEnv->ExceptionCheck()) { in writeToStream()
2115 size_t fullSize = width * height * BYTES_PER_RGB_PIXEL; in DngCreator_nativeSetThumbnail() local
[all …]
/frameworks/base/core/java/android/app/
DWallpaperManager.java626 Bitmap fullSize = BitmapFactory.decodeStream(is, null, null); in getBuiltInDrawable() local
627 return new BitmapDrawable(resources, fullSize); in getBuiltInDrawable()
698 Bitmap fullSize = null; in getBuiltInDrawable() local
703 fullSize = BitmapFactory.decodeStream(is, null, options); in getBuiltInDrawable()
704 if (fullSize != null) { in getBuiltInDrawable()
705 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in getBuiltInDrawable()
/frameworks/av/media/libstagefright/
DOggExtractor.cpp700 size_t fullSize = packetSize; in _readNextPacket() local
702 fullSize += buffer->range_length(); in _readNextPacket()
704 if (fullSize > 16 * 1024 * 1024) { // arbitrary limit of 16 MB packet size in _readNextPacket()
711 MediaBuffer *tmp = new (std::nothrow) MediaBuffer(fullSize); in _readNextPacket()
740 buffer->set_range(0, fullSize); in _readNextPacket()