Home
last modified time | relevance | path

Searched refs:getCapacity (Results 1 – 25 of 29) sorted by relevance

12

/external/icu4c/common/
Dcharstr.cpp62 if(sLength>=(buffer.getCapacity()-len)) { in append()
69 sLength>=(buffer.getCapacity()-len) in append()
90 int32_t appendCapacity=buffer.getCapacity()-len-1; // -1 for NUL in getAppendBuffer()
96 resultCapacity=buffer.getCapacity()-len-1; in getAppendBuffer()
105 len+=s.extract(0, 0x7fffffff, buffer.getAlias()+len, buffer.getCapacity()-len, US_INV); in appendInvariantChars()
116 if(capacity>buffer.getCapacity()) { in ensureCapacity()
118 desiredCapacityHint=capacity+buffer.getCapacity(); in ensureCapacity()
Dlocdispnames.cpp64 buffer, result.getCapacity(), in getDisplayLanguage()
76 buffer, result.getCapacity(), in getDisplayLanguage()
104 buffer, result.getCapacity(), in getDisplayScript()
116 buffer, result.getCapacity(), in getDisplayScript()
144 buffer, result.getCapacity(), in getDisplayCountry()
156 buffer, result.getCapacity(), in getDisplayCountry()
184 buffer, result.getCapacity(), in getDisplayVariant()
196 buffer, result.getCapacity(), in getDisplayVariant()
224 buffer, result.getCapacity(), in getDisplayName()
236 buffer, result.getCapacity(), in getDisplayName()
Dunistr.cpp434 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16, in fromUTF32()
1221 u_strFromUTF8WithSub(utf16, getCapacity(), &length16, in setToUTF8()
1344 if(newLength <= getCapacity() && isBufferWritable()) { in doReplace()
1586 int32_t capacity=getCapacity(); in releaseBuffer()
1614 newCapacity = getCapacity(); in cloneArrayIfNeeded()
1634 newCapacity > getCapacity() in cloneArrayIfNeeded()
1671 newCapacity = getCapacity(); in cloneArrayIfNeeded()
1747 *resultCapacity = str.getCapacity() - oldLength; in getAppendBuffer()
Dunistr_case.cpp129 newLength = stringCaseMapper(csm, getArrayStart(), getCapacity(), in caseMap()
Duts46.cpp608 int32_t capacity=dest.getCapacity(); in mapDevChars()
627 capacity=dest.getCapacity(); in mapDevChars()
709 unicodeBuffer, fromPunycode.getCapacity(), in processLabel()
720 unicodeBuffer, fromPunycode.getCapacity(), in processLabel()
855 buffer+4, punycode.getCapacity()-4, in processLabel()
866 buffer+4, punycode.getCapacity()-4, in processLabel()
Dcmemory.h267 int32_t getCapacity() const { return capacity; } in getCapacity() function
442 int32_t getCapacity() const { return capacity; } in getCapacity() function
Dunistr_cnv.cpp400 ucnv_toUnicode(converter, &myTarget, array + getCapacity(), in doCodepageCreate()
Dnormalizer2impl.cpp47 remainingCapacity=str.getCapacity()-length; in init()
163 remainingCapacity=str.getCapacity(); in remove()
173 remainingCapacity=str.getCapacity(); in removeSuffix()
184 int32_t doubleCapacity=2*str.getCapacity(); in resize()
199 remainingCapacity=str.getCapacity()-length; in resize()
Drbbitblb.cpp962 if (destOriginalSize > destArray.getCapacity()) { in setAdd()
970 if (sourceSize > sourceArray.getCapacity()) { in setAdd()
Dmessagepattern.cpp113 if(length>a.getCapacity() && NULL==a.resize(length)) { in copyFrom()
127 if(a.getCapacity()>oldLength || a.resize(2*oldLength, oldLength)!=NULL) { in ensureCapacityForOneMore()
/external/icu4c/i18n/
Ddigitlst.cpp75 fContext.digits = fStorage.getCapacity(); in DigitList()
109 if (other.fStorage.getCapacity() > fStorage.getCapacity()) { in operator =()
110 fDecNumber = fStorage.resize(other.fStorage.getCapacity()); in operator =()
114 fContext.digits = fStorage.getCapacity(); in operator =()
771 decNumber *t = fStorage.resize(numDigits, fStorage.getCapacity()); in set()
889 decNumber *newBuffer = fStorage.resize(requestedCapacity, fStorage.getCapacity()); in ensureCapacity()
Dsortkey.cpp63 (count > getCapacity() && reallocate(count, 0) == NULL)) { in CollationKey()
84 if (length > getCapacity() && reallocate(length, 0) == NULL) { in CollationKey()
157 if (length > getCapacity() && reallocate(length, 0) == NULL) { in operator =()
/external/replicaisland/src/com/replica/replicaisland/
DObjectPool.java60 return mAvailable.getCapacity() - mAvailable.getCount(); in getAllocatedCount()
DSpriteAnimation.java46 assert frames.getCount() == frames.getCapacity(); in getFrame()
DFixedSizeArray.java264 public int getCapacity() {
DCollisionSystem.java480 final int maxSegments = outputHitPoints.getCapacity() - outputHitPoints.getCount(); in testBoxAgainstList()
851 if (segments.getCount() < segments.getCapacity()) { in addSegment()
/external/icu4c/test/intltest/
Dnptrans.cpp208 b1Len = map(src, srcLength, b1, b1String.getCapacity(), allowUnassigned, parseError, status); in process()
216 … b1Len = map(src, srcLength, b1, b1String.getCapacity(), allowUnassigned, parseError, status); in process()
Ddcfmtest.cpp110 if (len+1 > buf.getCapacity()) { in InvariantStringPiece()
134 int32_t capacity = buf.getCapacity(); in UnicodeStringPiece()
Dustrtest.cpp1044 if(test1.getCapacity()<20) { in TestMiscellaneous()
1092 for(int32_t i=0; i<test1.getCapacity(); ++i) { in TestMiscellaneous()
1096 …if(test1.length()!=test1.getCapacity() || test1.charAt(1)!=1 || test1.charAt(100)!=1 || test1.char… in TestMiscellaneous()
1547 …gus() || test3.setTo((UChar *)test1.getBuffer(), test1.length(), test1.getCapacity()).isBogus() ||… in TestBogus()
Dstrcase.cpp440 u_strFromUTF8(buffer, result.getCapacity(), &resultLength, utf8Out, utf8OutLength, errorCode); in TestCasingImpl()
/external/icu4c/i18n/unicode/
Dsortkey.h260 int32_t getCapacity() const { in getCapacity() function
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DRouteSpecificPool.java127 public int getCapacity() { in getCapacity() method in RouteSpecificPool
DConnPoolByRoute.java305 boolean hasCapacity = rospl.getCapacity() > 0;
308 log.debug("Available capacity: " + rospl.getCapacity()
/external/icu4c/tools/toolutil/
Dxmlparser.cpp220 &pu, buffer+src.getCapacity(), in parseFile()
288 cnv, &pu, buffer+src.getCapacity(), in parseFile()
294 capacity=(3*src.getCapacity())/2; // increase capacity by 50% in parseFile()
Dppucd.cpp513 int32_t length=u_parseString(s, buffer, uni.getCapacity(), NULL, &errorCode); in parseString()
518 length=u_parseString(s, buffer, uni.getCapacity(), NULL, &errorCode); in parseString()

12