Searched refs:maxSize (Results 1 - 25 of 61) sorted by relevance

123

/frameworks/base/core/java/android/util/
H A DLruCache.java67 private int maxSize; field in class:LruCache
76 * @param maxSize for caches that do not override {@link #sizeOf}, this is
80 public LruCache(int maxSize) { argument
81 if (maxSize <= 0) {
82 throw new IllegalArgumentException("maxSize <= 0");
84 this.maxSize = maxSize;
91 * @param maxSize The new maximum size.
93 public void resize(int maxSize) { argument
94 if (maxSize <
194 trimToSize(int maxSize) argument
325 public synchronized final int maxSize() { method in class:LruCache
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DLruCache.java71 private int maxSize; field in class:LruCache
80 * @param maxSize for caches that do not override {@link #sizeOf}, this is
84 public LruCache(int maxSize) { argument
85 if (maxSize <= 0) {
86 throw new IllegalArgumentException("maxSize <= 0");
88 this.maxSize = maxSize;
94 * @param maxSize The new maximum size.
98 public void resize(int maxSize) { argument
99 if (maxSize <
196 trimToSize(int maxSize) argument
336 public synchronized final int maxSize() { method in class:LruCache
[all...]
/frameworks/support/compat/java/android/support/v4/util/
H A DLruCache.java34 private int maxSize; field in class:LruCache
43 * @param maxSize for caches that do not override {@link #sizeOf}, this is
47 public LruCache(int maxSize) { argument
48 if (maxSize <= 0) {
49 throw new IllegalArgumentException("maxSize <= 0");
51 this.maxSize = maxSize;
58 * @param maxSize The new maximum size.
60 public void resize(int maxSize) { argument
61 if (maxSize <
161 trimToSize(int maxSize) argument
288 public synchronized final int maxSize() { method in class:LruCache
[all...]
/frameworks/base/core/java/android/net/http/
H A DHttpResponseCache.java176 * @param maxSize the maximum size of the cache in bytes.
182 public static synchronized HttpResponseCache install(File directory, long maxSize) argument
189 if (trueResponseCache.isEquivalent(directory, maxSize)) {
198 AndroidShimResponseCache.create(directory, maxSize);
215 * this cache. This may be greater than the {@link #maxSize} if a background
231 public long maxSize() { method in class:HttpResponseCache
232 return delegate.maxSize();
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeBackgroundService.java92 int maxSize = display.getMaximumSizeDimension();
93 maxSize *= 2;
94 lp.x = maxSize;
95 lp.y = maxSize;
H A DFakeApp.java127 int maxSize = display.getMaximumSizeDimension();
128 maxSize *= 2;
129 lp.x = maxSize;
130 lp.y = maxSize;
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
H A DImageLoader.java91 BitmapCache(int maxSize) { argument
92 super(maxSize);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
H A DImageLoader.java91 BitmapCache(int maxSize) { argument
92 super(maxSize);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DJpegProcessor.cpp369 size_t JpegProcessor::findJpegSize(uint8_t* jpegBuffer, size_t maxSize) { argument
373 uint8_t *header = jpegBuffer + (maxSize - sizeof(struct camera2_jpeg_blob));
377 if (size > 0 && size <= maxSize - sizeof(struct camera2_jpeg_blob)) {
400 while (size <= maxSize - MARKER_LENGTH) {
407 if (type == EOI || size > maxSize - sizeof(segment_t)) {
419 for ( ; size <= maxSize - MARKER_LENGTH; size++) {
431 if (size > maxSize) {
432 ALOGW("JPEG size %zu too large, reducing to maxSize %zu", size, maxSize);
433 size = maxSize;
[all...]
H A DJpegProcessor.h85 size_t findJpegSize(uint8_t* jpegBuffer, size_t maxSize);
/frameworks/base/obex/javax/obex/
H A DPrivateOutputStream.java58 public PrivateOutputStream(BaseStream p, int maxSize) { argument
61 mMaxPacketSize = maxSize;
/frameworks/base/core/java/com/android/server/
H A DBootReceiver.java243 String headers, String filename, int maxSize, String tag) throws IOException {
244 addFileWithFootersToDropBox(db, timestamps, headers, "", filename, maxSize, tag);
249 String headers, String footers, String filename, int maxSize,
264 db.addText(tag, headers + FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n") +
269 HashMap<String, Long> timestamps, String headers, int maxSize, String tag)
289 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n");
301 HashMap<String, Long> timestamps, String headers, int maxSize, String tag)
311 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n");
321 addFileToDropBox(db, timestamps, headers, "/dev/fscklogs/log", maxSize, tag);
241 addFileToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String filename, int maxSize, String tag) argument
247 addFileWithFootersToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String footers, String filename, int maxSize, String tag) argument
268 addAuditErrorsToDropBox(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
300 addFsckErrorsToDropBox(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3IOStreamBase.cpp33 uint32_t width, uint32_t height, size_t maxSize, int format,
36 width, height, maxSize, format, dataSpace, rotation, setId),
45 if (maxSize > 0 &&
32 Camera3IOStreamBase(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument
H A DCamera3IOStreamBase.h36 uint32_t width, uint32_t height, size_t maxSize, int format,
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DAlbumArtCache.java59 int maxSize = Math.min(MAX_ALBUM_ART_CACHE_SIZE,
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DAlbumArtCache.java59 int maxSize = Math.min(MAX_ALBUM_ART_CACHE_SIZE,
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
/frameworks/base/libs/hwui/
H A DLayerCache.h80 void setMaxSize(uint32_t maxSize);
H A DLayerCache.cpp57 void LayerCache::setMaxSize(uint32_t maxSize) { argument
59 mMaxSize = maxSize;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java576 int maxSize = 0;
600 if (size > maxSize) {
601 maxSize = size;
614 maxSize = 0;
619 if (size > maxSize) {
620 maxSize = size;
625 // Views that did not measure the maxSize has to be re-measured
629 if (mOrientationHelper.getDecoratedMeasurement(view) != maxSize) {
642 hSpec = View.MeasureSpec.makeMeasureSpec(maxSize - verticalInsets,
645 wSpec = View.MeasureSpec.makeMeasureSpec(maxSize
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DViewsStateBundle.java134 if (mChildStates == null || mChildStates.maxSize() != mLimitNumber) {
138 if (mChildStates == null || mChildStates.maxSize() != UNLIMITED) {
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java242 private int makeChildMeasureSpec(int maxSize, int childDimen) { argument
248 size = maxSize;
252 size = maxSize;
256 size = Math.min(maxSize, childDimen);
/frameworks/base/services/core/java/com/android/server/
H A DPinnerService.java269 * maxSize == 0 means infinite
271 private static PinnedFile pinFile(String fileToPin, long offset, long length, long maxSize) { argument
292 if (maxSize > 0 && length > maxSize) {
294 ", size = " + length + ", maxSize = " + maxSize);
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java93 * @param maxSize The maximum size (either width or height)
97 final int maxSize) {
108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize);
96 createLocalBitmap(final ContentResolver resolver, final Uri uri, final int maxSize) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationContentView.java148 int maxSize = Integer.MAX_VALUE;
151 maxSize = MeasureSpec.getSize(heightMeasureSpec);
155 int size = Math.min(maxSize, mNotificationMaxHeight);
159 size = Math.min(maxSize, layoutParams.height);
169 int size = Math.min(maxSize, mSmallHeight);
194 int size = Math.min(maxSize, mHeadsUpHeight);
213 MeasureSpec.makeMeasureSpec(maxSize, MeasureSpec.AT_MOST));
216 int ownHeight = Math.min(maxChildHeight, maxSize);
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DUnrefedPooledCache.java222 public NonPooledCache(int maxSize) { argument
223 super(maxSize);

Completed in 1761 milliseconds

123