Home
last modified time | relevance | path

Searched refs:mSecondary (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/
DLegacySplitScreenTaskListener.java60 RunningTaskInfo mSecondary; field in LegacySplitScreenTaskListener
137 mSecondary = taskInfo; in onTaskAppeared()
172 final boolean isSecondaryTask = mSecondary != null in onTaskVanished()
173 && taskInfo.token.equals(mSecondary.token); in onTaskVanished()
270 final boolean secondaryImpliedMinimize = mSecondary.topActivityType == ACTIVITY_TYPE_HOME in handleTaskInfoChanged()
271 || (mSecondary.topActivityType == ACTIVITY_TYPE_RECENTS in handleTaskInfoChanged()
274 final boolean secondaryWasEmpty = mSecondary.topActivityType == ACTIVITY_TYPE_UNDEFINED; in handleTaskInfoChanged()
277 } else if (info.token.asBinder() == mSecondary.token.asBinder()) { in handleTaskInfoChanged()
278 mSecondary = info; in handleTaskInfoChanged()
281 Log.d(TAG, "onTaskInfoChanged " + mPrimary + " " + mSecondary); in handleTaskInfoChanged()
[all …]
DDividerImeController.java119 && (imeSplit.asBinder() == mSplits.mSecondary.token.asBinder()); in getSecondaryHasFocus()
214 wct.setBounds(mSplits.mSecondary.token, splitLayout.mAdjustedSecondary); in updateImeAdjustState()
218 Rect adjustAppBounds = new Rect(mSplits.mSecondary.configuration in updateImeAdjustState()
221 - splitLayout.mSecondary.top); in updateImeAdjustState()
222 wct.setAppBounds(mSplits.mSecondary.token, adjustAppBounds); in updateImeAdjustState()
223 wct.setScreenSizeDp(mSplits.mSecondary.token, in updateImeAdjustState()
224 mSplits.mSecondary.configuration.screenWidthDp, in updateImeAdjustState()
225 mSplits.mSecondary.configuration.screenHeightDp); in updateImeAdjustState()
237 wct.setBounds(mSplits.mSecondary.token, splitLayout.mSecondary); in updateImeAdjustState()
238 wct.setAppBounds(mSplits.mSecondary.token, null); in updateImeAdjustState()
[all …]
DWindowManagerProxy.java189 wct.setLaunchRoot(tiles.mSecondary.token, CONTROLLED_WINDOWING_MODES, in applyEnterSplit()
229 outWct.reparent(rootTask.token, tiles.mSecondary.token, true /* onTop */); in buildEnterSplit()
232 outWct.reorder(tiles.mSecondary.token, true /* onTop */); in buildEnterSplit()
257 wct.setLaunchRoot(tiles.mSecondary.token, null, null); in applyDismissSplit()
277 taskOrg.getChildTasks(tiles.mSecondary.token, null /* activityTypes */); in buildDismissSplit()
284 freeHomeAndRecents.removeIf(p -> p.token.equals(tiles.mSecondary.token) in buildDismissSplit()
319 final int posX = landscape ? layout.mSecondary.left - tiles.mHomeBounds.left in buildDismissSplit()
320 : layout.mSecondary.left; in buildDismissSplit()
321 final int posY = landscape ? layout.mSecondary.top in buildDismissSplit()
322 : layout.mSecondary.top - tiles.mHomeBounds.top; in buildDismissSplit()
[all …]
DLegacySplitDisplayLayout.java62 Rect mSecondary = null; field in LegacySplitDisplayLayout
141 mSecondary = mSecondary == null ? new Rect() : mSecondary; in resizeSplits()
142 calcSplitBounds(position, mPrimary, mSecondary); in resizeSplits()
148 t.setBounds(mTiles.mSecondary.token, mSecondary); in resizeSplits()
152 t.setSmallestScreenWidthDp(mTiles.mSecondary.token, in resizeSplits()
153 getSmallestWidthDpForBounds(mContext, mDisplayLayout, mSecondary)); in resizeSplits()
181 mDividerSizeInactive, mPrimary, mSecondary); in updateAdjustedBounds()
DLegacySplitScreenController.java159 .applyHomeTasksMinimized(sdl, mSplits.mSecondary.token, t); in LegacySplitScreenController()
270 mSplitLayout.mSecondary = new Rect(mRotateSplitLayout.mSecondary); in onDisplayConfigurationChanged()
300 return mSplits.mPrimary != null && mSplits.mSecondary != null in isSplitActive()
302 || mSplits.mSecondary.topActivityType != ACTIVITY_TYPE_UNDEFINED); in isSplitActive()
623 if (mSplits == null || mSplits.mSecondary == null) { in getSecondaryRoot()
626 return mSplits.mSecondary.token; in getSecondaryRoot()
DDividerView.java379 mOtherTaskRect.set(mSplitLayout.mSecondary); in getNonMinimizedSplitScreenSecondaryBounds()
683 if (mSplitLayout.mPrimary == null || mSplitLayout.mSecondary == null) { in notifySplitScreenBoundsChanged()
686 mOtherTaskRect.set(mSplitLayout.mSecondary); in notifySplitScreenBoundsChanged()
795 mOtherRect, mSplitLayout.mSecondary); in initializeSurfaceState()
798 mSplitLayout.mSecondary, null); in initializeSurfaceState()
DLegacySplitScreenTransitions.java273 || mListener.mSecondary.token.equals(change.getContainer())) { in startAnimation()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestsBase.java1305 Task mSecondary; field in WindowTestsBase.TestSplitOrganizer
1327 mSecondary = mService.mTaskOrganizerController.createRootTask( in TestSplitOrganizer()
1356 mSecondary, CONTROLLED_WINDOWING_MODES, CONTROLLED_ACTIVITY_TYPES); in onTaskInfoChanged()
1359 rootTask.reparent(mSecondary, POSITION_BOTTOM); in onTaskInfoChanged()
DRootTaskTests.java376 assertEquals(primarySplitScreen, organizer.mSecondary.getChildAt(0)); in testMoveToPrimarySplitScreenThenMoveToBack()
403 assertEquals(primaryTask, organizer.mSecondary.getChildAt(0)); in testSplitScreenMoveToBack()
404 assertEquals(1, organizer.mPrimary.compareTo(organizer.mSecondary)); in testSplitScreenMoveToBack()
413 organizer.mSecondary.moveToBack("test", secondaryTask); in testSplitScreenMoveToBack()
417 assertEquals(secondaryTask, organizer.mSecondary.getChildAt(0)); in testSplitScreenMoveToBack()
DActivityStarterTests.java487 assertEquals(splitOrg.mSecondary, splitSecondActivity.getRootTask()); in createActivitiesInSplit()