Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp160 static bool needsFineScale(const int fullSize, const int decodedSize, const int sampleSize) { in needsFineScale() argument
161 if (fullSize % sampleSize == 0 && fullSize / sampleSize != decodedSize) { in needsFineScale()
163 } else if ((fullSize / sampleSize + 1) != decodedSize && in needsFineScale()
164 (fullSize / sampleSize) != decodedSize) { in needsFineScale()
170 static bool needsFineScale(const SkISize fullSize, const SkISize decodedSize, in needsFineScale() argument
172 return needsFineScale(fullSize.width(), decodedSize.width(), sampleSize) || in needsFineScale()
173 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.cpp597 uint32_t fullSize = mWidth * mHeight * mBytesPerSample * mSamplesPerPixel; in writeToStream() local
600 if (fullSize != count) { in writeToStream()
602 fullSize); in writeToStream()
614 fullSize); in writeToStream()
648 PRIu32, fullSize); in writeToStream()
731 uint32_t fullSize = mWidth * mHeight * mBytesPerSample * mSamplesPerPixel; in writeToStream() local
733 if (fullSize != count) { in writeToStream()
735 fullSize); in writeToStream()
745 if (stream.write(mPixelBytes, mOffset, fullSize) != OK || mEnv->ExceptionCheck()) { in writeToStream()
2486 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.java799 Bitmap fullSize = BitmapFactory.decodeStream(is, null, null); in getBuiltInDrawable() local
800 return new BitmapDrawable(resources, fullSize); in getBuiltInDrawable()
871 Bitmap fullSize = null; in getBuiltInDrawable() local
876 fullSize = BitmapFactory.decodeStream(is, null, options); in getBuiltInDrawable()
877 if (fullSize != null) { in getBuiltInDrawable()
878 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in getBuiltInDrawable()