Home
last modified time | relevance | path

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

12345

/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
DMotionInputHandler.java19 import static androidx.core.util.Preconditions.checkArgument;
45 checkArgument(selectionTracker != null); in MotionInputHandler()
46 checkArgument(keyProvider != null); in MotionInputHandler()
47 checkArgument(focusDelegate != null); in MotionInputHandler()
55 checkArgument(details != null); in selectItem()
56 checkArgument(hasPosition(details)); in selectItem()
57 checkArgument(hasSelectionKey(details)); in selectItem()
74 checkArgument(details != null); in focusItem()
75 checkArgument(hasSelectionKey(details)); in focusItem()
84 checkArgument(hasPosition(details)); in extendSelectionRange()
[all …]
DSelectionTracker.java19 import static androidx.core.util.Preconditions.checkArgument;
499 checkArgument(selectionId != null); in Builder()
500 checkArgument(!selectionId.trim().isEmpty()); in Builder()
501 checkArgument(recyclerView != null); in Builder()
508 checkArgument(mAdapter != null); in Builder()
509 checkArgument(keyProvider != null); in Builder()
510 checkArgument(detailsLookup != null); in Builder()
511 checkArgument(storage != null); in Builder()
529 checkArgument(predicate != null); in withSelectionPredicate()
544 checkArgument(monitor != null); in withOperationMonitor()
[all …]
DTouchInputHandler.java19 import static androidx.core.util.Preconditions.checkArgument;
61 checkArgument(detailsLookup != null); in TouchInputHandler()
62 checkArgument(selectionPredicate != null); in TouchInputHandler()
63 checkArgument(gestureStarter != null); in TouchInputHandler()
64 checkArgument(onItemActivatedListener != null); in TouchInputHandler()
65 checkArgument(onDragInitiatedListener != null); in TouchInputHandler()
66 checkArgument(hapticPerformer != null); in TouchInputHandler()
DDefaultSelectionTracker.java20 import static androidx.core.util.Preconditions.checkArgument;
85 checkArgument(selectionId != null); in DefaultSelectionTracker()
86 checkArgument(!selectionId.trim().isEmpty()); in DefaultSelectionTracker()
87 checkArgument(keyProvider != null); in DefaultSelectionTracker()
88 checkArgument(selectionPredicate != null); in DefaultSelectionTracker()
89 checkArgument(storage != null); in DefaultSelectionTracker()
105 checkArgument(callback != null); in addObserver()
131 checkArgument(other != null); in restoreSelection()
198 checkArgument(key != null); in select()
224 checkArgument(key != null); in deselect()
[all …]
DBandSelectionHelper.java19 import static androidx.core.util.Preconditions.checkArgument;
86 checkArgument(host != null); in BandSelectionHelper()
87 checkArgument(scroller != null); in BandSelectionHelper()
88 checkArgument(keyProvider != null); in BandSelectionHelper()
89 checkArgument(selectionTracker != null); in BandSelectionHelper()
90 checkArgument(bandPredicate != null); in BandSelectionHelper()
91 checkArgument(focusDelegate != null); in BandSelectionHelper()
92 checkArgument(lock != null); in BandSelectionHelper()
224 checkArgument(MotionEvents.isActionMove(e)); in onTouchEvent()
DTouchEventRouter.java19 import static androidx.core.util.Preconditions.checkArgument;
48 checkArgument(detector != null); in TouchEventRouter()
49 checkArgument(defaultDelegate != null); in TouchEventRouter()
85 checkArgument(delegate != null); in register()
DBandPredicate.java19 import static androidx.core.util.Preconditions.checkArgument;
69 checkArgument(recyclerView != null); in EmptyArea()
120 checkArgument(recyclerView != null); in NonDraggableArea()
121 checkArgument(detailsLookup != null); in NonDraggableArea()
DRange.java19 import static androidx.core.util.Preconditions.checkArgument;
83 checkArgument(position != NO_POSITION, "Position cannot be NO_POSITION."); in extendRange()
95 checkArgument(mEnd == NO_POSITION, "End has already been set."); in establishRange()
109 checkArgument(mEnd != NO_POSITION, "End must already be set."); in reviseRange()
110 checkArgument(mBegin != mEnd, "Beging and end point to same position."); in reviseRange()
DDefaultBandHost.java19 import static androidx.core.util.Preconditions.checkArgument;
53 checkArgument(recyclerView != null); in DefaultBandHost()
58 checkArgument(mBand != null); in DefaultBandHost()
59 checkArgument(keyProvider != null); in DefaultBandHost()
60 checkArgument(selectionPredicate != null); in DefaultBandHost()
DGestureSelectionHelper.java19 import static androidx.core.util.Preconditions.checkArgument;
62 checkArgument(selectionTracker != null); in GestureSelectionHelper()
63 checkArgument(view != null); in GestureSelectionHelper()
64 checkArgument(scroller != null); in GestureSelectionHelper()
65 checkArgument(lock != null); in GestureSelectionHelper()
240 checkArgument(recyclerView != null); in RecyclerViewDelegate()
DPointerDragEventInterceptor.java19 import static androidx.core.util.Preconditions.checkArgument;
44 checkArgument(eventDetailsLookup != null); in PointerDragEventInterceptor()
45 checkArgument(dragListener != null); in PointerDragEventInterceptor()
DToolHandlerRegistry.java19 import static androidx.core.util.Preconditions.checkArgument;
49 checkArgument(defaultDelegate != null); in ToolHandlerRegistry()
64 checkArgument(toolType >= 0 && toolType <= MotionEvent.TOOL_TYPE_ERASER); in set()
DOperationMonitor.java19 import static androidx.core.util.Preconditions.checkArgument;
92 checkArgument(listener != null); in addListener()
101 checkArgument(listener != null); in removeListener()
DEventBridge.java21 import static androidx.core.util.Preconditions.checkArgument;
79 checkArgument(keyProvider != null); in TrackerToAdapterBridge()
80 checkArgument(adapter != null); in TrackerToAdapterBridge()
DMouseInputHandler.java19 import static androidx.core.util.Preconditions.checkArgument;
61 checkArgument(detailsLookup != null); in MouseInputHandler()
62 checkArgument(onContextClickListener != null); in MouseInputHandler()
63 checkArgument(onItemActivatedListener != null); in MouseInputHandler()
127 checkArgument(item != null); in onItemClick()
DItemKeyProvider.java19 import static androidx.core.util.Preconditions.checkArgument;
67 checkArgument(scope == SCOPE_MAPPED || scope == SCOPE_CACHED); in ItemKeyProvider()
/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/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/support/content/src/main/java/androidx/contentpager/content/
DQuery.java19 import static androidx.core.util.Preconditions.checkArgument;
61 checkArgument(uri != null); in Query()
62 checkArgument(args != null); in Query()
63 checkArgument(callback != null); in Query()
79 checkArgument(mOffset >= 0); // mOffset must be set, mLimit is optional. in Query()
DContentPager.java19 import static androidx.core.util.Preconditions.checkArgument;
232 checkArgument(resolver != null, "'resolver' argument cannot be null."); in ContentPager()
233 checkArgument(queryRunner != null, "'queryRunner' argument cannot be null."); in ContentPager()
234 checkArgument(cursorCacheSize > 0, "'cursorCacheSize' argument must be greater than 0."); in ContentPager()
281 checkArgument(uri != null, "'uri' argument cannot be null."); in query()
282 checkArgument(queryArgs != null, "'queryArgs' argument cannot be null."); in query()
283 checkArgument(callback != null, "'callback' argument cannot be null."); in query()
527 checkArgument(offset >= 0); in createArgs()
/frameworks/base/services/net/java/android/net/util/
DInterfaceParams.java22 import static com.android.internal.util.Preconditions.checkArgument;
66 checkArgument((!TextUtils.isEmpty(name)), "impossible interface name"); in InterfaceParams()
67 checkArgument((index > 0), "invalid interface index"); in InterfaceParams()
/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/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
DTestItemKeyProvider.java19 import static androidx.core.util.Preconditions.checkArgument;
33 checkArgument(adapter != null); in TestItemKeyProvider()
/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()
/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()

12345