/external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/ |
D | WKString.cpp | 40 size_t maxSize = WKStringGetMaximumUTF8CStringSize(string); in TEST() local 41 char* buffer = new char[maxSize]; in TEST() 43 size_t actualSize = WKStringGetUTF8CString(string, buffer, maxSize); in TEST() 49 maxSize = WKStringGetLength(string); in TEST() 50 TEST_ASSERT(maxSize == 5); in TEST() 53 WKChar* uniBuffer = new WKChar[maxSize+1]; in TEST() 54 actualSize = WKStringGetCharacters(string, uniBuffer, maxSize); in TEST() 61 actualSize = WKStringGetCharacters(string, uniBuffer, maxSize-1); in TEST() 65 actualSize = WKStringGetCharacters(string, uniBuffer, maxSize+1); in TEST()
|
/external/okhttp/src/main/java/libcore/util/ |
D | BasicLruCache.java | 28 private final int maxSize; field in BasicLruCache 30 public BasicLruCache(int maxSize) { in BasicLruCache() argument 31 if (maxSize <= 0) { in BasicLruCache() 34 this.maxSize = maxSize; in BasicLruCache() 58 trimToSize(maxSize); in get() 76 trimToSize(maxSize); in put() 80 private void trimToSize(int maxSize) { in trimToSize() argument 81 while (map.size() > maxSize) { in trimToSize()
|
/external/qemu/android/utils/ |
D | system.c | 86 size_t maxSize; in _android_array_alloc() local 91 maxSize = (~(size_t)0) / itemSize; in _android_array_alloc() 92 if (count > maxSize) in _android_array_alloc() 93 AASSERT_FAIL("allocation too large (%d > %d)\n", count, maxSize); in _android_array_alloc() 110 size_t maxSize; in _android_array_realloc() local 115 maxSize = (~(size_t)0) / itemSize; in _android_array_realloc() 116 if (count > maxSize) in _android_array_realloc() 118 itemSize, count, maxSize); in _android_array_realloc()
|
/external/clang/utils/ABITest/ |
D | TypeGen.py | 320 def __init__(self, typeGen, maxSize, useIncomplete=False, useZero=False): argument 325 self.maxSize = int(maxSize) 326 self.W = useIncomplete + useZero + self.maxSize 348 def __init__(self, typeGen, useUnion, maxSize): argument 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)) 373 def __init__(self, typeGen, useReturn, maxSize): argument 377 self.maxSize = maxSize [all …]
|
D | Enumeration.py | 161 def getNthTuple(N, maxSize=aleph0, maxElement=aleph0, useDivmod=False, useLeftToRight=False): argument 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, argument 182 t = GNT(N,maxSize,maxElement,useDivmod,useLeftToRight) 183 assert len(t) <= maxSize
|
/external/webkit/Source/WebKit/gtk/tests/ |
D | testapplicationcache.c | 29 unsigned long long maxSize = 8192; in test_application_cache_maximum_size() local 30 webkit_application_cache_set_maximum_size(maxSize); in test_application_cache_maximum_size() 37 g_assert(maxSize == webkit_application_cache_get_maximum_size()); in test_application_cache_maximum_size()
|
/external/skia/tests/ |
D | PackBitsTest.cpp | 52 size_t maxSize = SkPackBits::ComputeMaxSize16(size); in test_pack16() local 53 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack16() 87 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); in test_pack8() local 90 REPORTER_ASSERT(reporter, dstSize <= maxSize); in test_pack8() 106 size_t maxSize = SkPackBits::ComputeMaxSize8(size); in test_pack8() local 107 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack8()
|
/external/libnfc-nxp/src/ |
D | phFriNfc_NdefMap.c | 1239 NFCSTATUS phFriNfc_NdefMap_GetContainerSize(const phFriNfc_NdefMap_t *NdefMap,uint32_t *maxSize, ui… in phFriNfc_NdefMap_GetContainerSize() argument 1246 if( (NdefMap == NULL) || (maxSize == NULL) || (actualSize == NULL)) in phFriNfc_NdefMap_GetContainerSize() 1262 *maxSize = NdefMap->MifareULContainer.RemainingSize; in phFriNfc_NdefMap_GetContainerSize() 1280 *maxSize = NdefMap->DesfireCapContainer.NdefFileSize - 2; in phFriNfc_NdefMap_GetContainerSize() 1293 *maxSize = NdefMap->TopazContainer.RemainingSize; in phFriNfc_NdefMap_GetContainerSize() 1304 *maxSize = NdefMap->TopazContainer.NDEFRWSize; in phFriNfc_NdefMap_GetContainerSize() 1321 *maxSize = NdefMap->StdMifareContainer.remainingSize; in phFriNfc_NdefMap_GetContainerSize() 1365 *maxSize = (((30 * (16 * 3)) + (sect_index * (16 * 15))) - 4); in phFriNfc_NdefMap_GetContainerSize() 1369 *maxSize = (((actual_sect_index - 1) * (16 * 3)) - 4); in phFriNfc_NdefMap_GetContainerSize() 1373 *maxSize = (((actual_sect_index - 2) * (16 * 3)) - 4); in phFriNfc_NdefMap_GetContainerSize() [all …]
|
/external/okhttp/src/main/java/libcore/io/ |
D | DiskLruCache.java | 146 private final long maxSize; field in DiskLruCache 180 private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { in DiskLruCache() argument 186 this.maxSize = maxSize; in DiskLruCache() 199 public static DiskLruCache open(File directory, int appVersion, int valueCount, long maxSize) in open() argument 201 if (maxSize <= 0) { in open() 209 DiskLruCache cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); in open() 225 cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); in open() 434 public long maxSize() { in maxSize() method in DiskLruCache 435 return maxSize; in maxSize() 492 if (size > maxSize || journalRebuildRequired()) { in completeEdit() [all …]
|
/external/icu4c/tools/gencmn/ |
D | gencmn.c | 51 uint32_t maxSize; in main() local 104 maxSize=(uint32_t)uprv_strtoul(argv[1], NULL, 0); in main() 113 maxSize, sourceTOC, verbose, NULL); in main()
|
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
D | ShortArrayCodeOutput.java | 32 public ShortArrayCodeOutput(int maxSize) { in ShortArrayCodeOutput() argument 33 if (maxSize < 0) { in ShortArrayCodeOutput() 37 this.array = new short[maxSize]; in ShortArrayCodeOutput()
|
/external/eigen/test/ |
D | nomalloc.cpp | 99 const int maxSize = 16; in ctms_decompositions() local 105 maxSize, maxSize> Matrix; in ctms_decompositions() 110 maxSize, 1> Vector; in ctms_decompositions() 115 maxSize, maxSize> ComplexMatrix; in ctms_decompositions()
|
D | sparse_solver.h | 131 …ypename Solver::MatrixType& A, typename Solver::MatrixType& halfA, DenseMat& dA, int maxSize = 300) 137 int size = internal::random<int>(1,maxSize); 240 …ate_sparse_square_problem(Solver&, typename Solver::MatrixType& A, DenseMat& dA, int maxSize = 300) 246 int size = internal::random<int>(1,maxSize);
|
/external/proguard/src/proguard/evaluation/ |
D | Stack.java | 45 public Stack(int maxSize) in Stack() argument 47 values = new Value[maxSize]; in Stack() 77 public void reset(int maxSize) in reset() argument 80 if (maxSize > values.length) in reset() 83 values = new Value[maxSize]; in reset()
|
D | TracedStack.java | 45 public TracedStack(int maxSize) in TracedStack() argument 47 super(maxSize); in TracedStack() 49 producerStack = new Stack(maxSize); in TracedStack()
|
/external/aac/libAACenc/src/ |
D | aacEnc_ram.h | 156 #define maxSize(a,b) ( ((a)>(b)) ? (a) : (b) ) macro 177 #define BUF_SIZE_1 ( ALIGN_SIZE(maxSize(sizeof(PSY_DYNAMIC), \
|
/external/icu4c/test/intltest/ |
D | tscoll.cpp | 501 int32_t maxSize = 100; in getOrders() local 503 LocalArray<Order> orders(new Order[maxSize]); in getOrders() 510 if (size == maxSize) in getOrders() 512 maxSize *= 2; in getOrders() 513 Order *temp = new Order[maxSize]; in getOrders() 526 if (maxSize > size) in getOrders()
|
/external/icu4c/tools/toolutil/ |
D | pkg_gencmn.c | 77 static uint32_t maxSize; variable 124 maxSize = max_size; in createCommonDataFile() 439 if(maxSize && length>maxSize) { in addFile() 441 printf("%s ignored (size %ld > %ld)\n", fullPath, (long)length, (long)maxSize); in addFile()
|
/external/dexmaker/src/dx/java/com/android/dx/rop/code/ |
D | RegisterSpecSet.java | 46 public RegisterSpecSet(int maxSize) { in RegisterSpecSet() argument 47 super(maxSize != 0); in RegisterSpecSet() 49 this.specs = new RegisterSpec[maxSize]; in RegisterSpecSet()
|
/external/chromium/chrome/browser/extensions/ |
D | browser_action_apitest.cc | 166 gfx::Size maxSize = BrowserActionTestUtil::GetMaxPopupSize(); in IN_PROC_BROWSER_TEST_F() local 169 ASSERT_GT(minSize.height() + growFactor * 2, maxSize.height()); in IN_PROC_BROWSER_TEST_F() 170 ASSERT_GT(minSize.width() + growFactor * 2, maxSize.width()); in IN_PROC_BROWSER_TEST_F() 184 EXPECT_EQ(maxSize, actions_bar.GetPopupBounds().size()); in IN_PROC_BROWSER_TEST_F()
|
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/preprocessor/ |
D | scanner.h | 63 int yylex_CPP(char* buf, int maxSize);
|
/external/webkit/Source/JavaScriptCore/runtime/ |
D | Arguments.cpp | 64 void Arguments::copyToRegisters(ExecState* exec, Register* buffer, uint32_t maxSize) in copyToRegisters() argument 67 unsigned length = min(get(exec, exec->propertyNames().length).toUInt32(exec), maxSize); in copyToRegisters() 74 unsigned parametersLength = min(min(d->numParameters, d->numArguments), maxSize); in copyToRegisters() 83 unsigned parametersLength = min(min(d->numParameters, d->numArguments), maxSize); in copyToRegisters()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MapMakerInternalMapTest.java | 209 for (int maxSize = 1; maxSize < 8; maxSize++) { in testSetMaximumSize() 210 checkMaximumSize(1, 8, maxSize); in testSetMaximumSize() 211 checkMaximumSize(2, 8, maxSize); in testSetMaximumSize() 212 checkMaximumSize(4, 8, maxSize); in testSetMaximumSize() 213 checkMaximumSize(8, 8, maxSize); in testSetMaximumSize() 231 private static void checkMaximumSize(int concurrencyLevel, int initialCapacity, int maxSize) { in checkMaximumSize() argument 235 .maximumSize(maxSize)); in checkMaximumSize() 240 assertTrue("totalCapcity=" + totalCapacity + ", maxSize=" + maxSize, totalCapacity <= maxSize); in checkMaximumSize() 755 int maxSize = 10; in testSegmentPut_evict() local 757 makeMap(createMapMaker().concurrencyLevel(1).maximumSize(maxSize)); in testSegmentPut_evict() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 376 static void checkRecency(LoadingCache<Integer, Integer> cache, int maxSize, 380 warmUp(cache, 0, 2 * maxSize); 385 assertEquals(maxSize, accessQueueSize(cache)); 386 assertEquals(maxSize, cache.size());
|
/external/webkit/Tools/QtTestBrowser/ |
D | main.cpp | 249 unsigned int maxSize = takeOptionValue(&args, setOfflineStorageDefaultQuotaIndex).toUInt(); in handleUserOptions() local 250 windowOptions.offlineStorageDefaultQuotaSize = maxSize; in handleUserOptions()
|