Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
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/startop/view_compiler/dex_builder_test/src/android/startop/test/
DDexBuilderTest.java49 Assert.assertEquals(5, method.invoke(null)); in return5()
57 Assert.assertEquals(5, method.invoke(null)); in returnInteger5()
65 Assert.assertEquals(5, method.invoke(null, 5)); in returnParam()
66 Assert.assertEquals(42, method.invoke(null, 42)); in returnParam()
74 Assert.assertEquals(13, method.invoke(null, "Hello, World!")); in returnStringLength()
82 Assert.assertEquals(5, method.invoke(null, 0)); in returnIfZero()
83 Assert.assertEquals(3, method.invoke(null, 17)); in returnIfZero()
91 Assert.assertEquals(3, method.invoke(null, 0)); in returnIfNotZero()
92 Assert.assertEquals(5, method.invoke(null, 17)); in returnIfNotZero()
100 Assert.assertEquals(2, method.invoke(null)); in backwardsBranch()
[all …]
/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.kt501 verify(chipVisibleChanges.qqsConstraintsChanges)!!.invoke(qqsConstraints) in <lambda>()
502 verify(chipVisibleChanges.qsConstraintsChanges)!!.invoke(qsConstraints) in <lambda>()
503 verify(chipVisibleChanges.largeScreenConstraintsChanges)!!.invoke(largeScreenConstraints) in <lambda>()
505 verify(chipNotVisibleChanges.qqsConstraintsChanges, Mockito.never())!!.invoke(any()) in <lambda>()
506 verify(chipNotVisibleChanges.qsConstraintsChanges, Mockito.never())!!.invoke(any()) in <lambda>()
507 verify(chipNotVisibleChanges.largeScreenConstraintsChanges, Mockito.never())!!.invoke(any()) in <lambda>()
525 verify(chipVisibleChanges.qqsConstraintsChanges, Mockito.never())!!.invoke(qqsConstraints) in <lambda>()
526 verify(chipVisibleChanges.qsConstraintsChanges, Mockito.never())!!.invoke(qsConstraints) in <lambda>()
527 verify(chipVisibleChanges.largeScreenConstraintsChanges, Mockito.never())!!.invoke( in <lambda>()
531 verify(chipNotVisibleChanges.qqsConstraintsChanges)!!.invoke(any()) in <lambda>()
[all …]
/frameworks/base/tools/locked_region_code_injection/test/lockedregioncodeinjection/
DTestTarget.java34 public static void invoke() { in invoke() method in TestTarget
45 invoke(); in synchronizedCall()
49 invoke(); in synchronizedCallReturnInt()
54 invoke(); in synchronizedCallReturnObject()
61 invoke(); in synchronizedThrowsOnUnboost()
/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()
78 return invoke(o, null, null, null, null, null, null, null, null, null, null); in apply()
87 invoke(o, o2, null, null, null, null, null, null, null, null, null); in accept()
92 invoke(o, null, null, null, null, null, null, null, null, null, null); in accept()
97 invoke(null, null, null, null, null, null, null, null, null, null, null); in run()
102 return invoke(null, null, null, null, null, null, null, null, null, null, null); in get()
107 return (Boolean) invoke(o, o2, o3, o4, o5, null, null, null, null, null, null); in test()
112 return (Boolean) invoke(o, o2, o3, o4, null, null, null, null, null, null, null); in test()
117 return (Boolean) invoke(o, o2, o3, null, null, null, null, null, null, null, null); in test()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/ui/view/
DLongPressHandlingViewInteractionHandlerTest.kt59 whenever(postDelayed.invoke(any(), any())).thenAnswer { invocation -> in <lambda>()
89 verify(onLongPressDetected).invoke(downX, downY) in <lambda>()
90 verify(onSingleTapDetected, never()).invoke() in <lambda>()
104 verify(onLongPressDetected, never()).invoke(any(), any()) in <lambda>()
105 verify(onSingleTapDetected, never()).invoke() in <lambda>()
119 verify(onLongPressDetected, never()).invoke(any(), any()) in <lambda>()
120 verify(onSingleTapDetected, never()).invoke() in <lambda>()
136 verify(onLongPressDetected, never()).invoke(any(), any()) in <lambda>()
137 verify(onSingleTapDetected, never()).invoke() in <lambda>()
154 verify(onLongPressDetected, never()).invoke(any(), any()) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DGuestUserInteractorTest.kt141 verify(showDialog).invoke(ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true)) in createAndSwitchTo()
143 verify(dismissDialog).invoke() in createAndSwitchTo()
144 verify(selectUser).invoke(GUEST_USER_INFO.id) in createAndSwitchTo()
158 verify(showDialog).invoke(ShowDialogRequestModel.ShowUserCreationDialog(isGuest = true)) in createAndSwitchTo - fails to create - does not switch to()
160 verify(dismissDialog).invoke() in createAndSwitchTo - fails to create - does not switch to()
161 verify(selectUser, never()).invoke(anyInt()) in createAndSwitchTo - fails to create - does not switch to()
181 verify(switchUser).invoke(targetUserId) in exit - returns to target user()
203 verify(switchUser).invoke(expectedUserId) in exit - returns to last non-guest()
224 verify(switchUser).invoke(UserHandle.USER_SYSTEM) in exit - last non-guest was removed - returns to system()
246 verify(switchUser).invoke(targetUserId) in exit - guest was ephemeral - it is removed()
[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/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DFakeExecutorTest.java199 checkRunCounts.invoke(0, 0, 0, 0); in testExecutionOrder()
207 checkRunCounts.invoke(1, 0, 0, 0); in testExecutionOrder()
209 checkRunCounts.invoke(1, 1, 0, 0); in testExecutionOrder()
211 checkRunCounts.invoke(1, 1, 1, 0); in testExecutionOrder()
213 checkRunCounts.invoke(1, 1, 1, 1); in testExecutionOrder()
222 checkRunCounts.invoke(1, 2, 1, 2); in testExecutionOrder()
225 checkRunCounts.invoke(1, 2, 2, 2); in testExecutionOrder()
228 checkRunCounts.invoke(2, 2, 2, 2); in testExecutionOrder()
237 checkRunCounts.invoke(3, 3, 2, 2); in testExecutionOrder()
240 checkRunCounts.invoke(3, 3, 2, 3); in testExecutionOrder()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/
DExitPipTransition.kt59 this.invoke("hasPipWindow") { in pipWindowBecomesInvisible()
63 }.then().invoke("!hasPipWindow") { in pipWindowBecomesInvisible()
71 this.invoke("hasPipWindow") { in pipWindowBecomesInvisible()
73 }.then().invoke("!hasPipWindow") { in pipWindowBecomesInvisible()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/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/src/com/android/systemui/media/controls/ui/
DMediaHost.kt210 visibleChangedListeners.forEach { it.invoke(visible) } in <lambda>()
219 changedListener?.invoke() in <lambda>()
227 changedListener?.invoke() in <lambda>()
235 changedListener?.invoke() in <lambda>()
243 changedListener?.invoke() in <lambda>()
253 changedListener?.invoke() in <lambda>()
262 changedListener?.invoke() in <lambda>()
273 changedListener?.invoke() in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlActionCoordinatorImplTest.kt124 verify(action).invoke() in testToggleRunsWhenUnlocked()
135 verify(action, never()).invoke() in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
140 verify(action, never()).invoke() in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
145 verify(action).invoke() in testToggleDoesNotRunWhenLockedThenRunsWhenUnlocked()
159 verify(action).invoke() in testToggleRunsWhenLockedAndAuthNotRequired()
189 verify(action, never()).invoke() in testToggleDoesNotRunsWhenLockedAndAuthRequired()
201 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/tests/utils/src/com/android/systemui/coroutines/
DFlow.kt56 operator fun invoke(): T? in invoke() method
60 override operator fun invoke(): T? = block() in invoke() method in com.android.systemui.coroutines.FlowValueImpl
61 override fun getValue(thisRef: Any?, property: KProperty<*>): T? = invoke() in invoke()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DBiometricDisplayListenerTest.java123 verify(mOnChangedCallback).invoke(); in detectsRotationChanges_forUdfps_relativeToRotationWhenEnabled()
161 verify(mOnChangedCallback).invoke(); in callsOnChanged_forUdfps_onlyWhenRotationChanges()
163 verify(mOnChangedCallback, never()).invoke(); in callsOnChanged_forUdfps_onlyWhenRotationChanges()
169 verify(mOnChangedCallback, times(2)).invoke(); in callsOnChanged_forUdfps_onlyWhenRotationChanges()
171 verify(mOnChangedCallback, never()).invoke(); in callsOnChanged_forUdfps_onlyWhenRotationChanges()
193 verify(mOnChangedCallback, times(2)).invoke(); in callsOnChanged_forSideFingerprint_whenAnythingDisplayChanges()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DConditionalRestarterTest.kt83 conditionA.retryFn?.invoke() in restart_WaitsForConditionA()
100 conditionB.retryFn?.invoke() in restart_WaitsForConditionB()
119 conditionB.retryFn?.invoke() in restart_WaitsForAllConditions()
125 conditionA.retryFn?.invoke() in restart_WaitsForAllConditions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/
DOnBackAnimationCallbackExtensionTest.kt45 verify(onBackProgress).invoke(BackTransformation(0f, 0f, 1f)) in onBackProgressed_shouldInvoke_onBackProgress()
54 verify(onBackStart).invoke(backEvent) in onBackStarted_shouldInvoke_onBackStart()
61 verify(onBackInvoke).invoke() in onBackInvoked_shouldInvoke_onBackInvoke()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DSupportPreferencesUtil.java51 import static com.android.layoutlib.common.util.ReflectionUtils.invoke;
106 invoke(getAccessibleMethod(preferenceInflater.getClass(), "inflate", in createInflatedPreference()
169 (Integer) invoke(getMethod(preferenceGroupAdapter.getClass(), "getItemCount"), in setUpPreferencesListView()
182 Long id = (Long) invoke(getItemId, preferenceGroupAdapter, i); in setUpPreferencesListView()
188 Integer type = (Integer) invoke(getItemViewType, preferenceGroupAdapter, i); in setUpPreferencesListView()
189 Object viewHolder = invoke(onCreateViewHolder, preferenceGroupAdapter, listView, type); in setUpPreferencesListView()
193 invoke(getMethod(preferenceGroupAdapter.getClass(), "onBindViewHolder", in setUpPreferencesListView()
250 invoke(getMethod(preferenceManager.getClass(), "createPreferenceScreen", in inflatePreference()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTestUtils.java74 return methodReflection.invoke(null, params); in invokeStaticMethod()
98 return methodReflection.invoke(null, params); in invokeStaticMethodThrowsException()
122 return methodReflection.invoke(caller, params); in invokeNonStaticMethod()
147 return methodReflection.invoke(caller, params); in invokeNonStaticMethodThrowsException()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/
DKeyguardTransitionAnimationFlow.kt77 onStart?.invoke() in <lambda>()
102 CANCELED -> onCancel?.invoke() in <lambda>()
103 FINISHED -> onFinish?.invoke() in <lambda>()

1234567891011