Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp157 static bool needsFineScale(const int fullSize, const int decodedSize, const int sampleSize) { in needsFineScale() argument
158 if (fullSize % sampleSize == 0 && fullSize / sampleSize != decodedSize) { in needsFineScale()
160 } else if ((fullSize / sampleSize + 1) != decodedSize && in needsFineScale()
161 (fullSize / sampleSize) != decodedSize) { in needsFineScale()
167 static bool needsFineScale(const SkISize fullSize, const SkISize decodedSize, in needsFineScale() argument
169 return needsFineScale(fullSize.width(), decodedSize.width(), sampleSize) || in needsFineScale()
170 needsFineScale(fullSize.height(), decodedSize.height(), sampleSize); in needsFineScale()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java667 Bitmap fullSize = null; local
673 fullSize = BitmapFactory.decodeStream(is, null, options);
676 if (fullSize != null) {
678 scaleDownSampleSize = bounds.x / fullSize.getWidth();
686 if (roundedTrueCrop.width() > fullSize.getWidth()) {
688 roundedTrueCrop.right = roundedTrueCrop.left + fullSize.getWidth();
690 if (roundedTrueCrop.right > fullSize.getWidth()) {
697 if (roundedTrueCrop.height() > fullSize.getHeight()) {
699 roundedTrueCrop.bottom = roundedTrueCrop.top + fullSize.getHeight();
701 if (roundedTrueCrop.bottom > fullSize.getHeight()) {
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp581 uint32_t fullSize = mWidth * mHeight * mBytesPerSample * mSamplesPerPixel; in writeToStream() local
584 if (fullSize != count) { in writeToStream()
586 fullSize); in writeToStream()
598 fullSize); in writeToStream()
632 PRIu32, fullSize); in writeToStream()
715 uint32_t fullSize = mWidth * mHeight * mBytesPerSample * mSamplesPerPixel; in writeToStream() local
717 if (fullSize != count) { in writeToStream()
719 fullSize); in writeToStream()
729 if (stream.write(mPixelBytes, mOffset, fullSize) != OK || mEnv->ExceptionCheck()) { in writeToStream()
2386 size_t fullSize = width * height * BYTES_PER_RGB_PIXEL; in DngCreator_nativeSetThumbnail() local
[all …]
/frameworks/av/media/extractors/ogg/
DOggExtractor.cpp780 size_t fullSize = packetSize; in _readNextPacket() local
782 fullSize += buffer->range_length(); in _readNextPacket()
784 if (fullSize > 16 * 1024 * 1024) { // arbitrary limit of 16 MB packet size in _readNextPacket()
793 mBufferGroup->acquire_buffer(&tmp, false, fullSize); in _readNextPacket()
796 tmp = new StandAloneMediaBuffer(fullSize); in _readNextPacket()
827 buffer->set_range(0, fullSize); in _readNextPacket()
/frameworks/base/core/java/android/app/
DWallpaperManager.java697 Bitmap fullSize = BitmapFactory.decodeStream(is, null, null); in getBuiltInDrawable() local
698 return new BitmapDrawable(resources, fullSize); in getBuiltInDrawable()
769 Bitmap fullSize = null; in getBuiltInDrawable() local
774 fullSize = BitmapFactory.decodeStream(is, null, options); in getBuiltInDrawable()
775 if (fullSize != null) { in getBuiltInDrawable()
776 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in getBuiltInDrawable()