/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | ImageLoader.java | 311 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/ |
D | FilmstripItemUtils.java | 107 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/ |
D | BitmapUtil.java | 70 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()
|
D | ContactPhotoManagerImpl.java | 229 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/ |
D | AutoThumbnailDrawable.java | 174 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/ |
D | BitmapUtil.java | 69 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/ |
D | ImageUtils.java | 624 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/ |
D | BitmapRegionTileSource.java | 106 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/ |
D | AudioTrackMonitor.java | 79 public void addPts(long pts, int sampleSize, int header) { in addPts() argument 82 mSampleSize.add(sampleSize); in addPts() 84 mCurSampleSize.add(sampleSize); in addPts()
|
D | MpegTsDefaultAudioTrackRenderer.java | 407 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/ |
D | MtpBitmapFetch.java | 88 int sampleSize = 1; in getFullsize() local 91 sampleSize++; in getFullsize() 93 o.inSampleSize = sampleSize; in getFullsize()
|
/packages/services/Car/cpp/computepipe/runner/input_manager/ |
D | VideoDecoder.cpp | 250 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/ |
D | SampleTunerTvInputService.java | 385 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/ |
D | RecordingSampleBuffer.java | 194 public boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs) { in isWriteSpeedSlow() argument 198 mBufferManager.addWriteStat(sampleSize, writeDurationNs); in isWriteSpeedSlow()
|
D | BufferManager.java | 136 boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs); in isWriteSpeedSlow() argument 729 public void setMinimumSampleSizeForSpeedCheck(int sampleSize) { in setMinimumSampleSizeForSpeedCheck() argument 730 mMinSampleSizeForSpeedCheck = sampleSize; in setMinimumSampleSizeForSpeedCheck()
|
D | MemorySampleBuffer.java | 116 public boolean isWriteSpeedSlow(int sampleSize, long durationNs) { in isWriteSpeedSlow() argument
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | BufferManager.java | 130 boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs); in isWriteSpeedSlow() argument 725 public void setMinimumSampleSizeForSpeedCheck(int sampleSize) { in setMinimumSampleSizeForSpeedCheck() argument 726 mMinSampleSizeForSpeedCheck = sampleSize; in setMinimumSampleSizeForSpeedCheck()
|
D | RecordingSampleBuffer.java | 194 public boolean isWriteSpeedSlow(int sampleSize, long writeDurationNs) { in isWriteSpeedSlow() argument 198 mBufferManager.addWriteStat(sampleSize, writeDurationNs); in isWriteSpeedSlow()
|
D | SimpleSampleBuffer.java | 141 public boolean isWriteSpeedSlow(int sampleSize, long durationNs) { in isWriteSpeedSlow() argument
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 79 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/ |
D | ContactPhotoManager.java | 1015 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()
|
D | DynamicShortcuts.java | 384 final int sampleSize = Math.min( in decodeStreamForShortcut() local 388 opts.inSampleSize = sampleSize; in decodeStreamForShortcut()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | SaveImage.java | 343 int sampleSize = 1; in processAndSaveImage() local 397 sampleSize); in processAndSaveImage() 451 sampleSize *= 2; in processAndSaveImage()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 1004 interval.sampleSize += 1; in onMatchedLogEventInternalLocked() 1177 interval.sampleSize = 0; in initCurrentSlicedBucket() 1318 return Value((double)sum / interval.sampleSize); in getFinalValue()
|
D | ValueMetricProducer.h | 202 int sampleSize; member
|