Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca4b431a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Move ServiceConnector job timeouts to the job handler thread" am:...

Merge "Move ServiceConnector job timeouts to the job handler thread" am: 336f21d5 am: 44aa1bfb am: 450b8a30 am: 4dc8e307 am: c258ee0c am: d68ed583

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2629381



Change-Id: I5b2a266b9930c89937b9cf5188ee15d58c3405ef
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 609c2dee d68ed583
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -745,6 +745,10 @@ public interface ServiceConnector<I extends IInterface> {
            boolean mAsync = false;
            private String mDebugName;
            {
                // The timeout handler must be set before any calls to set timeouts on the
                // AndroidFuture, to ensure they are posted on the proper thread.
                setTimeoutHandler(getJobHandler());

                long requestTimeout = getRequestTimeoutMs();
                if (requestTimeout > 0) {
                    orTimeout(requestTimeout, TimeUnit.MILLISECONDS);