Home
last modified time | relevance | path

Searched refs:topActivity (Results 1 – 25 of 101) sorted by relevance

12345

/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotationCompatPolicy.java125 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 …]
DDisplayWindowPolicyControllerHelper.java140 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()
DCameraCompatFreeformPolicy.java153 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()
DDisplayRotationReversionController.java141 final ActivityRecord topActivity = in isTopFullscreenActivityNoSensor() local
143 return topActivity != null && topActivity.getOrientation() in isTopFullscreenActivityNoSensor()
DCameraStateMonitor.java236 final ActivityRecord topActivity = mDisplayContent.topRunningActivity( in findCameraActivity() local
238 if (topActivity != null && topActivity.packageName.equals(packageName)) { in findCameraActivity()
239 return topActivity; in findCameraActivity()
DAbsAppSnapshotController.java150 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()
DBackgroundActivityStartController.java1285 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 …]
DTask.java859 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/
DActivityRecordTests.java311 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 …]
DAppWindowTokenAnimationTests.java79 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()
DTransparentPolicyTest.java339 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()
DDisplayWindowPolicyControllerTests.java257 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/
DTask.java236 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/
DScreenshotPolicyImpl.kt85 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/
DDisplayContentScenarios.kt84 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/
DNewRootTaskInfo.kt87 topActivity: ComponentName? = null, in newRootTaskInfo()
105 this.topActivity = topActivity in newRootTaskInfo()
/frameworks/base/core/java/android/app/
DTaskInfo.java90 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/
DPipUiEventLogger.kt33 if (taskInfo?.topActivity != null) { in setTaskInfo()
35 mPackageName = taskInfo.topActivity!!.packageName in setTaskInfo()
DPipMediaController.kt291 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/
DVirtualDeviceInternal.java99 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()
DIVirtualDeviceActivityListener.aidl35 void onTopActivityChanged(int displayId, in ComponentName topActivity, in int userId); in onTopActivityChanged() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotPolicyImplTest.kt139 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/
DActivityTransitionDrawableTest.java66 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/
DActivityManagerKt.kt30 return tasks.isNotEmpty() && packageName == tasks[0].topActivity?.packageName in isInForeground()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/util/
DActivityManagerWrapperMock.kt32 .thenReturn(ActivityManager.RunningTaskInfo().apply { topActivity = topActivityMock }) in ActivityManagerWrapper()

12345