forked from GZOSP/frameworks_av
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for combining and remove individual resource
- Fix ResourceManagerSerivce handling of adding same-type resource in multiple calls, combine entries with the same <type, subtype>. This is not required in existing usage, bug could be required if we allow same type to be added incrementally (eg. memory usage). - Add api for removing some resources. Currently we can add resources in multiple calls, but removeResource always remove all resources of that client. We need this to toggle battery stat On/Off based on actual usage of the codec. - Add unit tests for the above. bug: 138381810 test: ResourceManagerService_test; CTS ResourceManangerTest. Change-Id: Icdba6c6b4c517755291668c52764169aac3071ea
- Loading branch information
Chong Zhang
committed
Aug 20, 2019
1 parent
57eeeb0
commit fb092d3
Showing
7 changed files
with
254 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.