Searched refs:nextPos (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsMessageBase.java | 363 int nextPos = Math.min(currentPosition + byteLimit / 2, msgBody.length()); in findNextUnicodePosition() local 367 if (nextPos < msgBody.length()) { in findNextUnicodePosition() 370 if (!breakIterator.isBoundary(nextPos)) { in findNextUnicodePosition() 371 int breakPos = breakIterator.preceding(nextPos); in findNextUnicodePosition() 372 while (breakPos + 4 <= nextPos in findNextUnicodePosition() 381 nextPos = breakPos; in findNextUnicodePosition() 382 } else if (Character.isHighSurrogate(msgBody.charAt(nextPos - 1))) { in findNextUnicodePosition() 384 nextPos -= 1; in findNextUnicodePosition() 388 return nextPos; in findNextUnicodePosition() 416 int nextPos = findNextUnicodePosition(pos, maxUserDataBytesWithHeader, in calcUnicodeEncodingDetails() local [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Gradient_Delegate.java | 106 int nextPos = 1; in precomputeGradientColors() local 110 while (currentPos > mPositions[nextPos]) { in precomputeGradientColors() 111 prevPos = nextPos++; in precomputeGradientColors() 115 (mPositions[nextPos] - mPositions[prevPos]); in precomputeGradientColors() 117 mGradient[i] = computeColor(mColors[prevPos], mColors[nextPos], percent); in precomputeGradientColors()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsMessage.java | 430 int nextPos = 0; // Counts code units. in fragmentText() local 434 nextPos = pos + Math.min(limit, textLen - pos); in fragmentText() 437 nextPos = GsmAlphabet.findGsmSeptetLimitIndex(newMsgBody, pos, limit, in fragmentText() 441 nextPos = SmsMessageBase.findNextUnicodePosition(pos, limit, newMsgBody); in fragmentText() 443 if ((nextPos <= pos) || (nextPos > textLen)) { in fragmentText() 444 Rlog.e(LOG_TAG, "fragmentText failed (" + pos + " >= " + nextPos + " or " + in fragmentText() 445 nextPos + " >= " + textLen + ")"); in fragmentText() 448 result.add(newMsgBody.substring(pos, nextPos)); in fragmentText() 449 pos = nextPos; in fragmentText()
|
/frameworks/rs/ |
D | rsScriptC.cpp | 82 int nextPos = cacheDirString.find(OS_PATH_SEPARATOR_STR, currPos + 1); in createCacheDir() local 84 if (nextPos > 0) { in createCacheDir() 86 currentDir += cacheDirString.substr(currPos, nextPos - currPos); in createCacheDir() 92 currPos = nextPos; in createCacheDir()
|
/frameworks/base/core/java/android/widget/ |
D | AbsListView.java | 7549 final int nextPos = firstPos + nextViewIndex; in run() 7551 if (nextPos == mLastSeenPos) { in run() 7561 if (nextPos < mBoundPos) { in run() 7565 mLastSeenPos = nextPos; in run()
|