/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/location/java/android/location/ |
D | LocationManager.java | 771 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 …]
|
D | LocationResult.java | 66 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/ |
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/core/java/android/content/integrity/ |
D | CompoundFormula.java | 19 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()
|
D | AtomicFormula.java | 19 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()
|
D | IntegrityUtils.java | 19 import static com.android.internal.util.Preconditions.checkArgument; 37 checkArgument( in getBytesFromHexDigest()
|
/frameworks/base/errorprone/tests/res/android/util/ |
D | Preconditions.java | 20 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/ |
D | OwnerShellData.java | 43 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/ |
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/core/java/android/net/vcn/ |
D | VcnUnderlyingNetworkTemplate.java | 137 Preconditions.checkArgument( in validateMatchCriteria() 144 Preconditions.checkArgument( in validateMinBandwidthKbps() 146 Preconditions.checkArgument( in validateMinBandwidthKbps() 148 Preconditions.checkArgument( in validateMinBandwidthKbps()
|
D | VcnGatewayConnectionConfig.java | 336 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/ |
D | Validators.java | 69 Preconditions.checkArgument(validator instanceof InternalValidator, in not() 80 Preconditions.checkArgument((validators[i] instanceof InternalValidator), in getInternalValidators()
|
/frameworks/base/core/java/android/text/ |
D | PrecomputedText.java | 651 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/ |
D | TextClassifier.java | 680 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/ |
D | UserTypeDetails.java | 574 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/ |
D | SoftApConfiguration.java | 193 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/ |
D | SerializedVibrationEffect.java | 19 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/ |
D | LocalEventLog.java | 67 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/ |
D | FontStyle.java | 212 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/ |
D | SharedLibraryLoadingOrderTest.java | 45 Preconditions.checkArgument(!getLibsLoadedAfter() in testLoadingOfStdShareLibsShouldBeFirst() 59 Preconditions.checkArgument(getLibsLoadedAfter() in testLoadingOfShareLibsIsAfter()
|
/frameworks/base/core/java/android/util/ |
D | LongSparseLongArray.java | 319 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/ |
D | HidlMemoryUtil.java | 145 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/ |
D | HighRefreshRateDenylistTest.java | 145 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/ |
D | AltitudeConverter.java | 67 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()
|