Home
last modified time | relevance | path

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

1234567

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java47 int limit; field in BidiRenderer.ScriptRun
52 public ScriptRun(int start, int limit, boolean isRtl) { in ScriptRun() argument
54 this.limit = limit; in ScriptRun()
110 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, in renderText() argument
112 Bidi bidi = new Bidi(mText, start, null, 0, limit - start, getIcuFlags(bidiFlags)); in renderText()
137 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument
141 for (ScriptRun run : getScriptRuns(mText, start, limit, isRtl, mFonts)) { in renderText()
144 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); in renderText()
145 advancesIndex += run.limit - run.start; in renderText()
155 private void renderScript(int start, int limit, Font preferredFont, int flag, in renderScript() argument
[all …]
/frameworks/base/core/java/android/text/
DSpanSet.java46 public void init(Spanned spanned, int start, int limit) { in init() argument
47 final E[] allSpans = spanned.getSpans(start, limit, classType); in init()
100 int getNextTransition(int start, int limit) { in getNextTransition() argument
104 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition()
105 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition()
107 return limit; in getNextTransition()
DTextLine.java134 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, in set() argument
139 mLen = limit - start; in set()
151 mReplacementSpanSpanSet.init(mSpanned, start, limit); in set()
161 TextUtils.getChars(text, start, limit, mChars, 0); in set()
169 for (int i = start, inext; i < limit; i = inext) { in set()
170 inext = mReplacementSpanSpanSet.getNextTransition(i, limit); in set()
388 int limit, boolean runIsRtl, float x, int top, int y, int bottom,
392 float w = -measureRun(start, limit, limit, runIsRtl, null);
393 handleRun(start, limit, limit, runIsRtl, c, x + w, top,
398 return handleRun(start, limit, limit, runIsRtl, c, x, top,
[all …]
DMeasuredText.java264 int breakText(int limit, boolean forwards, float width) { in breakText() argument
268 while (i < limit) { in breakText()
276 int i = limit - 1; in breakText()
282 while (i < limit - 1 && mChars[i + 1] == ' ') i++; in breakText()
283 return limit - i - 1; in breakText()
287 float measure(int start, int limit) { in measure() argument
290 for (int i = start; i < limit; ++i) { in measure()
DSpannableStringInternal.java288 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument
301 if (st > start && st < limit && kind.isInstance(spans[i])) in nextSpanTransition()
302 limit = st; in nextSpanTransition()
303 if (en > start && en < limit && kind.isInstance(spans[i])) in nextSpanTransition()
304 limit = en; in nextSpanTransition()
307 return limit; in nextSpanTransition()
DSpannableStringBuilder.java928 public int nextSpanTransition(int start, int limit, Class kind) { in nextSpanTransition() argument
929 if (mSpanCount == 0) return limit; in nextSpanTransition()
933 return nextSpanTransitionRec(start, limit, kind, treeRoot()); in nextSpanTransition()
936 private int nextSpanTransitionRec(int start, int limit, Class kind, int i) { in nextSpanTransitionRec() argument
941 limit = nextSpanTransitionRec(start, limit, kind, left); in nextSpanTransitionRec()
947 if (st > start && st < limit && kind.isInstance(mSpans[i])) in nextSpanTransitionRec()
948 limit = st; in nextSpanTransitionRec()
949 if (en > start && en < limit && kind.isInstance(mSpans[i])) in nextSpanTransitionRec()
950 limit = en; in nextSpanTransitionRec()
951 if (st < limit && (i & 1) != 0) { in nextSpanTransitionRec()
[all …]
/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/multidex/library/
DREADME.txt6 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/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.java334 int limit; in fragmentText() local
353 limit = SmsConstants.MAX_USER_DATA_SEPTETS - udhLength; in fragmentText()
356 limit = SmsConstants.MAX_USER_DATA_BYTES_WITH_HEADER; in fragmentText()
364 limit -= 2; in fragmentText()
367 limit = SmsConstants.MAX_USER_DATA_BYTES; in fragmentText()
387 nextPos = pos + Math.min(limit, textLen - pos); in fragmentText()
390 nextPos = GsmAlphabet.findGsmSeptetLimitIndex(newMsgBody, pos, limit, in fragmentText()
394 nextPos = SmsMessageBase.findNextUnicodePosition(pos, limit, newMsgBody); in fragmentText()
/frameworks/opt/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java292 final int limit = mPreferredMaxResultCount - in publishResults() local
294 startSearchOtherDirectories(constraint, defaultFilterResult.paramsList, limit); in publishResults()
317 final int limit = mPreferredMaxResultCount - existingDestinations.size(); in searchOtherDirectories() local
318 if (limit > 0) { in searchOtherDirectories()
322 + ", remaining limit: " + limit + ") "); in searchOtherDirectories()
352 public synchronized void setLimit(int limit) { in setLimit() argument
353 this.mLimit = limit; in setLimit()
692 CharSequence constraint, List<DirectorySearchParams> paramsList, int limit) { in startSearchOtherDirectories() argument
701 params.filter.setLimit(limit); in startSearchOtherDirectories()
854 private Cursor doQuery(CharSequence constraint, int limit, Long directoryId) { in doQuery() argument
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
DOSUProvider.java38 namesBuffer.limit(namesBuffer.position() + namesLength); in OSUProvider()
60 iconsBuffer.limit(iconsBuffer.position() + iconsLength); in OSUProvider()
73 descriptionsBuffer.limit(descriptionsBuffer.position() + descriptionsLength); in OSUProvider()
/frameworks/av/media/libstagefright/foundation/
DADebug.cpp128 uint64_t limit, uint64_t plus, uint64_t timeDivisor) { in getExperimentFlag() argument
140 UNUSED(limit); in getExperimentFlag()
183 bool enable = allow && (counter % modulo < limit); in getExperimentFlag()
/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.java183 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.java1588 int limit = entry.getValue(); in conditionallyCheckInstanceCounts() local
1590 if (instances <= limit) { in conditionallyCheckInstanceCounts()
1593 Throwable tr = new InstanceCountViolation(klass, instances, limit); in conditionallyCheckInstanceCounts()
2223 final int limit; in decrementExpectedActivityCount() local
2239 limit = newExpected + 1; in decrementExpectedActivityCount()
2244 if (actual <= limit) { in decrementExpectedActivityCount()
2261 if (instances > limit) { in decrementExpectedActivityCount()
2262 Throwable tr = new InstanceCountViolation(klass, instances, limit); in decrementExpectedActivityCount()
2500 public InstanceCountViolation(Class klass, long instances, int limit) { in InstanceCountViolation() argument
2501 super(klass.toString() + "; instances=" + instances + "; limit=" + limit); in InstanceCountViolation()
[all …]
/frameworks/ex/framesequence/jni/
DFrameSequenceJNI.cpp63 jobject buf, jint offset, jint limit) { in nativeDecodeByteBuffer() argument
70 limit, in nativeDecodeByteBuffer()

1234567