Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.cpp70 const NodeFlags flags, const int maxLength, const int *const codePointTable, in getCharsAndAdvancePosition() argument
74 length = ByteArrayUtils::readStringAndAdvancePosition(buffer, maxLength, codePointTable, in getCharsAndAdvancePosition()
86 } else if (maxLength > 0) { in getCharsAndAdvancePosition()
96 const int maxLength, const int *const codePointTable, int *const pos) { in skipCharacters() argument
98 return ByteArrayUtils::advancePositionToBehindString(buffer, maxLength, pos); in skipCharacters()
100 if (maxLength > 0) { in skipCharacters()
Dpatricia_trie_reading_utils.h42 const int maxLength, const int *const codePointTable, int *const outBuffer,
47 const int maxLength, const int *const codePointTable, int *const pos);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DNameDistance.java45 public NameDistance(int maxLength) { in NameDistance() argument
46 mMaxLength = maxLength; in NameDistance()
48 mMatchFlags1 = new boolean[maxLength]; in NameDistance()
49 mMatchFlags2 = new boolean[maxLength]; in NameDistance()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapUtils.java422 public static byte[] truncateUtf8StringToBytearray(String utf8String, int maxLength) in truncateUtf8StringToBytearray() argument
433 if (utf8Bytes.length > maxLength) { in truncateUtf8StringToBytearray()
436 if ((utf8Bytes[maxLength - 1] & 0xC0) == 0x80) { in truncateUtf8StringToBytearray()
437 for (int i = maxLength - 2; i >= 0; i--) { in truncateUtf8StringToBytearray()
448 utf8Bytes = Arrays.copyOf(utf8Bytes, maxLength); in truncateUtf8StringToBytearray()
449 utf8Bytes[maxLength - 1] = 0; in truncateUtf8StringToBytearray()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dbyte_array_utils.h186 const int maxLength, const int *const codePointTable, int *const outBuffer, in readStringAndAdvancePosition() argument
190 while (NOT_A_CODE_POINT != codePoint && length < maxLength) { in readStringAndAdvancePosition()
199 const uint8_t *const buffer, const int maxLength, int *const pos) { in advancePositionToBehindString() argument
202 while (NOT_A_CODE_POINT != codePoint && length < maxLength) { in advancePositionToBehindString()
/packages/modules/ExtServices/src/android/ext/services/autofill/
DEditDistanceScorer.java49 final int maxLength = Math.max(actualValueLength, userDatalength); in calculateScore() local
50 return ((float) maxLength - distance) / maxLength; in calculateScore()
/packages/apps/TV/common/src/com/android/tv/common/util/
DPostalCodeUtils.java133 Integer maxLength = in getRegionMaxLength() local
135 return maxLength == null ? DEFAULT_MAX_LENGTH : maxLength; in getRegionMaxLength()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DCarUxRestrictionsUtil.java144 int maxLength = uxr == null in complyString() local
148 if (str.length() > maxLength) { in complyString()
149 return str.substring(0, maxLength) + context.getString(R.string.ellipsis); in complyString()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.h74 const int maxLength, const int *const codePoints, const int codePointCount, in outputCodePoints() argument
76 const int codePointBufSize = std::min(maxLength, codePointCount); in outputCodePoints()
96 if (needsNullTermination && outputCodePointCount < maxLength) { in outputCodePoints()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DStringUtil.java2250 @Deprecated public static String stream2String(InputStream is, int maxLength) in stream2String() argument
2261 } while (((-1 == maxLength) || (totalRead < maxLength)) && (read != -1)); in stream2String()
2943 public static String truncateIfNecessary(String source, int maxLength) { in truncateIfNecessary() argument
2944 if (source.length() <= maxLength) { in truncateIfNecessary()
2947 String str = unicodePreservingSubstring(source, 0, maxLength); in truncateIfNecessary()
2954 if (truncated.length() < maxLength) { in truncateIfNecessary()
2959 if (Character.isSpaceChar(source.charAt(maxLength))) { in truncateIfNecessary()
2990 public static String truncateAtMaxLength(String source, int maxLength, in truncateAtMaxLength() argument
2993 if (source.length() <= maxLength) { in truncateAtMaxLength()
2996 if (addEllipsis && maxLength > 3) { in truncateAtMaxLength()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/shortcut/
Dshortcut_list_reading_utils.cpp47 const int maxLength, int *const outWord, int *const pos) { in readShortcutTarget() argument
49 return ByteArrayUtils::readStringAndAdvancePosition(buffer.data(), maxLength, in readShortcutTarget()
Dshortcut_list_reading_utils.h60 static int readShortcutTarget(const ReadOnlyByteArrayView buffer, const int maxLength,
/packages/apps/Gallery2/gallerycommon/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()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothPairingDialog.java393 final int maxLength; in onCreateView() local
400 maxLength = BLUETOOTH_PIN_MAX_LENGTH; in onCreateView()
408 maxLength = BLUETOOTH_PASSKEY_MAX_LENGTH; in onCreateView()
419 textInput.setFilters(new InputFilter[]{new LengthFilter(maxLength)}); in onCreateView()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupNameEditDialogFragment.java174 final int maxLength = getResources().getInteger( in onCreateDialog()
177 mGroupName.length() > maxLength ? maxLength : mGroupName.length()); in onCreateDialog()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DPostalCodeFragment.java124 int maxLength = PostalCodeUtils.getRegionMaxLength(getContext()); in onGuidedActionFocused() local
130 new InputFilter.LengthFilter(maxLength), new AllCaps() in onGuidedActionFocused()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameSplitter.java293 int maxLength = 0; in NameSplitter() local
295 if (suffix.length() > maxLength) { in NameSplitter()
296 maxLength = suffix.length(); in NameSplitter()
300 mMaxSuffixLength = maxLength; in NameSplitter()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingDialogFragment.java256 int maxLength = mPairingController.getDeviceMaxPasskeyLength(); in createPinEntryView() local
270 new LengthFilter(maxLength)}); in createPinEntryView()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialogFragment.java264 int maxLength = mPairingController.getDeviceMaxPasskeyLength(); in createPinEntryView() local
278 new LengthFilter(maxLength)}); in createPinEntryView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPairingDialogFragment.java264 int maxLength = mPairingController.getDeviceMaxPasskeyLength(); in createPinEntryView() local
278 new LengthFilter(maxLength)}); in createPinEntryView()
/packages/apps/Dialer/java/com/android/voicemail/
DPinChanger.java65 public int maxLength; field in PinChanger.PinSpecification
/packages/apps/Car/Notification/src/com/android/car/notification/
DPreprocessingManager.java255 int maxLength = mMaxStringLength - mEllipsizedString.length(); in trimText() local
256 return text.toString().substring(0, maxLength).concat(mEllipsizedString); in trimText()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcTag.java542 int javaType, int maxLength, int cardState) { in addNdefTechnology() argument
548 extras.putInt(Ndef.EXTRA_NDEF_MAXLENGTH, maxLength); in addNdefTechnology()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DPinChangerImpl.java98 result.maxLength = Integer.parseInt(lengths[1]); in getPinSpecification()
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DVoicemailChangePinActivity.java379 pinMaxLength = pinSpecification.maxLength; in readPinLength()

12