Home
last modified time | relevance | path

Searched refs:targetWin (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DImeInsetsSourceProvider.java65 final WindowState targetWin = target.getWindow(); in getControl() local
70 final TaskSnapshot snapshot = targetWin.getRootTask() != null in getControl()
71 ? targetWin.mWmService.getTaskSnapshot(targetWin.getRootTask().mTaskId, in getControl()
74 control.setSkipAnimationOnce(targetWin.mActivityRecord != null in getControl()
75 && targetWin.mActivityRecord.hasStartingWindow() in getControl()
DDragState.java497 private boolean isValidDropTarget(WindowState targetWin, boolean containsAppExtras, in isValidDropTarget() argument
499 if (targetWin == null) { in isValidDropTarget()
502 final boolean isLocalWindow = mLocalWin == targetWin.mClient.asBinder(); in isValidDropTarget()
508 if (!targetWin.isPotentialDragTarget(interceptsGlobalDrag)) { in isValidDropTarget()
511 if ((mFlags & View.DRAG_FLAG_GLOBAL) == 0 || !targetWindowSupportsGlobalDrag(targetWin)) { in isValidDropTarget()
520 || mSourceUserId == UserHandle.getUserId(targetWin.getOwningUid()); in isValidDropTarget()
523 private boolean targetWindowSupportsGlobalDrag(WindowState targetWin) { in targetWindowSupportsGlobalDrag() argument
526 return targetWin.mActivityRecord == null in targetWindowSupportsGlobalDrag()
527 || targetWin.mActivityRecord.mTargetSdk >= Build.VERSION_CODES.N; in targetWindowSupportsGlobalDrag()
533 public boolean targetInterceptsGlobalDrag(WindowState targetWin) { in targetInterceptsGlobalDrag() argument
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTests.java277 final WindowState targetWin = createApplicationWindow(); in testOverlappingWithNavBar() local
278 final WindowFrames winFrame = targetWin.getWindowFrames(); in testOverlappingWithNavBar()
286 DisplayPolicy.isOverlappingWithNavBar(targetWin, navigationBar)); in testOverlappingWithNavBar()
290 DisplayPolicy.isOverlappingWithNavBar(targetWin, navigationBar)); in testOverlappingWithNavBar()
294 DisplayPolicy.isOverlappingWithNavBar(targetWin, navigationBar)); in testOverlappingWithNavBar()
298 DisplayPolicy.isOverlappingWithNavBar(targetWin, navigationBar)); in testOverlappingWithNavBar()