Home
last modified time | relevance | path

Searched refs:origLen (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java454 final int origLen = end - start; in replace() local
457 if (origLen == 0 && newLen == 0 && !hasNonExclusiveExclusiveSpanAt(tb, tbstart)) { in replace()
463 TextWatcher[] textWatchers = getSpans(start, start + origLen, TextWatcher.class); in replace()
464 sendBeforeTextChanged(textWatchers, start, origLen, newLen); in replace()
469 boolean adjustSelection = origLen != 0 && newLen != 0; in replace()
481 final int offset = (selectionStart - start) * newLen / origLen; in replace()
488 final int offset = (selectionEnd - start) * newLen / origLen; in replace()
496 sendTextChanged(textWatchers, start, origLen, newLen); in replace()
500 sendToSpanWatchers(start, end, newLen - origLen); in replace()
/frameworks/native/cmds/installd/
Dutils.c423 static void* _cache_realloc(cache_t* cache, void* cur, size_t origLen, size_t len) in _cache_realloc() argument
428 memcpy(alloc, cur, origLen < len ? origLen : len); in _cache_realloc()