diff options
author | Svet Ganov <svetoslavganov@google.com> | 2016-02-18 08:38:56 -0800 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2016-02-29 16:26:17 -0800 |
commit | b8f53ee812b75b526c3b481b62334e45609fa70e (patch) | |
tree | 940827ae9f2ba84365746b4d5d1b97c7a2841f08 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | a52f6a17efa944adc945a61788cc3beb54c569e7 (diff) |
Notification listener and ranker callbacks on binder threads.
The callbacks for the notification listener and notification
ranker were delivered on binder threads which is problematic
becuase: 1) permission checks and app ops checks would fail
unless the app developer knows to clear binder calling id and
restore it after that; 2) developers need to synchronize their
implementation as they get callbacks on different threads (
arguably callbacks should not be concurrent); 3) this doesn't
follow the pattern in the platform;
Also the code delivering callbacks was catching Throwable which
we shouldn't do in general and also masks bugs in the listener
or ranker implementation. Now that the callbacks are offloaded
to the main listener/ranker thread system code should not be
guarding against Throwable to handle exceptions propagated
over binder calls.
bug:26704777
Change-Id: I171fb41bbe25e6105dd05e4166193dbcec594f82
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions