Skip to content
Commit a677335c authored by Hai Zhang's avatar Hai Zhang
Browse files

Make AndroidFuture and ServiceConnector ready for module usage.

By moving to system APIs when applicable. Notable changes include:

1. Re-implement reading/writing Throwables from/to Parcel, without
Parcel private APIs.

2. Use the public API new Handler(Looper.getMainLooper()) instead of
Handler.getMain().

3. Use lambdas directly instead of PooledLambda, because the latter
would require bundling 20+ classes to bootclasspath for each module
using it, while AndroidFuture and ServiceConnector won't be creating a
great number of lambdas in a short time.

4. A bug that calls initCause() with the Throwable itself is fixed.

Bug: 158736025
Test: presubmit
Change-Id: I577da5a3bc4ed537123b7eceaa5addf8f7bb0d92
parent db9c5903
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment