Home
last modified time | relevance | path

Searched refs:PipTransitionState (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip2/
DPipTransitionStateTest.java26 import com.android.wm.shell.pip2.phone.PipTransitionState;
43 private PipTransitionState mPipTransitionState;
44 private PipTransitionState.PipTransitionStateChangedListener mStateChangedListener;
52 mPipTransitionState = new PipTransitionState(mMainHandler); in setUp()
53 mPipTransitionState.setState(PipTransitionState.UNDEFINED); in setUp()
60 Assert.assertEquals(PipTransitionState.ENTERED_PIP, newState); in testEnteredState_withoutExtra()
64 mPipTransitionState.setState(PipTransitionState.ENTERED_PIP); in testEnteredState_withoutExtra()
71 Assert.assertEquals(PipTransitionState.ENTERED_PIP, newState); in testEnteredState_withExtra()
79 mPipTransitionState.setState(PipTransitionState.ENTERED_PIP, extra); in testEnteredState_withExtra()
85 mPipTransitionState.setState(PipTransitionState.ENTERING_PIP); in testEnteringState_withoutExtra()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/pip/
DPip2Module.java47 import com.android.wm.shell.pip2.phone.PipTransitionState;
76 @NonNull PipTransitionState pipStackListenerController) { in providePipTransition()
96 PipTransitionState pipTransitionState, in providePipController()
114 PipTransitionState pipTransitionState) { in providePipScheduler()
139 @NonNull PipTransitionState pipTransitionState, in providePipTouchHandler()
162 PipTransitionState pipTransitionState) { in providePipMotionHelper()
170 static PipTransitionState providePipTransitionState(@ShellMainThread Handler handler) { in providePipTransitionState()
171 return new PipTransitionState(handler); in providePipTransitionState()
DTvPipModule.java46 import com.android.wm.shell.pip.PipTransitionState;
83 PipTransitionState pipTransitionState, in providePip()
168 PipTransitionState pipTransitionState, in provideTvPipTransition()
198 static PipTransitionState providePipTransitionState() { in providePipTransitionState()
199 return new PipTransitionState(); in providePipTransitionState()
209 PipTransitionState pipTransitionState, in providePipTaskOrganizer()
DPip1Module.java53 import com.android.wm.shell.pip.PipTransitionState;
97 PipTransitionState pipTransitionState, in providePip1()
158 static PipTransitionState providePipTransitionState() { in providePipTransitionState()
159 return new PipTransitionState(); in providePipTransitionState()
166 PipTransitionState pipTransitionState, in providePipTaskOrganizer()
194 PipTransitionState pipTransitionState, PhonePipMenuController pipMenuController, in providePipTransition()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTransition.java63 PipTransitionState.PipTransitionStateChangedListener {
87 private final PipTransitionState mPipTransitionState;
120 PipTransitionState pipTransitionState) { in PipTransition()
213 mPipTransitionState.setState(PipTransitionState.ENTERING_PIP, extra); in startAnimation()
231 mPipTransitionState.setState(PipTransitionState.EXITING_PIP); in startAnimation()
277 mPipTransitionState.setState(PipTransitionState.CHANGING_PIP_BOUNDS, extra); in startResizeAnimation()
352 mPipTransitionState.setState(PipTransitionState.ENTERED_PIP); in startOverlayFadeoutAnimation()
417 mPipTransitionState.setState(PipTransitionState.EXITED_PIP); in startExpandAnimation()
427 mPipTransitionState.setState(PipTransitionState.EXITED_PIP); in removePipImmediately()
518 } else if (mPipTransitionState.getState() == PipTransitionState.ENTERING_PIP) { in onClientDrawAtTransitionEnd()
[all …]
DPipController.java70 PipTransitionState.PipTransitionStateChangedListener,
87 private final PipTransitionState mPipTransitionState;
127 PipTransitionState pipTransitionState, in PipController()
164 PipTransitionState pipTransitionState, in create()
295 mPipTransitionState.setState(PipTransitionState.SWIPING_TO_PIP, extra); in onSwipePipToHomeAnimationStart()
311 public void onPipTransitionStateChanged(@PipTransitionState.TransitionState int oldState, in onPipTransitionStateChanged()
312 @PipTransitionState.TransitionState int newState, @Nullable Bundle extra) { in onPipTransitionStateChanged()
313 if (newState == PipTransitionState.SWIPING_TO_PIP) { in onPipTransitionStateChanged()
325 } else if (newState == PipTransitionState.ENTERED_PIP) { in onPipTransitionStateChanged()
DPipScheduler.java56 private final PipTransitionState mPipTransitionState;
98 PipTransitionState pipTransitionState) { in PipScheduler()
187 mPipTransitionState.setState(PipTransitionState.CHANGED_PIP_BOUNDS); in scheduleFinishResizePip()
190 mPipTransitionState.setState(PipTransitionState.CHANGED_PIP_BOUNDS); in scheduleFinishResizePip()
DPipMotionHelper.java62 PipTransitionState.PipTransitionStateChangedListener {
82 private @NonNull PipTransitionState mPipTransitionState;
169 PipBoundsAlgorithm pipBoundsAlgorithm, PipTransitionState pipTransitionState) { in PipMotionHelper()
641 mPipTransitionState.setState(PipTransitionState.SCHEDULED_BOUNDS_CHANGE, extra);
692 public void onPipTransitionStateChanged(@PipTransitionState.TransitionState int oldState,
693 @PipTransitionState.TransitionState int newState,
696 case PipTransitionState.SCHEDULED_BOUNDS_CHANGE:
708 mPipTransitionState.postState(PipTransitionState.CHANGED_PIP_BOUNDS);
717 case PipTransitionState.CHANGING_PIP_BOUNDS:
737 case PipTransitionState.EXITING_PIP:
DPipResizeGestureHandler.java59 PipTransitionState.PipTransitionStateChangedListener {
71 private final PipTransitionState mPipTransitionState;
122 PipTransitionState pipTransitionState, in PipResizeGestureHandler()
454 mPipTransitionState.setState(PipTransitionState.SCHEDULED_BOUNDS_CHANGE, extra);
517 public void onPipTransitionStateChanged(@PipTransitionState.TransitionState int oldState, in onPipTransitionStateChanged()
518 @PipTransitionState.TransitionState int newState, @Nullable Bundle extra) { in onPipTransitionStateChanged()
520 case PipTransitionState.SCHEDULED_BOUNDS_CHANGE: in onPipTransitionStateChanged()
540 case PipTransitionState.CHANGING_PIP_BOUNDS: in onPipTransitionStateChanged()
DPipTouchHandler.java77 public class PipTouchHandler implements PipTransitionState.PipTransitionStateChangedListener {
88 @NonNull private final PipTransitionState mPipTransitionState;
179 @NonNull PipTransitionState pipTransitionState, in PipTouchHandler()
1087 public void onPipTransitionStateChanged(@PipTransitionState.TransitionState int oldState,
1088 @PipTransitionState.TransitionState int newState,
1091 case PipTransitionState.ENTERED_PIP:
1095 case PipTransitionState.EXITED_PIP:
1099 case PipTransitionState.SCHEDULED_BOUNDS_CHANGE:
1102 case PipTransitionState.CHANGED_PIP_BOUNDS:
DPipTransitionState.java64 public class PipTransitionState { class
161 public PipTransitionState(@ShellMainThread Handler handler) { in PipTransitionState() method in PipTransitionState
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipTaskOrganizer.java224 if (mPipTransitionState.getTransitionState() != PipTransitionState.EXITING_PIP
330 protected PipTransitionState mPipTransitionState;
379 @NonNull PipTransitionState pipTransitionState, in PipTaskOrganizer()
459 return mPipTransitionState.getTransitionState() == PipTransitionState.ENTRY_SCHEDULED; in isEntryScheduled()
576 mPipTransitionState.setTransitionState(PipTransitionState.UNDEFINED); in abortSwipePipToHome()
607 || mPipTransitionState.getTransitionState() == PipTransitionState.EXITING_PIP in exitPip()
623 mPipTransitionState.setTransitionState(PipTransitionState.ENTERED_PIP); in exitPip()
681 mPipTransitionState.setTransitionState(PipTransitionState.EXITING_PIP); in exitPip()
778 mPipTransitionState.setTransitionState(PipTransitionState.EXITING_PIP); in removePip()
816 mPipTransitionState.setTransitionState(PipTransitionState.TASK_APPEARED); in onTaskAppeared()
[all …]
DPipTransitionState.java34 public class PipTransitionState { class
69 public PipTransitionState() { in PipTransitionState() method in PipTransitionState
DPipTransition.java41 import static com.android.wm.shell.pip.PipTransitionState.ENTERED_PIP;
107 private final PipTransitionState mPipTransitionState;
164 PipTransitionState pipTransitionState, in PipTransition()
352 mPipTransitionState.setTransitionState(PipTransitionState.EXITING_PIP); in handleRequest()
979 mPipTransitionState.setTransitionState(PipTransitionState.ENTERING_PIP); in startEnterAnimation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipTaskOrganizer.java39 import com.android.wm.shell.pip.PipTransitionState;
53 @NonNull PipTransitionState pipTransitionState, in TvPipTaskOrganizer()
DTvPipTransition.java32 import static com.android.wm.shell.pip.PipTransitionState.ENTERED_PIP;
33 import static com.android.wm.shell.pip.PipTransitionState.ENTERING_PIP;
34 import static com.android.wm.shell.pip.PipTransitionState.EXITING_PIP;
35 import static com.android.wm.shell.pip.PipTransitionState.UNDEFINED;
72 import com.android.wm.shell.pip.PipTransitionState;
89 private final PipTransitionState mPipTransitionState;
128 PipTransitionState pipTransitionState, in TvPipTransition()
DTvPipController.java59 import com.android.wm.shell.pip.PipTransitionState;
126 private final PipTransitionState mPipTransitionState;
162 PipTransitionState pipTransitionState, in create()
206 PipTransitionState pipTransitionState, in TvPipController()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipController.java94 import com.android.wm.shell.pip.PipTransitionState;
207 private PipTransitionState mPipTransitionState;
400 PipTransitionState pipTransitionState, in create()
441 PipTransitionState pipTransitionState, in PipController()
498 final boolean wasInPip = PipTransitionState.isInPip(oldState); in onInit()
499 final boolean nowInPip = PipTransitionState.isInPip(newState); in onInit()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipTaskOrganizerTest.java97 private PipTransitionState mPipTransitionState;
113 mPipTransitionState = new PipTransitionState(); in setUp()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPipControllerTest.java70 import com.android.wm.shell.pip.PipTransitionState;
106 @Mock private PipTransitionState mMockPipTransitionState;