File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
plugins/radar-android-phone-usage/src/main/java/org/radarbase/passive/phone/usage Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ org.gradle.jvmargs=-Xmx3072m -XX:MaxMetaspaceSize=1536m -Dfile.encoding=UTF-8 -X
1616org.gradle.parallel =true
1717org.gradle.vfs.watch =true
1818kotlin.code.style =official
19- android.jetifier.ignorelist =jackson-core-2.16.1.jar
19+ android.jetifier.ignorelist =jackson-core-2.16.1.jar, jackson-core-2.17.3.jar
2020android.defaults.buildfeatures.buildconfig =true
2121
2222# When configured, Gradle will run in incubating parallel mode.
@@ -38,7 +38,7 @@ publish_plugin_version=2.0.0
3838versions_plugin_version =0.51.0
3939
4040radar_commons_version =0.15.0
41- radar_schemas_commons_version =0.8.11
41+ radar_schemas_commons_version =0.8.15
4242
4343radar_faros_sdk_version =0.1.0
4444
Original file line number Diff line number Diff line change @@ -171,9 +171,17 @@ class PhoneUsageManager(context: PhoneUsageService) : AbstractSourceManager<Phon
171171 val usageEventType = when (lastEventType) {
172172 ACTIVITY_RESUMED -> UsageEventType .FOREGROUND
173173 ACTIVITY_PAUSED -> UsageEventType .BACKGROUND
174+ ACTIVITY_STOPPED -> UsageEventType .STOPPED
175+ FOREGROUND_SERVICE_START -> UsageEventType .FOREGROUND_SERVICE_START
176+ FOREGROUND_SERVICE_STOP -> UsageEventType .FOREGROUND_SERVICE_STOP
177+ KEYGUARD_SHOWN -> UsageEventType .KEYGUARD_SHOWN
178+ KEYGUARD_HIDDEN -> UsageEventType .KEYGUARD_HIDDEN
174179 CONFIGURATION_CHANGE -> UsageEventType .CONFIG
175180 SHORTCUT_INVOCATION_COMPAT -> UsageEventType .SHORTCUT
176181 USER_INTERACTION -> UsageEventType .INTERACTION
182+ SCREEN_INTERACTIVE -> UsageEventType .SCREEN_INTERACTIVE
183+ SCREEN_NON_INTERACTIVE -> UsageEventType .SCREEN_NON_INTERACTIVE
184+ STANDBY_BUCKET_CHANGED -> UsageEventType .STANDBY_BUCKET_CHANGED
177185 else -> UsageEventType .OTHER
178186 }
179187
You can’t perform that action at this time.
0 commit comments