Home
last modified time | relevance | path

Searched refs:sampleSize (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java311 public static Bitmap loadDownsampledBitmap(Context context, Uri uri, int sampleSize) { in loadDownsampledBitmap() argument
314 options.inSampleSize = sampleSize; in loadDownsampledBitmap()
376 int sampleSize = 1; in loadConstrainedBitmap() local
379 sampleSize <<= 1; in loadConstrainedBitmap()
383 if (sampleSize <= 0 || in loadConstrainedBitmap()
384 0 >= (int) (Math.min(w, h) / sampleSize)) { in loadConstrainedBitmap()
387 return loadDownsampledBitmap(context, uri, sampleSize); in loadConstrainedBitmap()
424 int sampleSize = 1; in getScaleOneImageForPreset() local
427 sampleSize *= 2; in getScaleOneImageForPreset()
428 w /= sampleSize; in getScaleOneImageForPreset()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemUtils.java107 int sampleSize = 1; in loadImageThumbnailFromStream() local
111 sampleSize <<= 1; in loadImageThumbnailFromStream()
112 targetWidth = imageWidth / sampleSize; in loadImageThumbnailFromStream()
113 targetHeight = imageWidth / sampleSize; in loadImageThumbnailFromStream()
123 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) { in loadImageThumbnailFromStream()
124 sampleSize >>= 2; in loadImageThumbnailFromStream()
128 opts.inSampleSize = sampleSize; in loadImageThumbnailFromStream()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DBitmapUtil.java70 int sampleSize = 1; in findOptimalSampleSize() local
72 sampleSize <<= 1; in findOptimalSampleSize()
76 return sampleSize; in findOptimalSampleSize()
80 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { in decodeBitmapFromBytes() argument
82 if (sampleSize <= 1) { in decodeBitmapFromBytes()
86 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
DContactPhotoManagerImpl.java229 final int sampleSize = in inflateBitmap() local
236 if (sampleSize == holder.decodedSampleSize) { in inflateBitmap()
248 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap()
277 canvas.drawText(bitmap.getWidth() + "/" + sampleSize, 0, 15, paint); in inflateBitmap()
280 holder.decodedSampleSize = sampleSize; in inflateBitmap()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java174 int sampleSize = calculateSampleSizeLocked(mImageWidth, mImageHeight); in refreshSampleSizeLocked() local
175 if (sampleSize != mSampleSize || mBitmap == null) { in refreshSampleSizeLocked()
176 mSampleSize = sampleSize; in refreshSampleSizeLocked()
240 int sampleSize, width, height;
251 sampleSize = calculateSampleSizeLocked(width, height);
270 mOptions.inSampleSize = sampleSize;
271 mOptions.inBitmap = sBitmapPool.get(width / sampleSize, height / sampleSize);
/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java69 int sampleSize = 1; in findOptimalSampleSize() local
71 sampleSize <<= 1; in findOptimalSampleSize()
75 return sampleSize; in findOptimalSampleSize()
81 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { in decodeBitmapFromBytes() argument
83 if (sampleSize <= 1) { in decodeBitmapFromBytes()
87 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java624 int sampleSize = 1; in canBeCompressed() local
631 sampleSize = sampleSize * 2; in canBeCompressed()
633 if (sampleSize >= (Integer.MAX_VALUE / 4)) { in canBeCompressed()
643 "computeInitialSampleSize: Increasing sampleSize to " + sampleSize in canBeCompressed()
648 imageHeight = mHeight / sampleSize; in canBeCompressed()
649 imageWidth = mWidth / sampleSize; in canBeCompressed()
657 "computeInitialSampleSize: Initial sampleSize " + sampleSize in canBeCompressed()
663 mSampleSize = sampleSize; in canBeCompressed()
/packages/apps/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java106 int sampleSize = Math.max(options.inSampleSize, 1); in decodeRegion() local
108 wantRegion.width() / sampleSize, in decodeRegion()
109 wantRegion.height() / sampleSize, in decodeRegion()
113 mTempCanvas.scale(1f / sampleSize, 1f / sampleSize); in decodeRegion()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioTrackMonitor.java79 public void addPts(long pts, int sampleSize, int header) { in addPts() argument
82 mSampleSize.add(sampleSize); in addPts()
84 mCurSampleSize.add(sampleSize); in addPts()
DMpegTsDefaultAudioTrackRenderer.java407 private void onSampleSizeChanged(int sampleSize) { in onSampleSizeChanged() argument
409 Log.d(TAG, "Sample size was changed to : " + sampleSize); in onSampleSizeChanged()
412 int audioBufferSize = sampleSize * BUFFERED_SAMPLES_IN_AUDIOTRACK; in onSampleSizeChanged()
413 mSampleSize = sampleSize; in onSampleSizeChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpBitmapFetch.java88 int sampleSize = 1; in getFullsize() local
91 sampleSize++; in getFullsize()
93 o.inSampleSize = sampleSize; in getFullsize()
/packages/services/Car/cpp/computepipe/runner/input_manager/
DVideoDecoder.cpp250 size_t sampleSize = AMediaExtractor_getSampleSize(mExtractor); in addFramesToCodec() local
261 if (sampleSize > bufferSize) { in addFramesToCodec()
270 size_t read = AMediaExtractor_readSampleData(mExtractor, buffer, sampleSize); in addFramesToCodec()
/packages/apps/TV/tuner/sampletunertvinput/src/com/android/tv/samples/sampletunertvinput/
DSampleTunerTvInputService.java385 int sampleSize = (int) mediaEvent.getDataLength(); in queueCodecInputBuffer() local
400 + sampleSize in queueCodecInputBuffer()
415 mMediaCodec.queueInputBuffer(res, 0, sampleSize, pts, 0); in queueCodecInputBuffer()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DRecordingSampleBuffer.java194 public boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs) { in isWriteSpeedSlow() argument
198 mBufferManager.addWriteStat(sampleSize, writeDurationNs); in isWriteSpeedSlow()
DBufferManager.java136 boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs); in isWriteSpeedSlow() argument
729 public void setMinimumSampleSizeForSpeedCheck(int sampleSize) { in setMinimumSampleSizeForSpeedCheck() argument
730 mMinSampleSizeForSpeedCheck = sampleSize; in setMinimumSampleSizeForSpeedCheck()
DMemorySampleBuffer.java116 public boolean isWriteSpeedSlow(int sampleSize, long durationNs) { in isWriteSpeedSlow() argument
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java130 boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs); in isWriteSpeedSlow() argument
725 public void setMinimumSampleSizeForSpeedCheck(int sampleSize) { in setMinimumSampleSizeForSpeedCheck() argument
726 mMinSampleSizeForSpeedCheck = sampleSize; in setMinimumSampleSizeForSpeedCheck()
DRecordingSampleBuffer.java194 public boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs) { in isWriteSpeedSlow() argument
198 mBufferManager.addWriteStat(sampleSize, writeDurationNs); in isWriteSpeedSlow()
DSimpleSampleBuffer.java141 public boolean isWriteSpeedSlow(int sampleSize, long durationNs) { in isWriteSpeedSlow() argument
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java79 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() local
80 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java1015 final int sampleSize = in inflateBitmap() local
1022 if (sampleSize == holder.decodedSampleSize) { in inflateBitmap()
1034 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap()
1063 canvas.drawText(bitmap.getWidth() + "/" + sampleSize, 0, 15, paint); in inflateBitmap()
1066 holder.decodedSampleSize = sampleSize; in inflateBitmap()
DDynamicShortcuts.java384 final int sampleSize = Math.min( in decodeStreamForShortcut() local
388 opts.inSampleSize = sampleSize; in decodeStreamForShortcut()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java343 int sampleSize = 1; in processAndSaveImage() local
397 sampleSize); in processAndSaveImage()
451 sampleSize *= 2; in processAndSaveImage()
/packages/modules/StatsD/statsd/src/metrics/
DValueMetricProducer.cpp1004 interval.sampleSize += 1; in onMatchedLogEventInternalLocked()
1177 interval.sampleSize = 0; in initCurrentSlicedBucket()
1318 return Value((double)sum / interval.sampleSize); in getFinalValue()
DValueMetricProducer.h202 int sampleSize; member

12