Home
last modified time | relevance | path

Searched refs:checkArgument (Results 1 – 25 of 145) sorted by relevance

123456

/frameworks/base/core/java/android/privacy/internal/rappor/
DRapporConfig.java55 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/
DMeasuredText.java82 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/location/java/android/location/
DLocationManager.java563 Preconditions.checkArgument(provider != null, "invalid null provider"); in isProviderEnabledForUser()
592 Preconditions.checkArgument(provider != null, "invalid null provider"); in setProviderEnabledForUser()
642 Preconditions.checkArgument(provider != null, "invalid null provider"); in getLastKnownLocation()
769 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestSingleUpdate()
770 Preconditions.checkArgument(listener != null, "invalid null listener"); in requestSingleUpdate()
801 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
802 Preconditions.checkArgument(listener != null, "invalid null listener"); in requestSingleUpdate()
829 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestSingleUpdate()
857 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
927 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestLocationUpdates()
[all …]
DLocationRequest.java194 Preconditions.checkArgument(provider != null, "invalid null provider"); in createFromDeprecatedProvider()
223 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in createFromDeprecatedCriteria()
304 Preconditions.checkArgument(provider != null, "invalid provider: null"); in LocationRequest()
388 Preconditions.checkArgument(millis >= 0, "invalid interval: + millis"); in setInterval()
480 Preconditions.checkArgument(millis >= 0, "invalid interval: + millis"); in setFastestInterval()
611 Preconditions.checkArgument(provider != null, "invalid provider: null"); in setProvider()
DAbstractListenerManager.java51 Preconditions.checkArgument(listener != null, "invalid null listener/callback"); in Registration()
52 Preconditions.checkArgument(executor != null, "invalid null executor"); in Registration()
128 Preconditions.checkArgument(listener != null, "invalid null listener/callback"); in addInternal()
200 Preconditions.checkArgument(request == null, in merge()
/frameworks/base/core/java/android/privacy/internal/longitudinalreporting/
DLongitudinalReportingConfig.java66 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/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DByteRange.java28 Preconditions.checkArgument(start >= 0); in ByteRange()
29 Preconditions.checkArgument(end >= start); in ByteRange()
51 Preconditions.checkArgument(length > 0); in extend()
/frameworks/base/core/java/android/content/integrity/
DAtomicFormula.java19 import static com.android.internal.util.Preconditions.checkArgument;
131 checkArgument(isValidKey(key), String.format("Unknown key: %d", key)); in AtomicFormula()
149 checkArgument( in LongAtomicFormula()
168 checkArgument( in LongAtomicFormula()
172 checkArgument( in LongAtomicFormula()
313 checkArgument( in StringAtomicFormula()
335 checkArgument( in StringAtomicFormula()
361 checkArgument( in StringAtomicFormula()
522 checkArgument( in BooleanAtomicFormula()
539 checkArgument( in BooleanAtomicFormula()
DCompoundFormula.java19 import static com.android.internal.util.Preconditions.checkArgument;
85 checkArgument( in CompoundFormula()
95 checkArgument(length >= 0, "Must have non-negative length. Got " + length); in CompoundFormula()
196 checkArgument( in validateFormulas()
203 checkArgument( in validateFormulas()
DIntegrityUtils.java19 import static com.android.internal.util.Preconditions.checkArgument;
37 checkArgument( in getBytesFromHexDigest()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/cdc/
DContentDefinedChunker.java19 import static com.android.internal.util.Preconditions.checkArgument;
56 checkArgument( in ContentDefinedChunker()
59 checkArgument( in ContentDefinedChunker()
DIsChunkBreakpoint.java19 import static com.android.internal.util.Preconditions.checkArgument;
44 checkArgument( in IsChunkBreakpoint()
DFingerprintMixer.java19 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/
DKeyboardShortcutInfo.java18 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/core/java/android/service/autofill/
DValidators.java69 Preconditions.checkArgument(validator instanceof InternalValidator, in not()
80 Preconditions.checkArgument((validators[i] instanceof InternalValidator), in getInternalValidators()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifier.java678 static void checkArgument(@NonNull CharSequence text, int startIndex, int endIndex) { in checkArgument() method in TextClassifier.Utils
679 Preconditions.checkArgument(text != null); in checkArgument()
680 Preconditions.checkArgument(startIndex >= 0); in checkArgument()
681 Preconditions.checkArgument(endIndex <= text.length()); in checkArgument()
682 Preconditions.checkArgument(endIndex > startIndex); in checkArgument()
704 Preconditions.checkArgument(start >= 0); in getSubString()
705 Preconditions.checkArgument(end <= text.length()); in getSubString()
706 Preconditions.checkArgument(start <= end); in getSubString()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/testing/
DRandomInputStream.java19 import static com.android.internal.util.Preconditions.checkArgument;
56 checkArgument(off + len <= b.length); in read()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DFullRestoreToFileTask.java19 import static com.android.internal.util.Preconditions.checkArgument;
57 checkArgument(bufferSize > 0, "Buffer must have positive size"); in FullRestoreToFileTask()
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/wifi/
DSoftApConfiguration.java193 Preconditions.checkArgument(StandardCharsets.UTF_8.newEncoder().canEncode(ssid)); in setSsid()
211 Preconditions.checkArgument(!bssid.equals(MacAddress.ALL_ZEROS_ADDRESS)); in setBssid()
212 Preconditions.checkArgument(!bssid.equals(MacAddress.BROADCAST_ADDRESS)); in setBssid()
/frameworks/base/core/java/android/content/pm/
DSuspendDialogInfo.java354 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setIcon()
368 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setTitle()
409 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setMessage()
425 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setNeutralButtonText()
440 Preconditions.checkArgument(buttonAction == BUTTON_ACTION_MORE_DETAILS in setNeutralButtonAction()
/frameworks/base/core/java/android/text/
DPrecomputedText.java560 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/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyStore.java19 import static com.android.internal.util.Preconditions.checkArgument;
192 checkArgument(!applicationName.isEmpty(), "applicationName must not be empty string."); in checkApplicationName()
193 checkArgument(!applicationName.contains("/"), "applicationName must not contain slash."); in checkApplicationName()
DTertiaryKeyRotationTracker.java19 import static com.android.internal.util.Preconditions.checkArgument;
64 checkArgument( in TertiaryKeyRotationTracker()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/kv/
DKeyValueListingBuilder.java19 import static com.android.internal.util.Preconditions.checkArgument;
39 checkArgument(key.length() != 0, "Key must have non-zero length"); in addPair()
/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeDetails.java412 Preconditions.checkArgument(mName != null, in createUserTypeDetails()
414 Preconditions.checkArgument(hasValidBaseType(), in createUserTypeDetails()
416 Preconditions.checkArgument(hasValidPropertyFlags(), in createUserTypeDetails()
420 Preconditions.checkArgument(mBadgeLabels != null && mBadgeLabels.length != 0, in createUserTypeDetails()
422 Preconditions.checkArgument(mBadgeColors != null && mBadgeColors.length != 0, in createUserTypeDetails()

123456