Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 183) sorted by relevance

12345678

/frameworks/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java53 private final int limit; field in BidiRenderer.ScriptRun
56 private ScriptRun(int start, int limit, @NonNull Font font) { in ScriptRun() argument
58 this.limit = limit; in ScriptRun()
104 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, in renderText() argument
106 mBidi.setPara(Arrays.copyOfRange(mText, start, limit), (byte)getIcuFlags(bidiFlags), null); in renderText()
132 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument
136 for (ScriptRun run : getScriptRuns(mText, start, limit, mPaint.getFonts())) { in renderText()
139 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); in renderText()
140 advancesIndex += run.limit - run.start; in renderText()
150 private void renderScript(int start, int limit, Font preferredFont, int flag, in renderScript() argument
[all …]
/frameworks/base/core/java/android/text/
DSpanSet.java49 public void init(Spanned spanned, int start, int limit) { in init() argument
50 final E[] allSpans = spanned.getSpans(start, limit, classType); in init()
103 int getNextTransition(int start, int limit) { in getNextTransition() argument
107 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition()
108 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition()
110 return limit; in getNextTransition()
DTextLine.java174 public void set(TextPaint paint, CharSequence text, int start, int limit, int dir, in set() argument
180 mLen = limit - start; in set()
192 mReplacementSpanSpanSet.init(mSpanned, start, limit); in set()
212 TextUtils.getChars(text, start, limit, mChars, 0); in set()
220 for (int i = start, inext; i < limit; i = inext) { in set()
221 inext = mReplacementSpanSpanSet.getNextTransition(i, limit); in set()
481 int limit, boolean runIsRtl, float x, int top, int y, int bottom,
485 float w = -measureRun(start, limit, limit, runIsRtl, null);
486 handleRun(start, limit, limit, runIsRtl, c, x + w, top,
491 return handleRun(start, limit, limit, runIsRtl, c, x, top,
[all …]
DSpannableStringInternal.java102 final int limit = src.mSpanCount; in copySpans() local
105 for (int i = 0; i < limit; i++) { in copySpans()
130 for (int i = 0, j = 0; i < limit; i++) { in copySpans()
420 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument
433 if (st > start && st < limit && kind.isInstance(spans[i])) in nextSpanTransition()
434 limit = st; in nextSpanTransition()
435 if (en > start && en < limit && kind.isInstance(spans[i])) in nextSpanTransition()
436 limit = en; in nextSpanTransition()
439 return limit; in nextSpanTransition()
/frameworks/av/media/codec2/vndk/util/
DC2InterfaceUtils.cpp136 C2SupportedRange<T> C2SupportedRange<T>::limitedTo(const C2SupportedRange<T> &limit) const { in limitedTo()
138 return C2SupportedRange(std::max(_mMin, limit._mMin), std::min(_mMax, limit._mMax), in limitedTo()
139 std::max(_mStep, limit._mStep)); in limitedTo()
169 C2SupportedFlags<float> C2SupportedFlags<float>::limitedTo(const C2SupportedFlags<float> &limit) co… in limitedTo()
212 C2SupportedFlags<T> C2SupportedFlags<T>::limitedTo(const C2SupportedFlags<T> &limit) const { in limitedTo()
214 T minMask = min() | limit.min(); in limitedTo()
216 if (limit.contains(minMask) && contains(minMask)) { in limitedTo()
220 [&limit, minMask]( in limitedTo()
224 !limit.contains(value); in limitedTo()
270 C2SupportedValueSet<T> C2SupportedValueSet<T>::limitedTo(const C2SupportedValueSet<T> &limit) const… in limitedTo()
[all …]
/frameworks/base/core/java/android/util/
DJsonReader.java199 private int limit = 0; field in JsonReader
684 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue()
735 if (limit != pos) { in fillBuffer()
736 limit -= pos; in fillBuffer()
737 System.arraycopy(buffer, pos, buffer, 0, limit); in fillBuffer()
739 limit = 0; in fillBuffer()
744 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) { in fillBuffer()
745 limit += total; in fillBuffer()
749 && limit > 0 && buffer[0] == '\ufeff') { in fillBuffer()
754 if (limit >= minimum) { in fillBuffer()
[all …]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java127 final int contentLimit = content.limit(); in sendMessage()
141 content.limit(contentPosition + outputAvailable); in sendMessage()
143 content.limit(contentLimit); in sendMessage()
255 final int limit = buffer.limit(); in handleMessage() local
256 while (buffer.position() < limit) { in handleMessage()
264 buffer.limit(end); in handleMessage()
266 buffer.limit(limit); in handleMessage()
356 buffer.limit(next); in loop()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerDataHelper.java108 public Cursor query(String tag, int limit) { in query() argument
117 int pos = (cursor.getCount() < limit ? 0 : cursor.getCount() - limit); in query()
128 public Cursor query(int limit) { in query() argument
129 return query(null, limit); in query()
/frameworks/multidex/library/
DREADME6 Note that multidexing will allow to go over the dex index limit.
7 It can also help with the linearalloc limit during installation but it
10 limit won't execute on API below 14 because of linearalloc limit.
/frameworks/av/media/libstagefright/mpeg2ts/
DHlsSampleDecryptor.cpp265 size_t HlsSampleDecryptor::unescapeStream(uint8_t *data, size_t limit) const { in unescapeStream()
269 while (position < limit) { in unescapeStream()
270 position = findNextUnescapeIndex(data, position, limit); in unescapeStream()
271 if (position < limit) { in unescapeStream()
291 size_t unescapedLength = limit - scratchEscapeCount; in unescapeStream()
298 size_t HlsSampleDecryptor::findNextUnescapeIndex(uint8_t *data, size_t offset, size_t limit) const { in findNextUnescapeIndex()
299 for (size_t i = offset; i < limit - 2; i++) { in findNextUnescapeIndex()
305 return limit; in findNextUnescapeIndex()
DHlsSampleDecryptor.h49 size_t unescapeStream(uint8_t *data, size_t limit) const;
50 size_t findNextUnescapeIndex(uint8_t *data, size_t offset, size_t limit) const;
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DDisplaySinkService.java208 final int limit = content.limit(); in provideCodecInputLocked() local
209 content.limit(content.position() + capacity); in provideCodecInputLocked()
211 content.limit(limit); in provideCodecInputLocked()
214 mCodec.queueInputBuffer(index, 0, buffer.limit(), 0, 0); in provideCodecInputLocked()
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/
DServerMain.java89 public static ServerMain forkAndStartServer(int basePort, int limit) in forkAndStartServer() argument
118 cmd.add(Integer.toString(limit)); in forkAndStartServer()
176 private static ServerMain startServer(int basePort, int limit) throws RemoteException {
181 for (int port = basePort; port <= basePort + limit; port++) {
208 int limit = args.length > 1 ? Integer.parseInt(args[1]) : 10;
210 ServerMain server = startServer(basePort, limit);
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DGarbageMonitor.java273 long pss, limit; field in GarbageMonitor.MemoryIconDrawable
291 public void setLimit(long limit) { in setLimit() argument
292 if (limit != this.limit) { in setLimit()
293 this.limit = limit; in setLimit()
302 if (limit > 0 && pss > 0) { in draw()
303 float frac = Math.min(1f, (float) pss / limit); in draw()
364 long pss, limit; field in GarbageMonitor.MemoryGraphIcon
370 public void setHeapLimit(long limit) { in setHeapLimit() argument
371 this.limit = limit; in setHeapLimit()
378 drawable.setLimit(limit); in getDrawable()
/frameworks/base/tools/stringslint/
Dstringslint.py155 limit = re.search("CHAR[ _-]LIMIT=(\d+|NONE|none)", comment.text)
156 if limit is None:
159 elif re.match("\d+", limit.group(1)):
160 limit = int(limit.group(1))
161 if len(sample) > limit:
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQueryBuilder.java387 String groupBy, String having, String orderBy, String limit) { in buildQueryString() argument
410 appendClause(query, " LIMIT ", limit); in buildQueryString()
513 String having, String sortOrder, String limit) { in query() argument
515 groupBy, having, sortOrder, limit, null); in query()
555 String having, String sortOrder, String limit, CancellationSignal cancellationSignal) { in query() argument
563 sortOrder, limit); in query()
569 enforceStrictGrammar(selection, groupBy, having, sortOrder, limit); in query()
589 wrap(having), sortOrder, limit); in query()
801 @Nullable String having, @Nullable String sortOrder, @Nullable String limit) { in enforceStrictGrammar() argument
810 SQLiteTokenizer.tokenize(limit, SQLiteTokenizer.OPTION_NONE, in enforceStrictGrammar()
[all …]
/frameworks/av/media/utils/
DMemoryLeakTrackUtil.cpp52 std::string dumpMemoryAddresses(size_t limit) in dumpMemoryAddresses() argument
69 if (count > limit) count = limit; in dumpMemoryAddresses()
/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java289 directBuffer.put(directBuffer.limit() - 1, padValue); in testCopyWithDirectByteBuffer()
299 assertEquals(directBuffer.get(directBuffer.limit() - 1), padValue); in testCopyWithDirectByteBuffer()
328 directBuffer.put(directBuffer.limit() - 1, padValue); in testCopyWithDirectShortBuffer()
338 assertEquals(directBuffer.get(directBuffer.limit() - 1), padValue); in testCopyWithDirectShortBuffer()
367 directBuffer.put(directBuffer.limit() - 1, padValue); in testCopyWithDirectIntBuffer()
377 assertEquals(directBuffer.get(directBuffer.limit() - 1), padValue); in testCopyWithDirectIntBuffer()
405 heapBuffer.put(heapBuffer.limit() - 1, padValue); in testCopyWithHeapByteBuffer()
414 assertEquals(heapBuffer.get(heapBuffer.limit() - 1), padValue); in testCopyWithHeapByteBuffer()
442 heapBuffer.put(heapBuffer.limit() - 1, padValue); in testCopyWithHeapShortBuffer()
451 assertEquals(heapBuffer.get(heapBuffer.limit() - 1), padValue); in testCopyWithHeapShortBuffer()
[all …]
/frameworks/ex/common/java/com/android/common/
DSearch.java78 String query, int limit) { in getSuggestions() argument
113 if (limit > 0) { in getSuggestions()
115 String.valueOf(limit)); in getSuggestions()
/frameworks/base/core/java/android/os/strictmode/
DInstanceCountViolation.java27 public InstanceCountViolation(Class klass, long instances, int limit) { in InstanceCountViolation() argument
28 super(klass.toString() + "; instances=" + instances + "; limit=" + limit); in InstanceCountViolation()
/frameworks/base/core/java/android/util/apk/
DApkSigningBlockUtils.java573 int originalLimit = source.limit(); in sliceFromTo()
577 source.limit(end); in sliceFromTo()
584 source.limit(originalLimit); in sliceFromTo()
603 int originalLimit = source.limit(); in getByteBuffer()
605 int limit = position + size; in getByteBuffer() local
606 if ((limit < position) || (limit > originalLimit)) { in getByteBuffer()
609 source.limit(limit); in getByteBuffer()
613 source.position(limit); in getByteBuffer()
616 source.limit(originalLimit); in getByteBuffer()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DRRuleTest.java65 private void runRecurrenceIteratorTest(String rruleText, String dtStart, int limit, in runRecurrenceIteratorTest() argument
67 runRecurrenceIteratorTest(rruleText, dtStart, limit, golden, null, null, UTC); in runRecurrenceIteratorTest()
70 private void runRecurrenceIteratorTest(String rrule, String dtstartStr, int limit, in runRecurrenceIteratorTest() argument
72 runRecurrenceIteratorTest(rrule, dtstartStr, limit, golden, advanceTo, null, tz); in runRecurrenceIteratorTest()
88 private void runRecurrenceIteratorTest(String rrule, String dtstartStr, int limit, in runRecurrenceIteratorTest() argument
130 while (k < actual.length && --limit >= 0) { in runRecurrenceIteratorTest()
137 if (limit < 0) { in runRecurrenceIteratorTest()
/frameworks/native/opengl/tools/glgen/stubs/jsr239/
DGLCHeader.cpp92 jint limit;
96 pointer = jniGetNioBufferFields(_env, buffer, &position, &limit, &elementSizeShift);
97 *remaining = (limit - position) << elementSizeShift;
127 jint limit;
130 pointer = jniGetNioBufferFields(_env, buffer, &position, &limit, &elementSizeShift);
/frameworks/base/cmds/incidentd/src/
DThrottler.cpp28 Throttler::Throttler(size_t limit, int64_t refractoryPeriodMs) in Throttler() argument
29 : mSizeLimit(limit), in Throttler()
/frameworks/opt/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java329 final int limit = mPreferredMaxResultCount - in publishResults() local
331 startSearchOtherDirectories(constraint, defaultFilterResult.paramsList, limit); in publishResults()
367 final int limit = mPreferredMaxResultCount - existingDestinations.size(); in searchOtherDirectories() local
368 if (limit > 0) { in searchOtherDirectories()
372 + ", remaining limit: " + limit + ") "); in searchOtherDirectories()
402 public synchronized void setLimit(int limit) { in setLimit() argument
403 this.mLimit = limit; in setLimit()
770 CharSequence constraint, List<DirectorySearchParams> paramsList, int limit) { in startSearchOtherDirectories() argument
779 params.filter.setLimit(limit); in startSearchOtherDirectories()
932 private Cursor doQuery(CharSequence constraint, int limit, Long directoryId) { in doQuery() argument
[all …]

12345678