Home
last modified time | relevance | path

Searched refs:activityType (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/core/java/android/hardware/location/
DActivityRecognitionHardware.java100 int activityType = getActivityType(activity); in isActivitySupported() local
101 return activityType != INVALID_ACTIVITY_TYPE; in isActivitySupported()
120 int activityType = getActivityType(activity); in enableActivityEvent() local
121 if (activityType == INVALID_ACTIVITY_TYPE) { in enableActivityEvent()
125 int result = nativeEnableActivityEvent(activityType, eventType, reportLatencyNs); in enableActivityEvent()
127 mSupportedActivitiesEnabledEvents[activityType][eventType] = EVENT_TYPE_ENABLED; in enableActivityEvent()
137 int activityType = getActivityType(activity); in disableActivityEvent() local
138 if (activityType == INVALID_ACTIVITY_TYPE) { in disableActivityEvent()
142 int result = nativeDisableActivityEvent(activityType, eventType); in disableActivityEvent()
144 mSupportedActivitiesEnabledEvents[activityType][eventType] = EVENT_TYPE_DISABLED; in disableActivityEvent()
[all …]
DIActivityRecognitionHardware.aidl36 boolean isActivitySupported(in String activityType); in isActivitySupported() argument
51 boolean enableActivityEvent(in String activityType, int eventType, long reportLatencyNs); in enableActivityEvent() argument
56 boolean disableActivityEvent(in String activityType, int eventType); in disableActivityEvent() argument
/frameworks/base/services/core/java/com/android/server/wm/
DConfigurationContainer.java517 public void setActivityType(/*@WindowConfiguration.ActivityType*/ int activityType) { in setActivityType() argument
519 if (currentActivityType == activityType) { in setActivityType()
524 + " activityType=" + activityTypeToString(activityType)); in setActivityType()
527 mRequestsTmpConfig.windowConfiguration.setActivityType(activityType); in setActivityType()
570 /*@WindowConfiguration.ActivityType*/ final int activityType = getActivityType(); in isActivityTypeStandardOrUndefined() local
571 return activityType == ACTIVITY_TYPE_STANDARD || activityType == ACTIVITY_TYPE_UNDEFINED; in isActivityTypeStandardOrUndefined()
599 public boolean isCompatible(int windowingMode, int activityType) { in isCompatible() argument
602 final boolean sameActivityType = thisActivityType == activityType; in isCompatible()
609 if ((activityType != ACTIVITY_TYPE_UNDEFINED && activityType != ACTIVITY_TYPE_STANDARD) in isCompatible()
DTaskDisplayArea.java131 boolean contains(int windowingMode, int activityType) { in contains() argument
133 && ArrayUtils.contains(activityTypes, activityType); in contains()
218 Task getRootTask(int windowingMode, int activityType) { in getRootTask() argument
219 if (activityType == ACTIVITY_TYPE_HOME) { in getRootTask()
221 } else if (activityType == ACTIVITY_TYPE_RECENTS) { in getRootTask()
230 if (activityType == ACTIVITY_TYPE_UNDEFINED in getRootTask()
236 return rootTask.isCompatible(windowingMode, activityType); in getRootTask()
1064 Task getOrCreateRootTask(int windowingMode, int activityType, boolean onTop) {
1065 return getOrCreateRootTask(windowingMode, activityType, onTop, null /* candidateTask */,
1087 Task getOrCreateRootTask(int windowingMode, int activityType, boolean onTop,
[all …]
DResetTargetTaskHelper.java236 final int activityType = mTargetRootTask.getActivityType(); in processPendingReparentActivities() local
241 activityType); in processPendingReparentActivities()
255 activityType, false /* onTop */); in processPendingReparentActivities()
DRootWindowContainer.java321 void init(int activityType, String taskAffinity, Intent intent, ActivityInfo info) { in init() argument
322 mActivityType = activityType; in init()
2246 ActivityRecord findTask(int activityType, String taskAffinity, Intent intent, ActivityInfo info, in findTask() argument
2249 + ", info=%s, preferredTDA=%s", activityType, taskAffinity, intent, info, in findTask()
2251 mTmpFindTaskResult.init(activityType, taskAffinity, intent, info); in findTask()
2427 Task getRootTask(int windowingMode, int activityType) { in getRootTask() argument
2429 final Task rootTask = getChildAt(i).getRootTask(windowingMode, activityType); in getRootTask()
2437 private Task getRootTask(int windowingMode, int activityType, in getRootTask() argument
2443 return display.getRootTask(windowingMode, activityType); in getRootTask()
2510 RootTaskInfo getRootTaskInfo(int windowingMode, int activityType) { in getRootTaskInfo() argument
[all …]
DSafeActivityOptions.java298 final int activityType = options.getLaunchActivityType(); in checkPermissions() local
299 if (activityType != ACTIVITY_TYPE_UNDEFINED in checkPermissions()
303 if (activityType == ACTIVITY_TYPE_ASSISTANT in checkPermissions()
DLaunchParamsController.java153 final int activityType = activity != null in layoutTask() local
156 mTmpParams.mWindowingMode, activity, task, activityType)); in layoutTask()
DTaskSnapshotSurface.java178 final int activityType; in create() local
223 activityType = activity.getActivityType(); in create()
241 activityType, insetsState); in create()
261 int windowPrivateFlags, Rect taskBounds, int currentOrientation, int activityType, in TaskSnapshotSurface() argument
278 mActivityType = activityType; in TaskSnapshotSurface()
DTaskLaunchParamsModifier.java297 final int activityType = in calculate() local
301 resolvedMode, activityType, null /* ActivityOptions */, in calculate()
327 + WindowConfiguration.activityTypeToString(activityType) + ", " in calculate()
DTask.java1692 final int activityType = getActivityType(); in addChild() local
1733 r.setActivityType(activityType); in addChild()
3279 public boolean isCompatible(int windowingMode, int activityType) { in isCompatible() argument
3281 if (activityType == ACTIVITY_TYPE_UNDEFINED) { in isCompatible()
3284 activityType = ACTIVITY_TYPE_STANDARD; in isCompatible()
3286 return super.isCompatible(windowingMode, activityType); in isCompatible()
3823 final int activityType = getActivityType();
3825 || activityType == ACTIVITY_TYPE_HOME
3826 || activityType == ACTIVITY_TYPE_RECENTS
3827 || activityType == ACTIVITY_TYPE_ASSISTANT;
[all …]
DRecentTasks.java1922 final int activityType = t1.getActivityType(); in hasCompatibleActivityTypeAndWindowingMode() local
1924 final boolean isUndefinedType = activityType == ACTIVITY_TYPE_UNDEFINED; in hasCompatibleActivityTypeAndWindowingMode()
1933 final boolean isCompatibleType = activityType == otherActivityType in hasCompatibleActivityTypeAndWindowingMode()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestsBase.java317 DisplayContent dc, int windowingMode, int activityType, int type) { in createWindowToken() argument
325 return createActivityRecord(dc, windowingMode, activityType); in createWindowToken()
360 WindowState createWindow(WindowState parent, int windowingMode, int activityType, in createWindow() argument
362 final WindowToken token = createWindowToken(dc, windowingMode, activityType, type); in createWindow()
493 int windowingMode, int activityType, boolean onTop, boolean twoLevelTask) { in createTaskWithActivity() argument
494 return createTask(taskDisplayArea, windowingMode, activityType, in createTaskWithActivity()
504 Task createTask(DisplayContent dc, int windowingMode, int activityType) { in createTask() argument
505 return createTask(dc.getDefaultTaskDisplayArea(), windowingMode, activityType); in createTask()
508 Task createTask(TaskDisplayArea taskDisplayArea, int windowingMode, int activityType) { in createTask() argument
509 return createTask(taskDisplayArea, windowingMode, activityType, in createTask()
[all …]
DRootTaskTests.java1128 TaskDisplayArea taskDisplayArea, int windowingMode, int activityType, boolean onTop) { in createTaskForShouldBeVisibleTest() argument
1130 windowingMode, activityType, onTop, false /* twoLevelTask */); in createTaskForShouldBeVisibleTest()
1135 int windowingMode, int activityType, boolean onTop, boolean twoLevelTask) { in createTaskForShouldBeVisibleTest() argument
1137 if (activityType == ACTIVITY_TYPE_HOME) { in createTaskForShouldBeVisibleTest()
1146 .setActivityType(activityType) in createTaskForShouldBeVisibleTest()
1155 .setActivityType(activityType) in createTaskForShouldBeVisibleTest()
DAppTransitionControllerTest.java75 ActivityRecord createActivityRecord(DisplayContent dc, int windowingMode, int activityType) { in createActivityRecord() argument
76 final ActivityRecord r = super.createActivityRecord(dc, windowingMode, activityType); in createActivityRecord()
DTaskDisplayAreaTests.java528 private void assertGetOrCreateRootTask(int windowingMode, int activityType, Task candidateTask, in assertGetOrCreateRootTask() argument
531 final Task rootTask = taskDisplayArea.getOrCreateRootTask(windowingMode, activityType, in assertGetOrCreateRootTask()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DTestRunningTaskInfoBuilder.java58 @WindowConfiguration.ActivityType int activityType) { in setActivityType()
59 mActivityType = activityType; in setActivityType()
/frameworks/base/core/java/android/app/
DWindowConfiguration.java390 public void setActivityType(@ActivityType int activityType) { in setActivityType() argument
391 if (mActivityType == activityType) { in setActivityType()
400 && activityType != ACTIVITY_TYPE_UNDEFINED) { in setActivityType()
402 + " activityType=" + activityTypeToString(activityType)); in setActivityType()
404 mActivityType = activityType; in setActivityType()
859 public static boolean supportSplitScreenWindowingMode(int activityType) { in supportSplitScreenWindowingMode() argument
860 return activityType != ACTIVITY_TYPE_ASSISTANT && activityType != ACTIVITY_TYPE_DREAM; in supportSplitScreenWindowingMode()
DIActivityTaskManager.aidl220 ActivityTaskManager.RootTaskInfo getRootTaskInfo(int windowingMode, int activityType); in getRootTaskInfo() argument
222 …ActivityTaskManager.RootTaskInfo getRootTaskInfoOnDisplay(int windowingMode, int activityType, int… in getRootTaskInfoOnDisplay() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/system/
DRemoteTransitionTest.java107 assertEquals(ACTIVITY_TYPE_HOME, wrapped.activityType);
145 private static ActivityManager.RunningTaskInfo createTaskInfo(int taskId, int activityType) {
148 taskInfo.configuration.windowConfiguration.setActivityType(activityType);
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DRemoteAnimationTargetCompat.java57 public final int activityType; field in RemoteAnimationTargetCompat
89 activityType = app.windowConfiguration.getActivityType(); in RemoteAnimationTargetCompat()
211 activityType = change.getTaskInfo().getActivityType(); in RemoteAnimationTargetCompat()
214 activityType = ACTIVITY_TYPE_UNDEFINED; in RemoteAnimationTargetCompat()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/systemsounds/
DHomeSoundEffectControllerTest.java418 int activityType, int taskId, boolean playHomeTransitionSound) { in createRunningTaskInfo() argument
422 res.topActivityType = activityType; in createRunningTaskInfo()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DTaskSnapshotWindow.java201 final int activityType = runningTaskInfo.topActivityType; in create() local
224 windowFlags, windowPrivateFlags, taskBounds, orientation, activityType, in create()
263 int currentOrientation, int activityType, long delayRemovalTime, in TaskSnapshotWindow() argument
280 mActivityType = activityType; in TaskSnapshotWindow()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/
DLegacySplitScreenController.java510 final int activityType = topRunningTask.getActivityType(); in splitPrimaryTask() local
511 if (activityType == ACTIVITY_TYPE_HOME || activityType == ACTIVITY_TYPE_RECENTS) { in splitPrimaryTask()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/
DShellTransitionTests.java529 private static RunningTaskInfo createTaskInfo(int taskId, int windowingMode, int activityType) { in createTaskInfo() argument
533 taskInfo.configuration.windowConfiguration.setActivityType(activityType); in createTaskInfo()

12