summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/logging/LoggerUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* [DO NOT MERGE] Adds basic smart-folder logging.thiruram2020-03-231-1/+1
| | | | | | | This would allow collecting trimmed down version of smart-folder logs from QPR devices. Change-Id: Ida332bd969774cabcfd72def5bed0e6409d6c8e1 (cherry picked from commit d684eddd9f47e97931c8960e11e4434c58270150)
* Merge "Fixes missing LauncherEvent for TAP action on FOLDER_ICON" into ↵Thiru Ramasamy2019-11-141-8/+7
|\ | | | | | | ub-launcher3-qt-future-dev
| * Fixes missing LauncherEvent for TAP action on FOLDER_ICONThiru Ramasamy2019-11-121-8/+7
| | | | | | | | | | | | Bug: 143969621 Change-Id: I8d08d1c55f90c6aeacd63ced8235de851ec2cad9
* | include predicted_rank in app launch loggingPinyao Ting2019-11-131-2/+4
|/ | | | | | | | | | | | 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
* Adding query length parameter to protobufAlex Mang2019-05-091-0/+4
| | | | | Bug: 131940434 Change-Id: Iaa7ca520406df882e154db3662a190607eb61b23
* Fix NPE / add downX,Y location for all swipes/ add extra debugging infoHyunyoung Song2019-04-241-4/+14
| | | | | | | Bug: 122700646 Bug: 127840207 Change-Id: I5862c8950565df172a933114e1fb2f9c4575593e
* Update logging for quick switchTony Wickham2019-04-021-2/+4
| | | | | | | | | 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
* Add StatsLog*Manager for logging.Hyunyoung Song2018-11-051-0/+1
| | | | | | | | | 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
* Exposing some private methods to easily customize arrow popupSunny Goyal2018-07-111-1/+1
| | | | Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
* Improve Task user event loggingHyunyoung Song2018-05-161-0/+3
| | | | | | | | | | | | | | | | | | 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
* Add logging for OnboardingHyunyoung Song2018-05-151-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Refactors ButtonDropTarget to add extension dataMehdi Alizadeh2018-05-021-3/+5
| | | | | | | | | Also fixes a bug where DeleteDropTarget was logging Remove instead of Cancel. Bug: 78793340 Test: Enable verbose logging and manual test Change-Id: I0f0cfff070eab003ebb745292630bc6ce3243f4d
* Adding WEB_APP item type for logging.Mario Bertschler2018-04-031-4/+10
| | | | | | | Set in LoggerUtils.newItemTarget if instant app Bug:67049361 Change-Id: I8e99e5c60bf1a2083f898e8978d403138f803276
* Revert "Revert "Adding support for hiding widgets from the widget tray and ↵Winson Chung2018-03-051-9/+2
| | | | | | | | | | reconfiguring widgets"" This reverts commit f502e5faecbd460ad3b8258168c5812cbaa34c4e. Reason for revert: Reverting post-build Change-Id: I09eb292dbbbe37ffaf3abc477aa2ddb5700093b8
* Revert "Adding support for hiding widgets from the widget tray and ↵Winson Chung2018-03-051-2/+9
| | | | | | | | | | reconfiguring widgets" This reverts commit b29a5fa55ce3b84dd1829688db8522d5e68ffc44. Reason for revert: Temporary revert for build. Change-Id: I58045ad1ce28d398a5216ba4fbbcdba1196942ec
* Adding support for hiding widgets from the widget tray and reconfiguring widgetsSunny Goyal2018-03-021-9/+2
| | | | | | | | > Removing AppInfo target > Switching between uninstall and setup based on the drag view Bug: 63931362 Change-Id: Iccd6f965fa3d61992244a365efc242122292c0ca
* Quick step/scrub/switch loggingHyunyoung Song2018-02-201-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Log time spent on different UI surfacesHyunyoung Song2017-10-191-4/+8
| | | | | | | | | | - 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
* Fix predictiveAppsHyunyoung Song2017-09-291-3/+5
| | | | | | Bug: 67010327 Change-Id: Iab6ea790e99bb66bd0d7d4f07a8ad9fa05387d13
* Adding support for derivative apps to safely extend LauncherLog protoSunny Goyal2017-07-201-0/+8
| | | | | Bug: 37676962 Change-Id: I24716070841b41418ac57b8dc367278e3ebdd046
* Add user event logging for page rearrangement and LEFT/RIGHT swipesHyunyoung Song2017-06-301-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Minor Refactoring only: no functional changeMario Bertschler2017-03-281-1/+0
| | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* Launcher dump proto that will be used for:Hyunyoung Song2017-03-011-7/+26
| | | | | | | | | $ 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
* Using java_style enum generation for protoSunny Goyal2016-12-151-127/+65
| | | | | | | This makes it easier to track various method parameters and simplifies debug logging Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
* Consolidating a few log util methodsSunny Goyal2016-12-151-92/+42
| | | | | | | | | 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
* Added logging for HOME_INTENT and BACK commands.Jon Miranda2016-11-211-7/+42
| | | | | | Document: go/false-longpress-overview Change-Id: If6ba4996c861a44f4950b41acb4246e3a483d8f2
* Add user event logging for tap on searchHyunyoung Song2016-10-031-0/+4
| | | | | | b/31772967 Change-Id: I71ececb8195d46405623a8ae2a99d001088d9181
* Support user event logging for drag and dropHyunyoung Song2016-09-011-6/+57
| | | | | | | | | | | | 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
* Set launch source target correctly for user event loggingHyunyoung Song2016-08-151-9/+52
| | | | | | | Before, everything is set to APP_ICON With this changed, pinned shortcuts are set to DEEPSHORTCUT Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098
* Add logging for shortcuts opening.Tony Wickham2016-08-011-0/+4
| | | | | | | | | - 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
* Add user event log for deep shortcuts and all apps opening interaction.Hyunyoung Song2016-07-211-9/+30
| | | | | | b/30114798 Change-Id: I11ad99d0bc1983294d6a5329b98917cb87250823
* Refactor UserEventLogging, Add predictedRank, replace Bundle with ProtoHyunyoung Song2016-04-131-14/+22
| | | | | | | | | | | | | | 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
* Add getUserEventLogger to LauncherCallbacksHyunyoung Song2016-03-081-0/+117
b/26494415 Change-Id: I8abaaf1269c12435a523e31bf769991018ea5c02