summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/logging
Commit message (Collapse)AuthorAgeFilesLines
* Fixing various testsSunny Goyal2017-07-311-4/+6
| | | | | | | | | | > Migrating UI tests to AndroidJUnit4 for better support > Removing obsolete RotationPreference test > Fixing broken FileLogTest and AndroidJUnit4 > Removing InvariantDeviceProfileTest as it does not work well with resource overlays Change-Id: I0abb1df6765d76d86c1c6c84e8ac35eb9a6bcdaa
* Merge "Adding support for derivative apps to safely extend LauncherLog ↵TreeHugger Robot2017-07-201-0/+8
|\ | | | | | | proto" into ub-launcher3-dorval-polish2
| * Adding support for derivative apps to safely extend LauncherLog protoSunny Goyal2017-07-201-0/+8
| | | | | | | | | | Bug: 37676962 Change-Id: I24716070841b41418ac57b8dc367278e3ebdd046
* | Updating UserEventDispatcher to make some methods accessible.Sunny Goyal2017-07-191-42/+26
|/ | | | | | | | | | > Removing helper methods around fillInLogContainerData so that its easier to create events with 3 and more srcTargets > Removing setPredictedApps from userEventDispatcher as its specific to Launcher and does not apply to other activities. Instead moving it to AllAppsRecyclerView Bug: 63719473 Change-Id: Ib92621e41ede4ffe03892642ab173772b5a84dd1
* Salt packageNameHash with unique user identifierHyunyoung Song2017-07-061-2/+13
| | | | | | Bug: 62676166 Change-Id: I10b301b50e0198aeb52c1c437b9a84aaf323ef66
* 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
* Revert "Salt the package hash code using the device serial Bug: 62676166"Hyunyoung Song2017-06-291-9/+2
| | | | | | This reverts commit e8ca28179b5a1a1114c13d04d57e5fb2800c8b55. Change-Id: I9fd51321d671d5ff90c7bfaddc05fc6ba11018e3
* Salt the package hash code using the device serialHyunyoung Song2017-06-291-2/+9
| | | | | | Bug: 62676166 Change-Id: Id723cc3f283bc05b01185abef9084d6dbd75fbbc
* Log when App info or Widgets system shortcuts are tappedTony Wickham2017-05-251-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Sample output: D/UserEvent: action:LONGPRESS Source child:APP_ICON, grid(1,3), span(1,1), pageIdx=0 parent:WORKSPACE id=0 Elapsed container 135 ms session 7984 ms action 0 ms isInLandscapeMode false isInMultiWindowMode false D/UserEvent: action:TAP Source child:WIDGETS_BUTTON parent:DEEPSHORTCUTS Elapsed container 41 ms session 8906 ms action 0 ms isInLandscapeMode false isInMultiWindowMode false D/UserEvent: action:LONGPRESS Source child:APP_ICON, grid(1,3), span(1,1), pageIdx=0 parent:WORKSPACE id=0 Elapsed container 184 ms session 11297 ms action 0 ms isInLandscapeMode false isInMultiWindowMode false D/UserEvent: action:TAP Source child:APPINFO_TARGET parent:DEEPSHORTCUTS Elapsed container 678 ms session 11976 ms action 0 ms isInLandscapeMode false isInMultiWindowMode false Bug: 37430954 Change-Id: I526edbf1eea551eb8eaddbb27e52058804fee874
* Merge "Log whether an event happened during landscape mode or not ↵Hyunyoung Song2017-05-161-1/+6
|\ | | | | | | | | | | | | | | b/38211234" into ub-launcher3-dorval am: 441c628a75 Change-Id: I2101f93fc5dca6e0f216a2cc8b86b976dc052bbe
| * Log whether an event happened during landscape mode or notHyunyoung Song2017-05-161-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | b/38211234 <sample log> action:TAP Source child:APP_ICON, packageHash=-1046965711, componentHash=-371608779, intentHash=208792422, grid(4,4), span(1,1), pageIdx=0 parent:WORKSPACE id=0 Elapsed container 3071 ms session 3071 ms action 0 ms isInLandscapeMode true isInMultiWindowMode false </sample log> Change-Id: I44dfe4e7ee2a41c56a50cc2b507bbbeedc458018
* | Merge "make sure all type of Item in DumpTarget contains component and ↵Hyunyoung Song2017-04-251-6/+8
|\| | | | | | | | | | | | | | | package name b/36904684" into ub-launcher3-dorval am: 2a120d448e Change-Id: I55c5f8dc728962f8b37a00892d871eeddf038632
| * make sure all type of Item in DumpTarget contains component and package nameHyunyoung Song2017-04-241-6/+8
| | | | | | | | | | | | b/36904684 Change-Id: I3c71726a376fd1923e193cafe3b5a9b85a48c895
| * Launcher dump proto that will be used for:Hyunyoung Song2017-04-042-7/+175
| | | | | | | | | | | | | | | | | | | | $ 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 (cherry picked from commit 6aa3729e98502d4cffc40a7e602628b85d558edd)
* | Merge "Minor Refactoring only: no functional change" into ub-launcher3-masterMario Bertschler2017-03-281-1/+0
|\ \
| * | Minor Refactoring only: no functional changeMario Bertschler2017-03-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* | | Resolve merge conflicts of 8eb0de133 to ub-launcher3-masterJon Miranda2017-03-281-11/+8
|\ \ \ | |/ / |/| / | |/ | | Test: I solemnly swear I tested this conflict resolution. Change-Id: I1e888f6941435befe6f1819de74dea985909ddf0
| * Add isInMultiWindowMode bool to all logs.Jon Miranda2017-03-221-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | Example output: D/UserEvent: action:LONGPRESS Source child:WORKSPACE id=0 Elapsed container 1850 ms session 1850 ms action 0 ms isInMultiWindowMode true Bug: 34250955 Change-Id: If21484e8bbb0f4f311c2eb6e94b7dcea6d2431af
* | Separating the config and flags in different directories so thatSunny Goyal2017-03-072-9/+7
| | | | | | | | | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* | Merge "Moving Event dispatcher definition from LAuncher to BaseActivity so ↵Sunny Goyal2017-03-031-0/+15
|\| | | | | | | | | | | | | | | that it can be used in other activities as well." into ub-launcher3-dorval am: 4ff3457e77 Change-Id: Ib6e1f0228ccf74613e26be3d2775b87ab38082d4
| * Moving Event dispatcher definition from LAuncher to BaseActivity so thatSunny Goyal2017-02-271-0/+15
| | | | | | | | | | | | | | it can be used in other activities as well. Bug: 34766840 Change-Id: Ie4b723483792bee93fb75e63146ebea7dfeebeda
* | Launcher dump proto that will be used for:Hyunyoung Song2017-03-012-7/+175
|/ | | | | | | | | $ 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
* Add basic logs for tap outside action.Jon Miranda2017-02-071-0/+8
| | | | Change-Id: I6288610b9870c3abe88794c53309b1d76dd2780f
* Add logging for notifications.Tony Wickham2017-02-071-5/+22
| | | | | | | | | | | | | - Log notification launches - Log notification swipes - Fix logDragNDrop() to only log if the pre-drag ends (so it doesn't log a long-press that only shows shortcuts without dragging). - Add shortcut rank to logs when launching deep shortcuts, where 0 is the shortcut closest to the app icon (highest rank). Bug: 34770729 Bug: 32410600 Change-Id: I99dcef9b6a71da2ef58e32397702bb137407b10f
* Clean up around 1) Log.VERBOSE and 2) dumpHyunyoung Song2017-02-011-1/+2
| | | | | | | | | b/31772480 Note: in the follow up CL, I will add the dump result of the bgDataModel to a proto Change-Id: I5261cff0fb29cedd1dd772b8b15f67095ad5b967
* Adding some logging around launcher restoreSunny Goyal2017-01-091-1/+1
| | | | | | | | > Also enabling fileLog when the device is debug build (even when launcher is not dogfood build) Bug: 30735662 Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7
* Using java_style enum generation for protoSunny Goyal2016-12-152-170/+100
| | | | | | | This makes it easier to track various method parameters and simplifies debug logging Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
* Consolidating a few log util methodsSunny Goyal2016-12-152-127/+71
| | | | | | | | | 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-212-28/+88
| | | | | | Document: go/false-longpress-overview Change-Id: If6ba4996c861a44f4950b41acb4246e3a483d8f2
* Add logging for workspace rearrangement in overview modeHyunyoung Song2016-11-211-0/+20
|\ | | | | | | | | | | am: 0d4899026c Change-Id: Ie6569ecafdd63981e167a910f852a8133697ae81
| * Add logging for workspace rearrangement in overview modeHyunyoung Song2016-11-171-0/+20
| | | | | | | | | | | | b/32457561 Change-Id: Ic38fbd540616a74f26c19a09ab4247fe8f9174b4
* | Refactors in UserEventDispatcherHyunyoung Song2016-10-061-17/+13
| | | | | | | | | | | | - LaunchSource -> LogContainer Change-Id: I71bfee992fb1ba7ae80e824d419f7bf8d3020999
* | Code sanitizationHyunyoung Song2016-10-061-1/+1
| | | | | | | | | | | | - Removed bad method/class name typos Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
* | Add logging for long presses. Reset elapsed timer when changing containers.Jon Miranda2016-10-051-0/+7
|/ | | | | | | | This is the first CL in a series of logging-related CLs. Upcoming CLs will include using Commands (HOME_INTENT, BACK) and "tapping outside" of a container logic. Change-Id: I62f0a08c7a9d9fce0baa5c12c67e21f63ab16a7c
* Add user event logging for tap on searchHyunyoung Song2016-10-032-15/+7
| | | | | | b/31772967 Change-Id: I71ececb8195d46405623a8ae2a99d001088d9181
* Add user event logging for action on search boxHyunyoung Song2016-09-271-0/+12
| | | | | | b/31772967 Change-Id: Ide652ddfad931e392b21f5a2bbdf9f07729d0383
* Support user event logging for drag and dropHyunyoung Song2016-09-012-37/+132
| | | | | | | | | | | | 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-152-24/+75
| | | | | | | Before, everything is set to APP_ICON With this changed, pinned shortcuts are set to DEEPSHORTCUT Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098
* Log shortcuts open on ACTION_UP instead of in showForIcon().Tony Wickham2016-08-101-3/+5
| | | | | | | | | | | - We only want to log when the container is opened and potentially used, not when a long press is followed by a drag-and-drop. - Also cleaned up code that was determining the container of the app icon, since LaunchSourceProvider.fillInLaunchSourceData() can do that instead (it's more robust and consistent). Bug: 30791570 Change-Id: I05b6750f26182fda8a9940ac66f1371c2d228ca9
* Add logging for shortcuts opening.Tony Wickham2016-08-012-1/+17
| | | | | | | | | - 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-212-21/+53
| | | | | | b/30114798 Change-Id: I11ad99d0bc1983294d6a5329b98917cb87250823
* Fixing potantial context leak code pathSunny Goyal2016-06-201-2/+16
| | | | | | | | The javadoc in createUserEventDispatcher suggested that it can be used as a singleton. But it was being constructed as an inner class which would cause context leak when used as singleton Change-Id: I706018d4ab26b506ac936fe1a7304d9b530b820c
* Fixing FileLogs testsSunny Goyal2016-06-071-0/+9
| | | | | | | | During tests, the logs directory is changed. But the active thread was not getting stopped which was causing some logs to be written to the old location corresponding to some previous test Change-Id: I7b8587eae0eb68fa180e3992694cab3745922483
* Merge "Fixing a crash/ Launcher3 doesn't have predicted apps" into ↵TreeHugger Robot2016-05-111-2/+4
|\ | | | | | | ub-launcher3-calgary
| * Fixing a crash/ Launcher3 doesn't have predicted appsHyunyoung Song2016-05-111-2/+4
| | | | | | | | Change-Id: Id405e6d077f8b4c3fb399d4a613d6013dca5cddc
* | Merge "Send predictedApps rank via user event logging" into ub-launcher3-calgaryHyunyoung Song2016-05-111-5/+14
|\|
| * Send predictedApps rank via user event loggingHyunyoung Song2016-05-101-5/+14
| | | | | | | | Change-Id: Ib492cb77bce0bc57f60bc4b1310df0810b63d0aa
* | Using a separate thread for loggingSunny Goyal2016-05-091-2/+7
| | | | | | | | Change-Id: I85a900bd70e01a7df2c2d8bd09c82cebdec2d3be
* | Adding a utility class for persistant logging.Sunny Goyal2016-05-091-0/+211
|/ | | | | | | The logs are kept for at max 48 hours. It uses two log files and switches between the two based on the day of the year. Change-Id: I9a99499b3445a62f29f62a5cd13db20b1783bcd3
* Refactor UserEventDispatcher (1/2)Hyunyoung Song2016-04-191-7/+9
| | | | | | b/28269657 Change-Id: I1083e6f73f42ac1986428a39c6b532050e595ac6