OSDN Git Service

Add timeout when waiting to bind to JobService
authorMatthew Williams <mjwilliams@google.com>
Tue, 2 Sep 2014 23:17:53 +0000 (16:17 -0700)
committerMatthew Williams <mjwilliams@google.com>
Wed, 3 Sep 2014 17:47:27 +0000 (10:47 -0700)
commit75fc5258b73b4b9b079a9383420a1d6b88575d72
tree981cd38fa60d00c6bf071c0199de43f02201119e
parent4dc653aaa2c10c0f98d7e42229a2bc7903271fc4
Add timeout when waiting to bind to JobService

BUG: 17322886

bindService() to an invalid service might never actually result in
onServiceConnected being called , for e.g. if the client service doesn't
actually implement JobService. This wastes an execution slot as we end
up waiting forever.

Also made the javadocs clearer for the JobScheduler class.

Change-Id: Ie15ebbe18c0b7579f2ab77dd46428d354ef632c3
core/java/android/app/job/JobScheduler.java
services/core/java/com/android/server/job/JobSchedulerService.java
services/core/java/com/android/server/job/JobServiceContext.java