Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/util/
DJsonReader.java197 private int limit = 0; field in JsonReader
679 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue()
730 if (limit != pos) { in fillBuffer()
731 limit -= pos; in fillBuffer()
732 System.arraycopy(buffer, pos, buffer, 0, limit); in fillBuffer()
734 limit = 0; in fillBuffer()
739 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) { in fillBuffer()
740 limit += total; in fillBuffer()
744 && limit > 0 && buffer[0] == '\ufeff') { in fillBuffer()
749 if (limit >= minimum) { in fillBuffer()
[all …]
DFinitePool.java53 FinitePool(PoolableManager<T> manager, int limit) { in FinitePool() argument
54 if (limit <= 0) throw new IllegalArgumentException("The pool limit must be > 0"); in FinitePool()
57 mLimit = limit; in FinitePool()
DPools.java30 … public static <T extends Poolable<T>> Pool<T> finitePool(PoolableManager<T> manager, int limit) { in finitePool() argument
31 return new FinitePool<T>(manager, limit); in finitePool()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQueryBuilder.java200 String groupBy, String having, String orderBy, String limit) { in buildQueryString() argument
205 if (!TextUtils.isEmpty(limit) && !sLimitPattern.matcher(limit).matches()) { in buildQueryString()
206 throw new IllegalArgumentException("invalid LIMIT clauses:" + limit); in buildQueryString()
226 appendClause(query, " LIMIT ", limit); in buildQueryString()
329 String having, String sortOrder, String limit) { in query() argument
343 having, sortOrder, limit); in query()
349 sortOrder, limit); in query()
402 String having, String sortOrder, String limit) { in buildQuery() argument
426 groupBy, having, sortOrder, limit); in buildQuery()
438 String groupBy, String having, String sortOrder, String limit) { in buildQuery() argument
[all …]
/frameworks/base/core/java/android/text/
DTextLine.java122 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, in set() argument
127 mLen = limit - start; in set()
139 ReplacementSpan[] spans = mSpanned.getSpans(start, limit, ReplacementSpan.class); in set()
150 TextUtils.getChars(text, start, limit, mChars, 0); in set()
158 for (int i = start, inext; i < limit; i = inext) { in set()
159 inext = mSpanned.nextSpanTransition(i, limit, ReplacementSpan.class); in set()
379 int limit, boolean runIsRtl, float x, int top, int y, int bottom,
383 float w = -measureRun(start, limit, limit, runIsRtl, null);
384 handleRun(start, limit, limit, runIsRtl, c, x + w, top,
389 return handleRun(start, limit, limit, runIsRtl, c, x, top,
[all …]
DMeasuredText.java222 int breakText(int start, int limit, boolean forwards, float width) { in breakText() argument
225 for (int i = start; i < limit; ++i) { in breakText()
231 for (int i = limit; --i >= start;) { in breakText()
233 return limit - i -1; in breakText()
238 return limit - start; in breakText()
241 float measure(int start, int limit) { in measure() argument
244 for (int i = start; i < limit; ++i) { in measure()
DSpannableStringInternal.java285 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument
298 if (st > start && st < limit && kind.isInstance(spans[i])) in nextSpanTransition()
299 limit = st; in nextSpanTransition()
300 if (en > start && en < limit && kind.isInstance(spans[i])) in nextSpanTransition()
301 limit = en; in nextSpanTransition()
304 return limit; in nextSpanTransition()
DSpanned.java181 public int nextSpanTransition(int start, int limit, Class type); in nextSpanTransition() argument
DLayout.java714 int limit = start + (runs[i+1] & RUN_LENGTH_MASK); in primaryIsTrailingPrevious() local
715 if (limit > lineEnd) { in primaryIsTrailingPrevious()
716 limit = lineEnd; in primaryIsTrailingPrevious()
718 if (offset >= start && offset < limit) { in primaryIsTrailingPrevious()
740 int limit = start + (runs[i+1] & RUN_LENGTH_MASK); in primaryIsTrailingPrevious() local
741 if (limit > lineEnd) { in primaryIsTrailingPrevious()
742 limit = lineEnd; in primaryIsTrailingPrevious()
744 if (offset >= start && offset < limit) { in primaryIsTrailingPrevious()
1805 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument
1806 return mSpanned.nextSpanTransition(start, limit, type); in nextSpanTransition()
/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/base/opengl/java/android/opengl/
DObject3D.java204 allbb.limit(4*3*numTuples); in load()
210 allbb.position(allbb.limit()); in load()
211 allbb.limit(allbb.position() + 4*2*numTuples); in load()
217 allbb.position(allbb.limit()); in load()
218 allbb.limit(allbb.position() + 4*3*numTuples); in load()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon/
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/base/telephony/java/android/telephony/
DSmsMessage.java293 int limit; in fragmentText() local
295 limit = (ted.codeUnitSize == ENCODING_7BIT) ? in fragmentText()
298 limit = (ted.codeUnitSize == ENCODING_7BIT) ? in fragmentText()
310 nextPos = pos + Math.min(limit, textLen - pos); in fragmentText()
313 nextPos = GsmAlphabet.findGsmSeptetLimitIndex(text, pos, limit, in fragmentText()
317 nextPos = pos + Math.min(limit / 2, textLen - pos); in fragmentText()
/frameworks/base/opengl/tools/glgen/stubs/gles11/
DGLES10ExtcHeader.cpp68 jint limit; in getPointer() local
75 limit = _env->GetIntField(buffer, limitID); in getPointer()
77 *remaining = (limit - position) << elementSizeShift; in getPointer()
DGLES11cHeader.cpp75 jint limit;
82 limit = _env->GetIntField(buffer, limitID);
84 *remaining = (limit - position) << elementSizeShift;
DGLES11ExtcHeader.cpp77 jint limit;
84 limit = _env->GetIntField(buffer, limitID);
86 *remaining = (limit - position) << elementSizeShift;
DGLES10cHeader.cpp80 jint limit;
87 limit = _env->GetIntField(buffer, limitID);
89 *remaining = (limit - position) << elementSizeShift;
DGLES20cHeader.cpp68 jint limit; in getPointer() local
75 limit = _env->GetIntField(buffer, limitID); in getPointer()
77 *remaining = (limit - position) << elementSizeShift; in getPointer()
/frameworks/ex/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java261 final int limit = mPreferredMaxResultCount - existingDestinations.size(); in performFiltering() local
263 if (limit > 0) { in performFiltering()
267 + ", remaining limit: " + limit + ") "); in performFiltering()
311 final int limit = mPreferredMaxResultCount - in publishResults() local
313 startSearchOtherDirectories(constraint, defaultFilterResult.paramsList, limit); in publishResults()
343 public synchronized void setLimit(int limit) { in setLimit() argument
344 this.mLimit = limit; in setLimit()
588 CharSequence constraint, List<DirectorySearchParams> paramsList, int limit) { in startSearchOtherDirectories() argument
597 params.filter.setLimit(limit); in startSearchOtherDirectories()
767 private Cursor doQuery(CharSequence constraint, int limit, Long directoryId) { in doQuery() argument
[all …]
/frameworks/base/core/java/com/android/internal/content/
DSelectionBuilder.java107 String having, String orderBy, String limit) { in query() argument
109 orderBy, limit); in query()
/frameworks/base/core/jni/
Dandroid_opengl_GLES10Ext.cpp69 jint limit; in getPointer() local
76 limit = _env->GetIntField(buffer, limitID); in getPointer()
78 *remaining = (limit - position) << elementSizeShift; in getPointer()
/frameworks/ex/common/java/com/android/common/contacts/
DBaseEmailAddressAdapter.java220 public synchronized void setLimit(int limit) { in setLimit() argument
221 this.mLimit = limit; in setLimit()
424 int limit = 0; in onDirectoryLoadFinished() local
438 limit = mPreferredMaxResultCount - defaultPartitionCount; in onDirectoryLoadFinished()
446 if (limit > 0) { in onDirectoryLoadFinished()
471 partition.filter.setLimit(limit); in onDirectoryLoadFinished()
/frameworks/base/core/java/android/os/
DStrictMode.java1390 int limit = entry.getValue(); in conditionallyCheckInstanceCounts() local
1392 if (instances <= limit) { in conditionallyCheckInstanceCounts()
1395 Throwable tr = new InstanceCountViolation(klass, instances, limit); in conditionallyCheckInstanceCounts()
1872 final int limit; in decrementExpectedActivityCount() local
1888 limit = newExpected + 1; in decrementExpectedActivityCount()
1893 if (actual <= limit) { in decrementExpectedActivityCount()
1907 if (instances > limit) { in decrementExpectedActivityCount()
1908 Throwable tr = new InstanceCountViolation(klass, instances, limit); in decrementExpectedActivityCount()
2125 public InstanceCountViolation(Class klass, long instances, int limit) { in InstanceCountViolation() argument
2126 super(klass.toString() + "; instances=" + instances + "; limit=" + limit); in InstanceCountViolation()
[all …]
/frameworks/base/core/java/android/app/
DSearchManager.java766 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { in getSuggestions() argument
801 if (limit > 0) { in getSuggestions()
802 uriBuilder.appendQueryParameter(SUGGEST_PARAMETER_LIMIT, String.valueOf(limit)); in getSuggestions()
/frameworks/base/opengl/tools/glgen/stubs/jsr239/
DGLCHeader.cpp119 jint limit;
126 limit = _env->GetIntField(buffer, limitID);
128 *remaining = (limit - position) << elementSizeShift;

1234