diff options
author | Jeff Sharkey <jsharkey@android.com> | 2021-03-08 18:01:05 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2021-03-08 18:07:00 -0700 |
commit | 29e882b41742a365176c2cdd2cbb9617f756e477 (patch) | |
tree | f655bb07b23b0e2ec9cf5b3bc7346632ae634944 /rs/java/android/renderscript/Script.java | |
parent | 479d90cefd7d30c8add6bd0cfbdc32babd2c53ae (diff) |
Refinement of ContextParams behavior.
Since this parameters object is likely going to grow over time, we
should offer a way for callers to easily "inherit" all sub-parameters
by default, instead of making them copy the values manually.
This also gives a path for legacy apps to automatically preserve any
new sub-parameters that have been added in more modern API levels.
This change also relaxes the nullability annotations to match the
existing createAttributionContext() behavior, while also supporting
clearing of specific inherited values.
Bug: 181812281
Test: atest CtsContentTestCases:android.content.cts.ContextTest
Change-Id: Ic797e1aef578926b04ea0000ca3a1bf8684183b9
Diffstat (limited to 'rs/java/android/renderscript/Script.java')
0 files changed, 0 insertions, 0 deletions