Lee Shombert 44b3697cd2 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
2021-06-08 01:32:43 +00:00
…
2021-05-13 08:24:32 +00:00
2021-04-09 11:21:33 -07:00
…
…
…
…
2021-04-14 22:48:32 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%