Home
last modified time | relevance | path

Searched refs:invoke (Results 1 – 25 of 469) sorted by relevance

12345678910>>...19

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/animation/
DMetadataAnimationHandlerTest.kt74 verify(postExitCB, never()).invoke() in executeAnimationEnd_runsCallacks()
75 verify(postEnterCB, never()).invoke() in executeAnimationEnd_runsCallacks()
82 verify(postExitCB, times(1)).invoke() in executeAnimationEnd_runsCallacks()
83 verify(postEnterCB, never()).invoke() in executeAnimationEnd_runsCallacks()
90 verify(postExitCB, times(1)).invoke() in executeAnimationEnd_runsCallacks()
91 verify(postEnterCB, times(1)).invoke() in executeAnimationEnd_runsCallacks()
102 verify(postExitCB, times(1)).invoke() in rebindSameData_executesFirstCallback()
103 verify(postExitCB2, never()).invoke() in rebindSameData_executesFirstCallback()
104 verify(postEnterCB, never()).invoke() in rebindSameData_executesFirstCallback()
115 verify(postExitCB, never()).invoke() in rebindDifferentData_executesSecondCallback()
[all …]
DAnimationBindHandlerTest.kt64 verify(callback).invoke() in registerNoAnimations_executeCallbackImmediately()
73 verify(callback).invoke() in registerStoppedAnimations_executeCallbackImmediately()
85 verify(callback, never()).invoke() in registerRunningAnimations_executeCallbackDelayed()
89 verify(callback, never()).invoke() in registerRunningAnimations_executeCallbackDelayed()
93 verify(callback, times(1)).invoke() in registerRunningAnimations_executeCallbackDelayed()
103 verify(callback, never()).invoke() in repeatedEndCallback_executeSingleCallback()
109 verify(callback, times(1)).invoke() in repeatedEndCallback_executeSingleCallback()
120 verify(callback).invoke() in registerUnregister_executeImmediately()
DColorSchemeTransitionTest.kt74 whenever(extractColor.invoke(colorScheme)).thenReturn(TARGET_COLOR) in <lambda>()
98 verify(applyColor, times(1)).invoke(DEFAULT_COLOR) in <lambda>()
107 verify(applyColor, times(1)).invoke(DEFAULT_COLOR) in <lambda>()
115 whenever(extractColor.invoke(colorScheme)).thenReturn(DEFAULT_COLOR) in <lambda>()
131 verify(applyColor, times(2)).invoke(expectedColor) // applied once in constructor in <lambda>()
143 verify(applyColor).invoke(expectedColor) in <lambda>()
154 verify(applyColor).invoke(expectedColor) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DConstraintChangesTest.kt47 sum.qqsConstraintsChanges?.invoke(constraintSet) in testSumWithoutNulls()
48 sum.qsConstraintsChanges?.invoke(constraintSet) in testSumWithoutNulls()
49 sum.largeScreenConstraintsChanges?.invoke(constraintSet) in testSumWithoutNulls()
53 inOrder.verify(mockQQS1).invoke(constraintSet) in testSumWithoutNulls()
54 inOrder.verify(mockQQS2).invoke(constraintSet) in testSumWithoutNulls()
55 inOrder.verify(mockQS1).invoke(constraintSet) in testSumWithoutNulls()
56 inOrder.verify(mockQS2).invoke(constraintSet) in testSumWithoutNulls()
57 inOrder.verify(mockLS1).invoke(constraintSet) in testSumWithoutNulls()
58 inOrder.verify(mockLS2).invoke(constraintSet) in testSumWithoutNulls()
DConstraintChangeTest.kt41 sum?.invoke(constraintSet) in testSumNonNull()
44 inOrder.verify(mock1).invoke(constraintSet) in testSumNonNull()
45 inOrder.verify(mock2).invoke(constraintSet) in testSumNonNull()
54 sum?.invoke(constraintSet) in testSumThisNull()
56 verify(mock).invoke(constraintSet) in testSumThisNull()
73 sum?.invoke(constraintSet) in testSumOtherNull()
75 verify(mock).invoke(constraintSet) in testSumOtherNull()
DShadeHeaderControllerTest.kt546 verify(chipVisibleChanges.qqsConstraintsChanges)!!.invoke(qqsConstraints) in <lambda>()
547 verify(chipVisibleChanges.qsConstraintsChanges)!!.invoke(qsConstraints) in <lambda>()
548 verify(chipVisibleChanges.largeScreenConstraintsChanges)!!.invoke(largeScreenConstraints) in <lambda>()
550 verify(chipNotVisibleChanges.qqsConstraintsChanges, Mockito.never())!!.invoke(any()) in <lambda>()
551 verify(chipNotVisibleChanges.qsConstraintsChanges, Mockito.never())!!.invoke(any()) in <lambda>()
552 verify(chipNotVisibleChanges.largeScreenConstraintsChanges, Mockito.never())!!.invoke(any()) in <lambda>()
570 verify(chipVisibleChanges.qqsConstraintsChanges, Mockito.never())!!.invoke(qqsConstraints) in <lambda>()
571 verify(chipVisibleChanges.qsConstraintsChanges, Mockito.never())!!.invoke(qsConstraints) in <lambda>()
572 verify(chipVisibleChanges.largeScreenConstraintsChanges, Mockito.never())!!.invoke( in <lambda>()
576 verify(chipNotVisibleChanges.qqsConstraintsChanges)!!.invoke(any()) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/ui/view/
DLongPressHandlingViewInteractionHandlerTest.kt59 whenever(postDelayed.invoke(any(), any())).thenAnswer { invocation -> in <lambda>()
90 verify(onLongPressDetected).invoke(downX, downY) in <lambda>()
91 verify(onSingleTapDetected, never()).invoke() in <lambda>()
105 verify(onLongPressDetected, never()).invoke(any(), any()) in <lambda>()
106 verify(onSingleTapDetected, never()).invoke() in <lambda>()
120 verify(onLongPressDetected, never()).invoke(any(), any()) in <lambda>()
121 verify(onSingleTapDetected, never()).invoke() in <lambda>()
137 verify(onLongPressDetected, never()).invoke(any(), any()) in <lambda>()
138 verify(onSingleTapDetected, never()).invoke() in <lambda>()
155 verify(onLongPressDetected, never()).invoke(any(), any()) in <lambda>()
[all …]
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DOmniFunction.java69 abstract R invoke(A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k); in invoke() method in OmniFunction
73 return invoke(o, o2, null, null, null, null, null, null, null, null, null); in apply()
82 invoke(o, o2, null, null, null, null, null, null, null, null, null); in accept()
87 invoke(null, null, null, null, null, null, null, null, null, null, null); in run()
92 return invoke(null, null, null, null, null, null, null, null, null, null, null); in get()
97 return (Boolean) invoke(o, o2, o3, o4, o5, null, null, null, null, null, null); in test()
102 return (Boolean) invoke(o, o2, o3, o4, null, null, null, null, null, null, null); in test()
107 return (Boolean) invoke(o, o2, o3, null, null, null, null, null, null, null, null); in test()
112 return (Boolean) invoke(o, o2, null, null, null, null, null, null, null, null, null); in test()
117 return (Boolean) invoke(o, null, null, null, null, null, null, null, null, null, null); in test()
[all …]
/frameworks/base/tools/locked_region_code_injection/test/lockedregioncodeinjection/
DTestTarget.java46 public static void invoke() { in invoke() method in TestTarget
57 invoke(); in synchronizedCall()
61 invoke(); in synchronizedCallReturnInt()
66 invoke(); in synchronizedCallReturnObject()
73 invoke(); in synchronizedThrowsOnUnboost()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DDefaultScreenshotActionsProviderTest.kt66 previewActionCaptor.firstValue.onClick.invoke() in previewActionAccessed_beforeScreenshotCompleted_doesNothing()
79 firstAction.invoke() in actionButtonsAccessed_beforeScreenshotCompleted_doesNothing()
80 secondAction.invoke() in actionButtonsAccessed_beforeScreenshotCompleted_doesNothing()
93 actionButtonCaptor.firstValue.invoke() in <lambda>()
112 actionButtonCaptor.firstValue.invoke() in <lambda>()
113 previewActionCaptor.firstValue.onClick.invoke() in <lambda>()
114 actionButtonCaptor.secondValue.invoke() in <lambda>()
134 actionButtonCaptor.thirdValue.invoke() in <lambda>()
150 actionButtonCaptor.thirdValue.invoke() in <lambda>()
169 actionButtonCaptor.thirdValue.invoke() in scrollChipClicked_afterUpdate_runsNewAction()
/frameworks/base/ravenwood/runtime-common-src/com/android/ravenwood/common/
DOpenJdkWorkaround.java25 "getJavaIOFileDescriptorAccess").invoke(null); in setFdInt()
27 "set", FileDescriptor.class, int.class).invoke(obj, fd, fdInt); in setFdInt()
38 "getJavaIOFileDescriptorAccess").invoke(null); in getFdInt()
40 "get", FileDescriptor.class).invoke(obj, fd); in getFdInt()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DGuestUserInteractorTest.kt155 verify(showDialog).invoke(ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true)) in createAndSwitchTo()
157 verify(dismissDialog).invoke() in createAndSwitchTo()
158 verify(selectUser).invoke(GUEST_USER_INFO.id) in createAndSwitchTo()
172 verify(showDialog).invoke(ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true)) in createAndSwitchTo_failsToCreate_doesNotSwitchTo()
174 verify(dismissDialog).invoke() in createAndSwitchTo_failsToCreate_doesNotSwitchTo()
175 verify(selectUser, never()).invoke(anyInt()) in createAndSwitchTo_failsToCreate_doesNotSwitchTo()
195 verify(switchUser).invoke(targetUserId) in exit_returnsToTargetUser()
217 verify(switchUser).invoke(expectedUserId) in exit_returnsToLastNonGuest()
240 verify(switchUser).invoke(mainUserId) in exit_lastNonGuestWasRemoved_returnsToMainUser()
263 verify(switchUser).invoke(targetUserId) in exit_guestWasEphemeral_itIsRemoved()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DAppCompatActionBar.java79 invoke(getMethod(parentView.getClass(), "setWindowCallback", in AppCompatActionBar()
159 invoke(setTitle, mWindowDecorActionBar, title); in setTitle()
167 invoke(setSubtitle, mWindowDecorActionBar, subtitle); in setSubtitle()
175 if (invoke(getMethod(mWindowActionBarClass, "hasIcon"), mWindowDecorActionBar) in setIcon()
180 invoke(setIcon, mWindowDecorActionBar, iconDrawable); in setIcon()
191 invoke(setHomeAsUp, mWindowDecorActionBar, homeAsUp); in setHomeAsUp()
221 Context themedContext = (Context)invoke( in inflateMenus()
225 Menu menuBuilder = (Menu)invoke(getMethod(mDecorToolbarClass, "getMenu"), mDecorToolbar); in inflateMenus()
229 invoke(findMethod(mDecorToolbarClass, "setMenu"), mDecorToolbar, menuBuilder, null); in inflateMenus()
291 private static Object invoke(@Nullable Method method, Object owner, Object... args) { in invoke() method in AppCompatActionBar
[all …]
/frameworks/native/include/ftl/
Doptional.h46 if (has_value()) return R(std::invoke(std::forward<F>(f), value())); in transform()
53 if (has_value()) return R(std::invoke(std::forward<F>(f), value())); in transform()
60 if (has_value()) return R(std::invoke(std::forward<F>(f), std::move(value()))); in transform()
67 if (has_value()) return R(std::invoke(std::forward<F>(f), std::move(value()))); in transform()
75 if (has_value()) return std::invoke(std::forward<F>(f), value()); in and_then()
82 if (has_value()) return std::invoke(std::forward<F>(f), value()); in and_then()
89 if (has_value()) return std::invoke(std::forward<F>(f), std::move(value())); in and_then()
96 if (has_value()) return std::invoke(std::forward<F>(f), std::move(value())); in and_then()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DCanUseIconPredicateTest.kt52 assertThat(underTest.invoke(user2Icon)).isFalse() in testReturnsFalseForDifferentUser()
65 assertThat(underTest.invoke(user1Icon)).isTrue() in testReturnsTrueForCorrectUser()
72 assertThat(underTest.invoke(uriIcon)).isTrue() in testReturnsTrueForUriWithoutUser()
79 assertThat(underTest.invoke(bitmapIcon)).isTrue() in testReturnsTrueForNonUriIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DLog.kt24 Log.d(tag, messageLambda.invoke()) in logD()
31 Log.v(tag, messageLambda.invoke()) in logV()
38 Log.i(tag, messageLambda.invoke()) in logI()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DFakeExecutorTest.java232 checkRunCounts.invoke(0, 0, 0, 0); in testExecutionOrder()
240 checkRunCounts.invoke(1, 0, 0, 0); in testExecutionOrder()
242 checkRunCounts.invoke(1, 1, 0, 0); in testExecutionOrder()
244 checkRunCounts.invoke(1, 1, 1, 0); in testExecutionOrder()
246 checkRunCounts.invoke(1, 1, 1, 1); in testExecutionOrder()
255 checkRunCounts.invoke(1, 2, 1, 2); in testExecutionOrder()
258 checkRunCounts.invoke(1, 2, 2, 2); in testExecutionOrder()
261 checkRunCounts.invoke(2, 2, 2, 2); in testExecutionOrder()
270 checkRunCounts.invoke(3, 3, 2, 2); in testExecutionOrder()
273 checkRunCounts.invoke(3, 3, 2, 3); in testExecutionOrder()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaHost.kt216 visibleChangedListeners.forEach { it.invoke(visible) } in <lambda>()
225 changedListener?.invoke() in <lambda>()
233 changedListener?.invoke() in <lambda>()
241 changedListener?.invoke() in <lambda>()
249 changedListener?.invoke() in <lambda>()
257 changedListener?.invoke() in <lambda>()
267 changedListener?.invoke() in <lambda>()
276 changedListener?.invoke() in <lambda>()
287 changedListener?.invoke() in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaTimeoutListenerTest.kt161 verify(timeoutCallback, never()).invoke(anyString(), anyBoolean()) in testOnMediaDataLoaded_registersTimeout_whenPaused()
272 verify(timeoutCallback).invoke(eq(KEY), eq(true)) in testTimeoutCallback_invokedIfTimeout()
296 verify(sessionCallback).invoke(eq(KEY)) in testOnSessionDestroyed_active_clearsTimeout()
317 verify(timeoutCallback).invoke(eq(KEY), eq(false)) in testSessionDestroyed_thenRestarts_resetsTimeout()
335 verify(sessionCallback, never()).invoke(eq(KEY)) in testOnSessionDestroyed_resume_continuesTimeout()
348 verify(timeoutCallback, never()).invoke(anyString(), anyBoolean()) in testOnMediaDataLoaded_activeToResume_registersTimeout()
366 verify(timeoutCallback, never()).invoke(anyString(), anyBoolean()) in testOnMediaDataLoaded_pausedToResume_updatesTimeout()
377 verify(timeoutCallback, never()).invoke(anyString(), anyBoolean()) in testOnMediaDataLoaded_resumption_registersTimeout()
418 verify(stateCallback, never()).invoke(eq(KEY), any()) in testOnMediaDataLoaded_playbackActionsChanged_noCallback()
432 verify(stateCallback).invoke(eq(KEY), eq(playingState!!)) in testOnPlaybackStateChanged_playbackActionsChanged_sendsCallback()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlActionCoordinatorImplTest.kt119 verify(action).invoke() in testToggleRunsWhenUnlocked()
130 verify(action, never()).invoke() in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
135 verify(action, never()).invoke() in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
140 verify(action).invoke() in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
153 verify(action).invoke() in testToggleRunsWhenLockedAndAuthNotRequired()
182 verify(action, never()).invoke() in testToggleDoesNotRunsWhenLockedAndAuthRequired()
194 verify(action, never()).invoke() in testNullControl()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/settings/
DControlsSettingsDialogManagerImplTest.kt125 verify(completedRunnable).invoke() in <lambda>()
137 verify(completedRunnable).invoke() in <lambda>()
197 verify(completedRunnable).invoke() in <lambda>()
234 verify(completedRunnable).invoke() in <lambda>()
245 .invoke() in <lambda>()
250 verify(completedRunnable).invoke() in <lambda>()
264 verify(completedRunnable).invoke() in <lambda>()
302 verify(completedRunnable).invoke() in <lambda>()
314 verify(completedRunnable, never()).invoke() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/
DSwipeGestureListener.kt48 onDismiss.invoke(xVelocity) in onMotionEvent()
54 onDismiss.invoke(xVelocity) in onMotionEvent()
58 onCancel.invoke() in onMotionEvent()
DScreenshotShelfView.kt80 userInteractionCallback?.invoke() in <lambda>()
81 onTouchInterceptListener?.invoke(ev) ?: false in <lambda>()
101 userInteractionCallback?.invoke() in <lambda>()
207 userInteractionCallback?.invoke() in <lambda>()
212 userInteractionCallback?.invoke() in <lambda>()
219 onTouchInterceptListener?.invoke(ev) in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/coroutines/
DFlow.kt83 operator fun invoke(): T in invoke() method
87 override operator fun invoke(): T = block() in invoke() method in com.android.systemui.coroutines.FlowValueImpl
88 override fun getValue(thisRef: Any?, property: KProperty<*>): T = invoke() in invoke()
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/hierarchy/
DCustomHierarchyHelper.java55 Object toReturn = isCheckable.invoke(fromView); in isCheckable()
63 Object toReturn = isCheckable.invoke(fromView); in isCheckable()
71 Object toReturn = isCheckable.invoke(fromView); in isCheckable()

12345678910>>...19