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

12

/external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/
H A DWKString.cpp40 size_t maxSize = WKStringGetMaximumUTF8CStringSize(string); local
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);
/external/okhttp/src/main/java/libcore/util/
H A DBasicLruCache.java28 private final int maxSize; field in class:BasicLruCache
30 public BasicLruCache(int maxSize) { argument
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) { argument
81 while (map.size() > maxSize) {
[all...]
/external/webkit/Source/WebKit/gtk/tests/
H A Dtestapplicationcache.c29 unsigned long long maxSize = 8192; local
30 webkit_application_cache_set_maximum_size(maxSize);
37 g_assert(maxSize == webkit_application_cache_get_maximum_size());
/external/qemu/android/utils/
H A Dsystem.c86 size_t maxSize; local
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; local
115 maxSize = (~(size_t)0) / itemSize;
116 if (count > maxSize)
118 itemSize, count, maxSize);
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/preprocessor/
H A Dscanner.h63 int yylex_CPP(char* buf, int maxSize);
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/
H A DShortArrayCodeOutput.java30 * @param maxSize the maximum number of code units that will be written
32 public ShortArrayCodeOutput(int maxSize) { argument
33 if (maxSize < 0) {
34 throw new IllegalArgumentException("maxSize < 0");
37 this.array = new short[maxSize];
/external/icu4c/tools/gencmn/
H A Dgencmn.c51 uint32_t maxSize; local
104 maxSize=(uint32_t)uprv_strtoul(argv[1], NULL, 0);
113 maxSize, sourceTOC, verbose, NULL);
/external/clang/utils/ABITest/
H A DTypeGen.py320 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,sel
[all...]
H A DEnumeration.py161 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,
182 t = GNT(N,maxSize,maxElement,useDivmod,useLeftToRight)
183 assert len(t) <= maxSize
/external/aac/libAACenc/src/
H A DaacEnc_ram.h156 #define maxSize(a,b) ( ((a)>(b)) ? (a) : (b) ) macro
177 #define BUF_SIZE_1 ( ALIGN_SIZE(maxSize(sizeof(PSY_DYNAMIC), \
/external/skia/tests/
H A DPackBitsTest.cpp52 size_t maxSize = SkPackBits::ComputeMaxSize16(size); local
53 REPORTER_ASSERT(reporter, maxSize >= dstSize);
87 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); local
90 REPORTER_ASSERT(reporter, dstSize <= maxSize);
106 size_t maxSize = SkPackBits::ComputeMaxSize8(size); local
107 REPORTER_ASSERT(reporter, maxSize >= dstSize);
/external/proguard/src/proguard/evaluation/
H A DStack.java45 public Stack(int maxSize) argument
47 values = new Value[maxSize];
77 public void reset(int maxSize) argument
80 if (maxSize > values.length)
83 values = new Value[maxSize];
H A DTracedStack.java45 public TracedStack(int maxSize) argument
47 super(maxSize);
49 producerStack = new Stack(maxSize);
/external/okhttp/src/main/java/libcore/io/
H A DDiskLruCache.java146 private final long maxSize; field in class:DiskLruCache
180 private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { argument
186 this.maxSize = maxSize;
196 * @param maxSize the maximum number of bytes this cache should use to store
199 public static DiskLruCache open(File directory, int appVersion, int valueCount, long maxSize) argument
201 if (maxSize <= 0) {
202 throw new IllegalArgumentException("maxSize <= 0");
209 DiskLruCache cache = new DiskLruCache(directory, appVersion, valueCount, maxSize);
225 cache = new DiskLruCache(directory, appVersion, valueCount, maxSize);
434 public long maxSize() { method in class:DiskLruCache
[all...]
/external/libnfc-nxp/src/
H A DphFriNfc_NdefMap.c1239 NFCSTATUS phFriNfc_NdefMap_GetContainerSize(const phFriNfc_NdefMap_t *NdefMap,uint32_t *maxSize, uint32_t *actualSize) argument
1246 if( (NdefMap == NULL) || (maxSize == NULL) || (actualSize == NULL))
1262 *maxSize = NdefMap->MifareULContainer.RemainingSize;
1280 *maxSize = NdefMap->DesfireCapContainer.NdefFileSize - 2;
1293 *maxSize = NdefMap->TopazContainer.RemainingSize;
1304 *maxSize = NdefMap->TopazContainer.NDEFRWSize;
1321 *maxSize = NdefMap->StdMifareContainer.remainingSize;
1365 *maxSize = (((30 * (16 * 3)) + (sect_index * (16 * 15))) - 4);
1369 *maxSize = (((actual_sect_index - 1) * (16 * 3)) - 4);
1373 *maxSize
[all...]
/external/icu4c/test/intltest/
H A Dtscoll.cpp501 int32_t maxSize = 100; local
503 LocalArray<Order> orders(new Order[maxSize]);
510 if (size == maxSize)
512 maxSize *= 2;
513 Order *temp = new Order[maxSize];
526 if (maxSize > size)
/external/chromium/chrome/browser/extensions/
H A Dbrowser_action_apitest.cc166 gfx::Size maxSize = BrowserActionTestUtil::GetMaxPopupSize(); local
169 ASSERT_GT(minSize.height() + growFactor * 2, maxSize.height());
170 ASSERT_GT(minSize.width() + growFactor * 2, maxSize.width());
184 EXPECT_EQ(maxSize, actions_bar.GetPopupBounds().size());
/external/dexmaker/src/dx/java/com/android/dx/rop/code/
H A DRegisterSpecSet.java43 * @param maxSize {@code >= 0;} the maximum register number (exclusive) that
46 public RegisterSpecSet(int maxSize) { argument
47 super(maxSize != 0);
49 this.specs = new RegisterSpec[maxSize];
/external/icu4c/tools/toolutil/
H A Dpkg_gencmn.c77 static uint32_t maxSize; variable
124 maxSize = max_size;
438 /* do not add files that are longer than maxSize */
439 if(maxSize && length>maxSize) {
441 printf("%s ignored (size %ld > %ld)\n", fullPath, (long)length, (long)maxSize);
/external/webkit/Source/JavaScriptCore/runtime/
H A DArguments.cpp64 void Arguments::copyToRegisters(ExecState* exec, Register* buffer, uint32_t maxSize) argument
67 unsigned length = min(get(exec, exec->propertyNames().length).toUInt32(exec), maxSize);
74 unsigned parametersLength = min(min(d->numParameters, d->numArguments), maxSize);
83 unsigned parametersLength = min(min(d->numParameters, d->numArguments), maxSize);
/external/webkit/Tools/QtTestBrowser/
H A Dmain.cpp197 << "[-set-offline-storage-default-quota maxSize]"
249 unsigned int maxSize = takeOptionValue(&args, setOfflineStorageDefaultQuotaIndex).toUInt(); local
250 windowOptions.offlineStorageDefaultQuotaSize = maxSize;
/external/guava/guava-tests/test/com/google/common/collect/
H A DMapMakerInternalMapTest.java209 for (int maxSize = 1; maxSize < 8; maxSize++) {
210 checkMaximumSize(1, 8, maxSize);
211 checkMaximumSize(2, 8, maxSize);
212 checkMaximumSize(4, 8, maxSize);
213 checkMaximumSize(8, 8, maxSize);
231 private static void checkMaximumSize(int concurrencyLevel, int initialCapacity, int maxSize) { argument
235 .maximumSize(maxSize));
240 assertTrue("totalCapcity=" + totalCapacity + ", maxSize
[all...]
/external/guava/guava-tests/test/com/google/common/cache/
H A DCacheTesting.java370 * Assuming the given cache has maximum size {@code maxSize}, this method populates the cache (by
376 static void checkRecency(LoadingCache<Integer, Integer> cache, int maxSize, argument
380 warmUp(cache, 0, 2 * maxSize);
385 assertEquals(maxSize, accessQueueSize(cache));
386 assertEquals(maxSize, cache.size());
H A DLocalCacheTest.java256 for (int maxSize = 1; maxSize < 8; maxSize++) {
257 checkMaximumSize(1, 8, maxSize);
258 checkMaximumSize(2, 8, maxSize);
259 checkMaximumSize(4, 8, maxSize);
260 checkMaximumSize(8, 8, maxSize);
278 private static void checkMaximumSize(int concurrencyLevel, int initialCapacity, long maxSize) { argument
282 .maximumSize(maxSize));
287 assertTrue("totalCapacity=" + totalCapacity + ", maxSize
[all...]
/external/webkit/Source/WebCore/platform/graphics/android/
H A DImageSourceAndroid.cpp139 const size_t maxSize = computeMaxBitmapSizeForCache(); local
143 while (size > maxSize) {

Completed in 1094 milliseconds

12