OSDN Git Service

Add timeout for calling into role controller service.
authorHai Zhang <zhanghai@google.com>
Fri, 19 Oct 2018 18:41:33 +0000 (11:41 -0700)
committerHai Zhang <zhanghai@google.com>
Mon, 29 Oct 2018 18:06:30 +0000 (11:06 -0700)
commit527dd51029efb0186bbf41630b4faa26fbccaa01
treeedab330f03a4534f707c3451a85c4b7934241c5c
parentb777668584d6bdd0f2a63f4642c057546726463c
Add timeout for calling into role controller service.

This changes adds a timeout for calling into the role controller
service, so that once the timeout is reached, onFailure() is
called. This change also ensures that the callback will only be
delivered once.

Bug: 110557011
Test: build
Change-Id: I070507b4db19439e2d62c976b449dd172dbcb052
services/core/java/com/android/server/role/RemoteRoleControllerService.java