summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2017-05-08 09:15:49 -0700
committerWale Ogunwale <ogunwale@google.com>2017-05-08 11:52:15 -0700
commit2f569ed618f0eb834efb7a27c57d8ca43bcf4f1b (patch)
tree56571115e34826a0a6edd1d3101f370ded7a1bbe /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2880a4b41fd72ad4f5c2f56073a5e7942786df16 (diff)
Fixed issue with associating WindowToken with null binder.
App don't have to specify a LayoutParams.token when adding a window to the system, however when they don't WM maps all the windows to a single WindowToken mapped to a null IBinder. This isn't correct since the windows can be coming from different apps and also null binder shouldn't be used to map tokens. We now: 1. Associate the WindowToken with the IWindow client for bookkeeping in WM if the app didn't specify LayoutParams.token for the window it is adding. 2. Throw an illegal argumenet exception we we try to associate a null binder with a window token or null window token with a binder on a display. Fixes: 38021710 Test: Start an alert window, lock and unlock the phone, long press to bring up power dialog, and tap outside it to make sure it goes away. Change-Id: I6816b7fb9b9a0a8f5387062bada862eb75004e4f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions