summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramRaster.java
diff options
context:
space:
mode:
authorChalard Jean <jchalard@google.com>2021-03-05 19:18:14 +0900
committerChalard Jean <jchalard@google.com>2021-03-09 19:05:55 +0900
commit92eab0dea7e4f7bbf9ffbf514cc8ff866dda6eb4 (patch)
treef3acd14b1f059a84c1a661b2df8bbb5db025a57f /rs/java/android/renderscript/ProgramRaster.java
parent23cca12865549bc6d34f0842f6469fef7b9f944b (diff)
Fix a bug where listen callbacks would not be called
NetworkAgentInfos cache the list of requests they satisfy, and that list is used to send callbacks. Therefore, when the TRACK_DEFAULTs are copied, this list needs to be updated. The best way to do this is to figure out what was the old active request and find which requests corresponds to it in the new list, and then upon registering adding the active request to the relevant satisfier if present. A few other ways can be considered like replacing the request as it gets added, but this would temporarily increase the number of callbacks allocated to the app and risks crashing it for no good reasonĀ ; furthermore the call to remove would have to be eschewed somehow for those requests that are replaced. This is much simpler. Test: new test for this. This also passes the future tests for per-profile default network preference. Change-Id: I001351e5c478c2c77cbf2844abca77b205291778
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions