Home
last modified time | relevance | path

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

123456789

/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/location/java/android/location/
DLocationManager.java771 Preconditions.checkArgument(provider != null, "invalid null provider"); in isProviderEnabledForUser()
800 Preconditions.checkArgument(provider != null, "invalid null provider"); in setProviderEnabledForUser()
912 Preconditions.checkArgument(provider != null, "invalid null provider"); in getLastKnownLocation()
913 Preconditions.checkArgument(lastLocationRequest != null, in getLastKnownLocation()
979 Preconditions.checkArgument(locationRequest.getProvider() != null); in getCurrentLocation()
1025 Preconditions.checkArgument(provider != null, "invalid null provider"); in getCurrentLocation()
1026 Preconditions.checkArgument(locationRequest != null, "invalid null location request"); in getCurrentLocation()
1070 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestSingleUpdate()
1109 Preconditions.checkArgument(criteria != null, "invalid null criteria"); in requestSingleUpdate()
1142 Preconditions.checkArgument(provider != null, "invalid null provider"); in requestSingleUpdate()
[all …]
DLocationResult.java66 Preconditions.checkArgument(!locations.isEmpty()); in create()
79 Preconditions.checkArgument(locations.length > 0); in create()
93 Preconditions.checkArgument(!locations.isEmpty()); in wrap()
103 Preconditions.checkArgument(locations.length > 0); in wrap()
114 Preconditions.checkArgument(!locations.isEmpty()); in LocationResult()
/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/core/java/android/content/integrity/
DCompoundFormula.java19 import static com.android.internal.util.Preconditions.checkArgument;
86 checkArgument( in CompoundFormula()
96 checkArgument(length >= 0, "Must have non-negative length. Got %d", length); in CompoundFormula()
202 checkArgument( in validateFormulas()
208 checkArgument( in validateFormulas()
DAtomicFormula.java19 import static com.android.internal.util.Preconditions.checkArgument;
140 checkArgument(isValidKey(key), "Unknown key: %d", key); in AtomicFormula()
158 checkArgument( in LongAtomicFormula()
176 checkArgument( in LongAtomicFormula()
179 checkArgument( in LongAtomicFormula()
325 checkArgument( in StringAtomicFormula()
347 checkArgument( in StringAtomicFormula()
374 checkArgument( in StringAtomicFormula()
543 checkArgument( in BooleanAtomicFormula()
560 checkArgument( in BooleanAtomicFormula()
DIntegrityUtils.java19 import static com.android.internal.util.Preconditions.checkArgument;
37 checkArgument( in getBytesFromHexDigest()
/frameworks/base/errorprone/tests/res/android/util/
DPreconditions.java20 public static void checkArgument(boolean expression) { in checkArgument() method in Preconditions
24 public static void checkArgument(boolean expression, Object errorMessage) { in checkArgument() method in Preconditions
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwnerShellData.java43 Preconditions.checkArgument(userId != USER_NULL, "userId cannot be USER_NULL"); in OwnerShellData()
51 Preconditions.checkArgument(parentUserId != USER_NULL, in OwnerShellData()
53 Preconditions.checkArgument(parentUserId != userId, in OwnerShellData()
/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/net/vcn/
DVcnUnderlyingNetworkTemplate.java137 Preconditions.checkArgument( in validateMatchCriteria()
144 Preconditions.checkArgument( in validateMinBandwidthKbps()
146 Preconditions.checkArgument( in validateMinBandwidthKbps()
148 Preconditions.checkArgument( in validateMinBandwidthKbps()
DVcnGatewayConnectionConfig.java336 Preconditions.checkArgument( in validate()
347 Preconditions.checkArgument( in validate()
350 Preconditions.checkArgument( in validate()
362 Preconditions.checkArgument( in checkValidCapability()
368 Preconditions.checkArgument( in validateRetryInterval()
755 Preconditions.checkArgument( in setMaxMtu()
777 Preconditions.checkArgument( in setMinUdpPort4500NatTimeoutSeconds()
/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/text/
DPrecomputedText.java651 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getWidth()
652 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getWidth()
653 Preconditions.checkArgument(start <= end, "start offset can not be larger than end offset"); in getWidth()
681 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getBounds()
682 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getBounds()
683 Preconditions.checkArgument(start <= end, "start offset can not be larger than end offset"); in getBounds()
712 Preconditions.checkArgument(0 <= start && start <= mText.length(), "invalid start offset"); in getFontMetricsInt()
713 Preconditions.checkArgument(0 <= end && end <= mText.length(), "invalid end offset"); in getFontMetricsInt()
714 Preconditions.checkArgument(start <= end, "start offset can not be larger than end offset"); in getFontMetricsInt()
740 Preconditions.checkArgument(0 <= offset && offset < mText.length(), "invalid offset"); in getCharWidthAt()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifier.java680 static void checkArgument(@NonNull CharSequence text, int startIndex, int endIndex) { in checkArgument() method in TextClassifier.Utils
681 Preconditions.checkArgument(text != null); in checkArgument()
682 Preconditions.checkArgument(startIndex >= 0); in checkArgument()
683 Preconditions.checkArgument(endIndex <= text.length()); in checkArgument()
684 Preconditions.checkArgument(endIndex > startIndex); in checkArgument()
706 Preconditions.checkArgument(start >= 0); in getSubString()
707 Preconditions.checkArgument(end <= text.length()); in getSubString()
708 Preconditions.checkArgument(start <= end); in getSubString()
/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeDetails.java574 Preconditions.checkArgument(mName != null, in createUserTypeDetails()
576 Preconditions.checkArgument(hasValidBaseType(), in createUserTypeDetails()
578 Preconditions.checkArgument(hasValidPropertyFlags(), in createUserTypeDetails()
583 Preconditions.checkArgument(mBadgeLabels != null && mBadgeLabels.length != 0, in createUserTypeDetails()
585 Preconditions.checkArgument(mBadgeColors != null && mBadgeColors.length != 0, in createUserTypeDetails()
589 Preconditions.checkArgument(mDefaultCrossProfileIntentFilters == null in createUserTypeDetails()
646 Preconditions.checkArgument( in checkSystemAndMainUserPreconditions()
651 Preconditions.checkArgument( in checkSystemAndMainUserPreconditions()
/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( in setBssid()
213 Preconditions.checkArgument(!bssid.equals(MacAddress.BROADCAST_ADDRESS)); in setBssid()
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DSerializedVibrationEffect.java19 import static com.android.internal.util.Preconditions.checkArgument;
51 checkArgument(segments.length > 0, "Unsupported empty vibration"); in SerializedVibrationEffect()
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocalEventLog.java67 Preconditions.checkArgument(timeDelta >= 0 && timeDelta <= MAX_TIME_DELTA); in createEntry()
109 Preconditions.checkArgument(size > 0); in LocalEventLog()
122 Preconditions.checkArgument(logEvent != null); in addLog()
155 Preconditions.checkArgument(isFiller || logEvent != null); in addLogEventInternal()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontStyle.java212 Preconditions.checkArgument(FONT_WEIGHT_MIN <= weight && weight <= FONT_WEIGHT_MAX, in FontStyle()
214 Preconditions.checkArgument(slant == FONT_SLANT_UPRIGHT || slant == FONT_SLANT_ITALIC, in FontStyle()
/frameworks/base/tests/SharedLibraryLoadingTest/test-apps/SharedLibraryClientTests/src/com/android/sharedlibloadingtest/client/
DSharedLibraryLoadingOrderTest.java45 Preconditions.checkArgument(!getLibsLoadedAfter() in testLoadingOfStdShareLibsShouldBeFirst()
59 Preconditions.checkArgument(getLibsLoadedAfter() in testLoadingOfShareLibsIsAfter()
/frameworks/base/core/java/android/util/
DLongSparseLongArray.java319 Preconditions.checkArgument(array.mKeys.length >= size); in unparcel()
320 Preconditions.checkArgument(array.mValues.length >= size); in unparcel()
325 Preconditions.checkArgument(last < array.mKeys[i]); in unparcel()
/frameworks/base/core/java/android/os/
DHidlMemoryUtil.java145 Preconditions.checkArgument(mem.getSize() == 0 || mem.getName().equals("ashmem"), in hidlMemoryToByteArray()
171 Preconditions.checkArgument(mem.getSize() == 0 || mem.getName().equals("ashmem"), in hidlMemoryToByteList()
211 Preconditions.checkArgument(fd != null || size == 0); in fileDescriptorToHidlMemory()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DHighRefreshRateDenylistTest.java145 Preconditions.checkArgument(DeviceConfig.NAMESPACE_DISPLAY_MANAGER.equals(namespace)); in getProperty()
146 Preconditions.checkArgument(KEY_HIGH_REFRESH_RATE_BLACKLIST.equals(name)); in getProperty()
153 Preconditions.checkArgument(DeviceConfig.NAMESPACE_DISPLAY_MANAGER.equals(namespace)); in addOnPropertiesChangedListener()
/frameworks/base/location/java/android/location/altitude/
DAltitudeConverter.java67 Preconditions.checkArgument( in validate()
70 Preconditions.checkArgument( in validate()
73 Preconditions.checkArgument(location.hasAltitude(), "Missing altitude above WGS84"); in validate()
74 Preconditions.checkArgument(Double.isFinite(location.getAltitude()), in validate()

123456789