/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayAreaOrganizerTest.java | 89 final IDisplayAreaOrganizer organizer = createMockOrganizer(binder); in registerMockOrganizer() local 90 mOrganizerController.registerOrganizer(organizer, feature); in registerMockOrganizer() 91 return organizer; in registerMockOrganizer() 95 final IDisplayAreaOrganizer organizer = mock(IDisplayAreaOrganizer.class); in createMockOrganizer() local 96 when(organizer.asBinder()).thenReturn(binder); in createMockOrganizer() 97 return organizer; in createMockOrganizer() 102 final IDisplayAreaOrganizer organizer = createMockOrganizer(new Binder()); in testRegisterOrganizer() local 104 .registerOrganizer(organizer, FEATURE_VENDOR_FIRST).getList(); in testRegisterOrganizer() 110 verify(organizer, never()).onDisplayAreaAppeared(any(DisplayAreaInfo.class), in testRegisterOrganizer() 125 final IDisplayAreaOrganizer organizer = createMockOrganizer(new Binder()); in testRegisterOrganizer_ignoreUntrustedDisplay() local [all …]
|
D | WindowOrganizerTests.java | 114 final ITaskOrganizer organizer = mock(ITaskOrganizer.class); in createMockOrganizer() local 115 when(organizer.asBinder()).thenReturn(new Binder()); in createMockOrganizer() 116 return organizer; in createMockOrganizer() 120 final ITaskOrganizer organizer = createMockOrganizer(); in registerMockOrganizer() local 122 mWm.mAtmService.mTaskOrganizerController.registerTaskOrganizer(organizer); in registerMockOrganizer() 126 return organizer; in registerMockOrganizer() 160 final ITaskOrganizer organizer = registerMockOrganizer(); in testAppearVanish() local 166 verify(organizer).onTaskAppeared(any(RunningTaskInfo.class), any(SurfaceControl.class)); in testAppearVanish() 171 verify(organizer).onTaskVanished(any()); in testAppearVanish() 176 final ITaskOrganizer organizer = registerMockOrganizer(); in testAppearWaitsForVisibility() local [all …]
|
D | AppTransitionControllerTest.java | 921 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testOverrideTaskFragmentAdapter_overrideWithEmbeddedActivity() local 923 setupTaskFragmentRemoteAnimation(organizer, remoteAnimationRunner); in testOverrideTaskFragmentAdapter_overrideWithEmbeddedActivity() 926 final TaskFragment taskFragment = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_overrideWithEmbeddedActivity() 943 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testOverrideTaskFragmentAdapter_noOverrideWithOnlyTaskFragmentFillingTask() local 945 setupTaskFragmentRemoteAnimation(organizer, remoteAnimationRunner); in testOverrideTaskFragmentAdapter_noOverrideWithOnlyTaskFragmentFillingTask() 948 final TaskFragment taskFragment = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_noOverrideWithOnlyTaskFragmentFillingTask() 974 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testOverrideTaskFragmentAdapter_overrideWithTaskFragmentNotFillingTask() local 976 setupTaskFragmentRemoteAnimation(organizer, remoteAnimationRunner); in testOverrideTaskFragmentAdapter_overrideWithTaskFragmentNotFillingTask() 979 final TaskFragment taskFragment = createTaskFragmentWithEmbeddedActivity(task, organizer); in testOverrideTaskFragmentAdapter_overrideWithTaskFragmentNotFillingTask() 1008 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testOverrideTaskFragmentAdapter_overrideWithNonEmbeddedActivity() local [all …]
|
D | RootTaskTests.java | 297 TestSplitOrganizer organizer = new TestSplitOrganizer(mAtm); in testSplitScreenMoveToBack() local 298 final Task primaryTask = organizer.createTaskToPrimary(true /* onTop */); in testSplitScreenMoveToBack() 299 final Task secondaryTask = organizer.createTaskToSecondary(true /* onTop */); in testSplitScreenMoveToBack() 302 mDefaultTaskDisplayArea.positionChildAt(POSITION_TOP, organizer.mPrimary, in testSplitScreenMoveToBack() 309 assertEquals(0, organizer.mPrimary.getChildCount()); in testSplitScreenMoveToBack() 312 assertEquals(1, organizer.mPrimary.compareTo(organizer.mSecondary)); in testSplitScreenMoveToBack() 317 assertEquals(WINDOWING_MODE_MULTI_WINDOW, organizer.mPrimary.getWindowingMode()); in testSplitScreenMoveToBack() 325 organizer.mSecondary.moveToBack("test", secondaryTask); in testSplitScreenMoveToBack() 328 assertEquals(0, organizer.mSecondary.getChildCount()); in testSplitScreenMoveToBack() 506 final TestSplitOrganizer organizer = new TestSplitOrganizer(mAtm); in testShouldBeVisible_SplitScreen() local [all …]
|
D | SizeCompatTests.java | 1371 final TestSplitOrganizer organizer = in testAlwaysSandboxDisplayApis_configEnabled_sandboxingApplied_resizableSplit() local 1379 mTask.reparent(organizer.mPrimary, POSITION_TOP, in testAlwaysSandboxDisplayApis_configEnabled_sandboxingApplied_resizableSplit() 1381 organizer.mPrimary.setBounds(0, 0, 1000, 1400); in testAlwaysSandboxDisplayApis_configEnabled_sandboxingApplied_resizableSplit() 1706 final TestSplitOrganizer organizer = in testOverrideMinAspectRatioLargeForResizableAppInSplitScreen() local 1710 mTask.reparent(organizer.mPrimary, POSITION_TOP, /* moveParents= */ false , "test"); in testOverrideMinAspectRatioLargeForResizableAppInSplitScreen() 1711 organizer.mPrimary.setBounds(0, 0, 1000, 1400); in testOverrideMinAspectRatioLargeForResizableAppInSplitScreen() 2085 final TestSplitOrganizer organizer = 2088 mTask.reparent(organizer.mPrimary, POSITION_TOP, /* moveParents= */ false , "test"); 2089 organizer.mPrimary.setBounds(0, 0, getExpectedSplitSize(screenWidth), screenHeight); 2219 final TestSplitOrganizer organizer = [all …]
|
D | ActivityOptionsTest.java | 125 final TaskOrganizer organizer = new TaskOrganizer() { in testTransferLaunchCookie() local 148 organizer.registerOrganizer(); in testTransferLaunchCookie() 161 organizer.unregisterOrganizer(); in testTransferLaunchCookie()
|
D | TransitionTests.java | 1193 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testFlagInTaskWithEmbeddedActivity() local 1195 ITaskFragmentOrganizer.Stub.asInterface(organizer.getOrganizerToken().asBinder())); in testFlagInTaskWithEmbeddedActivity() 1199 .setOrganizer(organizer) in testFlagInTaskWithEmbeddedActivity() 1240 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testFlagFillsTask_embeddingNotFillingTask() local 1242 ITaskFragmentOrganizer.Stub.asInterface(organizer.getOrganizerToken().asBinder())); in testFlagFillsTask_embeddingNotFillingTask() 1246 .setOrganizer(organizer) in testFlagFillsTask_embeddingNotFillingTask() 1368 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testIncludeEmbeddedActivityReparent() local 1370 ITaskFragmentOrganizer.Stub.asInterface(organizer.getOrganizerToken().asBinder())); in testIncludeEmbeddedActivityReparent() 1373 .setOrganizer(organizer) in testIncludeEmbeddedActivityReparent() 1399 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testChangeSetBackgroundColor() local [all …]
|
D | AppTransitionTests.java | 474 final TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(Runnable::run); in testActivityRecordReparentedToTaskFragment() local 476 ITaskFragmentOrganizer.Stub.asInterface(organizer.getOrganizerToken().asBinder()); in testActivityRecordReparentedToTaskFragment() 480 .setOrganizer(organizer) in testActivityRecordReparentedToTaskFragment()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskFragmentOrganizerController.java | 149 TaskFragmentOrganizerState(ITaskFragmentOrganizer organizer, int pid, int uid) { in TaskFragmentOrganizerState() argument 150 mOrganizer = organizer; in TaskFragmentOrganizerState() 409 @Nullable ITaskFragmentOrganizer organizer, @Nullable IBinder activityToken) { in getReparentActivityFromTemporaryToken() 410 if (organizer == null || activityToken == null) { in getReparentActivityFromTemporaryToken() 414 organizer.asBinder()); in getReparentActivityFromTemporaryToken() 421 public void registerOrganizer(@NonNull ITaskFragmentOrganizer organizer) { in registerOrganizer() argument 427 organizer.asBinder(), uid, pid); in registerOrganizer() 428 if (isOrganizerRegistered(organizer)) { in registerOrganizer() 432 mTaskFragmentOrganizerState.put(organizer.asBinder(), in registerOrganizer() 433 new TaskFragmentOrganizerState(organizer, pid, uid)); in registerOrganizer() [all …]
|
D | DisplayAreaOrganizerController.java | 60 DeathRecipient(IDisplayAreaOrganizer organizer, int feature) { in DeathRecipient() argument 61 mOrganizer = organizer; in DeathRecipient() 86 DisplayAreaOrganizerState(IDisplayAreaOrganizer organizer, int feature) { in DisplayAreaOrganizerState() argument 87 mOrganizer = organizer; in DisplayAreaOrganizerState() 88 mDeathRecipient = new DeathRecipient(organizer, feature); in DisplayAreaOrganizerState() 90 organizer.asBinder().linkToDeath(mDeathRecipient, 0); in DisplayAreaOrganizerState() 129 IDisplayAreaOrganizer organizer, int feature) { in registerOrganizer() argument 136 organizer.asBinder(), uid); in registerOrganizer() 148 final DisplayAreaOrganizerState state = new DisplayAreaOrganizerState(organizer, in registerOrganizer() 160 displayAreaInfos.add(organizeDisplayArea(organizer, da, in registerOrganizer() [all …]
|
D | WindowOrganizerController.java | 827 @Nullable ITaskFragmentOrganizer organizer, @Nullable Transition finishTransition) { in applyHierarchyOp() argument 893 sendTaskFragmentOperationFailure(organizer, errorCallbackToken, in applyHierarchyOp() 899 effects |= deleteTaskFragment(taskFragment, organizer, errorCallbackToken, in applyHierarchyOp() 909 sendTaskFragmentOperationFailure(organizer, errorCallbackToken, tf, type, in applyHierarchyOp() 916 sendTaskFragmentOperationFailure(organizer, errorCallbackToken, tf, type, in applyHierarchyOp() 927 sendTaskFragmentOperationFailure(organizer, errorCallbackToken, tf, type, in applyHierarchyOp() 942 .getReparentActivityFromTemporaryToken(organizer, activityToken); in applyHierarchyOp() 948 sendTaskFragmentOperationFailure(organizer, errorCallbackToken, parent, type, in applyHierarchyOp() 955 sendTaskFragmentOperationFailure(organizer, errorCallbackToken, parent, type, in applyHierarchyOp() 962 sendTaskFragmentOperationFailure(organizer, errorCallbackToken, parent, type, in applyHierarchyOp() [all …]
|
D | TaskOrganizerController.java | 76 DeathRecipient(ITaskOrganizer organizer) { in DeathRecipient() argument 77 mTaskOrganizer = organizer; in DeathRecipient() 331 TaskOrganizerState(ITaskOrganizer organizer, int uid) { in TaskOrganizerState() argument 336 mOrganizer = new TaskOrganizerCallbacks(organizer, deferTaskOrgCallbacksConsumer); in TaskOrganizerState() 337 mDeathRecipient = new DeathRecipient(organizer); in TaskOrganizerState() 340 organizer.asBinder().linkToDeath(mDeathRecipient, 0); in TaskOrganizerState() 511 public ParceledListSlice<TaskAppearedInfo> registerTaskOrganizer(ITaskOrganizer organizer) { in registerTaskOrganizer() argument 519 organizer.asBinder(), uid); in registerTaskOrganizer() 520 if (!mTaskOrganizerStates.containsKey(organizer.asBinder())) { in registerTaskOrganizer() 521 mTaskOrganizers.add(organizer); in registerTaskOrganizer() [all …]
|
D | DisplayArea.java | 516 void setOrganizer(IDisplayAreaOrganizer organizer) { in setOrganizer() argument 517 setOrganizer(organizer, false /* skipDisplayAreaAppeared */); in setOrganizer() 520 void setOrganizer(IDisplayAreaOrganizer organizer, boolean skipDisplayAreaAppeared) { in setOrganizer() argument 521 if (mOrganizer == organizer) return; in setOrganizer() 530 mOrganizer = organizer; in setOrganizer() 542 void sendDisplayAreaVanished(IDisplayAreaOrganizer organizer) { in sendDisplayAreaVanished() argument 543 if (organizer == null) return; in sendDisplayAreaVanished() 545 mOrganizerController.onDisplayAreaVanished(organizer, this); in sendDisplayAreaVanished()
|
D | AppTransitionController.java | 701 final ITaskFragmentOrganizer[] organizer = new ITaskFragmentOrganizer[1]; in findTaskFragmentOrganizer() local 707 if (organizer[0] != null && !organizer[0].asBinder().equals(tfOrganizer.asBinder())) { in findTaskFragmentOrganizer() 710 organizer[0] = tfOrganizer; in findTaskFragmentOrganizer() 718 return organizer[0]; in findTaskFragmentOrganizer() 740 final ITaskFragmentOrganizer organizer = findTaskFragmentOrganizer(task); in overrideWithTaskFragmentRemoteAnimation() local 741 final RemoteAnimationDefinition definition = organizer != null in overrideWithTaskFragmentRemoteAnimation() 743 .getRemoteAnimationDefinition(organizer) in overrideWithTaskFragmentRemoteAnimation() 758 .getTaskFragmentOrganizerUid(organizer); in overrideWithTaskFragmentRemoteAnimation()
|
/frameworks/base/core/java/android/window/ |
D | ITaskFragmentOrganizerController.aidl | 30 void registerOrganizer(in ITaskFragmentOrganizer organizer); in registerOrganizer() argument 35 void unregisterOrganizer(in ITaskFragmentOrganizer organizer); in unregisterOrganizer() argument 42 void registerRemoteAnimations(in ITaskFragmentOrganizer organizer, in registerRemoteAnimations() argument 48 void unregisterRemoteAnimations(in ITaskFragmentOrganizer organizer); in unregisterRemoteAnimations() argument
|
D | IDisplayAreaOrganizerController.aidl | 34 ParceledListSlice<DisplayAreaAppearedInfo> registerOrganizer(in IDisplayAreaOrganizer organizer, in registerOrganizer() argument 40 void unregisterOrganizer(in IDisplayAreaOrganizer organizer); in unregisterOrganizer() argument 60 DisplayAreaAppearedInfo createTaskDisplayArea(in IDisplayAreaOrganizer organizer, int displayId, in createTaskDisplayArea() argument
|
D | TaskFragmentCreationParams.java | 95 @NonNull TaskFragmentOrganizerToken organizer, @NonNull IBinder fragmentToken, in TaskFragmentCreationParams() 103 mOrganizer = organizer; in TaskFragmentCreationParams() 234 public Builder(@NonNull TaskFragmentOrganizerToken organizer, in Builder() argument 236 mOrganizer = organizer; in Builder()
|
D | ITaskOrganizerController.aidl | 35 ParceledListSlice<TaskAppearedInfo> registerTaskOrganizer(ITaskOrganizer organizer); in registerTaskOrganizer() argument 40 void unregisterTaskOrganizer(ITaskOrganizer organizer); in unregisterTaskOrganizer() argument
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/hidedisplaycutout/ |
D | HideDisplayCutoutController.java | 67 HideDisplayCutoutOrganizer organizer = in create() local 70 shellController, organizer); in create() 77 HideDisplayCutoutOrganizer organizer) { in HideDisplayCutoutController() argument 81 mOrganizer = organizer; in HideDisplayCutoutController()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/ |
D | TaskFragmentAnimationController.java | 46 TaskFragmentAnimationController(@NonNull TaskFragmentOrganizer organizer) { in TaskFragmentAnimationController() argument 47 mOrganizer = organizer; in TaskFragmentAnimationController()
|
D | TransactionManager.java | 59 TransactionManager(@NonNull TaskFragmentOrganizer organizer) { in TransactionManager() argument 60 mOrganizer = organizer; in TransactionManager()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/ |
D | WindowExtensionsImpl.java | 86 TaskFragmentOrganizer organizer = new TaskFragmentOrganizer(command -> { in getWindowLayoutComponentImpl() local 89 mWindowLayoutComponent = new WindowLayoutComponentImpl(context, organizer, in getWindowLayoutComponentImpl()
|
/frameworks/base/tests/TaskOrganizerTest/src/com/android/test/taskembed/ |
D | TaskView.java | 45 TaskView(Context c, TaskOrganizerMultiWindowTest.Organizer organizer, in TaskView() argument 49 mOrganizer = organizer; in TaskView()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/ |
D | TaskView.java | 100 public TaskView(Context context, ShellTaskOrganizer organizer, in TaskView() argument 104 mTaskOrganizer = organizer; in TaskView() 105 mShellExecutor = organizer.getExecutor(); in TaskView()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/hidedisplaycutout/ |
D | HideDisplayCutoutOrganizerTest.java | 101 HideDisplayCutoutOrganizer organizer = new HideDisplayCutoutOrganizer( in setUp() local 103 mOrganizer = Mockito.spy(organizer); in setUp()
|