Fix Improper Device ID in toRemoteTask

toRemoteTask was assigning the given "ID" field to Task ID, not device ID. This change rectifies that, and adds a unit test to prevent this bug from sneaking in again.

Test: Added unit tests
Bug: 400970610
Flag: android.companion.enable_task_continuity
Change-Id: I658b22ee72f0ecbe218c72a3630dbf3f0796d4ed
2 files changed