/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/ |
D | NalUnitUtil.java | 31 public static int findNalUnit(byte[] dataArray, int pos, int limit) { in findNalUnit() argument 33 if (limit - pos < 4) { in findNalUnit() 51 private static int parseAVCNALUnitData(byte[] dataArray, int offset, int limit) { in parseAVCNALUnitData() argument 53 bitArray.reset(dataArray, offset, limit); in parseAVCNALUnitData() 80 private static int parseHEVCNALUnitData(byte[] dataArray, int offset, int limit, in parseHEVCNALUnitData() argument 87 bitArray.reset(dataArray, offset, limit); in parseHEVCNALUnitData() 116 int limit = buf.limit(); in getStandardizedFrameTypesFromAVC() local 120 for (int pos = 0; pos + 3 < limit; ) { in getStandardizedFrameTypesFromAVC() 121 int startOffset = NalUnitUtil.findNalUnit(dataArray, pos, limit); in getStandardizedFrameTypesFromAVC() 131 (limit - pos - startOffset)); in getStandardizedFrameTypesFromAVC() [all …]
|
D | ParsableBitArray.java | 29 public ParsableBitArray(byte[] dataArray, int limit) { in ParsableBitArray() argument 31 byteLimit = limit; in ParsableBitArray() 34 public void reset(byte[] data, int offset, int limit) { in reset() argument 38 byteLimit = limit; in reset()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | ComposePwleVibratorStep.java | 56 int limit = controller.getVibratorInfo().getPwleSizeMax(); in play() local 58 limit > 0 ? limit : DEFAULT_PWLE_SIZE_LIMIT); in play() 98 int limit) { in unrollRampSegments() argument 99 List<RampSegment> segments = new ArrayList<>(limit); in unrollRampSegments() 101 int bestBreakPosition = limit; // Exclusive index. in unrollRampSegments() 108 for (int i = startIndex; segments.size() <= limit; i++) { in unrollRampSegments() 122 if (isBetterBreakPosition(segments, bestBreakAmplitude, limit)) { in unrollRampSegments() 133 return segments.size() > limit in unrollRampSegments() 145 float currentBestBreakAmplitude, int limit) { in isBetterBreakPosition() argument 150 if (breakPositionCandidate > limit) { in isBetterBreakPosition() [all …]
|
D | ComposePrimitivesVibratorStep.java | 56 int limit = controller.getVibratorInfo().getCompositionSizeMax(); in play() local 58 limit > 0 ? limit : DEFAULT_COMPOSITION_SIZE_LIMIT); in play() 99 int startIndex, int limit) { in unrollPrimitiveSegments() argument 100 List<PrimitiveSegment> segments = new ArrayList<>(limit); in unrollPrimitiveSegments() 104 for (int i = startIndex; segments.size() < limit; i++) { in unrollPrimitiveSegments()
|
/frameworks/native/libs/vibrator/ |
D | ExternalVibrationUtils.cpp | 85 void clipHapticData(float* buffer, size_t length, float limit) { in clipHapticData() argument 86 if (isnan(limit) || limit == 0) { in clipHapticData() 89 limit = fabsf(limit); in clipHapticData() 92 if (fabsf(buffer[i]) > limit) { in clipHapticData() 93 buffer[i] = limit * sign; in clipHapticData() 113 void scaleHapticData(float* buffer, size_t length, HapticScale scale, float limit) { in scaleHapticData() argument 117 clipHapticData(buffer, length, limit); in scaleHapticData()
|
/frameworks/base/core/java/android/text/ |
D | SpanSet.java | 50 public void init(Spanned spanned, int start, int limit) { in init() argument 51 final E[] allSpans = spanned.getSpans(start, limit, classType); in init() 104 int getNextTransition(int start, int limit) { in getNextTransition() argument 108 if (spanStart > start && spanStart < limit) limit = spanStart; in getNextTransition() 109 if (spanEnd > start && spanEnd < limit) limit = spanEnd; in getNextTransition() 111 return limit; in getNextTransition()
|
D | TextLine.java | 217 public void set(TextPaint paint, CharSequence text, int start, int limit, int dir, in set() argument 223 mLen = limit - start; in set() 236 mReplacementSpanSpanSet.init(mSpanned, start, limit); in set() 256 TextUtils.getChars(text, start, limit, mChars, 0); in set() 264 for (int i = start, inext; i < limit; i = inext) { in set() 265 inext = mReplacementSpanSpanSet.getNextTransition(i, limit); in set() 840 int limit, boolean runIsRtl, float x, int top, int y, int bottom, 844 float w = -measureRun(start, limit, limit, runIsRtl, null, null, null, 0, 0, null, 846 handleRun(start, limit, limit, runIsRtl, c, null, x + w, top, 851 return handleRun(start, limit, limit, runIsRtl, c, null, x, top, [all …]
|
/frameworks/minikin/fuzz/measurement_fuzzer/ |
D | measurement_fuzzer.cpp | 31 int limit = (int)((remaining - 3 * sizeof_size) / sizeof_uint16); in LLVMFuzzerTestOneInput() local 32 limit = (limit < 0) ? 0 : limit; in LLVMFuzzerTestOneInput() 33 int buf_size = fdp.ConsumeIntegralInRange<int>(0, limit); in LLVMFuzzerTestOneInput()
|
/frameworks/base/core/java/android/util/ |
D | JsonReader.java | 200 private int limit = 0; field in JsonReader 685 if ((pos < limit || fillBuffer(1)) && buffer[pos] == '>') { in objectValue() 736 if (limit != pos) { in fillBuffer() 737 limit -= pos; in fillBuffer() 738 System.arraycopy(buffer, pos, buffer, 0, limit); in fillBuffer() 740 limit = 0; in fillBuffer() 745 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) { in fillBuffer() 746 limit += total; in fillBuffer() 750 && limit > 0 && buffer[0] == '\ufeff') { in fillBuffer() 755 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/av/media/codec2/vndk/util/ |
D | C2InterfaceUtils.cpp | 138 C2SupportedRange<T> C2SupportedRange<T>::limitedTo(const C2SupportedRange<T> &limit) const { in limitedTo() 140 return C2SupportedRange(std::max(_mMin, limit._mMin), std::min(_mMax, limit._mMax), in limitedTo() 141 std::max(_mStep, limit._mStep)); in limitedTo() 171 C2SupportedFlags<float> C2SupportedFlags<float>::limitedTo(const C2SupportedFlags<float> &limit) co… in limitedTo() 214 C2SupportedFlags<T> C2SupportedFlags<T>::limitedTo(const C2SupportedFlags<T> &limit) const { in limitedTo() 216 T minMask = min() | limit.min(); in limitedTo() 218 if (limit.contains(minMask) && contains(minMask)) { in limitedTo() 222 [&limit, minMask]( in limitedTo() 226 !limit.contains(value); in limitedTo() 272 C2SupportedValueSet<T> C2SupportedValueSet<T>::limitedTo(const C2SupportedValueSet<T> &limit) const… in limitedTo() [all …]
|
/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/services/core/java/com/android/server/utils/quota/ |
D | MultiRateLimiter.java | 146 public Builder addRateLimit(int limit, Duration windowSize) { in addRateLimit() argument 153 countQuotaTracker.setCountLimit(mCategory, limit, windowSize.toMillis()); in addRateLimit() 189 private RateLimit(int limit, Duration windowSize) { in RateLimit() argument 190 this.mLimit = limit; in RateLimit() 198 public static RateLimit create(int limit, Duration windowSize) { in create() argument 199 return new RateLimit(limit, windowSize); in create()
|
/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/libs/hwui/jni/ |
D | BufferUtils.cpp | 37 jint limit; in getDirectBufferPointer() local 40 pointer = jniGetNioBufferFields(env, buffer, &position, &limit, &elementSizeShift); in getDirectBufferPointer() 56 jint limit; in getPointer() local 60 pointer = jniGetNioBufferFields(env, buffer, &position, &limit, &elementSizeShift); in getPointer() 61 *remaining = (limit - position) << elementSizeShift; in getPointer()
|
/frameworks/av/media/module/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/av/media/utils/ |
D | MemoryLeakTrackUtil.cpp | 50 std::string dumpMemoryAddresses(size_t limit) in dumpMemoryAddresses() argument 67 if (count > limit) count = limit; in dumpMemoryAddresses()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | MessageDigestPerfTest.java | 137 SMALL_BUFFER.limit(SMALL_BUFFER.capacity()); in timeSmallByteBuffer() 150 SMALL_DIRECT_BUFFER.limit(SMALL_DIRECT_BUFFER.capacity()); in timeSmallDirectByteBuffer() 163 LARGE_BUFFER.limit(LARGE_BUFFER.capacity()); in timeLargeByteBuffer() 176 LARGE_DIRECT_BUFFER.limit(LARGE_DIRECT_BUFFER.capacity()); in timeLargeDirectByteBuffer() 189 LARGE_BUFFER.limit(LARGE_BUFFER.position() + DATA_SIZE); in timeSmallChunkOfLargeByteBuffer() 202 LARGE_DIRECT_BUFFER.limit(LARGE_DIRECT_BUFFER.position() + DATA_SIZE); in timeSmallChunkOfLargeDirectByteBuffer()
|
/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/database/sqlite/ |
D | SQLiteQueryBuilder.java | 384 String groupBy, String having, String orderBy, String limit) { in buildQueryString() argument 407 appendClause(query, " LIMIT ", limit); in buildQueryString() 510 String having, String sortOrder, String limit) { in query() argument 512 groupBy, having, sortOrder, limit, null); in query() 552 String having, String sortOrder, String limit, CancellationSignal cancellationSignal) { in query() argument 560 sortOrder, limit); in query() 566 enforceStrictGrammar(selection, groupBy, having, sortOrder, limit); in query() 586 wrap(having), sortOrder, limit); in query() 796 @Nullable String having, @Nullable String sortOrder, @Nullable String limit) { in enforceStrictGrammar() argument 805 SQLiteTokenizer.tokenize(limit, SQLiteTokenizer.OPTION_NONE, in enforceStrictGrammar() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | InsertModeTransformationMethod.java | 429 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument 430 if (limit <= start) return limit; in nextSpanTransition() 431 final Object[] spans = getSpans(start, limit, type); in nextSpanTransition() 435 if (start < spanStart && spanStart < limit) { in nextSpanTransition() 436 limit = spanStart; in nextSpanTransition() 438 if (start < spanEnd && spanEnd < limit) { in nextSpanTransition() 439 limit = spanEnd; in nextSpanTransition() 442 return limit; in nextSpanTransition()
|
/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/proto_logging/stats/express/catalog/ |
D | stability_errors.cfg | 3 display_name: "Dropped errors count due to rate limit buffer expiry" 4 description: "Counting how many errors were dropped due to rate limit buffer expiry"
|