Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java1031 for (TopTaskInfoContainer topTask : topTasks) { in blockTopActivitiesIfNecessary()
1032 if (topTask == null) { in blockTopActivitiesIfNecessary()
1036 blockTopActivityIfNecessary(topTask); in blockTopActivitiesIfNecessary()
1040 private void blockTopActivityIfNecessary(TopTaskInfoContainer topTask) { in blockTopActivityIfNecessary() argument
1041 if (isUxRestrictedOnDisplay(topTask.displayId)) { in blockTopActivityIfNecessary()
1042 doBlockTopActivityIfNotAllowed(topTask); in blockTopActivityIfNecessary()
1046 private void doBlockTopActivityIfNotAllowed(TopTaskInfoContainer topTask) { in doBlockTopActivityIfNotAllowed() argument
1047 if (topTask.topActivity == null) { in doBlockTopActivityIfNotAllowed()
1054 Log.i(CarLog.TAG_PACKAGE, "Packages not parsed, so ignoring block for " + topTask); in doBlockTopActivityIfNotAllowed()
1060 topTask.topActivity.getPackageName(), in doBlockTopActivityIfNotAllowed()
[all …]
/packages/services/Car/service/src/com/android/car/
DSystemActivityMonitoringService.java100 void onActivityLaunch(TopTaskInfoContainer topTask); in onActivityLaunch() argument
192 TopTaskInfoContainer topTask = mTopTasks.valueAt(i); in getTopTasks() local
193 if (topTask == null) { in getTopTasks()
198 tasks.add(topTask); in getTopTasks()
326 TopTaskInfoContainer topTask = topTasks.valueAt(i); in updateTasks() local
329 mTopTasks.put(displayId, topTask); in updateTasks()
334 TopTaskInfoContainer topTask = topTasks.valueAt(i); in updateTasks() local
337 Log.i(CarLog.TAG_AM, "Notifying about top task: " + topTask.toString()); in updateTasks()
339 listener.onActivityLaunch(topTask); in updateTasks()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSystemActivityMonitoringServiceTest.java229 public void onActivityLaunch(TopTaskInfoContainer topTask) { in onActivityLaunch() argument
231 if (!getTestContext().getPackageName().equals(topTask.topActivity.getPackageName())) { in onActivityLaunch()
233 + topTask.topActivity.getClassName()); in onActivityLaunch()
236 if (!topTask.topActivity.equals(mDesiredComponent)) { in onActivityLaunch()
238 topTask.topActivity.getClassName(), mDesiredComponent)); in onActivityLaunch()
242 mTopTask = topTask; in onActivityLaunch()