/frameworks/av/media/libstagefright/renderfright/gl/filters/ |
D | GenericProgram.cpp | 78 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/ |
D | CommandLineOptions.cpp | 143 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/ |
D | InteractionMonitorDebugOverlay.java | 118 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/ |
D | LineBreakBufferedWriter.java | 124 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/ |
D | PolicySizeVerifier.java | 134 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()
|
D | PasswordMetrics.java | 264 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/ |
D | MarshalQueryableParcelable.java | 126 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/ |
D | EnterpriseSpecificIdCalculator.java | 89 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/ |
D | VibratorHelper.java | 218 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/ |
D | BitmapUtils.java | 139 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/ |
D | HdmiCecMessageValidator.java | 380 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/ |
D | FabricatedOverlaysTest.java | 192 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/ |
D | FwdLockConv.c | 126 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/ |
D | PackageSessionTests.kt | 407 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/ |
D | ViewStructure.java | 534 public void setMaxTextLength(@SuppressWarnings("unused") int maxLength) {} in setMaxTextLength() argument
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextClassifier.java | 688 static boolean checkTextLength(CharSequence text, int maxLength) { in checkTextLength() argument 690 return textLength >= 0 && textLength <= maxLength; in checkTextLength()
|
/frameworks/base/libs/hwui/jni/ |
D | YuvToJpegEncoder.cpp | 396 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/ |
D | ZenPolicy.java | 1152 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/ |
D | BootAnimation.cpp | 782 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/ |
D | PersistAtomsStorage.java | 2412 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/ |
D | ViewNode.java | 972 public void setMaxTextLength(int maxLength) { in setMaxTextLength() argument 973 mNode.mMaxLength = maxLength; in setMaxTextLength()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncManager.java | 2697 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/ |
D | EapAkaApi.java | 949 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/ |
D | PersistentDataBlockService.java | 1370 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/ |
D | EditorCursorDragTest.java | 823 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()
|