Home
last modified time | relevance | path

Searched refs:checkArgumentNonnegative (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/core/java/android/hardware/camera2/params/
DMeteringRectangle.java92 mX = checkArgumentNonnegative(x, "x must be nonnegative"); in MeteringRectangle()
93 mY = checkArgumentNonnegative(y, "y must be nonnegative"); in MeteringRectangle()
94 mWidth = checkArgumentNonnegative(width, "width must be nonnegative"); in MeteringRectangle()
95 mHeight = checkArgumentNonnegative(height, "height must be nonnegative"); in MeteringRectangle()
116 mX = checkArgumentNonnegative(xy.x, "x must be nonnegative"); in MeteringRectangle()
117 mY = checkArgumentNonnegative(xy.y, "y must be nonnegative"); in MeteringRectangle()
118 mWidth = checkArgumentNonnegative(dimensions.getWidth(), "width must be nonnegative"); in MeteringRectangle()
119 mHeight = checkArgumentNonnegative(dimensions.getHeight(), "height must be nonnegative"); in MeteringRectangle()
120 mWeight = checkArgumentNonnegative(meteringWeight, "meteringWeight must be nonnegative"); in MeteringRectangle()
137 mX = checkArgumentNonnegative(rect.left, "rect.left must be nonnegative"); in MeteringRectangle()
[all …]
DCapability.java19 import static com.android.internal.util.Preconditions.checkArgumentNonnegative;
66 checkArgumentNonnegative(maxStreamingSize.getWidth(), in Capability()
68 checkArgumentNonnegative(maxStreamingSize.getHeight(), in Capability()
DLensShadingMap.java25 import static com.android.internal.util.Preconditions.checkArgumentNonnegative;
205 checkArgumentNonnegative(offset, "offset must not be negative"); in copyGainFactors()
DColorSpaceTransform.java163 checkArgumentNonnegative(offset, "offset must not be negative"); in copyElements()
198 checkArgumentNonnegative(offset, "offset must not be negative"); in copyElements()
DStreamConfigurationDuration.java60 mDurationNs = checkArgumentNonnegative(durationNs, "durationNs must be non-negative"); in StreamConfigurationDuration()
DTonemapCurve.java233 checkArgumentNonnegative(offset, "offset must not be negative"); in copyColorCurve()
/frameworks/base/core/java/com/android/internal/util/
DTokenBucket.java21 import static com.android.internal.util.Preconditions.checkArgumentNonnegative;
58 mAvailable = Math.min(checkArgumentNonnegative(tokens), mCapacity); in TokenBucket()
74 checkArgumentNonnegative(tokens); in reset()
/frameworks/base/services/core/java/com/android/server/cpu/
DCpuAvailabilityInfo.java93 Preconditions.checkArgumentNonnegative(dataTimestampUptimeMillis); in CpuAvailabilityInfo()
94 this.latestAvgAvailabilityPercent = Preconditions.checkArgumentNonnegative( in CpuAvailabilityInfo()
97 this.pastNMillisDuration = Preconditions.checkArgumentNonnegative( in CpuAvailabilityInfo()
/frameworks/base/core/java/android/permission/
DRuntimePermissionUsageInfo.java19 import static com.android.internal.util.Preconditions.checkArgumentNonnegative;
49 checkArgumentNonnegative(numUsers); in RuntimePermissionUsageInfo()
/frameworks/base/core/java/android/view/inputmethod/
DInputConnection.java382 Preconditions.checkArgumentNonnegative(beforeLength); in getSurroundingText()
383 Preconditions.checkArgumentNonnegative(afterLength); in getSurroundingText()
1456 Preconditions.checkArgumentNonnegative(start); in replaceText()
1457 Preconditions.checkArgumentNonnegative(end); in replaceText()
DInputConnectionWrapper.java81 Preconditions.checkArgumentNonnegative(n); in getTextBeforeCursor()
93 Preconditions.checkArgumentNonnegative(n); in getTextAfterCursor()
114 Preconditions.checkArgumentNonnegative(beforeLength); in getSurroundingText()
115 Preconditions.checkArgumentNonnegative(afterLength); in getSurroundingText()
DBaseInputConnection.java546 Preconditions.checkArgumentNonnegative(length); in getTextBeforeCursor()
607 Preconditions.checkArgumentNonnegative(length); in getTextAfterCursor()
640 Preconditions.checkArgumentNonnegative(beforeLength); in getSurroundingText()
641 Preconditions.checkArgumentNonnegative(afterLength); in getSurroundingText()
900 Preconditions.checkArgumentNonnegative(start); in replaceText()
901 Preconditions.checkArgumentNonnegative(end); in replaceText()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPreconditions.java203 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value, in checkArgumentNonnegative() method in Preconditions
220 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value) { in checkArgumentNonnegative() method in Preconditions
235 public static long checkArgumentNonnegative(final long value) { in checkArgumentNonnegative() method in Preconditions
251 public static long checkArgumentNonnegative(final long value, final String errorMessage) { in checkArgumentNonnegative() method in Preconditions
/frameworks/libs/modules-utils/java/com/android/internal/util/
DPreconditions.java328 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value, in checkArgumentNonnegative() method in Preconditions
345 public static @IntRange(from = 0) int checkArgumentNonnegative(final int value) { in checkArgumentNonnegative() method in Preconditions
360 public static long checkArgumentNonnegative(final long value) { in checkArgumentNonnegative() method in Preconditions
376 public static long checkArgumentNonnegative(final long value, final String errorMessage) { in checkArgumentNonnegative() method in Preconditions
/frameworks/base/core/java/android/os/storage/
DCrateInfo.java109 Preconditions.checkArgumentNonnegative(expiration, in CrateInfo()
158 Preconditions.checkArgumentNonnegative(expiration); in setExpiration()
/frameworks/base/location/java/android/location/
DGnssAutomaticGainControl.java204 Preconditions.checkArgumentNonnegative(carrierFrequencyHz); in setCarrierFrequencyHz()
DSatellitePvt.java804 Preconditions.checkArgumentNonnegative(timeOfClockSeconds); in setTimeOfClockSeconds()
822 Preconditions.checkArgumentNonnegative(timeOfEphemerisSeconds); in setTimeOfEphemerisSeconds()
/frameworks/base/core/java/android/app/usage/
DCacheQuotaHint.java122 Preconditions.checkArgumentNonnegative(uid, "Proposed uid was negative."); in setUid()
/frameworks/base/core/java/android/speech/
DAlternativeSpan.java73 Preconditions.checkArgumentNonnegative(mStartPosition, in onConstructed()
/frameworks/base/core/java/android/util/
DIntArray.java80 Preconditions.checkArgumentNonnegative(newSize); in resize()
DLongArray.java85 Preconditions.checkArgumentNonnegative(newSize); in resize()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java141 Preconditions.checkArgumentNonnegative(requiredPos, in fillWindow()
/frameworks/base/core/java/android/graphics/fonts/
DFontFamilyUpdateRequest.java203 Preconditions.checkArgumentNonnegative(index); in setIndex()
/frameworks/base/core/java/android/print/
DPrintDocumentInfo.java157 mDataSize = Preconditions.checkArgumentNonnegative(parcel.readLong()); in PrintDocumentInfo()
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java394 timeout = Preconditions.checkArgumentNonnegative(timeout, "timeout"); in requestWait()

123