commit | 807dab2cb3f619742e29a8e5bcd17268481e8dcd | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Fri Mar 25 20:15:52 2022 +0000 |
committer | Kweku Adams <kwekua@google.com> | Fri Mar 25 20:15:52 2022 +0000 |
tree | c1415dbc1f60a56e6352ac5ff7378d7ee091da79 | |
parent | c88a1ff323efaf3d839db02c37c3e72777f1835a [diff] |
Only clear preferred UID at appropriate times. The preferred UID is set when we call JobServiceContext.cancel(...PREEMPT), so clearing the preferred UID before that call is pointless. Also, make sure not to clear the preferred for contexts that are only going to be used to transfer jobs to the preferred UID. Bug: 141645789 Bug: 204924801 Test: Android builds Change-Id: I18db34a389919432b604d68f90a6901d9e6f9cba