commit | 54f7f7f903fbdc9a0b4bd54874963ff5bf1a80fb | [log] [tgz] |
---|---|---|
author | Varun Shah <varunshah@google.com> | Thu Feb 07 10:21:17 2019 -0800 |
committer | Varun Shah <varunshah@google.com> | Fri Feb 08 11:42:45 2019 -0800 |
tree | bb5fd0b47ad93bc0b3925ef375f4ba674e8fa781 | |
parent | f28075bf004e78aae0209886b397b948ccc6fcaa [diff] |
Allow registration of AppUsageLimitObservers with 0 time limit. A wellbeing app can now register AppUsageLimit observers with a time limit of 0 seconds. There will be no callback intent fired in this case. Bug: 123899673 Test: atest FrameworksServicesTests:AppTimeLimitControllerTests#testAppUsageLimitObserver_ZeroTimeLimitIsAllowed Test: atest android.content.pm.cts.LauncherAppsTest#testGetAppUsageLimit_allowsZeroLimit Change-Id: I9cdff21bcfa72f202699cea288e703f35a4f158f