Home
last modified time | relevance | path

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

123456

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java48 int limit; field in BidiRenderer.ScriptRun
53 public ScriptRun(int start, int limit, boolean isRtl) { in ScriptRun() argument
55 this.limit = limit; in ScriptRun()
111 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, in renderText() argument
113 Bidi bidi = new Bidi(mText, start, null, 0, limit - start, getIcuFlags(bidiFlags)); in renderText()
138 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument
142 for (ScriptRun run : getScriptRuns(mText, start, limit, isRtl, mFonts)) { in renderText()
145 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); in renderText()
146 advancesIndex += run.limit - run.start; in renderText()
156 private void renderScript(int start, int limit, Font preferredFont, int flag, in renderScript() argument
[all …]
/frameworks/base/core/java/android/text/
DSpanSet.java45 public void init(Spanned spanned, int start, int limit) { in init() argument
46 final E[] allSpans = spanned.getSpans(start, limit, classType); in init()
92 int getNextTransition(int start, int limit) { in getNextTransition() argument
96 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition()
97 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition()
99 return limit; in getNextTransition()
DTextLine.java131 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, in set() argument
136 mLen = limit - start; in set()
148 mReplacementSpanSpanSet.init(mSpanned, start, limit); in set()
158 TextUtils.getChars(text, start, limit, mChars, 0); in set()
166 for (int i = start, inext; i < limit; i = inext) { in set()
167 inext = mReplacementSpanSpanSet.getNextTransition(i, limit); in set()
385 int limit, boolean runIsRtl, float x, int top, int y, int bottom,
389 float w = -measureRun(start, limit, limit, runIsRtl, null);
390 handleRun(start, limit, limit, runIsRtl, c, x + w, top,
395 return handleRun(start, limit, limit, runIsRtl, c, x, top,
[all …]
DMeasuredText.java228 int breakText(int limit, boolean forwards, float width) { in breakText() argument
232 while (i < limit) { in breakText()
240 int i = limit - 1; in breakText()
246 while (i < limit - 1 && mChars[i + 1] == ' ') i++; in breakText()
247 return limit - i - 1; in breakText()
251 float measure(int start, int limit) { in measure() argument
254 for (int i = start; i < limit; ++i) { in measure()
DSpannableStringInternal.java287 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument
300 if (st > start && st < limit && kind.isInstance(spans[i])) in nextSpanTransition()
301 limit = st; in nextSpanTransition()
302 if (en > start && en < limit && kind.isInstance(spans[i])) in nextSpanTransition()
303 limit = en; in nextSpanTransition()
306 return limit; in nextSpanTransition()
DSpanned.java197 public int nextSpanTransition(int start, int limit, Class type); in nextSpanTransition() argument
/frameworks/base/core/java/android/util/
DJsonReader.java197 private int limit = 0; field in JsonReader
682 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue()
733 if (limit != pos) { in fillBuffer()
734 limit -= pos; in fillBuffer()
735 System.arraycopy(buffer, pos, buffer, 0, limit); in fillBuffer()
737 limit = 0; in fillBuffer()
742 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) { in fillBuffer()
743 limit += total; in fillBuffer()
747 && limit > 0 && buffer[0] == '\ufeff') { in fillBuffer()
752 if (limit >= minimum) { in fillBuffer()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQueryBuilder.java203 String groupBy, String having, String orderBy, String limit) { in buildQueryString() argument
208 if (!TextUtils.isEmpty(limit) && !sLimitPattern.matcher(limit).matches()) { in buildQueryString()
209 throw new IllegalArgumentException("invalid LIMIT clauses:" + limit); in buildQueryString()
229 appendClause(query, " LIMIT ", limit); in buildQueryString()
332 String having, String sortOrder, String limit) { in query() argument
334 groupBy, having, sortOrder, limit, null); in query()
374 String having, String sortOrder, String limit, CancellationSignal cancellationSignal) { in query() argument
388 having, sortOrder, limit); in query()
395 sortOrder, limit); in query()
446 String having, String sortOrder, String limit) { in buildQuery() argument
[all …]
DSQLiteDatabase.java1033 String having, String orderBy, String limit) { in query() argument
1035 groupBy, having, orderBy, limit, null); in query()
1074 String having, String orderBy, String limit, CancellationSignal cancellationSignal) { in query() argument
1076 groupBy, having, orderBy, limit, cancellationSignal); in query()
1114 String having, String orderBy, String limit) { in queryWithFactory() argument
1116 selectionArgs, groupBy, having, orderBy, limit, null); in queryWithFactory()
1157 String having, String orderBy, String limit, CancellationSignal cancellationSignal) { in queryWithFactory() argument
1161 distinct, table, columns, selection, groupBy, having, orderBy, limit); in queryWithFactory()
1238 String orderBy, String limit) { in query() argument
1241 having, orderBy, limit); in query()
/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/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/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/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/opt/telephony/src/java/android/telephony/
DSmsMessage.java330 int limit; in fragmentText() local
349 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText()
352 limit = SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in fragmentText()
360 limit -= 2; in fragmentText()
363 limit = SmsConstants.MAX_USER_DATA_BYTES; in fragmentText()
383 nextPos = pos + Math.min(limit, textLen - pos); in fragmentText()
386 nextPos = GsmAlphabet.findGsmSeptetLimitIndex(newMsgBody, pos, limit, in fragmentText()
390 nextPos = pos + Math.min(limit / 2, textLen - pos); in fragmentText()
/frameworks/opt/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java295 final int limit = mPreferredMaxResultCount - in publishResults() local
297 startSearchOtherDirectories(constraint, defaultFilterResult.paramsList, limit); in publishResults()
320 final int limit = mPreferredMaxResultCount - existingDestinations.size(); in searchOtherDirectories() local
321 if (limit > 0) { in searchOtherDirectories()
325 + ", remaining limit: " + limit + ") "); in searchOtherDirectories()
348 public synchronized void setLimit(int limit) { in setLimit() argument
349 this.mLimit = limit; in setLimit()
688 CharSequence constraint, List<DirectorySearchParams> paramsList, int limit) { in startSearchOtherDirectories() argument
697 params.filter.setLimit(limit); in startSearchOtherDirectories()
837 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/support/v17/leanback/src/android/support/v17/leanback/widget/
DCursorObjectAdapter.java182 for (int limit = count + index; index < limit; index++) { in invalidateCache()
/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/docs/html/training/displaying-bitmaps/
Dindex.jd44 and avoids exceeding your application memory limit. If you're not careful, bitmaps can quickly
56 perform under this minimum memory limit. However, keep in mind many devices are configured with
63 per-app limit on some devices.</li>
75 memory limit.</dd>
/frameworks/base/core/java/android/os/
DStrictMode.java1462 int limit = entry.getValue(); in conditionallyCheckInstanceCounts() local
1464 if (instances <= limit) { in conditionallyCheckInstanceCounts()
1467 Throwable tr = new InstanceCountViolation(klass, instances, limit); in conditionallyCheckInstanceCounts()
2009 final int limit; in decrementExpectedActivityCount() local
2025 limit = newExpected + 1; in decrementExpectedActivityCount()
2030 if (actual <= limit) { in decrementExpectedActivityCount()
2047 if (instances > limit) { in decrementExpectedActivityCount()
2048 Throwable tr = new InstanceCountViolation(klass, instances, limit); in decrementExpectedActivityCount()
2277 public InstanceCountViolation(Class klass, long instances, int limit) { in InstanceCountViolation() argument
2278 super(klass.toString() + "; instances=" + instances + "; limit=" + limit); in InstanceCountViolation()
[all …]
/frameworks/base/services/core/java/com/android/server/trust/
DTrustArchive.java108 public void dump(PrintWriter writer, int limit, int userId, String linePrefix, in dump() argument
112 while (iter.hasNext() && count < limit) { in dump()
/frameworks/native/opengl/tools/glgen/stubs/gles11/
Dcommon.cpp80 jint limit; in getPointer() local
85 limit = _env->GetIntField(buffer, limitID); in getPointer()
87 *remaining = (limit - position) << elementSizeShift; in getPointer()
/frameworks/native/opengl/tools/glgen/stubs/jsr239/
DGLCHeader.cpp119 jint limit;
124 limit = _env->GetIntField(buffer, limitID);
126 *remaining = (limit - position) << elementSizeShift;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeFrame.java148 if ((length + offset) > buffer.limit()) { in setData()
150 … (length + offset) + " bytes given, but only " + buffer.limit() + in setData()

123456