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.java1004 for (TopTaskInfoContainer topTask : topTasks) { in blockTopActivitiesIfNecessary()
1005 if (topTask == null) { in blockTopActivitiesIfNecessary()
1009 blockTopActivityIfNecessary(topTask); in blockTopActivitiesIfNecessary()
1013 private void blockTopActivityIfNecessary(TopTaskInfoContainer topTask) { in blockTopActivityIfNecessary() argument
1014 if (isUxRestrictedOnDisplay(topTask.displayId)) { in blockTopActivityIfNecessary()
1015 doBlockTopActivityIfNotAllowed(topTask); in blockTopActivityIfNecessary()
1019 private void doBlockTopActivityIfNotAllowed(TopTaskInfoContainer topTask) { in doBlockTopActivityIfNotAllowed() argument
1020 if (topTask.topActivity == null) { in doBlockTopActivityIfNotAllowed()
1027 Log.i(CarLog.TAG_PACKAGE, "Packages not parsed, so ignoring block for " + topTask); in doBlockTopActivityIfNotAllowed()
1033 topTask.topActivity.getPackageName(), in doBlockTopActivityIfNotAllowed()
[all …]
/packages/services/Car/service/src/com/android/car/
DSystemActivityMonitoringService.java97 void onActivityLaunch(TopTaskInfoContainer topTask); in onActivityLaunch() argument
181 TopTaskInfoContainer topTask = mTopTasks.valueAt(i); in getTopTasks() local
182 if (topTask == null) { in getTopTasks()
187 tasks.add(topTask); in getTopTasks()
309 TopTaskInfoContainer topTask = topTasks.valueAt(i); in updateTasks() local
312 mTopTasks.put(displayId, topTask); in updateTasks()
317 TopTaskInfoContainer topTask = topTasks.valueAt(i); in updateTasks() local
320 Log.i(CarLog.TAG_AM, "Notifying about top task: " + topTask.toString()); in updateTasks()
322 listener.onActivityLaunch(topTask); in updateTasks()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DSystemActivityMonitoringServiceTest.java226 public void onActivityLaunch(TopTaskInfoContainer topTask) { in onActivityLaunch() argument
228 if (!getTestContext().getPackageName().equals(topTask.topActivity.getPackageName())) { in onActivityLaunch()
230 + topTask.topActivity.getClassName()); in onActivityLaunch()
233 if (mDesiredComponent != null && !topTask.topActivity.equals(mDesiredComponent)) { in onActivityLaunch()
235 topTask.topActivity.getClassName(), mDesiredComponent)); in onActivityLaunch()
240 mTopTaskInfo[0] = topTask; in onActivityLaunch()