/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/hidedisplaycutout/ |
D | HideDisplayCutoutOrganizerTest.java | 73 private HideDisplayCutoutOrganizer mOrganizer; field in HideDisplayCutoutOrganizerTest 103 mOrganizer = Mockito.spy(organizer); in setUp() 104 doNothing().when(mOrganizer).unregisterOrganizer(); in setUp() 105 doNothing().when(mOrganizer).applyBoundsAndOffsets(any(), any(), any(), any()); in setUp() 106 doNothing().when(mOrganizer).applyTransaction(any(), any()); in setUp() 119 doReturn(infoList).when(mOrganizer).registerOrganizer( in setUp() 125 doReturn(mFakeStatusBarHeightPortrait).when(mOrganizer).getStatusBarHeight(); in testEnableHideDisplayCutout() 126 mOrganizer.enableHideDisplayCutout(); in testEnableHideDisplayCutout() 128 verify(mOrganizer).registerOrganizer(DisplayAreaOrganizer.FEATURE_HIDE_DISPLAY_CUTOUT); in testEnableHideDisplayCutout() 129 verify(mOrganizer).addDisplayAreaInfoAndLeashToMap(mDisplayAreaInfo, mLeash); in testEnableHideDisplayCutout() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ |
D | ShellTaskOrganizerTests.java | 93 private ShellTaskOrganizer mOrganizer; field in ShellTaskOrganizerTests 139 mOrganizer = spy(new ShellTaskOrganizer(mShellInit, mShellCommandHandler, in setUp() 166 mOrganizer.registerOrganizer(); in testTaskLeashReleasedAfterVanished() 167 mOrganizer.onTaskAppeared(taskInfo, taskLeash); in testTaskLeashReleasedAfterVanished() 169 mOrganizer.onTaskVanished(taskInfo); in testTaskLeashReleasedAfterVanished() 175 mOrganizer.addListenerForType(new TrackingTaskListener(), TASK_LISTENER_TYPE_MULTI_WINDOW); in testOneListenerPerType() 177 mOrganizer.addListenerForType( in testOneListenerPerType() 197 mOrganizer.registerOrganizer(); in testRegisterWithExistingTasks() 201 mOrganizer.addListenerForType(listener, TASK_LISTENER_TYPE_MULTI_WINDOW); in testRegisterWithExistingTasks() 210 mOrganizer.addListenerForType(listener, TASK_LISTENER_TYPE_MULTI_WINDOW); in testAppearedVanished() [all …]
|
D | TaskViewTest.java | 81 ShellTaskOrganizer mOrganizer; field in TaskViewTest 116 when(mOrganizer.getExecutor()).thenReturn(mExecutor); in setUp() 128 mTaskView = new TaskView(mContext, mOrganizer, mTaskViewTransitions, mSyncQueue); in setUp() 141 TaskView taskView = new TaskView(mContext, mOrganizer, mTaskViewTransitions, mSyncQueue); in testSetPendingListener_throwsException() 157 verify(mOrganizer).setPendingLaunchCookieListener(any(), eq(mTaskView)); in testStartActivity() 234 verify(mOrganizer).removeListener(eq(mTaskView)); in testOnReleased_legacyTransitions() 262 verify(mOrganizer).setInterceptBackPressedOnTaskRoot(eq(mTaskInfo.token), eq(true)); in testSetOnBackPressedOnTaskRoot_legacyTransitions() 269 verify(mOrganizer).setInterceptBackPressedOnTaskRoot(eq(mTaskInfo.token), eq(true)); in testUnsetOnBackPressedOnTaskRoot_legacyTransitions() 272 verify(mOrganizer).setInterceptBackPressedOnTaskRoot(eq(mTaskInfo.token), eq(false)); in testUnsetOnBackPressedOnTaskRoot_legacyTransitions() 367 verify(mOrganizer).removeListener(eq(mTaskView)); in testOnReleased() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/kidsmode/ |
D | KidsModeTaskOrganizerTest.java | 83 KidsModeTaskOrganizer mOrganizer; field in KidsModeTaskOrganizerTest 99 mOrganizer = spy(kidsModeTaskOrganizer); in setUp() 100 doReturn(mTransaction).when(mOrganizer).getWindowContainerTransaction(); in setUp() 113 mOrganizer.updateKidsModeState(); in testKidsModeOn() 115 verify(mOrganizer, times(1)).enable(); in testKidsModeOn() 116 verify(mOrganizer, times(1)).registerOrganizer(); in testKidsModeOn() 117 verify(mOrganizer, times(1)).createRootTask( in testKidsModeOn() 118 eq(DEFAULT_DISPLAY), eq(WINDOWING_MODE_FULLSCREEN), eq(mOrganizer.mCookie)); in testKidsModeOn() 119 verify(mOrganizer, times(1)) in testKidsModeOn() 123 WINDOWING_MODE_FULLSCREEN, mOrganizer.mCookie); in testKidsModeOn() [all …]
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | JetpackTaskFragmentOrganizerTest.java | 72 private JetpackTaskFragmentOrganizer mOrganizer; field in JetpackTaskFragmentOrganizerTest 77 mOrganizer = new JetpackTaskFragmentOrganizer(Runnable::run, mCallback); in setup() 78 mOrganizer.registerOrganizer(); in setup() 79 spyOn(mOrganizer); in setup() 85 mOrganizer.overrideSplitAnimation(); in testUnregisterOrganizer() 86 mOrganizer.unregisterOrganizer(); in testUnregisterOrganizer() 88 verify(mOrganizer).unregisterRemoteAnimations(); in testUnregisterOrganizer() 93 assertNull(mOrganizer.mAnimationController); in testOverrideSplitAnimation() 95 mOrganizer.overrideSplitAnimation(); in testOverrideSplitAnimation() 97 assertNotNull(mOrganizer.mAnimationController); in testOverrideSplitAnimation() [all …]
|
D | TaskFragmentAnimationControllerTest.java | 46 private TaskFragmentOrganizer mOrganizer; field in TaskFragmentAnimationControllerTest 52 mAnimationController = new TaskFragmentAnimationController(mOrganizer); in setup() 59 verify(mOrganizer).registerRemoteAnimations(mAnimationController.mDefinition); in testRegisterRemoteAnimations() 64 verify(mOrganizer).registerRemoteAnimations(mAnimationController.mDefinition); in testRegisterRemoteAnimations() 72 verify(mOrganizer, never()).unregisterRemoteAnimations(); in testUnregisterRemoteAnimations() 77 verify(mOrganizer).unregisterRemoteAnimations(); in testUnregisterRemoteAnimations() 82 verify(mOrganizer).unregisterRemoteAnimations(); in testUnregisterRemoteAnimations()
|
D | TransactionManagerTest.java | 61 private TaskFragmentOrganizer mOrganizer; field in TransactionManagerTest 67 mTransactionManager = new TransactionManager(mOrganizer); in setup() 145 verify(mOrganizer).applyTransaction(wct, transitionType, in testApply() 149 clearInvocations(mOrganizer); in testApply() 155 verify(mOrganizer).applyTransaction(wct, transitionType, in testApply() 159 clearInvocations(mOrganizer); in testApply() 166 verify(mOrganizer).onTransactionHandled(token, wct, transitionType, in testApply() 170 clearInvocations(mOrganizer); in testApply() 177 verify(mOrganizer).onTransactionHandled(token, wct, transitionType, in testApply() 196 verifyNoMoreInteractions(mOrganizer); in testAbort()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskFragmentOrganizerControllerTest.java | 118 private TaskFragmentOrganizer mOrganizer; field in TaskFragmentOrganizerControllerTest 142 mOrganizer = new TaskFragmentOrganizer(Runnable::run); in setup() 143 mOrganizerToken = mOrganizer.getOrganizerToken(); in setup() 158 spyOn(mOrganizer); in setup() 169 doNothing().when(mOrganizer).applyTransaction(any(), anyInt(), anyBoolean()); in setup() 170 doNothing().when(mOrganizer).onTransactionHandled(any(), any(), anyInt(), anyBoolean()); in setup() 198 verify(mOrganizer, never()).onTransactionReady(any()); in testOnTaskFragmentAppeared() 219 verify(mOrganizer, never()).onTransactionReady(any()); in testOnTaskFragmentInfoChanged() 225 verify(mOrganizer).onTransactionReady(any()); in testOnTaskFragmentInfoChanged() 228 clearInvocations(mOrganizer); in testOnTaskFragmentInfoChanged() [all …]
|
D | TaskFragmentTest.java | 76 private TaskFragmentOrganizer mOrganizer; field in TaskFragmentTest 86 mOrganizer = new TaskFragmentOrganizer(Runnable::run); in setup() 87 mIOrganizer = ITaskFragmentOrganizer.Stub.asInterface(mOrganizer.getOrganizerToken() in setup() 93 .setOrganizer(mOrganizer) in setup() 295 .setOrganizer(mOrganizer) in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig() 332 .setOrganizer(mOrganizer) in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() 338 .setOrganizer(mOrganizer) in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer() 373 .setOrganizer(mOrganizer) in testEmbeddedActivityExitPip_notifyOrganizer() 379 .setOrganizer(mOrganizer) in testEmbeddedActivityExitPip_notifyOrganizer() 401 .setOrganizer(mOrganizer) in testIsReadyToTransit() [all …]
|
D | DisplayAreaOrganizerTest.java | 156 assertThat(tda.mOrganizer).isEqualTo(organizer); in testCreateTaskDisplayArea_topBelowRoot() 180 assertThat(tda.mOrganizer).isEqualTo(organizer); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea() 235 assertThat(newTda.mOrganizer).isNull(); in testDeleteTaskDisplayArea() 260 assertThat(newTda.mOrganizer).isNull(); in testUnregisterOrganizer_deleteNewCreatedTaskDisplayArea() 305 assertThat(mTestDisplayArea.mOrganizer).isNotNull(); in testUnregisterOrganizer() 309 assertThat(mTestDisplayArea.mOrganizer).isNull(); in testUnregisterOrganizer()
|
D | WindowTestsBase.java | 1265 private TaskFragmentOrganizer mOrganizer; field in WindowTestsBase.TaskFragmentBuilder 1295 mOrganizer = organizer; in setOrganizer() 1313 mOrganizer != null); in build() 1331 if (mOrganizer != null) { in build() 1333 mOrganizer.getOrganizerToken(), DEFAULT_TASK_FRAGMENT_ORGANIZER_UID, in build() 1726 final WindowOrganizerController mOrganizer; field in WindowTestsBase.TestTransitionPlayer 1734 mOrganizer = organizer; in TestTransitionPlayer() 1759 mOrganizer.startTransition(mLastTransit.getToken(), null); in startTransition()
|
D | DisplayAreaTest.java | 572 assertEquals(mockDisplayAreaOrganizer, displayArea.mOrganizer); in testDisplayContentUpdateDisplayAreaOrganizers_onDisplayAreaAppeared() 585 displayArea.mOrganizer = mockDisplayAreaOrganizer; in testRemoveImmediately_onDisplayAreaVanished() 591 assertNull(displayArea.mOrganizer); in testRemoveImmediately_onDisplayAreaVanished()
|
D | TransitionTests.java | 1557 from.asDisplayArea().mOrganizer = organizer; in makeDisplayAreaOrganized() 1562 end.asDisplayArea().mOrganizer = organizer; in makeDisplayAreaOrganized()
|
/frameworks/base/core/java/android/window/ |
D | TaskFragmentCreationParams.java | 39 private final TaskFragmentOrganizerToken mOrganizer; field in TaskFragmentCreationParams 103 mOrganizer = organizer; in TaskFragmentCreationParams() 114 return mOrganizer; in getOrganizer() 156 mOrganizer = TaskFragmentOrganizerToken.CREATOR.createFromParcel(in); in TaskFragmentCreationParams() 168 mOrganizer.writeToParcel(dest, flags); in writeToParcel() 194 + " organizer=" + mOrganizer in toString() 214 private final TaskFragmentOrganizerToken mOrganizer; field in TaskFragmentCreationParams.Builder 236 mOrganizer = organizer; in Builder() 298 return new TaskFragmentCreationParams(mOrganizer, mFragmentToken, mOwnerToken, in build()
|
/frameworks/base/tests/TaskOrganizerTest/src/com/android/test/taskembed/ |
D | TaskView.java | 41 private TaskOrganizerMultiWindowTest.Organizer mOrganizer; field in TaskView 49 mOrganizer = organizer; in TaskView() 91 mOrganizer.applySyncTransaction(wct, mOrganizer.mTransactionCallback); in resizeTask() 104 mOrganizer.applySyncTransaction(wct, mOrganizer.mTransactionCallback); in hideTask()
|
D | TaskOrganizerMultiWindowTest.java | 70 mOrganizer.setInterceptBackPressedOnTaskRoot(ti.token, true); in onTaskAppeared() 74 mOrganizer.setInterceptBackPressedOnTaskRoot(ti.token, true); in onTaskAppeared() 87 private Organizer mOrganizer = new Organizer(); field in TaskOrganizerMultiWindowTest 100 mOrganizer.registerOrganizer(); in onCreate() 106 mOrganizer.unregisterOrganizer(); in onDestroy() 119 mTaskView1 = new TaskView(this, mOrganizer, makeActivityIntent(TestActivity1.class)); in openTaskView() 128 mTaskView2 = new TaskView(this, mOrganizer, makeActivityIntent(TestActivity2.class)); in openTaskView()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/ |
D | TaskFragmentAnimationController.java | 40 private final TaskFragmentOrganizer mOrganizer; field in TaskFragmentAnimationController 47 mOrganizer = organizer; in TaskFragmentAnimationController() 65 mOrganizer.registerRemoteAnimations(mDefinition); in registerRemoteAnimations() 76 mOrganizer.unregisterRemoteAnimations(); in unregisterRemoteAnimations()
|
D | TransactionManager.java | 54 private final TaskFragmentOrganizer mOrganizer; field in TransactionManager 60 mOrganizer = organizer; in TransactionManager() 164 mOrganizer.onTransactionHandled(mTaskFragmentTransactionToken, mTransaction, in apply() 167 mOrganizer.applyTransaction(mTransaction, getTransactionTransitionType(), in apply()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayAreaOrganizerController.java | 58 IDisplayAreaOrganizer mOrganizer; field in DisplayAreaOrganizerController.DeathRecipient 61 mOrganizer = organizer; in DeathRecipient() 71 if (!organizerBinder.equals(mOrganizer.asBinder()) && in binderDied() 83 private final IDisplayAreaOrganizer mOrganizer; field in DisplayAreaOrganizerController.DisplayAreaOrganizerState 87 mOrganizer = organizer; in DisplayAreaOrganizerState() 97 IBinder organizerBinder = mOrganizer.asBinder(); in destroy() 99 if (da.mOrganizer != null && da.mOrganizer.asBinder().equals(organizerBinder)) { in destroy() 124 return state != null ? state.mOrganizer : null; in getOrganizerByFeature() 138 if (mOrganizersByFeatureIds.get(feature).mOrganizer.asBinder() in registerOrganizer() 183 final boolean matches = entry.getValue().mOrganizer.asBinder() in unregisterOrganizer()
|
D | DisplayArea.java | 77 IDisplayAreaOrganizer mOrganizer; field in DisplayArea 521 if (mOrganizer == organizer) return; in setOrganizer() 526 IDisplayAreaOrganizer lastOrganizer = mOrganizer; in setOrganizer() 530 mOrganizer = organizer; in setOrganizer() 538 if (mOrganizer == null) return; in sendDisplayAreaAppeared() 539 mOrganizerController.onDisplayAreaAppeared(mOrganizer, this); in sendDisplayAreaAppeared() 554 if (mOrganizer != null && getConfiguration().diff(mTmpConfiguration) != 0) { in onConfigurationChanged() 555 mOrganizerController.onDisplayAreaInfoChanged(mOrganizer, this); in onConfigurationChanged() 578 return mOrganizer != null; in isOrganized()
|
D | TaskOrganizerController.java | 271 mOrganizerState.mOrganizer.onTaskAppeared(task); in dispatchPendingEvent() 275 mOrganizerState.mOrganizer.onTaskVanished(task); in dispatchPendingEvent() 282 mOrganizerState.mOrganizer.onBackPressedOnTaskRoot(task); in dispatchPendingEvent() 318 mOrganizerState.mOrganizer.onTaskInfoChanged(task, newInfo); in dispatchTaskInfoChanged() 325 private final TaskOrganizerCallbacks mOrganizer; field in TaskOrganizerController.TaskOrganizerState 336 mOrganizer = new TaskOrganizerCallbacks(organizer, deferTaskOrgCallbacksConsumer); in TaskOrganizerState() 366 return mOrganizer.prepareLeash(t, reason); in addTaskWithoutCallback() 403 mTaskOrganizers.remove(mOrganizer.mTaskOrganizer); in dispose() 437 mTaskOrganizerStates.remove(mOrganizer.getBinder()); in dispose() 441 mOrganizer.getBinder().unlinkToDeath(mDeathRecipient, 0); in unlinkDeath() [all …]
|
D | TaskFragmentOrganizerController.java | 104 private final ITaskFragmentOrganizer mOrganizer; field in TaskFragmentOrganizerController.TaskFragmentOrganizerState 150 mOrganizer = organizer; in TaskFragmentOrganizerState() 154 mOrganizer.asBinder().linkToDeath(this, 0 /*flags*/); in TaskFragmentOrganizerState() 163 removeOrganizer(mOrganizer); in binderDied() 209 mOrganizer.asBinder().unlinkToDeath(this, 0 /* flags */); in dispose() 362 mOrganizer.onTransactionReady(transaction); in dispatchTransaction() 964 PendingTaskFragmentEvent.EVENT_PARENT_INFO_CHANGED, state.mOrganizer) in dispatchPendingEvents()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/hidedisplaycutout/ |
D | HideDisplayCutoutController.java | 45 private final HideDisplayCutoutOrganizer mOrganizer; field in HideDisplayCutoutController 81 mOrganizer = organizer; in HideDisplayCutoutController() 104 mOrganizer.enableHideDisplayCutout(); in updateStatus() 106 mOrganizer.disableHideDisplayCutout(); in updateStatus() 122 mOrganizer.dump(pw); in dump()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/ |
D | ShellTransitionTests.java | 111 private final WindowOrganizer mOrganizer = mock(WindowOrganizer.class); field in ShellTransitionTests 123 .when(mOrganizer).startTransition(any(), any()); in setUp() 130 mOrganizer, mTransactionPool, createTestDisplayController(), mMainExecutor, in instantiate_addInitCallback() 140 mOrganizer, mTransactionPool, createTestDisplayController(), mMainExecutor, in instantiateController_addExternalInterface() 155 verify(mOrganizer, times(1)).startTransition(eq(transitToken), any()); in testBasicTransitionFlow() 163 verify(mOrganizer, times(1)).finishTransition(eq(transitToken), any(), any()); in testBasicTransitionFlow() 207 verify(mOrganizer, times(1)).startTransition(eq(transitToken), isNull()); in testNonDefaultHandler() 222 verify(mOrganizer, times(1)).startTransition( in testNonDefaultHandler() 238 verify(mOrganizer, times(2)).startTransition( in testNonDefaultHandler() 277 verify(mOrganizer, times(1)).startTransition(eq(transitToken), any()); in testRequestRemoteTransition() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/ |
D | Transitions.java | 113 private final WindowOrganizer mOrganizer; field in Transitions 157 mOrganizer = organizer; in Transitions() 192 mOrganizer.registerTransitionPlayer(mPlayerImpl); in onInit() 679 mOrganizer.finishTransition(transition, wct, wctCB); in onFinish() 683 mOrganizer.finishTransition(merged.mToken, null /* wct */, null /* wctCB */); in onFinish() 695 mOrganizer.finishTransition(aborted.mToken, null /* wct */, null /* wctCB */); in onFinish() 786 mOrganizer.startTransition(transitionToken, wct != null && wct.isEmpty() ? null : wct); in requestStartTransition() 796 active.mToken = mOrganizer.startNewTransition(type, wct); in startTransition()
|