/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); 76 trimToSize(maxSize); 80 private void trimToSize(int maxSize) { 81 while (map.size() > maxSize) { [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/skia/tests/ |
PackBitsTest.cpp | 45 size_t maxSize = SkPackBits::ComputeMaxSize16(size); 46 REPORTER_ASSERT(reporter, maxSize >= dstSize); 80 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); 83 REPORTER_ASSERT(reporter, dstSize <= maxSize); 99 size_t maxSize = SkPackBits::ComputeMaxSize8(size); 100 REPORTER_ASSERT(reporter, maxSize >= dstSize);
|
/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/base/core/java/android/util/ |
LruCache.java | 63 private int maxSize; 72 * @param maxSize for caches that do not override {@link #sizeOf}, this is 76 public LruCache(int maxSize) { 77 if (maxSize <= 0) { 78 throw new IllegalArgumentException("maxSize <= 0"); 80 this.maxSize = maxSize; 133 trimToSize(maxSize); 163 trimToSize(maxSize); 168 * @param maxSize the maximum size of the cache before returning. May be - [all...] |
/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); 139 * @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...] |
/libcore/luni/src/main/java/java/util/regex/ |
Splitter.java | 68 int maxSize = limit <= 0 ? Integer.MAX_VALUE : limit; 71 while ((end = input.indexOf(ch, begin)) != -1 && list.size() + 1 < maxSize) { 75 return finishSplit(list, input, begin, maxSize, limit); 92 int maxSize = limit <= 0 ? Integer.MAX_VALUE : limit; 95 while (matcher.find() && list.size() + 1 < maxSize) { 99 return finishSplit(list, input, begin, maxSize, limit); 102 private static String[] finishSplit(List<String> list, String input, int begin, int maxSize, int limit) {
|
/external/webkit/LayoutTests/http/tests/appcache/ |
max-size.html | 1 <html manifest="resources/maxsize.manifest">
|
/system/core/nexus/ |
LoopController.h | 30 const char *get(const char *name, char *buffer, size_t 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++) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
DictionaryPool.java | 33 public DictionaryPool(final int maxSize, final AndroidSpellCheckerService service, 36 mMaxSize = maxSize;
|
/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);
|
/frameworks/base/core/java/android/net/http/ |
HttpResponseCache.java | 144 private HttpResponseCache(File directory, long maxSize) throws IOException { 145 this.delegate = new libcore.net.http.HttpResponseCache(directory, maxSize); 162 * @param maxSize the maximum size of the cache in bytes. 168 public static HttpResponseCache install(File directory, long maxSize) throws IOException { 174 && installedCache.maxSize() == maxSize 182 HttpResponseCache result = new HttpResponseCache(directory, maxSize); 198 * this cache. This may be greater than the {@link #maxSize} if a background 209 public long maxSize() { 210 return delegate.getCache().maxSize(); [all...] |
/external/elfutils/libelf/ |
elf_begin.c | 40 file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize, 46 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, 63 size_t maxsize) 114 if (offset + ehdr.e32->e_shoff + sizeof (Elf32_Shdr) > maxsize) 150 if (offset + ehdr.e64->e_shoff + sizeof (Elf64_Shdr) > maxsize) 186 file_read_elf (int fildes, void *map_address, off_t offset, size_t maxsize, 222 scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); 228 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, 420 size_t maxsize, Elf_Cmd cmd, Elf *parent) 429 kind = determine_kind (map_address + offset, maxsize); [all...] |