Searched defs:maxSize (Results 1 - 25 of 41) sorted by relevance

12

/frameworks/base/cmds/incidentd/src/
H A Dreport_directory.cpp119 clean_directory(const char* directory, off_t maxSize, size_t maxCount) argument
159 if (totalSize < maxSize && totalCount < maxCount) {
168 it != files.end() && totalSize >= maxSize && totalCount >= maxCount; it++) {
/frameworks/base/obex/javax/obex/
H A DPrivateOutputStream.java58 public PrivateOutputStream(BaseStream p, int maxSize) { argument
61 mMaxPacketSize = maxSize;
H A DClientOperation.java100 * @param maxSize the maximum packet size
107 public ClientOperation(int maxSize, ClientSession p, HeaderSet header, boolean type) argument
114 mMaxPacketSize = maxSize;
H A DObexHelper.java738 * @param maxSize the maximum size of a packet
742 public static int findHeaderEnd(byte[] headerArray, int start, int maxSize) { argument
751 while ((fullLength < maxSize) && (index < headerArray.length)) {
797 * header is less then maxSize. If it is, return the length of the
801 if (fullLength < maxSize) {
H A DServerOperation.java121 * @param maxSize the max packet size that the client will accept
125 public ServerOperation(ServerSession p, InputStream in, int request, int maxSize, argument
131 mMaxPacketLength = maxSize;
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
H A DImageLoader.java90 BitmapCache(int maxSize) { argument
91 super(maxSize);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
H A DImageLoader.java90 BitmapCache(int maxSize) { argument
91 super(maxSize);
/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/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/compile/mclinker/lib/LD/
H A DBranchIsland.cpp72 size_t BranchIsland::maxSize() const { function in class:mcld::BranchIsland
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DUnrefedPooledCache.java222 public NonPooledCache(int maxSize) { argument
223 super(maxSize);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DScanDetailCache.java46 * The cache size is trimmed down to |trimSize| once it crosses the provided |maxSize|.
47 * Since this operation is relatively expensive, ensure that |maxSize| and |trimSize| are not
48 * too close to each other. |trimSize| should always be <= |maxSize|.
51 * @param maxSize Max size desired for the cache.
52 * @param trimSize Size to trim the cache down to once it reaches |maxSize|.
54 ScanDetailCache(WifiConfiguration config, int maxSize, int trimSize) { argument
56 mMaxSize = maxSize;
62 // First check if we have reached |maxSize|. if yes, trim it down to |trimSize|.
/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/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/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...]
/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 DCamera3OutputStream.cpp40 /*maxSize*/0, format, dataSpace, rotation, setId),
61 uint32_t width, uint32_t height, size_t maxSize, int format,
64 Camera3IOStreamBase(id, CAMERA3_STREAM_OUTPUT, width, height, maxSize,
96 /*maxSize*/0, format, dataSpace, rotation, setId),
133 /*maxSize*/0,
394 " %d x %d (maxSize %zu) for stream %d",
59 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument
/frameworks/base/core/java/com/android/server/
H A DBootReceiver.java270 String headers, String filename, int maxSize, String tag) throws IOException {
271 addFileWithFootersToDropBox(db, timestamps, headers, "", filename, maxSize, tag);
276 String headers, String footers, String filename, int maxSize,
291 db.addText(tag, headers + FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n") +
296 HashMap<String, Long> timestamps, String headers, int maxSize, String tag)
316 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n");
328 HashMap<String, Long> timestamps, String headers, int maxSize, String tag)
341 String log = FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n");
362 addFileToDropBox(db, timestamps, headers, "/dev/fscklogs/log", maxSize, tag);
268 addFileToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String filename, int maxSize, String tag) argument
274 addFileWithFootersToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String footers, String filename, int maxSize, String tag) argument
295 addAuditErrorsToDropBox(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
327 addFsckErrorsToDropBoxAndLogFsStat(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
/frameworks/base/packages/SystemUI/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.java306 * maxSize == 0 means infinite
308 private static PinnedFile pinFile(String fileToPin, long offset, long length, long maxSize) { argument
329 if (maxSize > 0 && length > maxSize) {
331 ", size = " + length + ", maxSize = " + maxSize);
/frameworks/av/media/libstagefright/
H A DMediaCodecListOverrides.cpp58 AString maxSize; local
59 if (!splitString(sizeRange, "-", &minSize, &maxSize)) {
/frameworks/base/core/java/android/hardware/radio/
H A DRadioMetadata.java493 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { argument
494 float maxSizeF = maxSize;
/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DColorCutQuantizer.java190 * @param maxSize Maximum amount of boxes to split
192 private void splitBoxes(final PriorityQueue<Vbox> queue, final int maxSize) { argument
193 while (queue.size() < maxSize) {
/frameworks/base/media/java/android/media/
H A DMediaMetadata.java836 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { argument
837 float maxSizeF = maxSize;

Completed in 431 milliseconds

12