summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorLee Shombert <shombert@google.com>2021-06-04 17:08:31 -0700
committerLee Shombert <shombert@google.com>2021-06-08 01:32:43 +0000
commit44b3697cd2a1f2548018e2feefa6bbb5d9cc6f75 (patch)
tree8c460f2a9f05c7afa9aca3dcbd4d8cd15f886802 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parente571aacdbb0ffa11fe5f2b884503b1be2aeb1f32 (diff)
A space-efficient 2D matrix - clean up
Bug: Bug: 188447813 Convert WatchedSparseBooleanMatrix to pack bits into ints instead of bytes. This eliminates a lot of casts and it is probably slightly faster. Force the control information arrays in the matrix to resize in step with the values array. The default behavior of GrowingArrayUtils is to double the size of an array when it needs to grow, which is unnecessarily large. Also, the control arrays are shrunk along with the value array. Use the ArrayUtils methods for array allocation. This is consistent with classes in android.util. Test: atest * CtsContentTestCases:IntentFilterTest * CtsDynamicMimeHostTestCases * CtsRoleTestCases * FrameworksServicesTests:UserSystemPackageInstallerTest * FrameworksServicesTests:PackageManagerSettingsTests * FrameworksServicesTests:PackageManagerServiceTest * FrameworksServicesTests:AppsFilterTest * FrameworksServicesTests:PackageInstallerSessionTest * FrameworksServicesTests:ScanTests * UserLifecycleTests#startUser * UserLifecycleTests#stopUser * UserLifecycleTests#switchUser * FrameworksServicesTests:WatcherTest * android.appsecurity.cts.EphemeralTest * android.appsecurity.cts.InstantAppUserTest Change-Id: I8427905361e1471c91433c77628aa34b12b1044d
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions