Searched refs:maxSize (Results 1 - 25 of 51) 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/v4/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/av/services/camera/libcameraservice/api1/client2/
H A DJpegProcessor.cpp364 size_t JpegProcessor::findJpegSize(uint8_t* jpegBuffer, size_t maxSize) { argument
368 uint8_t *header = jpegBuffer + (maxSize - sizeof(struct camera2_jpeg_blob));
372 if (size > 0 && size <= maxSize - sizeof(struct camera2_jpeg_blob)) {
395 while (size <= maxSize - MARKER_LENGTH) {
402 if (type == EOI || size > maxSize - sizeof(segment_t)) {
414 for ( ; size <= maxSize - MARKER_LENGTH; size++) {
426 if (size > maxSize) {
427 ALOGW("JPEG size %zu too large, reducing to maxSize %zu", size, maxSize);
428 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.java207 String headers, String filename, int maxSize, String tag) throws IOException {
208 addFileWithFootersToDropBox(db, timestamps, headers, "", filename, maxSize, tag);
213 String headers, String footers, String filename, int maxSize,
228 db.addText(tag, headers + FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n") +
233 HashMap<String, Long> timestamps, String headers, int maxSize, String tag)
253 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n");
265 HashMap<String, Long> timestamps, String headers, int maxSize, String tag)
275 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n");
285 addFileToDropBox(db, timestamps, headers, "/dev/fscklogs/log", maxSize, tag);
205 addFileToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String filename, int maxSize, String tag) argument
211 addFileWithFootersToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String footers, String filename, int maxSize, String tag) argument
232 addAuditErrorsToDropBox(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
264 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,
H A DCamera3OutputStream.h93 uint32_t width, uint32_t height, size_t maxSize, int format,
H A DCamera3Stream.h397 uint32_t width, uint32_t height, size_t maxSize, int format,
/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.java545 int maxSize = 0;
585 if (size > maxSize) {
586 maxSize = size;
598 maxSize = 0;
614 if (size > maxSize) {
615 maxSize = size;
619 // Views that did not measure the maxSize has to be re-measured
621 final int maxMeasureSpec = View.MeasureSpec.makeMeasureSpec(maxSize,
625 if (mOrientationHelper.getDecoratedMeasurement(view) != maxSize) {
638 result.mConsumed = 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/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.java146 int maxSize = Integer.MAX_VALUE;
149 maxSize = MeasureSpec.getSize(heightMeasureSpec);
153 int size = Math.min(maxSize, mNotificationMaxHeight);
157 size = Math.min(maxSize, layoutParams.height);
167 int size = Math.min(maxSize, mSmallHeight);
192 int size = Math.min(maxSize, mHeadsUpHeight);
211 MeasureSpec.makeMeasureSpec(maxSize, MeasureSpec.AT_MOST));
214 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);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerTest.java134 final int maxSize;
136 maxSize = mRecyclerView.getWidth();
139 maxSize = mRecyclerView.getHeight();
146 desiredSize = maxSize / 4;
149 desiredSize = maxSize / 8;
/frameworks/compile/mclinker/include/mcld/LD/
H A DBranchIsland.h83 size_t maxSize() const;
/frameworks/compile/mclinker/lib/LD/
H A DBranchIsland.cpp72 size_t BranchIsland::maxSize() const { function in class:mcld::BranchIsland

Completed in 4706 milliseconds

123