Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44f873ed authored by Joe Hattori's avatar Joe Hattori
Browse files

Implement setProcessState() and scheduleTrimMemory()

This commit implements setProcessState() and scheduleTrimMemory() for
NativeApplicationThread. Respecting what ActivityThread does,
scheduleTrimMemory() calls the onTrimMemory callback when the process
is not in critical state or the specified trim level is not high enough.

Bug: 431632697
Bug: 431636312
Test: build and run cuttlefish
Flag: android.os.native_framework_prototype
Change-Id: Id1a0923ea859684cc3d47a090f49a4c11dcdf9af
parent 4667c871
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment