/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayRotationCompatPolicy.java | 125 final ActivityRecord topActivity = mDisplayContent.topRunningActivity( in getOrientationInternal() local 127 if (!isTreatmentEnabledForActivity(topActivity)) { in getOrientationInternal() 131 topActivity.getRequestedConfigurationOrientation() == ORIENTATION_PORTRAIT; in getOrientationInternal() 164 final ActivityRecord topActivity = mDisplayContent.topRunningActivity( in onScreenRotationAnimationFinished() local 167 || !isTreatmentEnabledForActivity(topActivity)) { in onScreenRotationAnimationFinished() 176 ActivityRecord topActivity = mDisplayContent.topRunningActivity( in getSummaryForDisplayRotationHistoryRecord() local 182 + (topActivity == null ? "null" : topActivity.shortComponentName) in getSummaryForDisplayRotationHistoryRecord() 184 + isTreatmentEnabledForActivity(topActivity) in getSummaryForDisplayRotationHistoryRecord() 357 final ActivityRecord topActivity = mDisplayContent.topRunningActivity( in onCameraClosed() local 359 if (topActivity == null in onCameraClosed() [all …]
|
D | DisplayWindowPolicyControllerHelper.java | 140 ActivityRecord topActivity = mDisplayContent.getTopActivity(false /* includeFinishing */, in onRunningActivityChanged() local 142 if (topActivity != mTopRunningActivity) { in onRunningActivityChanged() 143 mTopRunningActivity = topActivity; in onRunningActivityChanged() 144 if (topActivity == null) { in onRunningActivityChanged() 149 topActivity.info.getComponentName(), topActivity.info.applicationInfo.uid, in onRunningActivityChanged() 150 topActivity.mUserId); in onRunningActivityChanged()
|
D | CameraCompatFreeformPolicy.java | 153 private static int getCameraCompatMode(@NonNull ActivityRecord topActivity) { in getCameraCompatMode() argument 154 return switch (topActivity.getRequestedConfigurationOrientation()) { in getCameraCompatMode() 188 final ActivityRecord topActivity = mDisplayContent.topRunningActivity( in isActivityForCameraIdRefreshing() local 190 if (topActivity == null || !isTreatmentEnabledForActivity(topActivity) in isActivityForCameraIdRefreshing() 191 || mCameraStateMonitor.isCameraWithIdRunningForActivity(topActivity, cameraId)) { in isActivityForCameraIdRefreshing() 194 return topActivity.mLetterboxUiController.isRefreshRequested(); in isActivityForCameraIdRefreshing()
|
D | DisplayRotationReversionController.java | 141 final ActivityRecord topActivity = in isTopFullscreenActivityNoSensor() local 143 return topActivity != null && topActivity.getOrientation() in isTopFullscreenActivityNoSensor()
|
D | CameraStateMonitor.java | 236 final ActivityRecord topActivity = mDisplayContent.topRunningActivity( in findCameraActivity() local 238 if (topActivity != null && topActivity.packageName.equals(packageName)) { in findCameraActivity() 239 return topActivity; in findCameraActivity()
|
D | AbsAppSnapshotController.java | 150 protected abstract Rect getLetterboxInsets(ActivityRecord topActivity); in getLetterboxInsets() argument 411 final ActivityRecord topActivity = getTopActivity(source); in drawAppThemeSnapshot() local 412 if (topActivity == null) { in drawAppThemeSnapshot() 415 final WindowState mainWindow = topActivity.findMainWindow(); in drawAppThemeSnapshot() 447 final Rect letterboxInsets = getLetterboxInsets(topActivity); in drawAppThemeSnapshot() 454 topActivity.mActivityComponent, hwBitmap.getHardwareBuffer(), in drawAppThemeSnapshot()
|
D | BackgroundActivityStartController.java | 1285 ActivityRecord topActivity = task.getActivity(ar -> !ar.finishing && !ar.isAlwaysOnTop()); in checkActivityAllowedToClearTask() local 1292 topActivity == null ? NO_PROCESS_UID : topActivity.getUid(), in checkActivityAllowedToClearTask() 1294 topActivity == null ? null : topActivity.info.name, in checkActivityAllowedToClearTask() 1368 ActivityRecord topActivity = task.getTopMostActivity(); in checkTopActivityForAsm() local 1369 if (topActivity == null) { in checkTopActivityForAsm() 1371 return bas.optedIn(topActivity); in checkTopActivityForAsm() 1374 bas = checkCrossUidActivitySwitchFromBelow(topActivity, uid, bas); in checkTopActivityForAsm() 1391 topActivity = task.getActivity(topOfStackPredicate); in checkTopActivityForAsm() 1392 if (topActivity == null) { in checkTopActivityForAsm() 1396 bas = checkCrossUidActivitySwitchFromBelow(topActivity, uid, bas); in checkTopActivityForAsm() [all …]
|
D | Task.java | 859 final ActivityRecord topActivity = getTopNonFinishingActivity(); in reparent() local 898 mTaskSupervisor.mNoAnimActivities.add(topActivity); in reparent() 3407 info.topActivity = top != null ? top.mActivityComponent : null; 3542 info.topActivity = new ComponentName("", ""); 4573 ActivityRecord topActivity = getTopNonFinishingActivity(); 4574 Task leaf = topActivity != null ? topActivity.getTask() : null; 4712 final ActivityRecord topActivity = getTopNonFinishingActivity(); 4737 && topActivity != null && !topActivity.noDisplay 4738 && topActivity.canForceResizeNonResizable(likelyResolvedMode)) { 4741 final String packageName = topActivity.info.applicationInfo.packageName; [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityRecordTests.java | 311 final ActivityRecord topActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testPausingWhenVisibleFromStopped() local 312 task.mTranslucentActivityWaiting = topActivity; in testPausingWhenVisibleFromStopped() 317 topActivity.setOccludesParent(false); in testPausingWhenVisibleFromStopped() 748 ActivityRecord topActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testShouldMakeActive_nonTopVisible() local 777 ActivityRecord topActivity = new ActivityBuilder(mAtm).setTask(task).build(); in testShouldResumeOrPauseWithResults() local 778 activity.addResultLocked(topActivity, "resultWho", 0, 0, new Intent(), in testShouldResumeOrPauseWithResults() 780 topActivity.finishing = true; in testShouldResumeOrPauseWithResults() 838 ActivityRecord topActivity = new ActivityBuilder(mAtm).setTask(activity.getTask()).build(); in testShouldStartWhenMakeClientActive() local 839 topActivity.setOccludesParent(false); in testShouldStartWhenMakeClientActive() 841 assertTrue(topActivity.providesOrientation()); in testShouldStartWhenMakeClientActive() [all …]
|
D | AppWindowTokenAnimationTests.java | 79 final ActivityRecord topActivity = createActivityRecord(task); in clipAfterAnim_boundsLayerZBoosted() local 82 assertThat(topActivity.getLastLayer()).isGreaterThan(mActivity.getLastLayer()); in clipAfterAnim_boundsLayerZBoosted() 90 intThat(layer -> layer > topActivity.getLastLayer())); in clipAfterAnim_boundsLayerZBoosted() 95 assertThat(topActivity.getLastLayer()).isGreaterThan(mActivity.getLastLayer()); in clipAfterAnim_boundsLayerZBoosted()
|
D | TransparentPolicyTest.java | 339 final ActivityRecord topActivity = mActivityStack.top(); in configureTopActivityAsEmbedded() local 340 spyOn(topActivity); in configureTopActivityAsEmbedded() 341 doReturn(true).when(topActivity).isEmbedded(); in configureTopActivityAsEmbedded() 474 final ActivityRecord topActivity = mActivityStack.top(); in checkTopActivityHasInheritedBoundsFrom() local 478 final Rect translucentRequestedBounds = topActivity.getRequestedOverrideBounds(); in checkTopActivityHasInheritedBoundsFrom() 496 final ActivityRecord topActivity = mActivityStack.top(); in checkTopAspectRatios() local 497 Assert.assertEquals(minAspectRatio, topActivity.getMinAspectRatio(), 0.0001); in checkTopAspectRatios() 498 Assert.assertEquals(maxAspectRatio, topActivity.getMaxAspectRatio(), 0.0001); in checkTopAspectRatios()
|
D | DisplayWindowPolicyControllerTests.java | 257 public void onTopActivityChanged(ComponentName topActivity, int uid, int userId) { in onTopActivityChanged() argument 258 super.onTopActivityChanged(topActivity, uid, userId); in onTopActivityChanged() 259 mTopActivity = topActivity; in onTopActivityChanged()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | Task.java | 236 public ComponentName topActivity; field in Task 268 taskInfo.topActivity); in from() 278 other.isLocked, other.taskDescription, other.topActivity); in Task() 290 ComponentName topActivity) { in Task() argument 297 this.topActivity = topActivity; in Task() 304 return topActivity != null in getTopComponent() 305 ? topActivity in getTopComponent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotPolicyImpl.kt | 85 info.topActivity != null && in <lambda>() 178 val topActivity: ComponentName = topActivity ?: error("should not be null") in toDisplayContentInfo() constant 185 topActivity, in toDisplayContentInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/data/model/ |
D | DisplayContentScenarios.kt | 84 topActivity = in launcherOnly() 229 topActivity = ComponentName.unflattenFromString(ActivityNames.LAUNCHER), in launcher() 242 topActivity = ComponentName.unflattenFromString(task.name), in fullScreen() 254 topActivity = ComponentName.unflattenFromString(task.name), in pictureInPicture() 266 topActivity = ComponentName.unflattenFromString(task.name), in freeForm()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/policy/ |
D | NewRootTaskInfo.kt | 87 topActivity: ComponentName? = null, in newRootTaskInfo() 105 this.topActivity = topActivity in newRootTaskInfo()
|
/frameworks/base/core/java/android/app/ |
D | TaskInfo.java | 90 public ComponentName topActivity; field in TaskInfo 430 && Objects.equals(topActivity, that.topActivity) in equalsForTaskOrganizer() 468 topActivity = ComponentName.readFromParcel(source); in readFromParcel() 515 ComponentName.writeToParcel(topActivity, dest); in writeToParcel() 557 + " topActivity=" + topActivity + " origActivity=" + origActivity in toString()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipUiEventLogger.kt | 33 if (taskInfo?.topActivity != null) { in setTaskInfo() 35 mPackageName = taskInfo.topActivity!!.packageName in setTaskInfo()
|
D | PipMediaController.kt | 291 val topActivity = PipUtils.getTopPipActivity(mContext).first in <lambda>() constant 292 if (topActivity != null) { in <lambda>() 295 if (controller.packageName == topActivity.packageName) { in <lambda>()
|
/frameworks/base/core/java/android/companion/virtual/ |
D | VirtualDeviceInternal.java | 99 public void onTopActivityChanged(int displayId, ComponentName topActivity, 106 .onTopActivityChanged(displayId, topActivity); 108 .onTopActivityChanged(displayId, topActivity, userId); 486 public void onTopActivityChanged(int displayId, ComponentName topActivity) { in onTopActivityChanged() argument 487 mExecutor.execute(() -> mActivityListener.onTopActivityChanged(displayId, topActivity)); in onTopActivityChanged() 490 public void onTopActivityChanged(int displayId, ComponentName topActivity, in onTopActivityChanged() argument 493 mActivityListener.onTopActivityChanged(displayId, topActivity, userId)); in onTopActivityChanged()
|
D | IVirtualDeviceActivityListener.aidl | 35 void onTopActivityChanged(int displayId, in ComponentName topActivity, in int userId); in onTopActivityChanged() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ScreenshotPolicyImplTest.kt | 139 topActivity = ComponentName.unflattenFromString(YOUTUBE_PIP_ACTIVITY), 151 topActivity = ComponentName.unflattenFromString(FILES_HOME_ACTIVITY), 165 topActivity = ComponentName.unflattenFromString(LAUNCHER_ACTIVITY),
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityTransitionDrawableTest.java | 66 TestActivity topActivity = TestActivity.sInstances.get(2); in stopTransitionDrawableAlphaRestored() local 68 assertThat(topActivity.startedLatch.await(5, TimeUnit.SECONDS)).isTrue(); in stopTransitionDrawableAlphaRestored()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | ActivityManagerKt.kt | 30 return tasks.isNotEmpty() && packageName == tasks[0].topActivity?.packageName in isInForeground()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/util/ |
D | ActivityManagerWrapperMock.kt | 32 .thenReturn(ActivityManager.RunningTaskInfo().apply { topActivity = topActivityMock }) in ActivityManagerWrapper()
|