Home
last modified time | relevance | path

Searched refs:maxLength (Results 1 – 25 of 28) 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/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/java/src/android/ext/services/autofill/
DEditDistanceScorer.java50 final int maxLength = Math.max(actualValueLength, userDataLength); in calculateScore() local
51 return ((float) maxLength - distance) / maxLength; in calculateScore()
/packages/apps/TV/common/src/com/android/tv/common/util/
DPostalCodeUtils.java118 Integer maxLength = in getRegionMaxLength() local
120 return maxLength == null ? DEFAULT_MAX_LENGTH : maxLength; in getRegionMaxLength()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapUtils.java417 public static byte[] truncateUtf8StringToBytearray(String utf8String, int maxLength) in truncateUtf8StringToBytearray() argument
428 if (utf8Bytes.length > maxLength) { in truncateUtf8StringToBytearray()
431 if ((utf8Bytes[maxLength - 1] & 0xC0) == 0x80) { in truncateUtf8StringToBytearray()
432 for (int i = maxLength - 2; i >= 0; i--) { in truncateUtf8StringToBytearray()
443 utf8Bytes = Arrays.copyOf(utf8Bytes, maxLength); in truncateUtf8StringToBytearray()
444 utf8Bytes[maxLength - 1] = 0; in truncateUtf8StringToBytearray()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/utils/
DCarUxRestrictionsUtil.java172 int maxLength = in complyString() local
178 if (str.length() > maxLength) { in complyString()
179 return str.substring(0, maxLength) + context.getString(R.string.car_ui_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/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.java373 final int maxLength; in onCreateView() local
380 maxLength = BLUETOOTH_PIN_MAX_LENGTH; in onCreateView()
388 maxLength = BLUETOOTH_PASSKEY_MAX_LENGTH; in onCreateView()
399 textInput.setFilters(new InputFilter[]{new LengthFilter(maxLength)}); in onCreateView()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupNameEditDialogFragment.java178 final int maxLength = getResources().getInteger( in onCreateDialog()
181 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/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialogFragment.java264 int maxLength = mPairingController.getDeviceMaxPasskeyLength(); in createPinEntryView() local
278 new LengthFilter(maxLength)}); in createPinEntryView()
/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.java253 int maxLength = mPairingController.getDeviceMaxPasskeyLength(); in createPinEntryView() local
267 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.java300 int maxLength = mMaxStringLength - mEllipsizedString.length(); in trimText() local
301 return text.toString().substring(0, maxLength).concat(mEllipsizedString); in trimText()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DPinChangerImpl.java98 result.maxLength = Integer.parseInt(lengths[1]); in getPinSpecification()
/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/services/Telephony/src/com/android/phone/
DSimPhonebookProvider.java719 int maxLength = AdnRecord.getMaxAlphaTagBytes(getRecordSize(recordsSize)); in validateValues() local
721 if (length > maxLength) { in validateValues()
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DVoicemailChangePinActivity.java379 pinMaxLength = pinSpecification.maxLength; in readPinLength()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java1745 private String snippetize(String line, int matchIndex, int maxLength) { in snippetize() argument
1749 int remainingLength = maxLength; in snippetize()

12