Home
last modified time | relevance | path

Searched refs:magnetizedObject (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/magnetictarget/
DMagnetizedObjectTest.kt68 private lateinit var magnetizedObject: MagnetizedObject<*> in <lambda>() variable in com.android.wm.shell.common.magnetictarget.MagnetizedObjectTest
119 magnetizedObject = object : MagnetizedObject<MagnetizedObjectTest>( in <lambda>()
137 magnetizedObject.magnetListener = magnetListener in <lambda>()
138 magnetizedObject.addTarget(magneticTarget) in <lambda>()
146 assertFalse(magnetizedObject.maybeConsumeMotionEvent(getMotionEvent( in <lambda>()
150 assertFalse(magnetizedObject.maybeConsumeMotionEvent(getMotionEvent( in <lambda>()
155 assertFalse(magnetizedObject.maybeConsumeMotionEvent(getMotionEvent( in <lambda>()
161 assertTrue(magnetizedObject.maybeConsumeMotionEvent(getMotionEvent( in <lambda>()
167 assertTrue(magnetizedObject.maybeConsumeMotionEvent(getMotionEvent( in <lambda>()
171 assertFalse(magnetizedObject.maybeConsumeMotionEvent(getMotionEvent( in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DDragToInteractAnimationController.java110 MagnetizedObject<?> magnetizedObject = pair.first; in setMagnetListener() local
111 magnetizedObject.setMagnetListener(magnetListener); in setMagnetListener()
122 MagnetizedObject<?> magnetizedObject = pair.first; in maybeConsumeDownMotionEvent() local
123 magnetizedObject.maybeConsumeMotionEvent(event); in maybeConsumeDownMotionEvent()
130 MagnetizedObject<MenuView> magnetizedObject = set.getValue().first; in maybeConsumeMotionEvent() local
131 if (magnetizedObject.maybeConsumeMotionEvent(event)) { in maybeConsumeMotionEvent()
194 MagnetizedObject<MenuView> magnetizedObject = new MagnetizedObject<MenuView>( in createMagnetizedObjectAndAnimator() local
216 magnetizedObject.setFlingToTargetEnabled(false); in createMagnetizedObjectAndAnimator()
217 magnetizedObject.addTarget(new MagnetizedObject.MagneticTarget( in createMagnetizedObjectAndAnimator()
245 mInteractMap.put(circleView.getId(), new Pair<>(magnetizedObject, animator)); in createMagnetizedObjectAndAnimator()