Skip to content

IPlatform: Add getRunningTasks for idle detection#48

Open
countgitmick wants to merge 1 commit into
waydroid:lineage-20from
countgitmick:feature/stop-on-idle
Open

IPlatform: Add getRunningTasks for idle detection#48
countgitmick wants to merge 1 commit into
waydroid:lineage-20from
countgitmick:feature/stop-on-idle

Conversation

@countgitmick
Copy link
Copy Markdown

Add getRunningTasks() to the IPlatform binder interface. Returns the count of non-home running tasks using ActivityManager.getRunningTasks().

This is the Android-side companion to the host-side idle monitor in waydroid/waydroid#2244, which polls this method to detect when all app windows have been closed and auto-stop the session.

Companion PR: waydroid/waydroid#2244

Add a getRunningTasks() method to the IPlatform binder interface that
returns the number of non-home running tasks. This is the Android-side
companion to the host-side idle monitor in waydroid/waydroid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant