/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | patricia_trie_reading_utils.cpp | 70 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()
|
D | patricia_trie_reading_utils.h | 42 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/ |
D | NameDistance.java | 45 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/ |
D | byte_array_utils.h | 186 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/ |
D | EditDistanceScorer.java | 50 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/ |
D | PostalCodeUtils.java | 118 Integer maxLength = in getRegionMaxLength() local 120 return maxLength == null ? DEFAULT_MAX_LENGTH : maxLength; in getRegionMaxLength()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapUtils.java | 417 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/ |
D | CarUxRestrictionsUtil.java | 172 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/ |
D | jni_data_utils.h | 74 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/ |
D | shortcut_list_reading_utils.cpp | 47 const int maxLength, int *const outWord, int *const pos) { in readShortcutTarget() argument 49 return ByteArrayUtils::readStringAndAdvancePosition(buffer.data(), maxLength, in readShortcutTarget()
|
D | shortcut_list_reading_utils.h | 60 static int readShortcutTarget(const ReadOnlyByteArrayView buffer, const int maxLength,
|
/packages/apps/Gallery2/gallerycommon/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()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | BluetoothPairingDialog.java | 373 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/ |
D | GroupNameEditDialogFragment.java | 178 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/ |
D | PostalCodeFragment.java | 124 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/ |
D | BluetoothPairingDialogFragment.java | 264 int maxLength = mPairingController.getDeviceMaxPasskeyLength(); in createPinEntryView() local 278 new LengthFilter(maxLength)}); in createPinEntryView()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameSplitter.java | 293 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/ |
D | BluetoothPairingDialogFragment.java | 253 int maxLength = mPairingController.getDeviceMaxPasskeyLength(); in createPinEntryView() local 267 new LengthFilter(maxLength)}); in createPinEntryView()
|
/packages/apps/Dialer/java/com/android/voicemail/ |
D | PinChanger.java | 65 public int maxLength; field in PinChanger.PinSpecification
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | PreprocessingManager.java | 300 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/ |
D | PinChangerImpl.java | 98 result.maxLength = Integer.parseInt(lengths[1]); in getPinSpecification()
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcTag.java | 542 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/ |
D | SimPhonebookProvider.java | 719 int maxLength = AdnRecord.getMaxAlphaTagBytes(getRecordSize(recordsSize)); in validateValues() local 721 if (length > maxLength) { in validateValues()
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/ |
D | VoicemailChangePinActivity.java | 379 pinMaxLength = pinSpecification.maxLength; in readPinLength()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactListItemView.java | 1745 private String snippetize(String line, int matchIndex, int maxLength) { in snippetize() argument 1749 int remainingLength = maxLength; in snippetize()
|