Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/
DChooseLockGeneric.java417 int minLength, final int maxLength, in getLockPasswordIntent() argument
420 maxLength, requirePasswordToDecrypt, confirmCredentials); in getLockPasswordIntent()
424 int minLength, final int maxLength, in getLockPasswordIntent() argument
427 maxLength, requirePasswordToDecrypt, challenge); in getLockPasswordIntent()
431 final int maxLength, boolean requirePasswordToDecrypt, String password) { in getLockPasswordIntent() argument
432 return ChooseLockPassword.createIntent(context, quality, minLength, maxLength, in getLockPasswordIntent()
480 final int maxLength = mDPM.getPasswordMaximumLength(quality); in updateUnlockMethodAndFinish() local
484 maxLength, mRequirePassword, mChallenge); in updateUnlockMethodAndFinish()
487 maxLength, mRequirePassword, mUserPassword); in updateUnlockMethodAndFinish()
DSetupChooseLockPassword.java43 int minLength, final int maxLength, boolean requirePasswordToDecrypt, in createIntent() argument
46 maxLength, requirePasswordToDecrypt, confirmCredentials); in createIntent()
53 int minLength, final int maxLength, boolean requirePasswordToDecrypt, String password) { in createIntent() argument
54 Intent intent = ChooseLockPassword.createIntent(context, quality, minLength, maxLength, in createIntent()
62 int minLength, final int maxLength, boolean requirePasswordToDecrypt, long challenge) { in createIntent() argument
63 Intent intent = ChooseLockPassword.createIntent(context, quality, minLength, maxLength, in createIntent()
DSetupChooseLockGeneric.java123 int minLength, final int maxLength, in getLockPasswordIntent() argument
126 maxLength, requirePasswordToDecrypt, confirmCredentials); in getLockPasswordIntent()
133 int minLength, final int maxLength, in getLockPasswordIntent() argument
136 maxLength, requirePasswordToDecrypt, challenge); in getLockPasswordIntent()
143 final int maxLength, boolean requirePasswordToDecrypt, String password) { in getLockPasswordIntent() argument
145 maxLength, requirePasswordToDecrypt, password); in getLockPasswordIntent()
DChooseLockPassword.java74 int minLength, final int maxLength, boolean requirePasswordToDecrypt, in createIntent() argument
79 intent.putExtra(PASSWORD_MAX_KEY, maxLength); in createIntent()
86 int minLength, final int maxLength, boolean requirePasswordToDecrypt, String password) { in createIntent() argument
87 Intent intent = createIntent(context, quality, minLength, maxLength, in createIntent()
94 int minLength, final int maxLength, boolean requirePasswordToDecrypt, long challenge) { in createIntent() argument
95 Intent intent = createIntent(context, quality, minLength, maxLength, in createIntent()
/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/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapUtils.java394 static public byte[] truncateUtf8StringToBytearray(String utf8String, int maxLength) in truncateUtf8StringToBytearray() argument
406 if (utf8Bytes.length > maxLength) { in truncateUtf8StringToBytearray()
409 if ( (utf8Bytes[maxLength - 1] & 0xC0) == 0x80 ) { in truncateUtf8StringToBytearray()
410 for (int i = maxLength - 2; i >= 0; i--) { in truncateUtf8StringToBytearray()
421 utf8Bytes = Arrays.copyOf(utf8Bytes, maxLength); in truncateUtf8StringToBytearray()
422 utf8Bytes[maxLength - 1] = 0; in truncateUtf8StringToBytearray()
/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/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/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothPairingDialog.java352 final int maxLength; in onCreateView() local
359 maxLength = BLUETOOTH_PIN_MAX_LENGTH; in onCreateView()
367 maxLength = BLUETOOTH_PASSKEY_MAX_LENGTH; in onCreateView()
378 textInput.setFilters(new InputFilter[]{new LengthFilter(maxLength)}); in onCreateView()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialog.java225 int maxLength; in createPinEntryView() local
233 maxLength = BLUETOOTH_PIN_MAX_LENGTH; in createPinEntryView()
239 maxLength = BLUETOOTH_PASSKEY_MAX_LENGTH; in createPinEntryView()
252 new LengthFilter(maxLength) }); in createPinEntryView()
/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/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/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/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/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcTag.java526 int javaType, int maxLength, int cardState) { in addNdefTechnology() argument
532 extras.putInt(Ndef.EXTRA_NDEF_MAXLENGTH, maxLength); in addNdefTechnology()
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/
DNativeNfcTag.java522 int javaType, int maxLength, int cardState) { in addNdefTechnology() argument
528 extras.putInt(Ndef.EXTRA_NDEF_MAXLENGTH, maxLength); in addNdefTechnology()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListItemView.java1391 private String snippetize(String line, int matchIndex, int maxLength) { in snippetize() argument
1395 int remainingLength = maxLength; in snippetize()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationUtils.java1360 final Cursor conversationCursor, final int maxLength, final Account account) { in getStyledSenders() argument
1371 SendersView.format(context, conversationInfo, "", maxLength, senders, null, null, account, in getStyledSenders()