HomeSort by relevance Sort by last modified time
    Searched full:maxsize (Results 1 - 25 of 338) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/
WKString.cpp 40 size_t maxSize = WKStringGetMaximumUTF8CStringSize(string);
41 char* buffer = new char[maxSize];
43 size_t actualSize = WKStringGetUTF8CString(string, buffer, maxSize);
49 maxSize = WKStringGetLength(string);
50 TEST_ASSERT(maxSize == 5);
53 WKChar* uniBuffer = new WKChar[maxSize+1];
54 actualSize = WKStringGetCharacters(string, uniBuffer, maxSize);
61 actualSize = WKStringGetCharacters(string, uniBuffer, maxSize-1);
65 actualSize = WKStringGetCharacters(string, uniBuffer, maxSize+1);
  /libcore/luni/src/main/java/libcore/util/
BasicLruCache.java 28 private final int maxSize;
30 public BasicLruCache(int maxSize) {
31 if (maxSize <= 0) {
32 throw new IllegalArgumentException("maxSize <= 0");
34 this.maxSize = maxSize;
58 trimToSize(maxSize);
78 trimToSize(maxSize);
82 private void trimToSize(int maxSize) {
83 while (map.size() > maxSize) {
    [all...]
  /external/eigen/test/
redux.cpp 134 int maxsize = (std::min)(100,EIGEN_TEST_MAX_SIZE); local
135 EIGEN_UNUSED_VARIABLE(maxsize);
143 CALL_SUBTEST_4( matrixRedux(MatrixXcf(internal::random<int>(1,maxsize), internal::random<int>(1,maxsize))) );
144 CALL_SUBTEST_4( matrixRedux(ArrayXXcf(internal::random<int>(1,maxsize), internal::random<int>(1,maxsize))) );
145 CALL_SUBTEST_5( matrixRedux(MatrixXd (internal::random<int>(1,maxsize), internal::random<int>(1,maxsize))) );
146 CALL_SUBTEST_5( matrixRedux(ArrayXXd (internal::random<int>(1,maxsize), internal::random<int>(1,maxsize))) );
    [all...]
  /frameworks/base/core/java/android/util/
LruCache.java 67 private int maxSize;
76 * @param maxSize for caches that do not override {@link #sizeOf}, this is
80 public LruCache(int maxSize) {
81 if (maxSize <= 0) {
82 throw new IllegalArgumentException("maxSize <= 0");
84 this.maxSize = maxSize;
90 * @param maxSize The new maximum size.
94 public void resize(int maxSize) {
95 if (maxSize <= 0)
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/util/
LruCache.java 71 private int maxSize;
80 * @param maxSize for caches that do not override {@link #sizeOf}, this is
84 public LruCache(int maxSize) {
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) {
99 if (maxSize <= 0)
    [all...]
  /external/qemu/android/utils/
system.c 86 size_t maxSize;
91 maxSize = (~(size_t)0) / itemSize;
92 if (count > maxSize)
93 AASSERT_FAIL("allocation too large (%d > %d)\n", count, maxSize);
110 size_t maxSize;
115 maxSize = (~(size_t)0) / itemSize;
116 if (count > maxSize)
118 itemSize, count, maxSize);
  /packages/apps/Browser/tests/src/com/android/browser/
WebStorageSizeManagerUnitTests.java 179 long maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize);
180 assertEquals(12582912, maxSize); // 12MB
184 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize);
185 assertEquals(19922944, maxSize); // 19MB
189 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize);
190 assertEquals(536870912L, maxSize); // 512 MB
194 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize);
195 assertEquals(0, maxSize);
199 maxSize = WebStorageSizeManager.calculateGlobalLimit(fileSystemSize, freeSpaceSize);
200 assertEquals(0, maxSize);
    [all...]
  /external/clang/test/CXX/temp/temp.spec/temp.inst/
p11.cpp 6 return T::MaxSize; // expected-error {{'int' cannot be used prior to '::'}}
  /external/webkit/Source/WebKit/gtk/tests/
testapplicationcache.c 29 unsigned long long maxSize = 8192;
30 webkit_application_cache_set_maximum_size(maxSize);
37 g_assert(maxSize == webkit_application_cache_get_maximum_size());
  /dalvik/dx/src/com/android/dx/io/instructions/
ShortArrayCodeOutput.java 30 * @param maxSize the maximum number of code units that will be written
32 public ShortArrayCodeOutput(int maxSize) {
33 if (maxSize < 0) {
34 throw new IllegalArgumentException("maxSize < 0");
37 this.array = new short[maxSize];
  /external/dexmaker/src/dx/java/com/android/dx/io/instructions/
ShortArrayCodeOutput.java 30 * @param maxSize the maximum number of code units that will be written
32 public ShortArrayCodeOutput(int maxSize) {
33 if (maxSize < 0) {
34 throw new IllegalArgumentException("maxSize < 0");
37 this.array = new short[maxSize];
  /packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
dic_node_priority_queue.h 53 AK_FORCE_INLINE void setMaxSize(const int maxSize) {
54 mMaxSize = min(maxSize, MAX_CAPACITY);
65 AK_FORCE_INLINE void clearAndResize(const int maxSize) {
69 setMaxSize(maxSize);
148 inline bool isFull(const int maxSize) const {
149 return getSize() >= maxSize;
190 AK_FORCE_INLINE DicNode *pushPoolNodeWithMaxSize(DicNode *dicNode, const int maxSize) {
194 if (!isFull(maxSize)) {
208 AK_FORCE_INLINE DicNode *copyPush(DicNode *dicNode, const int maxSize) {
209 return pushPoolNodeWithMaxSize(newDicNode(dicNode), maxSize);
    [all...]
  /system/vold/
Xwarp.cpp 44 int Xwarp::status(bool *ready, unsigned *mirrorPos, unsigned *maxSize) {
49 *maxSize = 0;
61 fscanf(fp, "%u %u", mirrorPos, maxSize);
Xwarp.h 31 static int status(bool *ready, unsigned *mirrorPos, unsigned *maxSize);
  /external/quake/quake/src/QW/server/
sv_nchan.c 25 void ClientReliableCheckBlock(client_t *cl, int maxsize)
29 cl->netchan.message.maxsize - maxsize - 1) {
35 cl->backbuf.maxsize = sizeof(cl->backbuf_data[0]);
40 if (cl->backbuf.cursize > cl->backbuf.maxsize - maxsize - 1) {
50 cl->backbuf.maxsize = sizeof(cl->backbuf_data[cl->num_backbuf]);
58 void ClientReliableWrite_Begin(client_t *cl, int c, int maxsize)
60 ClientReliableCheckBlock(cl, maxsize);
  /frameworks/support/v4/java/android/support/v4/util/
LruCache.java 34 private int maxSize;
43 * @param maxSize for caches that do not override {@link #sizeOf}, this is
47 public LruCache(int maxSize) {
48 if (maxSize <= 0) {
49 throw new IllegalArgumentException("maxSize <= 0");
51 this.maxSize = maxSize;
104 trimToSize(maxSize);
134 trimToSize(maxSize);
142 * @param maxSize the maximum size of the cache before returning. May be -
    [all...]
  /external/opencv/cv/src/
cvcanny.cpp 66 int mapstep, maxsize; local
134 maxsize = MAX( 1 << 10, size.width*size.height/10 );
135 CV_CALL( stack_top = stack_bottom = (uchar**)cvAlloc( maxsize*sizeof(stack_top[0]) ));
219 if( (stack_top - stack_bottom) + size.width > maxsize )
222 maxsize = MAX( maxsize * 3/2, maxsize + size.width );
223 CV_CALL( new_stack_bottom = (uchar**)cvAlloc( maxsize * sizeof(stack_top[0])) );
308 if( (stack_top - stack_bottom) + 8 > maxsize )
311 maxsize = MAX( maxsize * 3/2, maxsize + 8 )
    [all...]
  /external/clang/utils/ABITest/
TypeGen.py 320 def __init__(self, typeGen, maxSize, useIncomplete=False, useZero=False):
325 self.maxSize = int(maxSize)
326 self.W = useIncomplete + useZero + self.maxSize
348 def __init__(self, typeGen, useUnion, maxSize):
352 self.maxSize = int(maxSize)
357 if self.maxSize is aleph0:
361 for i in range(self.maxSize+1):
369 fields = map(self.typeGen.get,getNthTuple(I,self.maxSize,self.typeGen.cardinality)
    [all...]
Enumeration.py 161 def getNthTuple(N, maxSize=aleph0, maxElement=aleph0, useDivmod=False, useLeftToRight=False):
162 """getNthTuple(N, maxSize, maxElement) -> x
164 Return the N-th tuple where len(x) < maxSize and for y in x, 0 <=
172 if maxSize is aleph0:
174 bounds = [maxElement**i for i in range(1, maxSize+1)]
177 S,M = getNthPairBounded(N, maxSize, useDivmod=useDivmod)
179 def getNthTupleChecked(N, maxSize=aleph0, maxElement=aleph0,
181 # FIXME: maxsize is inclusive
182 t = GNT(N,maxSize,maxElement,useDivmod,useLeftToRight)
183 assert len(t) <= maxSize
    [all...]
  /external/webkit/LayoutTests/http/tests/appcache/
max-size.html 1 <html manifest="resources/maxsize.manifest">
  /frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
FakeBackgroundService.java 92 int maxSize = display.getMaximumSizeDimension();
93 maxSize *= 2;
94 lp.x = maxSize;
95 lp.y = maxSize;
  /frameworks/ex/variablespeed/jni/
decode_buffer.cc 25 DecodeBuffer::DecodeBuffer(size_t sizeOfOneBuffer, size_t maxSize)
26 : sizeOfOneBuffer_(sizeOfOneBuffer), maxSize_(maxSize),
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SingleCorpusPromoter.java 51 private void promoteUntilFull(SuggestionCursor c, int maxSize, ListSuggestionCursor promoted) {
54 for (int i = 0; i < count && promoted.getCount() < maxSize; i++) {
  /external/icu4c/tools/gencmn/
gencmn.c 51 uint32_t maxSize;
75 "%csage: %s [ -h, -?, --help ] [ -v, --verbose ] [ -c, --copyright ] [ -C, --comment comment ] [ -d, --destdir dir ] [ -n, --name filename ] [ -t, --type filetype ] [ -S, --source tocfile ] [ -e, --entrypoint name ] maxsize listfile\n", argc < 0 ? 'u' : 'U', *argv);
79 "file from specified files. Omit any files larger than maxsize, if maxsize > 0.\n");
104 maxSize=(uint32_t)uprv_strtoul(argv[1], NULL, 0);
113 maxSize, sourceTOC, verbose, NULL);
  /external/skia/tests/
PackBitsTest.cpp 52 size_t maxSize = SkPackBits::ComputeMaxSize16(size);
53 REPORTER_ASSERT(reporter, maxSize >= dstSize);
87 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount);
90 REPORTER_ASSERT(reporter, dstSize <= maxSize);
106 size_t maxSize = SkPackBits::ComputeMaxSize8(size);
107 REPORTER_ASSERT(reporter, maxSize >= dstSize);

Completed in 2940 milliseconds

1 2 3 4 5 6 7 8 91011>>