Home
last modified time | relevance | path

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

123

/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/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsService.java80 Preconditions.checkArgument(ids != null); in updateForegroundState()
81 Preconditions.checkArgument(notifications != null); in updateForegroundState()
82 Preconditions.checkArgument(ids.length == notifications.length); in updateForegroundState()
DMtpFileWriter.java55 Preconditions.checkArgument(size <= bytes.length); in write()
/frameworks/base/core/java/com/android/internal/util/
DBitUtils.java40 Preconditions.checkArgument(a.length == b.length, "Inputs must be of same size"); in maskedEquals()
42 Preconditions.checkArgument(a.length == mask.length, "Mask must be of same size as inputs"); in maskedEquals()
DPreconditions.java31 public static void checkArgument(boolean expression) { in checkArgument() method in Preconditions
45 public static void checkArgument(boolean expression, final Object errorMessage) { in checkArgument() method in Preconditions
60 public static void checkArgument(boolean expression, in checkArgument() method in Preconditions
/frameworks/base/core/java/android/view/textclassifier/
DTextLanguage.java118 Preconditions.checkArgument(startIndex >= 0); in Builder()
119 Preconditions.checkArgument(endIndex > startIndex); in Builder()
DTextSelection.java125 Preconditions.checkArgument(startIndex >= 0); in Builder()
126 Preconditions.checkArgument(endIndex > startIndex); in Builder()
DTextClassification.java164 Preconditions.checkArgument(context != null); in createStartActivityOnClickListener()
165 Preconditions.checkArgument(intent != null); in createStartActivityOnClickListener()
DTextClassifierImpl.java168 Preconditions.checkArgument(text != null); in getLinks()
426 Preconditions.checkArgument(text != null); in validateInput()
427 Preconditions.checkArgument(startIndex >= 0); in validateInput()
428 Preconditions.checkArgument(endIndex <= text.length()); in validateInput()
429 Preconditions.checkArgument(endIndex > startIndex); in validateInput()
574 Preconditions.checkArgument(text != null); in apply()
DTextClassificationManager.java87 Preconditions.checkArgument(text != null); in detectLanguages()
/frameworks/base/core/java/android/companion/
DBluetoothLeDeviceFilter.java23 import static com.android.internal.util.Preconditions.checkArgument;
340 checkArgument(rawDataFilterMask == null || in setRawDataFilter()
408 checkArgument(length > 0, "Range must be non-empty"); in checkRangeNotEmpty()
414 checkArgument(TextUtils.length(prefix) <= getRenamePrefixLengthLimit(), in setRename()
/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java249 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()
/frameworks/support/compat/java/android/support/v4/util/
DPreconditions.java34 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
/frameworks/base/core/java/android/service/autofill/
DSaveInfo.java308 Preconditions.checkArgument(ids != null && ids.length > 0, in assertValid()
312 Preconditions.checkArgument(id != null, in assertValid()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiCompat.java641 Preconditions.checkArgument(start <= end, "start should be <= than end");
648 Preconditions.checkArgument(start <= charSequence.length(),
650 Preconditions.checkArgument(end <= charSequence.length(),
DMetadataRepo.java192 Preconditions.checkArgument(data.getCodepointsLength() > 0, in put()
/frameworks/data-binding/gradlePlugin/src/main/java/android/databinding/tool/
DDataBindingExcludeGeneratedTask.java109 Preconditions.checkArgument(generatedClassListFile.exists(), in readGeneratedClasses()
/frameworks/support/compat/java/android/support/v4/provider/
DFontRequest.java82 Preconditions.checkArgument(certificates != 0); in FontRequest()
/frameworks/base/core/java/android/app/usage/
DCacheQuotaHint.java133 Preconditions.checkArgument((quota >= QUOTA_NOT_SET)); in setQuota()
/frameworks/base/services/core/java/com/android/server/storage/
DAppFuseBridge.java62 Preconditions.checkArgument(mScopes.indexOfKey(mountScope.mountId) < 0); in addBridge()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java20 import static com.android.internal.util.Preconditions.checkArgument;
221 checkArgument(accessLevel >= NetworkStatsAccess.Level.DEVICESUMMARY); in buildRequestInfo()
/frameworks/base/core/java/android/print/
DPrintDocumentInfo.java150 Preconditions.checkArgument(mPageCount == PAGE_COUNT_UNKNOWN || mPageCount > 0); in PrintDocumentInfo()
DPrinterCapabilitiesInfo.java239 Preconditions.checkArgument(mMediaSizes.size() > mDefaults[PROPERTY_MEDIA_SIZE]); in PrinterCapabilitiesInfo()
240 Preconditions.checkArgument(mResolutions.size() > mDefaults[PROPERTY_RESOLUTION]); in PrinterCapabilitiesInfo()
/frameworks/support/wear/tests/src/android/support/wear/widget/util/
DArcSwipe.java72 Preconditions.checkArgument(bounds.height() == bounds.width()); in ArcSwipe()
/frameworks/base/core/java/android/hardware/usb/
DUsbRequest.java249 Preconditions.checkArgument(!(buffer.isReadOnly() && !isSend), "buffer can not be " in queue()

123