Home
last modified time | relevance | path

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

12

/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DButtonSelectionStateController.java116 if (taskInfo.topActivity != null && taskInfo.displayAreaFeatureId == validDisplay) { in taskChanged()
186 ComponentName topActivity = getTopActivity(validTaskInfo); in findSelectedButtons() local
187 if (topActivity == null) return null; in findSelectedButtons()
189 String packageName = topActivity.getPackageName(); in findSelectedButtons()
192 findButtonsByComponentName(topActivity); in findSelectedButtons()
217 return rootTaskInfo.topActivity; in getTopActivity()
222 return validTaskInfo.topActivity; in getTopActivity()
DRecentsButtonStateProvider.java72 taskInfo.topActivity != null ? taskInfo.topActivity in initialiseListener()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetectorTest.java83 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_systemApp_returnsTrue()
98 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_updatedSystemApp_returnsTrue()
117 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_nonSystemApp_withSafeSource_returnsTrue()
136 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_nonSystemApp_withUnsafeSource_returnsFalse()
155 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_nonSystemApp_withoutSource_returnsFalse()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DCarActivityServiceTaskMonitorUnitTest.java324 assertEquals(mActivityA, taskInfo.topActivity); in testGetTaskInfoForTopActivity()
445 if (topTaskInfoContainer.topActivity.equals(component)) { in topTasksHasComponent()
530 if (!topTask.topActivity.equals(mDesiredComponent)) { in onActivityCameOnTop()
533 topTask.topActivity.getClassName(), mDesiredComponent)); in onActivityCameOnTop()
557 if (taskInfo.topActivity != null && !getTestContext().getPackageName().equals( in isActivityOutsideTestPackage()
558 taskInfo.topActivity.getPackageName())) { in isActivityOutsideTestPackage()
560 + taskInfo.topActivity.getClassName()); in isActivityOutsideTestPackage()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/activity/
DActivityBlockingActivity.java329 if (getComponentName().equals(taskInfo.topActivity)) { in isTopActivityBehindAbaDistractionOptimized()
342 if (topStackBehindAba != null && topStackBehindAba.topActivity != null) { in isTopActivityBehindAbaDistractionOptimized()
344 topStackBehindAba.topActivity.getPackageName(), in isTopActivityBehindAbaDistractionOptimized()
345 topStackBehindAba.topActivity.getClassName()); in isTopActivityBehindAbaDistractionOptimized()
348 String.format("Top activity (%s) is DO: %s", topStackBehindAba.topActivity, in isTopActivityBehindAbaDistractionOptimized()
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java1462 if (!Objects.equals(mActivityBlockingActivity, topTask.topActivity) in blockTopActivityIfNecessary()
1464 && !topTask.topActivity.equals( in blockTopActivityIfNecessary()
1484 if (!Objects.equals(mActivityBlockingActivity, topTask.topActivity) in blockTopActivity()
1486 && !topTask.topActivity.equals( in blockTopActivity()
1500 if (topTask.topActivity == null) { in doBlockTopActivityIfNotAllowed()
1503 if (topTask.topActivity.equals(mActivityBlockingActivity)) { in doBlockTopActivityIfNotAllowed()
1517 Slogf.d(TAG, "Current activity " + topTask.topActivity in doBlockTopActivityIfNotAllowed()
1522 Slogf.d(TAG, "Current activity " + topTask.topActivity in doBlockTopActivityIfNotAllowed()
1530 if (topTask.topActivity.equals(blockingActivityTarget)) { in doBlockTopActivityIfNotAllowed()
1549 topTask.topActivity.flattenToShortString(), topTask.taskId, in doBlockTopActivityIfNotAllowed()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/displaycompat/
DToolbarControllerImpl.java145 if (taskInfo.topActivity != null) { in getPackageName()
146 return taskInfo.topActivity.getPackageName(); in getPackageName()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DDataSubscriptionControllerTest.java125 mRunningTaskInfoMock.topActivity = new ComponentName("testPkgName", "testClassName"); in setUp()
169 packagesBlocklist.add(mRunningTaskInfoMock.topActivity.getPackageName()); in onTaskMovedToFront_TopPackageBlocked_popUpNotDisplay()
181 activitiesBlocklist.add(mRunningTaskInfoMock.topActivity.flattenToString()); in onTaskMovedToFront_TopActivityBlocked_popUpNotDisplay()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DRecentsButtonStateProviderTest.java116 mRecentsRunningTaskInfo.topActivity = ComponentName.unflattenFromString( in setUp()
118 mDialerRunningTaskInfo.topActivity = ComponentName.unflattenFromString( in setUp()
147 mDialerRunningTaskInfo.topActivity = null; in noTopActivityDialerTask_movedToFront_recentsNotActive()
DCarSystemBarButtonTest.java373 if (rootTaskInfo == null || rootTaskInfo.topActivity == null) { in getCurrentActivityName()
376 return rootTaskInfo.topActivity.flattenToShortString(); in getCurrentActivityName()
DButtonSelectionStateControllerTest.java131 validStackInfo.topActivity = componentName; in createTestStack()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DDataSubscriptionController.java104 if (taskInfo.topActivity == null || mConnectivityManager == null) {
107 mTopPackage = taskInfo.topActivity.getPackageName();
112 mTopActivity = taskInfo.topActivity.flattenToString();
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/systembar/
DCarUiPortraitButtonSelectionStateController.java47 return validTaskInfo.topActivity; in getTopActivity()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/app/
DTaskInfoHelper.java66 + " topActivity=" + task.topActivity in toString()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/homeactivities/
DTaskCategoryManager.java220 if (taskInfo.topActivity != null) { in getVisibleActivity()
221 return taskInfo.topActivity; in getVisibleActivity()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/recents/
DRecentTasksProvider.java283 String topComponent = runningTask.topActivity != null in openTopRunningTask()
284 ? runningTask.topActivity.getClassName() in openTopRunningTask()
DCarQuickStepService.java67 .map(appTask -> appTask.getTaskInfo().topActivity).toList(); in isRecentsActivityShown()
/packages/services/Car/service/src/com/android/car/am/
DCarActivityService.java353 || !Objects.equals(oldTaskInfo.topActivity, taskInfo.topActivity)) in onTaskInfoChanged()
666 if (activity.equals(info.topActivity)) { in getTaskInfoForTopActivity()
DFixedActivityService.java457 taskInfo.topActivity, taskInfo.origActivity); in launchIfNecessary()
461 if ((expectedTopActivity.equals(taskInfo.topActivity) in launchIfNecessary()
471 + taskInfo.topActivity + " top task id:" + activityInfo.previousTaskId in launchIfNecessary()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentTasksList.java395 ComponentName cn1 = taskInfo1.topActivity; in dump()
396 ComponentName cn2 = taskInfo2 != null ? taskInfo2.topActivity : null; in dump()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppDetector.java82 ComponentName componentName = taskInfo.topActivity; in isSafe()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DActivityMonitor.java179 listener.onTopActivityChanged(info.displayId, info.topActivity); in notifyTopActivities()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/taskview/
DRemoteCarTaskViewTransitions.java93 + task.topActivity + " to top"); in handleRequest()
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/recents/
DRecentTasksProviderTest.java412 info.topActivity = new ComponentName("pkg-" + i, recentsClazz); in createRunningTaskList()
414 info.topActivity = new ComponentName("pkg-" + i, "class-" + i); in createRunningTaskList()
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/
DClusterHomeApplication.java386 Log.w(TAG, "Unexpected top Activity on Cluster: " + taskInfo.topActivity); in handleTaskStackChanged()
399 if (mClusterActivities.get(i).equals(taskInfo.topActivity)) { in identifyTopTask()

12