summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMichael Wachenschwanz <mwachens@google.com>2018-10-23 23:02:48 -0700
committerMichael Wachenschwanz <mwachens@google.com>2018-10-29 16:21:24 -0700
commit0f47284af35376cf1b1f1e009a930d99be154db7 (patch)
tree126ac0deb6d8ba097908df3ca73af34b70843bb3 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent148eba158ca7a7473b46d97793db76315ae76329 (diff)
Refactor AppTimeLimitController for Session Observers
Introducing the concept of Usage Session Observers to UsageStats. A session observer monitors usage within individual "continuous" sessions (brief gaps of non usage may be allowed in a session and still be considered continuous) The new session observer in AppTimeLimitController are both similar and different enough from the current app usage observer to warrant refactoring TimeLimitGroup into an OOP friendly abstract base class. Added some Observer App handling to avoid clash between registered observers from multiple apps. Reworded packages to observed and usage entities to accomodate future changes, where usage may come from more than just app usage. Reworded moveToForeground/Background to generic usage and allow multiple usage entities to be active at the same time to accomodate future changes, where more than just the foreground app can be considered used. Test: atest FrameworksServicesTests:AppTimeLimitControllerTests Bug: 111465038 Change-Id: I63aebf8b0aa5516111bd6d5e142525d0bee6ef58
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions