Samuel Fufa
78e7e5fcaa
Add boolean to differentiate icons from workprofile
...
Bug:145825382
Test:Manual
Change-Id: I95e0cfe48b4a397eb54455374f11c7ea14c028f6
2019-12-10 13:33:37 -08:00
Thiru Ramasamy
9d9c42ef38
Merge "Fixes missing LauncherEvent for TAP action on FOLDER_ICON" into ub-launcher3-qt-future-dev
2019-11-14 22:02:09 +00:00
Pinyao Ting
1397a42fc2
include predicted_rank in app launch logging
...
Test:
1. . build/envsetup.sh && tapas NexusLauncher
2. ccdebug && cclogcat
3. launch from workspace any app that is also in predicted apps
4. verify in terminal it has correct predicted_rank
Bug: 143855018
Change-Id: I07a62f07057537a6c09384cf944bbc5aa5888d22
Merged-In: I07a62f07057537a6c09384cf944bbc5aa5888d22
2019-11-13 01:15:37 +00:00
Thiru Ramasamy
aea8820229
Fixes missing LauncherEvent for TAP action on FOLDER_ICON
...
Bug: 143969621
Change-Id: I8d08d1c55f90c6aeacd63ced8235de851ec2cad9
2019-11-12 14:38:56 -08:00
Alex Mang
68c67540cd
Adding query length parameter to protobuf
...
Bug: 131940434
Change-Id: Iaa7ca520406df882e154db3662a190607eb61b23
2019-05-09 15:13:52 -07:00
Hyunyoung Song
bf44bc342f
Fix NPE / add downX,Y location for all swipes/ add extra debugging info
...
Bug: 122700646
Bug: 127840207
Change-Id: I5862c8950565df172a933114e1fb2f9c4575593e
2019-04-24 16:16:51 -07:00
Tony Wickham
8eacdc0c0b
Update logging for quick switch
...
Now we log direction based on end velocity, instead of only using
Direction.UP or DOWN based on end state. We also log the page index
that we are switching to, or -1 if it's the task we came from.
Bug: 127840207
Change-Id: I038d7c461957f25c55d3cdee01cc3e955ca4c4fa
2019-04-02 14:33:44 -07:00
Hyunyoung Song
fc00747909
Add StatsLog*Manager for logging.
...
Bug: 113043444
Verification: (19) is our event classifier number
11-05 11:24:28.188 932 994 I statsd : { 1541445868000000000 766293363001 (19)0x10000->1[I] 0x20000->0[I] 0x30000->0[I] 0x40000->[S] 0x50000->1[I] }
Change-Id: I75403837f9fa8e51efa012fb708bce7efc9c4488
2018-11-05 11:41:38 -08:00
Sunny Goyal
87b5eb689b
Exposing some private methods to easily customize arrow popup
...
Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
2018-07-11 14:35:51 -07:00
Hyunyoung Song
1241e61a45
Improve Task user event logging
...
Bug: 79539824
Bug: 79541772
(1) Added page index of the TASK that is being launched
(2) Covers all three cases of task launch (tap, swipe down, quick scrub)
UserEvent: action:FLING direction=DOWN
UserEvent: Source child:TASK, packageHash=-1598699687, componentHash=1952702153, pageIdx=0
UserEvent: action:DRAGDROP
UserEvent: Source child:TASK, packageHash=-744307622, componentHash=-515832044, pageIdx=4
(3) Avoid double logging (When onStop is called, it is not logged if
the cause of onStop is APP or TASK launch)
Change-Id: Ic5db7d6a640d43bfb5cd667b49e37dd0ed127d5c
2018-05-16 11:26:35 -07:00
Hyunyoung Song
018eec6899
Add logging for Onboarding
...
Bug: 73784423
* Discovery bounce, homescreen, hotseat
UserEvent: action:TIP
UserEvent: Source child:HOTSEAT id=0 BOUNCE
* Discovery bounce, overview, prediction
UserEvent: action:TIP
UserEvent: Source child:PREDICTION BOUNCE
* Swipe up from navbar text (visibility, cancel target)
UserEvent: action:TIP
UserEvent: Source child:TIP SWIPE_UP_TEXT
UserEvent: action:TAP
UserEvent: Source child:CANCEL_TARGET SWIPE_UP_TEXT
* Quickscrub text (visibility, cancel target)
UserEvent: action:TIP
UserEvent: Source child:TIP QUICK_SCRUB_TEXT
UserEvent: action:TAP
UserEvent: Source child:CANCEL_TARGET QUICK_SCRUB_TEXT
* Prediction apps text (visibility, cancel target)
UserEvent: action:TAP
UserEvent: Source child:TIP PREDICTION_TEXT
UserEvent: action:TAP
UserEvent: Source child:CANCEL_TARGET PREDICTION_TEXT
Change-Id: I94710b5ed3d00e3599985b154eb660af4a958288
2018-05-15 14:31:07 -07:00
Mehdi Alizadeh
bda47cf925
Refactors ButtonDropTarget to add extension data
...
Also fixes a bug where DeleteDropTarget was logging Remove instead of
Cancel.
Bug: 78793340
Test: Enable verbose logging and manual test
Change-Id: I0f0cfff070eab003ebb745292630bc6ce3243f4d
2018-05-02 14:20:09 -07:00
Mario Bertschler
d2e3c5de56
Adding WEB_APP item type for logging.
...
Set in LoggerUtils.newItemTarget if instant app
Bug:67049361
Change-Id: I8e99e5c60bf1a2083f898e8978d403138f803276
2018-04-03 21:18:38 +02:00
Winson Chung
1054d4e8f2
Revert "Revert "Adding support for hiding widgets from the widget tray and reconfiguring widgets""
...
This reverts commit f502e5faec .
Reason for revert: Reverting post-build
Change-Id: I09eb292dbbbe37ffaf3abc477aa2ddb5700093b8
2018-03-05 19:39:21 +00:00
Winson Chung
f502e5faec
Revert "Adding support for hiding widgets from the widget tray and reconfiguring widgets"
...
This reverts commit b29a5fa55c .
Reason for revert: Temporary revert for build.
Change-Id: I58045ad1ce28d398a5216ba4fbbcdba1196942ec
2018-03-05 18:06:52 +00:00
Sunny Goyal
b29a5fa55c
Adding support for hiding widgets from the widget tray and reconfiguring widgets
...
> Removing AppInfo target
> Switching between uninstall and setup based on the drag view
Bug: 63931362
Change-Id: Iccd6f965fa3d61992244a365efc242122292c0ca
2018-03-02 13:20:09 -08:00
Hyunyoung Song
b3fbc0ba8f
Quick step/scrub/switch logging
...
- state transition happening due to Home and back is handled by
specifying src target as 'from' container and dst target as the 'to'
container
- Source and Destination container shows FROM and TO state for SWIPE/FLING
- event.isStateChange = true indicates that an action resulted in
state transition
- Elapsed container millis is the screen time on the source container
Bug: 70181187
- logcat printout with setprop log.tag.UserEvent VERBOSE
1) State: WORKSPACE -> ALLAPPS
action:FLING direction=UP
Source child:HOTSEAT id=0 parent:WORKSPACE id=0
Destination child:ALLAPPS
Elapsed container 1225 ms, session 1225 ms, action 0 ms
2) ALLAPPS -> HOMESCREEN
action:FLING direction=DOWN
Source child:ALLAPPS parent:ALLAPPS
Destination child:WORKSPACE id=0
Elapsed container 971 ms, session 2197 ms, action 0 ms
3) HOMESCREEN -> OVERVIEW
action:FLING direction=UP
Source child:NAVBAR parent:WORKSPACE id=0
Destination child:TASKSWITCHER
Elapsed container 4834 ms, session 4834 ms, action 0 ms
4) OVERVIEW-> ALLAPPS
action:FLING direction=UP
Source child:TASK parent:TASKSWITCHER
Destination child:ALLAPPS
Elapsed container 2176 ms, session 7010 ms, action 0 ms
5) ALLAPPS->OVERVIEW
action:FLING direction=DOWN
Source child:ALLAPPS parent:ALLAPPS
Destination child:TASKSWITCHER
Elapsed container 3683 ms, session 10693 ms, action 0 ms
6) OVERVIEW-> HOMESCREEN
action:FLING direction=DOWN
Source child:TASK parent:TASKSWITCHER
Destination child:WORKSPACE id=0
Elapsed container 2108 ms, session 12801 ms, action 0 ms
7) APPS-> OVERVIEW
action:FLING direction=UP
Source child:NAVBAR parent:APP
Destination child:TASKSWITCHER
Elapsed container 104 ms, session 104 ms, action 0 ms
8) Quickscrub: action:DRAGANDDROP Source child: QUICK
9) Quickswitch: action:FLING Source child: QUICK
Change-Id: I5898230859ff600f48a2a873a40b670fe4d39a0d
2018-02-20 22:40:19 -08:00
Hyunyoung Song
7fb3ccc4a5
Log time spent on different UI surfaces
...
- When swipe happens on worskpace, elapsed container ms is reset
- Fling DOWN is also logged so that we now know how much time was spent on
all apps screen
- If screen off or power button trigger onPause, log this event.
Bug: 67745115
Change-Id: Ie3a0090c78195a4a028de9935131e9e034dcf48a
2017-10-19 15:15:02 -07:00
Hyunyoung Song
7a77f1e678
Fix predictiveApps
...
Bug: 67010327
Change-Id: Iab6ea790e99bb66bd0d7d4f07a8ad9fa05387d13
2017-09-29 13:41:43 -07:00
Sunny Goyal
2385ebebee
Adding support for derivative apps to safely extend LauncherLog proto
...
Bug: 37676962
Change-Id: I24716070841b41418ac57b8dc367278e3ebdd046
2017-07-20 11:47:11 -07:00
Hyunyoung Song
3f5a11f3a5
Add user event logging for page rearrangement and LEFT/RIGHT swipes
...
1. Call logOverviewRearrange logging call ONLY when the order actually changed
2. Call logActionOnContainer when containers are swiped.
Bug: 32457561
Bug: 32457561
06-30 11:23:04.082 6585 6585 D UserEvent: action:SWIPE direction=LEFT
06-30 11:23:04.082 6585 6585 D UserEvent: Source child:WORKSPACE id=2
06-30 11:23:04.082 6585 6585 D UserEvent: Elapsed container 50436 ms session 50436 ms action 0 ms
06-30 11:23:04.082 6585 6585 D UserEvent: isInLandscapeMode false
06-30 11:23:04.082 6585 6585 D UserEvent: isInMultiWindowMode false
06-30 11:23:08.266 6585 6585 D UserEvent: action:SWIPE direction=LEFT
06-30 11:23:08.266 6585 6585 D UserEvent: Source child:WORKSPACE id=1
06-30 11:23:08.266 6585 6585 D UserEvent: Elapsed container 54620 ms session 54620 ms action 0 ms
06-30 11:23:08.266 6585 6585 D UserEvent: isInLandscapeMode false
06-30 11:23:08.266 6585 6585 D UserEvent: isInMultiWindowMode false
06-30 11:23:10.742 6585 6585 D UserEvent: action:SWIPE direction=LEFT
06-30 11:23:10.742 6585 6585 D UserEvent: Source child:WORKSPACE id=0
06-30 11:23:10.742 6585 6585 D UserEvent: Elapsed container 57096 ms session 57096 ms action 0 ms
06-30 11:23:10.742 6585 6585 D UserEvent: isInLandscapeMode false
06-30 11:23:10.742 6585 6585 D UserEvent: isInMultiWindowMode false
06-30 11:23:17.286 6585 6585 D UserEvent: action:SWIPE direction=RIGHT
06-30 11:23:17.286 6585 6585 D UserEvent: Source child:WORKSPACE id=-1
06-30 11:23:17.286 6585 6585 D UserEvent: Elapsed container 63639 ms session 63639 ms action 0 ms
06-30 11:23:17.286 6585 6585 D UserEvent: isInLandscapeMode false
06-30 11:23:17.286 6585 6585 D UserEvent: isInMultiWindowMode false
06-30 11:23:19.879 6585 6585 D UserEvent: action:SWIPE direction=RIGHT
06-30 11:23:19.879 6585 6585 D UserEvent: Source child:WORKSPACE id=0
06-30 11:23:19.879 6585 6585 D UserEvent: Elapsed container 66233 ms session 66233 ms action 0 ms
06-30 11:23:19.879 6585 6585 D UserEvent: isInLandscapeMode false
06-30 11:23:19.879 6585 6585 D UserEvent: isInMultiWindowMode false
06-30 11:23:23.811 6585 6585 D UserEvent: action:SWIPE direction=RIGHT
06-30 11:23:23.811 6585 6585 D UserEvent: Source child:WORKSPACE id=1
06-30 11:23:23.811 6585 6585 D UserEvent: Elapsed container 70165 ms session 70165 ms action 0 ms
06-30 11:23:23.811 6585 6585 D UserEvent: isInLandscapeMode false
06-30 11:23:23.811 6585 6585 D UserEvent: isInMultiWindowMode false
Change-Id: I11a48ee44aaa87863e76ccf2b46f499c28e96748
2017-06-30 13:59:38 -07:00
Mario Bertschler
c06af333cb
Minor Refactoring only: no functional change
...
- organizing imports
- remove redundant modifiers on LauncherCallback interface
- fix typos
Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
2017-03-28 12:23:22 -07:00
Hyunyoung Song
6aa3729e98
Launcher dump proto that will be used for:
...
$ adb shell dumpsys activity provider com.android.launcher3/com.android.launcher3.LauncherProvider
To see how the proto is filled: go/launcher-proto-dump
b/31772480
Change-Id: I8e0f1e5e38148a3dfeabd2fc057392193b2625dd
2017-03-01 17:21:19 -08:00
Sunny Goyal
6c46a6d324
Using java_style enum generation for proto
...
This makes it easier to track various method parameters and simplifies
debug logging
Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
2016-12-15 09:30:35 -08:00
Sunny Goyal
fa94c79ca6
Consolidating a few log util methods
...
LoggerUtils had a lot of methods with same name and similar arguments
but completely different behavior.
Instead only defining macros in LoggerUtils and movoing the action
logic in the UserEventDispatcher.
Change-Id: Ibce8ea1a0890499b47c950930accb9b28473f44c
2016-12-15 08:19:18 -08:00
Jon Miranda
feba90fe80
Added logging for HOME_INTENT and BACK commands.
...
Document: go/false-longpress-overview
Change-Id: If6ba4996c861a44f4950b41acb4246e3a483d8f2
2016-11-21 17:01:24 -08:00
Hyunyoung Song
d8fcffb8fe
Add user event logging for tap on search
...
b/31772967
Change-Id: I71ececb8195d46405623a8ae2a99d001088d9181
2016-10-03 14:01:25 -07:00
Hyunyoung Song
59a238095e
Support user event logging for drag and drop
...
b/30039490
Supported in this CL:
- DnD: drag from container [WORKSPACE|HOTSEAT|FOLDER|ALLAPPS|WIDGETS|DEEPSHORTCUTS]
drag to container [HOTSEAT,WORKSPACE,FOLDER,DROPTARGETS]
- Source and target can be [FOLDER_ICON, ICON, DEEPSHORTCUT, WIDGET]
- $ adb shell setprop log.tag.UserEvent DEBUG will turn on debugging
Change-Id: I0b8b879b80e6dce85bbde6e7794f9e0677832603
2016-09-01 12:47:12 -07:00
Hyunyoung Song
8ce6063c4a
Set launch source target correctly for user event logging
...
Before, everything is set to APP_ICON
With this changed, pinned shortcuts are set to DEEPSHORTCUT
Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098
2016-08-15 16:22:20 -07:00
Tony Wickham
55c6691e3a
Add logging for shortcuts opening.
...
- Log as long press with child type DEEPSHORTCUTS container
- Parent type can be one of WORKSPACE, HOTSEAT, FOLDER,
ALLAPPS, PREDICTION, or SEARCHRESULT.
Bug: 30537079
Change-Id: Ie62e4889ee06c845f959ca998781787a7fdaf00e
2016-08-01 17:55:07 -07:00
Hyunyoung Song
5aa2714959
Add user event log for deep shortcuts and all apps opening interaction.
...
b/30114798
Change-Id: I11ad99d0bc1983294d6a5329b98917cb87250823
2016-07-21 11:48:37 -07:00
Hyunyoung Song
ddec1c739e
Refactor UserEventLogging, Add predictedRank, replace Bundle with Proto
...
b/26494415
- Removed bundle object that became redundant now that we have LauncherEvent proto
- Combined Stats and UserEventLogger as they are effectively doing same thing
- Removed parent field inside Target
- added predictedRank target inside Target
b/27967359
- make com.android.launcher3.action.LAUNCH broadcast explicit
Later CL: finish packageName/intent/componentHash/predictedRank fields
Change-Id: I441fb46c834f73e58a4d2324e8da7971e8713ec8
2016-04-13 10:58:33 -07:00
Hyunyoung Song
8fd5e938d3
Add getUserEventLogger to LauncherCallbacks
...
b/26494415
Change-Id: I8abaaf1269c12435a523e31bf769991018ea5c02
2016-03-08 16:55:47 -08:00