Home
last modified time | relevance | path

Searched refs:appToken (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/display/
DVirtualDisplayAdapter.java90 IBinder appToken = callback.asBinder(); in createVirtualDisplayLocked() local
100 VirtualDisplayDevice device = new VirtualDisplayDevice(displayToken, appToken, in createVirtualDisplayLocked()
104 mVirtualDisplayDevices.put(appToken, device); in createVirtualDisplayLocked()
108 projection.registerCallback(new MediaProjectionCallback(appToken)); in createVirtualDisplayLocked()
110 appToken.linkToDeath(device, 0); in createVirtualDisplayLocked()
112 mVirtualDisplayDevices.remove(appToken); in createVirtualDisplayLocked()
122 public void resizeVirtualDisplayLocked(IBinder appToken, in resizeVirtualDisplayLocked() argument
124 VirtualDisplayDevice device = mVirtualDisplayDevices.get(appToken); in resizeVirtualDisplayLocked()
131 public void setVirtualDisplaySurfaceLocked(IBinder appToken, Surface surface) { in setVirtualDisplaySurfaceLocked() argument
132 VirtualDisplayDevice device = mVirtualDisplayDevices.get(appToken); in setVirtualDisplaySurfaceLocked()
[all …]
DDisplayManagerService.java780 private void resizeVirtualDisplayInternal(IBinder appToken, in resizeVirtualDisplayInternal() argument
787 mVirtualDisplayAdapter.resizeVirtualDisplayLocked(appToken, width, height, densityDpi); in resizeVirtualDisplayInternal()
791 private void setVirtualDisplaySurfaceInternal(IBinder appToken, Surface surface) { in setVirtualDisplaySurfaceInternal() argument
797 mVirtualDisplayAdapter.setVirtualDisplaySurfaceLocked(appToken, surface); in setVirtualDisplaySurfaceInternal()
801 private void releaseVirtualDisplayInternal(IBinder appToken) { in releaseVirtualDisplayInternal() argument
808 mVirtualDisplayAdapter.releaseVirtualDisplayLocked(appToken); in releaseVirtualDisplayInternal()
815 private void setVirtualDisplayStateInternal(IBinder appToken, boolean isOn) { in setVirtualDisplayStateInternal() argument
821 mVirtualDisplayAdapter.setVirtualDisplayStateLocked(appToken, isOn); in setVirtualDisplayStateInternal()
/frameworks/base/services/core/java/com/android/server/wm/
DAppWindowThumbnail.java58 AppWindowThumbnail(Transaction t, AppWindowToken appToken, GraphicBuffer thumbnailHeader) { in AppWindowThumbnail() argument
59 this(t, appToken, thumbnailHeader, false /* relative */); in AppWindowThumbnail()
69 AppWindowThumbnail(Transaction t, AppWindowToken appToken, GraphicBuffer thumbnailHeader, in AppWindowThumbnail() argument
71 this(t, appToken, thumbnailHeader, relative, new Surface(), null); in AppWindowThumbnail()
74 AppWindowThumbnail(Transaction t, AppWindowToken appToken, GraphicBuffer thumbnailHeader, in AppWindowThumbnail() argument
76 mAppToken = appToken; in AppWindowThumbnail()
84 new SurfaceAnimator(this, this::onAnimationFinished, appToken.mWmService); in AppWindowThumbnail()
90 WindowState window = appToken.findMainWindow(); in AppWindowThumbnail()
95 mSurfaceControl = appToken.makeSurface() in AppWindowThumbnail()
96 .setName("thumbnail anim: " + appToken.toString()) in AppWindowThumbnail()
[all …]
DActivityRecord.java263 final IApplicationToken.Stub appToken; // window manager token field in ActivityRecord
686 mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken, in scheduleActivityMovedToDisplay() local
704 mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken, in scheduleConfigurationChanged() local
724 mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken, in scheduleTopResumedActivityChanged() local
753 mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken, in scheduleMultiWindowModeChanged() local
789 mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken, in schedulePictureInPictureModeChanged() local
949 appToken = new Token(this, _intent); in ActivityRecord()
1113 mAppWindowToken = mAtmService.mWindowManager.mRoot.getAppWindowToken(appToken.asBinder()); in createAppWindowToken()
1116 Slog.w(TAG, "Attempted to add existing app token: " + appToken); in createAppWindowToken()
1122 mAppWindowToken = createAppWindow(mAtmService.mWindowManager, appToken, in createAppWindowToken()
[all …]
DRecentsAnimationController.java703 boolean shouldApplyInputConsumer(AppWindowToken appToken) { in shouldApplyInputConsumer() argument
707 return mInputConsumerEnabled && mTargetAppToken != appToken && isAnimatingApp(appToken); in shouldApplyInputConsumer()
745 private boolean isAnimatingApp(AppWindowToken appToken) { in isAnimatingApp() argument
750 if (app == appToken) { in isAnimatingApp()
DAppWindowToken.java151 final IApplicationToken appToken; field in AppWindowToken
372 appToken = token; in AppWindowToken()
376 mInputApplicationHandle = new InputApplicationHandle(appToken.asBinder()); in AppWindowToken()
398 if (appToken == null) { in updateReportedVisibilityLocked()
455 Slog.v(TAG_WM, "Reporting gone in " + mActivityRecord.appToken); in onWindowsGone()
465 Slog.v(TAG_WM, "Reporting visible in " + mActivityRecord.appToken); in onWindowsVisible()
507 + appToken + ", visible=" + visible + "): " + appTransition in setVisibility()
776 ? mActivityRecord.appToken : null; in reportDescendantOrientationChangeIfNeeded()
1447 if (DEBUG_ORIENTATION) logWithStack(TAG, "Set freezing of " + appToken + ": hidden=" in startFreezingScreen()
3023 if (appToken != null) { in dump()
[all …]
DActivityStack.java454 activityPausedLocked(r.appToken, true); in handleMessage()
471 activityDestroyedLocked(r != null ? r.appToken : null, "destroyTimeout"); in handleMessage()
1133 if (!r.finishing && (token != r.appToken) && r.okToShowLocked()) { in topRunningActivityLocked()
1523 activityPausedLocked(mPausingActivity.appToken, true); in awakeFromSleepingLocked()
1702 prev.appToken, PauseActivityItem.obtain(prev.finishing, userLeaving, in startPausingLocked()
2428 r.appToken, WindowVisibilityItem.obtain(false /* showWindow */)); in makeInvisible()
2504 mWindowManager.setWindowOpaque(waitingActivity.appToken, false); in notifyActivityDrawnLocked()
2508 waitingActivity.appToken, r != null); in notifyActivityDrawnLocked()
2794 requestFinishActivityLocked(mLastNoHistoryActivity.appToken, Activity.RESULT_CANCELED, in resumeTopActivityInnerLocked()
2963 ClientTransaction.obtain(next.app.getThread(), next.appToken); in resumeTopActivityInnerLocked()
[all …]
DInputManagerCallback.java108 if (appWindowToken != null && appWindowToken.appToken != null) { in notifyANR()
DSession.java180 public void prepareToReplaceWindows(IBinder appToken, boolean childrenOnly) { in prepareToReplaceWindows() argument
181 mService.setWillReplaceWindows(appToken, childrenOnly); in prepareToReplaceWindows()
DAccessibilityController.java669 final AppWindowToken appToken = windowState.mAppToken; in getLetterboxBounds() local
670 if (appToken == null) { in getLetterboxBounds()
675 final Rect letterboxInsets = appToken.getLetterboxInsets(); in getLetterboxBounds()
DActivityStackSupervisor.java844 proc.getThread(), r.appToken); in realStartActivityLocked()
892 stack.requestFinishActivityLocked(r.appToken, Activity.RESULT_CANCELED, null, in realStartActivityLocked()
2273 tp.getWriteFd(), r.appToken, innerPrefix, args); in dumpHistoryList()
2495 mWindowManager.notifyAppRelaunching(r.appToken); in activityRelaunchingLocked()
2591 activityIdleInternalLocked(r != null ? r.appToken : null, true /* fromTimeout */, in activityIdleInternal()
DActivityStartController.java441 resultTo = outActivity[0] != null ? outActivity[0].appToken : null; in startActivities()
DActivityDisplay.java1061 .notifySizeCompatModeActivityChanged(mDisplayId, r.appToken); in handleActivitySizeCompatModeIfNeeded()
1228 final IBinder token = r.appToken; in setFocusedApp()
DRootActivityContainer.java652 ? starting.appToken : null, in ensureVisibilityAndConfig()
682 topActivityTokens.add(0, top.appToken); in getTopVisibleActivities()
684 topActivityTokens.add(top.appToken); in getTopVisibleActivities()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskTests.java47 final WindowTestUtils.TestAppWindowToken appToken = in testRemoveContainer() local
54 assertNull(appToken.getParent()); in testRemoveContainer()
61 final WindowTestUtils.TestAppWindowToken appToken = in testRemoveContainer_deferRemoval() local
71 assertNotNull(appToken.getParent()); in testRemoveContainer_deferRemoval()
76 assertNull(appToken.getParent()); in testRemoveContainer_deferRemoval()
DAppWindowTokenTests.java399 final WindowTestUtils.TestAppWindowToken appToken = createIsolatedTestAppWindowToken(); in testAddRemoveRace() local
401 appToken.addStartingWindow(mPackageName, in testAddRemoveRace()
404 appToken.removeStartingWindow(); in testAddRemoveRace()
406 assertNoStartingWindow(appToken); in testAddRemoveRace()
408 appToken.getParent().getParent().removeImmediately(); in testAddRemoveRace()
421 android.R.style.Theme, null, "Test", 0, 0, 0, 0, token1.appToken.asBinder(), in testTransferStartingWindow()
437 token1.appToken.asBinder(), true, true, false, in testTransferStartingWindowWhileCreating()
455 final WindowTestUtils.TestAppWindowToken appToken = in createTestAppWindowTokenForGivenTask() local
457 task.addChild(appToken, 0); in createTestAppWindowTokenForGivenTask()
459 return appToken; in createTestAppWindowTokenForGivenTask()
DTestWindowManagerPolicy.java112 public StartingSurface addSplashScreen(IBinder appToken, String packageName, int theme, in addSplashScreen() argument
119 atoken = wm.mRoot.getAppWindowToken(appToken); in addSplashScreen()
DActivityRecordTests.java204 mService.restartActivityProcessIfVisible(mActivity.appToken); in testRestartProcessIfVisible()
381 eq(mActivity.appToken), eq(expected)); in testSetRequestedOrientationUpdatesConfiguration()
439 eq(mActivity.app.getThread()), eq(mActivity.appToken), eq(expected)); in testPushConfigurationWhenLaunchTaskBehind()
DActivityDisplayTests.java372 assertEquals(activity.appToken, resultWrapper.get(0).get(2, TimeUnit.SECONDS)); in testHandleActivitySizeCompatMode()
/frameworks/base/services/core/java/com/android/server/policy/
DSplashScreenSurface.java42 SplashScreenSurface(View view, IBinder appToken) { in SplashScreenSurface() argument
44 mAppToken = appToken; in SplashScreenSurface()
DWindowManagerPolicy.java968 public StartingSurface addSplashScreen(IBinder appToken, String packageName, int theme, in addSplashScreen() argument
DPhoneWindowManager.java2342 public StartingSurface addSplashScreen(IBinder appToken, String packageName, int theme, in addSplashScreen() argument
2442 params.token = appToken; in addSplashScreen()
2461 + packageName + " / " + appToken + ": " + (view.getParent() != null ? view : null)); in addSplashScreen()
2467 return view.getParent() != null ? new SplashScreenSurface(view, appToken) : null; in addSplashScreen()
2470 Log.w(TAG, appToken + " already running, starting window not displayed. " + in addSplashScreen()
2476 Log.w(TAG, appToken + " failed creating starting window", e); in addSplashScreen()
/frameworks/base/core/java/android/view/
DWindow.java759 public void setWindowManager(WindowManager wm, IBinder appToken, String appName) { in setWindowManager() argument
760 setWindowManager(wm, appToken, appName, false); in setWindowManager()
770 public void setWindowManager(WindowManager wm, IBinder appToken, String appName, in setWindowManager() argument
772 mAppToken = appToken; in setWindowManager()
DIWindowSession.aidl116 void prepareToReplaceWindows(IBinder appToken, boolean childrenOnly); in prepareToReplaceWindows() argument
/frameworks/base/core/java/android/app/
DActivityManagerInternal.java217 ComponentName activity, int userId, int event, IBinder appToken, in updateActivityUsageStats() argument

12