/frameworks/base/core/java/android/privacy/internal/rappor/ |
D | RapporConfig.java | 55 Preconditions.checkArgument(!TextUtils.isEmpty(encoderId), "encoderId cannot be empty"); in RapporConfig() 57 Preconditions.checkArgument(numBits > 0, "numBits needs to be > 0"); in RapporConfig() 59 Preconditions.checkArgument(probabilityF >= 0 && probabilityF <= 1, in RapporConfig() 62 Preconditions.checkArgument(probabilityP >= 0 && probabilityP <= 1, in RapporConfig() 65 Preconditions.checkArgument(probabilityQ >= 0 && probabilityQ <= 1, in RapporConfig() 68 Preconditions.checkArgument(numCohorts > 0, "numCohorts needs to be > 0"); in RapporConfig() 70 Preconditions.checkArgument(numBloomHashes > 0, "numBloomHashes needs to be > 0"); in RapporConfig()
|
/frameworks/base/graphics/java/android/graphics/text/ |
D | MeasuredText.java | 82 Preconditions.checkArgument(0 <= start && start <= mChars.length, in getWidth() 84 Preconditions.checkArgument(0 <= end && end <= mChars.length, in getWidth() 86 Preconditions.checkArgument(start <= end, in getWidth() 109 Preconditions.checkArgument(0 <= start && start <= mChars.length, in getBounds() 111 Preconditions.checkArgument(0 <= end && end <= mChars.length, in getBounds() 113 Preconditions.checkArgument(start <= end, in getBounds() 125 Preconditions.checkArgument(0 <= offset && offset < mChars.length, in getCharWidthAt() 235 Preconditions.checkArgument(length > 0, "length can not be negative"); in appendStyleRun() 237 Preconditions.checkArgument(end <= mText.length, "Style exceeds the text length"); in appendStyleRun() 260 Preconditions.checkArgument(length > 0, "length can not be negative"); in appendReplacementRun() [all …]
|
/frameworks/base/core/java/android/privacy/internal/longitudinalreporting/ |
D | LongitudinalReportingConfig.java | 66 Preconditions.checkArgument(probabilityF >= 0 && probabilityF <= 1, in LongitudinalReportingConfig() 69 Preconditions.checkArgument(probabilityP >= 0 && probabilityP <= 1, in LongitudinalReportingConfig() 72 Preconditions.checkArgument(probabilityQ >= 0 && probabilityQ <= 1, in LongitudinalReportingConfig() 75 Preconditions.checkArgument(!TextUtils.isEmpty(encoderId), "encoderId cannot be empty"); in LongitudinalReportingConfig()
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/ |
D | ByteRange.java | 28 Preconditions.checkArgument(start >= 0); in ByteRange() 29 Preconditions.checkArgument(end >= start); in ByteRange() 51 Preconditions.checkArgument(length > 0); in extend()
|
D | SingleStreamDiffScriptWriter.java | 63 Preconditions.checkArgument(chunkStart >= 0); in writeChunk() 64 Preconditions.checkArgument(chunkLength > 0); in writeChunk()
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/cdc/ |
D | ContentDefinedChunker.java | 19 import static com.android.internal.util.Preconditions.checkArgument; 56 checkArgument( in ContentDefinedChunker() 59 checkArgument( in ContentDefinedChunker()
|
D | IsChunkBreakpoint.java | 19 import static com.android.internal.util.Preconditions.checkArgument; 44 checkArgument( in IsChunkBreakpoint()
|
D | FingerprintMixer.java | 19 import static com.android.internal.util.Preconditions.checkArgument; 60 checkArgument(salt.length == SALT_LENGTH_BYTES, "Requires a 256-bit salt."); in FingerprintMixer()
|
/frameworks/base/core/java/android/view/ |
D | KeyboardShortcutInfo.java | 18 import static com.android.internal.util.Preconditions.checkArgument; 55 checkArgument(keycode >= KeyEvent.KEYCODE_UNKNOWN && keycode <= KeyEvent.getMaxKeyCode()); in KeyboardShortcutInfo() 85 checkArgument(baseCharacter != MIN_VALUE); in KeyboardShortcutInfo()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDocumentsService.java | 80 Preconditions.checkArgument(ids != null); in updateForegroundState() 81 Preconditions.checkArgument(notifications != null); in updateForegroundState() 82 Preconditions.checkArgument(ids.length == notifications.length); in updateForegroundState()
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextClassifier.java | 662 static void checkArgument(@NonNull CharSequence text, int startIndex, int endIndex) { in checkArgument() method in TextClassifier.Utils 663 Preconditions.checkArgument(text != null); in checkArgument() 664 Preconditions.checkArgument(startIndex >= 0); in checkArgument() 665 Preconditions.checkArgument(endIndex <= text.length()); in checkArgument() 666 Preconditions.checkArgument(endIndex > startIndex); in checkArgument() 686 Preconditions.checkArgument(start >= 0); in getSubString() 687 Preconditions.checkArgument(end <= text.length()); in getSubString() 688 Preconditions.checkArgument(start <= end); in getSubString()
|
D | SelectionEvent.java | 148 Preconditions.checkArgument(end >= start, "end cannot be less than start"); in SelectionEvent() 239 Preconditions.checkArgument(end >= start, "end cannot be less than start"); in createSelectionModifiedEvent() 259 Preconditions.checkArgument(end >= start, "end cannot be less than start"); in createSelectionModifiedEvent() 283 Preconditions.checkArgument(end >= start, "end cannot be less than start"); in createSelectionModifiedEvent() 306 Preconditions.checkArgument(end >= start, "end cannot be less than start"); in createSelectionActionEvent() 331 Preconditions.checkArgument(end >= start, "end cannot be less than start"); in createSelectionActionEvent()
|
/frameworks/base/core/java/android/service/autofill/ |
D | Validators.java | 69 Preconditions.checkArgument(validator instanceof InternalValidator, in not() 80 Preconditions.checkArgument((validators[i] instanceof InternalValidator), in getInternalValidators()
|
D | SaveInfo.java | 598 Preconditions.checkArgument((validator instanceof InternalValidator), in setValidator() 644 Preconditions.checkArgument(!ArrayUtils.isEmpty(ids), "ids cannot be empty or null"); in addSanitizer() 645 Preconditions.checkArgument((sanitizer instanceof InternalSanitizer), in addSanitizer() 655 Preconditions.checkArgument(!mSanitizerIds.contains(id), "already added %s", id); in addSanitizer()
|
D | CustomDescription.java | 182 Preconditions.checkArgument((transformation instanceof InternalTransformation), in addChild() 277 Preconditions.checkArgument((condition instanceof InternalValidator), in batchUpdate() 331 Preconditions.checkArgument((action instanceof InternalOnClickAction), in addOnClickAction()
|
/frameworks/base/core/java/android/text/ |
D | PrecomputedText.java | 560 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getWidth() 561 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getWidth() 562 Preconditions.checkArgument(start <= end, "start offset can not be larger than end offset"); in getWidth() 590 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getBounds() 591 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getBounds() 592 Preconditions.checkArgument(start <= end, "start offset can not be larger than end offset"); in getBounds() 617 Preconditions.checkArgument(0 <= offset && offset < mText.length(), "invalid offset"); in getCharWidthAt()
|
/frameworks/base/core/java/android/content/pm/ |
D | SuspendDialogInfo.java | 295 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setIcon() 309 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setTitle() 350 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setMessage() 365 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setNeutralButtonText()
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontStyle.java | 208 Preconditions.checkArgument(FONT_WEIGHT_MIN <= weight && weight <= FONT_WEIGHT_MAX, in FontStyle() 210 Preconditions.checkArgument(slant == FONT_SLANT_UPRIGHT || slant == FONT_SLANT_ITALIC, in FontStyle()
|
/frameworks/base/core/java/android/net/nsd/ |
D | NsdManager.java | 19 import static com.android.internal.util.Preconditions.checkArgument; 448 checkArgument(valueIndex == -1, "listener already in use"); in putListener() 467 checkArgument(valueIndex != -1, "listener not registered"); in getListenerKey() 520 checkArgument(serviceInfo.getPort() > 0, "Invalid port number"); in registerService() 648 checkArgument(protocolType == PROTOCOL_DNS_SD, "Unsupported protocol"); in checkProtocol()
|
/frameworks/base/core/java/android/view/contentcapture/ |
D | ContentCaptureSession.java | 223 Preconditions.checkArgument(id != NO_SESSION_ID); in ContentCaptureSession() 402 Preconditions.checkArgument(hostId.isNonVirtual(), "hostId cannot be virtual: %s", hostId); in notifyViewsDisappeared() 403 Preconditions.checkArgument(!ArrayUtils.isEmpty(virtualIds), "virtual ids cannot be empty"); in notifyViewsDisappeared() 496 Preconditions.checkArgument(hostId.isNonVirtual(), "hostId cannot be virtual: %s", hostId); in newAutofillId()
|
/frameworks/base/media/java/android/media/ |
D | HwAudioSource.java | 52 Preconditions.checkArgument(device.isSource(), "Requires a source device"); in HwAudioSource() 207 Preconditions.checkArgument(info.isSource()); in setAudioDeviceInfo()
|
/frameworks/base/core/java/android/companion/ |
D | BluetoothLeDeviceFilter.java | 23 import static com.android.internal.util.Preconditions.checkArgument; 344 checkArgument(rawDataFilterMask == null || in setRawDataFilter() 412 checkArgument(length > 0, "Range must be non-empty"); in checkRangeNotEmpty() 418 checkArgument(TextUtils.length(prefix) <= getRenamePrefixLengthLimit(), in setRename()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/ |
D | Preconditions.java | 32 public static void checkArgument(boolean expression) { in checkArgument() method in Preconditions 46 public static void checkArgument(boolean expression, final Object errorMessage) { in checkArgument() method in Preconditions 61 public static void checkArgument(boolean expression, in checkArgument() method in Preconditions
|
/frameworks/base/core/java/com/android/internal/util/ |
D | Preconditions.java | 33 public static void checkArgument(boolean expression) { in checkArgument() method in Preconditions 48 public static void checkArgument(boolean expression, final Object errorMessage) { in checkArgument() method in Preconditions 63 public static void checkArgument(boolean expression, in checkArgument() method in Preconditions
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | GestureDescription.java | 249 Preconditions.checkArgument(duration > 0, "Duration must be positive"); in StrokeDescription() 250 Preconditions.checkArgument(startTime >= 0, "Start time must not be negative"); in StrokeDescription() 251 Preconditions.checkArgument(!path.isEmpty(), "Path is empty"); in StrokeDescription() 254 Preconditions.checkArgument((bounds.bottom >= 0) && (bounds.top >= 0) in StrokeDescription()
|