Home
last modified time | relevance | path

Searched refs:maxLength (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/av/media/libstagefright/renderfright/gl/filters/
DGenericProgram.cpp78 GLint maxLength = 0; in compileShader() local
79 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &maxLength); in compileShader()
81 errorLog.reserve(maxLength); in compileShader()
82 glGetShaderInfoLog(shader, maxLength, &maxLength, errorLog.data()); in compileShader()
/frameworks/base/cmds/idmap2/libidmap2/
DCommandLineOptions.cpp143 size_t maxLength = 0; in Usage() local
154 maxLength = std::max(maxLength, opt.name.size() + 4); in Usage()
157 maxLength = std::max(maxLength, opt.name.size()); in Usage()
174 out << std::left << std::setw(maxLength); in Usage()
/frameworks/base/core/java/com/android/internal/jank/
DInteractionMonitorDebugOverlay.java118 float maxLength = 0; in getWidthOfLongestCujName() local
122 if (textLength > maxLength) { in getWidthOfLongestCujName()
123 maxLength = textLength; in getWidthOfLongestCujName()
126 return maxLength; in getWidthOfLongestCujName()
247 float maxLength = getWidthOfLongestCujName(cujFontSize); in onPostDraw() local
249 final int dx = (int) ((w - maxLength) / 2f); in onPostDraw()
256 padding * 2 + maxLength, in onPostDraw()
/frameworks/base/core/java/com/android/internal/util/
DLineBreakBufferedWriter.java124 int maxLength = bufferSize - bufferIndex; in write() local
125 for (int i = 0; i < maxLength; i++) { in write()
178 int maxLength = bufferSize - bufferIndex; in write() local
179 for (int i = 0; i < maxLength; i++) { in write()
/frameworks/base/core/java/android/app/admin/
DPolicySizeVerifier.java134 public static CharSequence truncateIfLonger(CharSequence input, int maxLength) { in truncateIfLonger() argument
135 return input == null || input.length() <= maxLength in truncateIfLonger()
137 : input.subSequence(0, maxLength); in truncateIfLonger()
DPasswordMetrics.java264 int maxLength = 0; //maximum length of a sequence already found in maxLengthSequence() local
271 maxLength = Math.max(maxLength, current - startSequence); in maxLengthSequence()
278 maxLength = Math.max(maxLength, current - startSequence); in maxLengthSequence()
286 maxLength = Math.max(maxLength, bytes.length - startSequence); in maxLengthSequence()
287 return maxLength; in maxLengthSequence()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableParcelable.java126 int maxLength = buffer.remaining(); in unmarshal() local
128 byte[] remaining = new byte[maxLength]; in unmarshal()
131 parcel.unmarshall(remaining, /*offset*/0, maxLength); in unmarshal()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DEnterpriseSpecificIdCalculator.java89 private static String getPaddedTruncatedString(String input, int maxLength) { in getPaddedTruncatedString() argument
90 final String paddedValue = String.format("%" + maxLength + "s", input); in getPaddedTruncatedString()
91 return paddedValue.substring(0, maxLength); in getPaddedTruncatedString()
/frameworks/base/services/core/java/com/android/server/notification/
DVibratorHelper.java218 private static long[] getLongArray(Resources resources, int resId, int maxLength, long[] def) { in getLongArray() argument
223 final int len = ar.length > maxLength ? maxLength : ar.length; in getLongArray()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java139 Bitmap bitmap, int maxLength, boolean recycle) { in resizeDownBySideLength() argument
143 (float) maxLength / srcWidth, (float) maxLength / srcHeight); in resizeDownBySideLength()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageValidator.java380 public VariableLengthValidator(int minLength, int maxLength) { in VariableLengthValidator() argument
382 mMaxLength = maxLength; in VariableLengthValidator()
449 private static boolean isValidAsciiString(byte[] params, int offset, int maxLength) { in isValidAsciiString() argument
450 for (int i = offset; i < params.length && i < maxLength; i++) { in isValidAsciiString()
910 AsciiValidator(int minLength, int maxLength) { in AsciiValidator() argument
912 mMaxLength = maxLength; in AsciiValidator()
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DFabricatedOverlaysTest.java192 final int maxLength = 255 - 11; // 11 reserved characters in testOverlayIdentifierLongest() local
194 Collections.nCopies(maxLength - mContext.getPackageName().length(), "a")); in testOverlayIdentifierLongest()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c126 size_t maxLength; member
450 if (pString->length == pString->maxLength) { in FwdLockConv_StringAppend()
451 size_t newMaxLength = pString->maxLength + pString->lengthIncrement; in FwdLockConv_StringAppend()
457 pString->maxLength = newMaxLength; in FwdLockConv_StringAppend()
512 pSession->contentType.maxLength = strlenTextPlain; in FwdLockConv_ApplyDefaults()
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt407 private fun invalidPackageName(maxLength: Int = SessionParams.MAX_PACKAGE_NAME_LENGTH): String { in <lambda>()
408 return (0 until (maxLength + 10)) in <lambda>()
/frameworks/base/core/java/android/view/
DViewStructure.java534 public void setMaxTextLength(@SuppressWarnings("unused") int maxLength) {} in setMaxTextLength() argument
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifier.java688 static boolean checkTextLength(CharSequence text, int maxLength) { in checkTextLength() argument
690 return textLength >= 0 && textLength <= maxLength; in checkTextLength()
/frameworks/base/libs/hwui/jni/
DYuvToJpegEncoder.cpp396 jpegR.maxLength = width * height * sizeof(uint8_t); in encode()
398 std::unique_ptr<uint8_t[]> jpegr_data = std::make_unique<uint8_t[]>(jpegR.maxLength); in encode()
/frameworks/base/core/java/android/service/notification/
DZenPolicy.java1152 private static ArrayList<Integer> trimList(ArrayList<Integer> list, int maxLength) { in trimList() argument
1153 if (list == null || list.size() <= maxLength) { in trimList()
1156 return new ArrayList<>(list.subList(0, maxLength)); in trimList()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp782 GLint maxLength = 0; in compileShader() local
783 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &maxLength); in compileShader()
784 std::vector<GLchar> errorLog(maxLength); in compileShader()
785 glGetShaderInfoLog(shader, maxLength, &maxLength, &errorLog[0]); in compileShader()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DPersistAtomsStorage.java2412 private static <T> T[] insertAtRandomPlace(T[] storage, T instance, int maxLength) { in insertAtRandomPlace() argument
2414 final boolean arrayFull = (newLength > maxLength); in insertAtRandomPlace()
2415 T[] result = Arrays.copyOf(storage, arrayFull ? maxLength : newLength); in insertAtRandomPlace()
2573 private <T> T[] sanitizeAtoms(T[] array, Class<T> cl, int maxLength) { in sanitizeAtoms() argument
2575 if (array.length > maxLength) { in sanitizeAtoms()
2576 return Arrays.copyOf(array, maxLength); in sanitizeAtoms()
/frameworks/base/core/java/android/view/contentcapture/
DViewNode.java972 public void setMaxTextLength(int maxLength) { in setMaxTextLength() argument
973 mNode.mMaxLength = maxLength; in setMaxTextLength()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java2697 final int maxLength = Math.max(maxAuthority, maxAccount + 3); in dumpRecentHistory() local
2698 final int padLength = 2 + 2 + maxLength + 2 + 10 + 11; in dumpRecentHistory()
2704 String.format(" %%-%ds: %%-9s %%-11s\n", maxLength + 2); in dumpRecentHistory()
2706 String.format(" %%-%ds: %%-9s %%-11s\n", maxLength); in dumpRecentHistory()
4255 int maxLength = 0; in writeTo() local
4258 if (length > maxLength) { in writeTo()
4259 maxLength = length; in writeTo()
4262 totalLength += maxLength; in writeTo()
4263 formats[col] = String.format("%%-%ds", maxLength); in writeTo()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/
DEapAkaApi.java949 private String trimString(String s, int maxLength) { in trimString() argument
950 return s.substring(0, Math.min(s.length(), maxLength)); in trimString()
/frameworks/base/services/core/java/com/android/server/pdb/
DPersistentDataBlockService.java1370 private byte[] readInternal(long offset, int maxLength) { in readInternal() argument
1387 if (length <= 0 || length > maxLength) { in readInternal()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorCursorDragTest.java823 private static String getTextAfterIndex(TextView tv, int position, int maxLength) { in getTextAfterIndex() argument
824 int end = Math.min(position + maxLength, tv.getText().length()); in getTextAfterIndex()

12