/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BidiRenderer.java | 53 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/ |
D | SpanSet.java | 49 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()
|
D | TextLine.java | 174 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 …]
|
/frameworks/av/media/codec2/vndk/util/ |
D | C2InterfaceUtils.cpp | 136 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/ |
D | JsonReader.java | 199 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/ |
D | Transport.java | 127 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/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
D | StreamUtils.java | 49 public static void copyStream(InputStream in, OutputStream out, int limit) throws IOException { in copyStream() argument 50 int bufferSize = Math.min(MAX_COPY_BUFFER_SIZE, limit); in copyStream() 54 while (copied < limit) { in copyStream() 55 int maxReadSize = Math.min(bufferSize, limit - copied); in copyStream()
|
/frameworks/base/services/core/java/com/android/server/integrity/parser/ |
D | LimitInputStream.java | 28 public LimitInputStream(InputStream in, int limit) { in LimitInputStream() argument 30 if (limit < 0) { in LimitInputStream() 31 throw new IllegalArgumentException("limit " + limit + " cannot be negative"); in LimitInputStream() 34 mLimit = limit; in LimitInputStream()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerDataHelper.java | 108 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/ |
D | README | 6 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/ |
D | HlsSampleDecryptor.cpp | 265 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()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | DisplaySinkService.java | 208 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/ |
D | ServerMain.java | 89 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/ |
D | GarbageMonitor.java | 285 long rss, limit; field in GarbageMonitor.MemoryIconDrawable 303 public void setLimit(long limit) { in setLimit() argument 304 if (limit != this.limit) { in setLimit() 305 this.limit = limit; in setLimit() 314 if (limit > 0 && rss > 0) { in draw() 315 float frac = Math.min(1f, (float) rss / limit); in draw() 376 long rss, limit; field in GarbageMonitor.MemoryGraphIcon 382 public void setHeapLimit(long limit) { in setHeapLimit() argument 383 this.limit = limit; in setHeapLimit() 390 drawable.setLimit(limit); in getDrawable()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteQueryBuilder.java | 375 String groupBy, String having, String orderBy, String limit) { in buildQueryString() argument 398 appendClause(query, " LIMIT ", limit); in buildQueryString() 501 String having, String sortOrder, String limit) { in query() argument 503 groupBy, having, sortOrder, limit, null); in query() 543 String having, String sortOrder, String limit, CancellationSignal cancellationSignal) { in query() argument 551 sortOrder, limit); in query() 557 enforceStrictGrammar(selection, groupBy, having, sortOrder, limit); in query() 577 wrap(having), sortOrder, limit); in query() 787 @Nullable String having, @Nullable String sortOrder, @Nullable String limit) { in enforceStrictGrammar() argument 796 SQLiteTokenizer.tokenize(limit, SQLiteTokenizer.OPTION_NONE, in enforceStrictGrammar() [all …]
|
/frameworks/base/tools/stringslint/ |
D | stringslint.py | 155 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/av/media/utils/ |
D | MemoryLeakTrackUtil.cpp | 52 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/ |
D | BitmapTest.java | 289 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/ |
D | Search.java | 78 String query, int limit) { in getSuggestions() argument 113 if (limit > 0) { in getSuggestions() 115 String.valueOf(limit)); in getSuggestions()
|
/frameworks/base/startop/scripts/trace_analyzer/lib/ |
D | trace2db.py | 216 def parse_file_into_db(self, filename: str, limit: Optional[int] = None): 223 return parse_file(filename, self._session, self._engine, self._raw_ftrace_entry_filter, limit) 225 def parse_file_buf_into_db(self, file_buf, limit: Optional[int] = None): 232 … return parse_file_buf(file_buf, self._session, self._engine, self._raw_ftrace_entry_filter, limit) 259 def parse_file_buf(filebuf, session, engine, raw_ftrace_entry_filter, limit=None) -> int: argument 303 if limit and count >= limit:
|
/frameworks/base/core/java/android/os/strictmode/ |
D | InstanceCountViolation.java | 27 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/ |
D | ApkSigningBlockUtils.java | 611 int originalLimit = source.limit(); in sliceFromTo() 615 source.limit(end); in sliceFromTo() 622 source.limit(originalLimit); in sliceFromTo() 641 int originalLimit = source.limit(); in getByteBuffer() 643 int limit = position + size; in getByteBuffer() local 644 if ((limit < position) || (limit > originalLimit)) { in getByteBuffer() 647 source.limit(limit); in getByteBuffer() 651 source.position(limit); in getByteBuffer() 654 source.limit(originalLimit); in getByteBuffer()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | RRuleTest.java | 65 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/ |
D | GLCHeader.cpp | 92 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/startop/scripts/trace_analyzer/ |
D | trace_analyzer.py | 45 count = trace2db.parse_file_into_db(trace_filename, limit=args.limit)
|