/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
D | LruCache.java | 71 private int maxSize; field in LruCache 84 public LruCache(int maxSize) { in LruCache() argument 85 if (maxSize <= 0) { in LruCache() 88 this.maxSize = maxSize; in LruCache() 98 public void resize(int maxSize) { in resize() argument 99 if (maxSize <= 0) { in resize() 104 this.maxSize = maxSize; in resize() 106 trimToSize(maxSize); in resize() 158 trimToSize(maxSize); in get() 188 trimToSize(maxSize); in put() [all …]
|
/frameworks/base/core/java/android/util/ |
D | LruCache.java | 67 private int maxSize; field in LruCache 80 public LruCache(int maxSize) { in LruCache() argument 81 if (maxSize <= 0) { in LruCache() 84 this.maxSize = maxSize; in LruCache() 93 public void resize(int maxSize) { in resize() argument 94 if (maxSize <= 0) { in resize() 99 this.maxSize = maxSize; in resize() 101 trimToSize(maxSize); in resize() 153 trimToSize(maxSize); in get() 183 trimToSize(maxSize); in put() [all …]
|
/frameworks/support/v4/java/android/support/v4/util/ |
D | LruCache.java | 34 private int maxSize; field in LruCache 47 public LruCache(int maxSize) { in LruCache() argument 48 if (maxSize <= 0) { in LruCache() 51 this.maxSize = maxSize; in LruCache() 60 public void resize(int maxSize) { in resize() argument 61 if (maxSize <= 0) { in resize() 66 this.maxSize = maxSize; in resize() 68 trimToSize(maxSize); in resize() 120 trimToSize(maxSize); in get() 150 trimToSize(maxSize); in put() [all …]
|
/frameworks/base/core/java/android/net/http/ |
D | HttpResponseCache.java | 182 public static synchronized HttpResponseCache install(File directory, long maxSize) in install() argument 189 if (trueResponseCache.isEquivalent(directory, maxSize)) { in install() 198 AndroidShimResponseCache.create(directory, maxSize); in install() 231 public long maxSize() { in maxSize() method in HttpResponseCache 232 return delegate.maxSize(); in maxSize()
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | JpegProcessor.cpp | 364 size_t JpegProcessor::findJpegSize(uint8_t* jpegBuffer, size_t maxSize) { in findJpegSize() argument 368 uint8_t *header = jpegBuffer + (maxSize - sizeof(struct camera2_jpeg_blob)); in findJpegSize() 372 if (size > 0 && size <= maxSize - sizeof(struct camera2_jpeg_blob)) { in findJpegSize() 395 while (size <= maxSize - MARKER_LENGTH) { in findJpegSize() 402 if (type == EOI || size > maxSize - sizeof(segment_t)) { in findJpegSize() 414 for ( ; size <= maxSize - MARKER_LENGTH; size++) { in findJpegSize() 426 if (size > maxSize) { in findJpegSize() 427 ALOGW("JPEG size %zu too large, reducing to maxSize %zu", size, maxSize); in findJpegSize() 428 size = maxSize; in findJpegSize()
|
D | JpegProcessor.h | 85 size_t findJpegSize(uint8_t* jpegBuffer, size_t maxSize);
|
D | Parameters.cpp | 2759 Size maxSize = {0, 0}; in getMaxSizeForRatio() local 2763 if (fabs(curRatio - ratio) < ASPECT_RATIO_TOLERANCE && maxSize.width < sizeArray[i]) { in getMaxSizeForRatio() 2764 maxSize.width = sizeArray[i]; in getMaxSizeForRatio() 2765 maxSize.height = sizeArray[i+1]; in getMaxSizeForRatio() 2770 if (maxSize.width == 0 || maxSize.height == 0) { in getMaxSizeForRatio() 2771 maxSize.width = sizeArray[0]; in getMaxSizeForRatio() 2772 maxSize.height = sizeArray[1]; in getMaxSizeForRatio() 2774 "Fall back to %d x %d", ratio, maxSize.width, maxSize.height); in getMaxSizeForRatio() 2777 return maxSize; in getMaxSizeForRatio() 2781 Size maxSize = {-1, -1}; in getMaxSize() local [all …]
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeBackgroundService.java | 92 int maxSize = display.getMaximumSizeDimension(); in onCreate() local 93 maxSize *= 2; in onCreate() 94 lp.x = maxSize; in onCreate() 95 lp.y = maxSize; in onCreate()
|
D | FakeApp.java | 127 int maxSize = display.getMaximumSizeDimension(); in onCreate() local 128 maxSize *= 2; in onCreate() 129 lp.x = maxSize; in onCreate() 130 lp.y = maxSize; in onCreate()
|
/frameworks/base/core/java/com/android/server/ |
D | BootReceiver.java | 207 String headers, String filename, int maxSize, String tag) throws IOException { in addFileToDropBox() argument 208 addFileWithFootersToDropBox(db, timestamps, headers, "", filename, maxSize, tag); in addFileToDropBox() 213 String headers, String footers, String filename, int maxSize, in addFileWithFootersToDropBox() argument 228 db.addText(tag, headers + FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n") + in addFileWithFootersToDropBox() 233 HashMap<String, Long> timestamps, String headers, int maxSize, String tag) in addAuditErrorsToDropBox() argument 253 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addAuditErrorsToDropBox() 265 HashMap<String, Long> timestamps, String headers, int maxSize, String tag) in addFsckErrorsToDropBox() argument 275 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"); in addFsckErrorsToDropBox() 285 addFileToDropBox(db, timestamps, headers, "/dev/fscklogs/log", maxSize, tag); in addFsckErrorsToDropBox()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | GridLayoutManager.java | 545 int maxSize = 0; in layoutChunk() local 585 if (size > maxSize) { in layoutChunk() 586 maxSize = size; in layoutChunk() 598 maxSize = 0; in layoutChunk() 614 if (size > maxSize) { in layoutChunk() 615 maxSize = size; in layoutChunk() 621 final int maxMeasureSpec = View.MeasureSpec.makeMeasureSpec(maxSize, in layoutChunk() 625 if (mOrientationHelper.getDecoratedMeasurement(view) != maxSize) { in layoutChunk() 638 result.mConsumed = maxSize; in layoutChunk() 644 top = bottom - maxSize; in layoutChunk() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3IOStreamBase.cpp | 33 uint32_t width, uint32_t height, size_t maxSize, int format, in Camera3IOStreamBase() argument 36 width, height, maxSize, format, dataSpace, rotation, setId), in Camera3IOStreamBase() 45 if (maxSize > 0 && in Camera3IOStreamBase()
|
D | Camera3IOStreamBase.h | 36 uint32_t width, uint32_t height, size_t maxSize, int format,
|
/frameworks/base/obex/javax/obex/ |
D | PrivateOutputStream.java | 58 public PrivateOutputStream(BaseStream p, int maxSize) { in PrivateOutputStream() argument 61 mMaxPacketSize = maxSize; in PrivateOutputStream()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardSecurityViewFlipper.java | 242 private int makeChildMeasureSpec(int maxSize, int childDimen) { in makeChildMeasureSpec() argument 248 size = maxSize; in makeChildMeasureSpec() 252 size = maxSize; in makeChildMeasureSpec() 256 size = Math.min(maxSize, childDimen); in makeChildMeasureSpec()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | ImageUtils.java | 97 final int maxSize) { in createLocalBitmap() argument 108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize); in createLocalBitmap()
|
/frameworks/base/libs/hwui/ |
D | LayerCache.cpp | 57 void LayerCache::setMaxSize(uint32_t maxSize) { in setMaxSize() argument 59 mMaxSize = maxSize; in setMaxSize()
|
D | LayerCache.h | 80 void setMaxSize(uint32_t maxSize);
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | LinearLayoutManagerTest.java | 134 final int maxSize; in removeAnchorItemTest() 136 maxSize = mRecyclerView.getWidth(); in removeAnchorItemTest() 139 maxSize = mRecyclerView.getHeight(); in removeAnchorItemTest() 146 desiredSize = maxSize / 4; in removeAnchorItemTest() 149 desiredSize = maxSize / 8; in removeAnchorItemTest()
|
D | GridLayoutManagerTest.java | 584 final int maxSize; in removeAnchorItemTest() 586 maxSize = mRecyclerView.getWidth(); in removeAnchorItemTest() 589 maxSize = mRecyclerView.getHeight(); in removeAnchorItemTest() 596 desiredSize = maxSize / 4; in removeAnchorItemTest() 599 desiredSize = maxSize / 8; in removeAnchorItemTest()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ViewsStateBundle.java | 134 if (mChildStates == null || mChildStates.maxSize() != mLimitNumber) { in applyPolicyChanges() 138 if (mChildStates == null || mChildStates.maxSize() != UNLIMITED) { in applyPolicyChanges()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ImageWallpaper.java | 773 int[] maxSize = new int[1]; in initGL() local 775 glGetIntegerv(GL_MAX_TEXTURE_SIZE, maxSize, 0); in initGL() 780 if(frame.width() > maxSize[0] || frame.height() > maxSize[0]) { in initGL() 785 maxSize[0] + "x" + maxSize[0]); in initGL()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationContentView.java | 146 int maxSize = Integer.MAX_VALUE; in onMeasure() local 149 maxSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 153 int size = Math.min(maxSize, mNotificationMaxHeight); in onMeasure() 157 size = Math.min(maxSize, layoutParams.height); in onMeasure() 167 int size = Math.min(maxSize, mSmallHeight); in onMeasure() 192 int size = Math.min(maxSize, mHeadsUpHeight); in onMeasure() 211 MeasureSpec.makeMeasureSpec(maxSize, MeasureSpec.AT_MOST)); in onMeasure() 214 int ownHeight = Math.min(maxChildHeight, maxSize); in onMeasure()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | UnrefedPooledCache.java | 222 public NonPooledCache(int maxSize) { in NonPooledCache() argument 223 super(maxSize); in NonPooledCache()
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
D | ColorCutQuantizer.java | 172 private void splitBoxes(final PriorityQueue<Vbox> queue, final int maxSize) { in splitBoxes() argument 173 while (queue.size() < maxSize) { in splitBoxes()
|