Add rate limiter to sendHint API call
Adds a rate limiter to the HintSession.sendHint API for safety, and update tests to reflect this. Bug: b/243973548 Test: atest PerformanceHintNativeTestCases Test: atest FrameworksCoreTests:android.os.PerformanceHintManagerTest Change-Id: Ic68683bacf7df3e11efc3d59689b5470c3fa4274
Showing
- core/tests/coretests/src/android/os/PerformanceHintManagerTest.java 2 additions, 1 deletion.../coretests/src/android/os/PerformanceHintManagerTest.java
- native/android/Android.bp 1 addition, 0 deletionsnative/android/Android.bp
- native/android/performance_hint.cpp 25 additions, 3 deletionsnative/android/performance_hint.cpp
- native/android/tests/performance_hint/PerformanceHintNativeTest.cpp 9 additions, 2 deletions...roid/tests/performance_hint/PerformanceHintNativeTest.cpp
Please register or sign in to comment