/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/ |
D | Utf8.java | 164 public static boolean isValidUtf8(byte[] bytes, int index, int limit) { in isValidUtf8() argument 165 return processor.isValidUtf8(bytes, index, limit); in isValidUtf8() 186 public static int partialIsValidUtf8(int state, byte[] bytes, int index, int limit) { in partialIsValidUtf8() argument 187 return processor.partialIsValidUtf8(state, bytes, index, limit); in partialIsValidUtf8() 208 private static int incompleteStateFor(byte[] bytes, int index, int limit) { in incompleteStateFor() argument 210 switch (limit - index) { in incompleteStateFor() 330 static int partialIsValidUtf8(int state, ByteBuffer buffer, int index, int limit) { in partialIsValidUtf8() argument 331 return processor.partialIsValidUtf8(state, buffer, index, limit); in partialIsValidUtf8() 359 private static int estimateConsecutiveAscii(ByteBuffer buffer, int index, int limit) { in estimateConsecutiveAscii() argument 361 final int lim = limit - 7; in estimateConsecutiveAscii() [all …]
|
D | AbstractMessageLite.java | 251 private int limit; field in AbstractMessageLite.Builder.LimitedInputStream 253 LimitedInputStream(InputStream in, int limit) { in LimitedInputStream() argument 255 this.limit = limit; in LimitedInputStream() 260 return Math.min(super.available(), limit); in available() 265 if (limit <= 0) { in read() 270 --limit; in read() 278 if (limit <= 0) { in read() 281 len = Math.min(len, limit); in read() 284 limit -= result; in read() 291 final long result = super.skip(Math.min(n, limit)); in skip() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/ |
D | CodedOutputStream.cs | 70 private readonly int limit; field in Google.Protobuf.CodedOutputStream 94 this.limit = offset + length; in CodedOutputStream() 103 this.limit = buffer.Length; in CodedOutputStream() 187 if (limit - position >= 4) in WriteFloat() 273 if (limit - position >= length) in WriteString() 480 if (value < 128 && position < limit) in WriteRawVarint32() 486 while (value > 127 && position < limit) in WriteRawVarint32() 496 if (position < limit) in WriteRawVarint32() 508 while (value > 127 && position < limit) in WriteRawVarint64() 518 if (position < limit) in WriteRawVarint64() [all …]
|
/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 | 48 public void init(Spanned spanned, int start, int limit) { in init() argument 49 final E[] allSpans = spanned.getSpans(start, limit, classType); in init() 102 int getNextTransition(int start, int limit) { in getNextTransition() argument 106 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition() 107 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition() 109 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() 478 int limit, boolean runIsRtl, float x, int top, int y, int bottom, 482 float w = -measureRun(start, limit, limit, runIsRtl, null); 483 handleRun(start, limit, limit, runIsRtl, c, x + w, top, 488 return handleRun(start, limit, limit, runIsRtl, c, x, top, [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/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() 219 …std::remove_if(values.begin(), values.end(), [&limit, minMask](const C2Value::Primitive &v) -> boo… in limitedTo() 221 return value == minMask || !limit.contains(value); }); in limitedTo() 265 C2SupportedValueSet<T> C2SupportedValueSet<T>::limitedTo(const C2SupportedValueSet<T> &limit) const… in limitedTo() [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/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/base/telephony/java/android/telephony/ims/ |
D | RcsParticipantQueryParams.java | 80 int limit) { in RcsParticipantQueryParams() argument 86 mLimit = limit; in RcsParticipantQueryParams() 222 public Builder setResultLimit(@IntRange(from = 0) int limit) in setResultLimit() 224 if (limit < 0) { in setResultLimit() 228 mLimit = limit; in setResultLimit()
|
D | RcsEventQueryParams.java | 138 @SortingProperty int sortingProperty, boolean isAscending, int limit) { in RcsEventQueryParams() argument 142 mLimit = limit; in RcsEventQueryParams() 215 public Builder setResultLimit(@IntRange(from = 0) int limit) in setResultLimit() 217 if (limit < 0) { in setResultLimit() 221 mLimit = limit; in setResultLimit()
|
D | RcsThreadQueryParams.java | 90 int limit, int sortingProperty, boolean isAscending) { in RcsThreadQueryParams() argument 93 mLimit = limit; in RcsThreadQueryParams() 220 public Builder setResultLimit(@IntRange(from = 0) int limit) in setResultLimit() 222 if (limit < 0) { in setResultLimit() 226 mLimit = limit; in setResultLimit()
|
D | RcsMessageQueryParams.java | 110 int threadId, @SortingProperty int sortingProperty, boolean isAscending, int limit) { in RcsMessageQueryParams() argument 116 mLimit = limit; in RcsMessageQueryParams() 209 public Builder setResultLimit(@IntRange(from = 0) int limit) in setResultLimit() 211 if (limit < 0) { in setResultLimit() 215 mLimit = limit; in setResultLimit()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteQueryBuilder.java | 301 String groupBy, String having, String orderBy, String limit) { in buildQueryString() argument 306 if (!TextUtils.isEmpty(limit) && !sLimitPattern.matcher(limit).matches()) { in buildQueryString() 307 throw new IllegalArgumentException("invalid LIMIT clauses:" + limit); in buildQueryString() 327 appendClause(query, " LIMIT ", limit); in buildQueryString() 430 String having, String sortOrder, String limit) { in query() argument 432 groupBy, having, sortOrder, limit, null); in query() 472 String having, String sortOrder, String limit, CancellationSignal cancellationSignal) { in query() argument 480 sortOrder, limit); in query() 500 having, sortOrder, limit); in query() 678 String having, String sortOrder, String limit) { in buildQuery() argument [all …]
|
/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/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/ |
D | CodedInputByteBufferNano.java | 431 public int setRecursionLimit(final int limit) { in setRecursionLimit() argument 432 if (limit < 0) { in setRecursionLimit() 434 "Recursion limit cannot be negative: " + limit); in setRecursionLimit() 437 recursionLimit = limit; in setRecursionLimit() 456 public int setSizeLimit(final int limit) { in setSizeLimit() argument 457 if (limit < 0) { in setSizeLimit() 459 "Size limit cannot be negative: " + limit); in setSizeLimit() 462 sizeLimit = limit; in setSizeLimit()
|
/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/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/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/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | GarbageMonitor.java | 273 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/ |
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:
|