/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | AdRenderIdValidator.java | 47 final long maxLength = flags.getFledgeAuctionServerAdRenderIdMaxLength(); in createInstance() local 48 logger.v("Ad render ID enabled with max length %d", maxLength); in createInstance() 49 return createEnabledInstance(maxLength); in createInstance() 58 static AdRenderIdValidator createEnabledInstance(long maxLength) { in createEnabledInstance() argument 60 if (object != null && object.getBytes(StandardCharsets.UTF_8).length > maxLength) { in createEnabledInstance() 65 maxLength, in createEnabledInstance()
|
/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/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/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/providers/MediaProvider/pdf/framework/java/android/graphics/pdf/models/ |
D | FormWidgetInfo.java | 105 int maxLength, in FormWidgetInfo() argument 117 this.mMaxLength = maxLength; in FormWidgetInfo() 422 public Builder setMaxLength(@IntRange(from = 0) int maxLength) { in setMaxLength() 423 Preconditions.checkArgument(maxLength > 0, "Invalid max length"); in setMaxLength() 426 mMaxLength = maxLength; in setMaxLength()
|
/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/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/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/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | ReadAdRenderIdFromJsonStrategyFactory.java | 37 AdRenderIdEnabledStrategy(long maxLength) { in AdRenderIdEnabledStrategy() argument 38 mAdRenderIdValidator = AdRenderIdValidator.createEnabledInstance(maxLength); in AdRenderIdEnabledStrategy()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AdRenderIdValidatorTest.java | 73 FlagsWithAuctionServerAdRenderIdSettings(boolean enabled, long maxLength) { in FlagsWithAuctionServerAdRenderIdSettings() argument 75 mMaxLength = maxLength; in FlagsWithAuctionServerAdRenderIdSettings()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapUtils.java | 426 public static byte[] truncateUtf8StringToByteArray(String utf8String, int maxLength) { in truncateUtf8StringToByteArray() argument 432 if (utf8Bytes.length > maxLength) { in truncateUtf8StringToByteArray() 435 if ((utf8Bytes[maxLength - 1] & 0xC0) == 0x80) { in truncateUtf8StringToByteArray() 436 for (int i = maxLength - 2; i >= 0; i--) { in truncateUtf8StringToByteArray() 447 utf8Bytes = Arrays.copyOf(utf8Bytes, maxLength); in truncateUtf8StringToByteArray() 448 utf8Bytes[maxLength - 1] = 0; in truncateUtf8StringToByteArray()
|
/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 | 381 final int maxLength; in onCreateView() local 389 maxLength = BLUETOOTH_PIN_MAX_LENGTH; in onCreateView() 397 maxLength = BLUETOOTH_PASSKEY_MAX_LENGTH; in onCreateView() 408 textInput.setFilters(new InputFilter[]{new LengthFilter(maxLength)}); in onCreateView()
|
/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/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/util/ |
D | MdnsUtils.java | 110 public static String truncateServiceName(@NonNull String originalName, int maxLength) { in truncateServiceName() argument 113 if (originalName.length() <= maxLength / 4) return originalName; in truncateServiceName() 117 final ByteBuffer out = ByteBuffer.allocate(maxLength); in truncateServiceName()
|
/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/Dialer/java/com/android/voicemail/ |
D | PinChanger.java | 65 public int maxLength; field in PinChanger.PinSpecification
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDialogFragment.java | 281 int maxLength = mPairingController.getDeviceMaxPasskeyLength(); in createPinEntryView() local 295 new LengthFilter(maxLength)}); in createPinEntryView()
|
/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/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/Dialer/java/com/android/voicemail/impl/ |
D | PinChangerImpl.java | 98 result.maxLength = Integer.parseInt(lengths[1]); in getPinSpecification()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/ |
D | FetcherUtil.java | 228 public static Optional<String> extractString(Object obj, int maxLength) { in extractString() argument 234 if (stringValue.length() > maxLength) { in extractString() 236 .e("Length of string value should be non-empty and smaller than " + maxLength); in extractString()
|