126 Commits

Author SHA1 Message Date
samcackett
76331b6c17 Add metric logging for fake landscape usage
- Reuse existing TaskSwitcherContainer for Overview metric logging
- Log current orientation state for Overview when interacting with
gestures or via three button nav
- Log current orientation state on each phone rotation

Bug: 332870519
Test: Manual
Flag: NA
Change-Id: Ia10cf1acb809432175daab55151998f0d77362f9
2024-05-15 09:42:08 +01:00
Holly Sun
5225c2f870 [tile] Update protos.
Bug: 313696037
Test: manual
Flag: NA
Change-Id: Ic9e9d65b650a2e1f870359cfe59b52a138f53363
2023-12-07 13:04:23 -08:00
Treehugger Robot
45af4de0a1 Merge "[ps] Add data source for launcher." into main 2023-12-06 01:05:27 +00:00
Holly Sun
ac14c86c66 [ps] Add data source for launcher.
Bug: 298227797
Test: manual
Flag: aconfig com.google.android.apps.nexuslauncher.inject_private_space_tile DISABLED
Change-Id: Idb348fcd5373d4eae9d56432886ad9998fb0ec6e
2023-11-30 13:47:42 -08:00
Anna Zhuravleva
94228b18db Merge "Add user_type field and log it in Launcher" into main 2023-11-30 10:28:45 +00:00
Anna Zhuravleva
9c20381231 Add user_type field and log it in Launcher
Add new field user_type to decouple
work_profile and private_space users.
Deprecate is_work boolean field.

Bug: 312200869
Test: statsd_testdrive 19, output: https://paste.googleplex.com/5912695996416000
Flag: NA
Change-Id: Idc25f341b4353a85b8a93eab97c88195895baedc
2023-11-29 10:26:53 +00:00
Holly Sun
e76f092fa9 [tile] Repurpose PEOPLE_TILE result type to QS_TILE
Bug: 313696037
Test: manual
Flag: NA
Change-Id: Ia04654678e6eb146b532c1b81f51ecfb1afea1c5
2023-11-28 16:03:24 -08:00
Weng Ng
dd16853be4 Add attribute for NO_FULFILLMENT.
Bug: 305752409
Test: Manual
Flag: Not needed (proto extension).
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3846935101f653fc848653f224c4c35a27d29083)
Merged-In: Ibb6bf11e42f59f22f625f00f7f085279a41d961c
Change-Id: Ibb6bf11e42f59f22f625f00f7f085279a41d961c
2023-10-26 18:20:19 +00:00
Anushree Ganjam
8256f7854a Add a new attribute for TEXT_HEADER_ROW
Bug: 286938375
Test: NA
Flag: No flag needed since this Logging Polish.
Change-Id: Idf8bd7ca9149b4979d10369357c5d13fd65e750c
2023-08-04 16:32:04 -07:00
Anushree Ganjam
fe1976176a Add Location related Attributes.
Bug: 274296899
Flag: NA
Test: Manual (New proto enum)
Change-Id: I6d09c5baabb672842d54859437c44fb2a95578cb
2023-05-18 06:10:04 +00:00
K. S. Yim
ef2b62f354 Define additional Attributes to indicate new data sources of Toast app integration results.
Bug: 281118922
Test: Manual
Flag: Skipped (proto extension)
Change-Id: I04b618e34437b598e6566c1456ed19cde4a0f6bd
2023-05-16 22:33:38 +00:00
Anushree Ganjam
8b42b73286 Introduce new Attributes to indicate data source of Toast results.
Bug: 278734310
Test: Manual
Flag: NA
Change-Id: I44fe19ba4f172b241edd958df5184793b4c6f74e
2023-05-05 17:03:49 +00:00
Andy Wickham
a4627d2235 Merge "Add long swipe from app to overview gesture (with flag)." into udc-dev 2023-04-26 21:30:53 +00:00
Andy Wickham
830e4b7ce0 Add long swipe from app to overview gesture (with flag).
High level:
 - As you swipe up from an app (OtherActivityInputConsumer),
   a state transition animation to All Apps is created in
   AnimatorControllerWithResistance. The animation is played
   alongside the Recents resistance animation (i.e. past the
   settling point of Overview, which is at mCurrentShift 1).
 - The actual state transition to All Apps only happens if you
   release your finger in the "all apps region." This is set to
   mCurrentShift 2, so double the distance that Overview rests.
 - A haptic plays whenever you enter or exit this region, and
   the all apps animation is set to 0 until the region is
   active. This is so it's clear that something different is
   happening.
 - The panel that was previously used for tablets is now used
   for phones during this transition. It comes in at full
   opacity when you enter the region, and the contents (apps
   and search suggestions) fade in as you continue swiping.
 - The only gesture that is recognized in the all apps region
   is a fling downwards, which will return you to the previous
   app. Otherwise a left/right/up fling or slow release will
   finish the all apps transition.
 - The threshold is ignored if the flag is disabled (default)
   or if FallbackActivityInterface is active.

Flag:
The threshold is ignored if ENABLE_ALL_APPS_FROM_OVERVIEW is
disabled (default).

Bug: 259619990
Bug: 275132633
Test: Manual with and without the flag enabled
Change-Id: Ie311b77252416d97677b2c56fad61dfd392b6fe8
2023-04-26 10:52:04 -07:00
Holly Sun
977aa48347 [play] Add a new attribute type for GMS Play in order to distinguish with the old M0 flow.
Bug: 260712395
Test: wwlogcat https://paste.googleplex.com/5204101439684608
Flag: ENABLE_SEARCH_UNINSTALLED_APPS. OFF
Change-Id: I5dc75b7aef9cd778c59167347500b923626e4953
2023-04-18 14:49:02 -07:00
Anushree Ganjam
54191c2e40 Remove attribute related to ResultType.NAVVYSITE.
Removing the mapping on Aster side as well cl/520737613.

Bug: 276345144
Test: Manual
Flag: NA
Change-Id: Ie1deebf328d1ba0d5b32f0e015ab372871d5083e
2023-03-30 21:06:00 +00:00
Brian Isganitis
ba5b25c198 Merge "Log when taskbar is in task switcher container." into tm-qpr-dev 2023-03-08 18:56:02 +00:00
Thiru Ramasamy
bc8b854c51 Creating enum alias ALL_APPS_SEARCH_RESULT_FALLBACK for ALL_APPS_SEARCH_RESULT_SUGGEST.
This is avoid confusing with ALL_APPS_SEARCH_RESULT_WEB_SUGGEST attribute.

Bug: 271186742
Test: Local - http://gpaste/4919299188719616
Change-Id: I2778316feaae4c76a0726cbee61be5d7a72868ed
2023-03-07 17:00:36 +00:00
Brian Isganitis
c762ef68d4 Log when taskbar is in task switcher container.
Test: wwdebug & wwlogcat
Bug: 261177876
Change-Id: Id4eda7ee7e4e2c1aa60e07d5b65410b3847d9ac6
2023-03-07 03:29:21 +00:00
Anushree Ganjam
03b69e4f32 Add logging for EDUCARD resultType.
For Impression logging, the educard resultType is not logged correctly.

Bug: 267503356
Test: Manual
Change-Id: Ibca6392a85d2fbd7b6d26a4f3665307af0ead8f3
2023-02-28 00:40:58 +00:00
Anushree Ganjam
7cbfdd4f06 Add logging attribute for VIDEO and SYSTEM_POINTER result type.
Bug: 266631411
Test: Manual
Change-Id: Ic2819c6c2a74a2e4bf46fb78448f3723ddfe933e
2023-01-25 02:16:35 +00:00
Becky Qiu
6b52305b28 [Toast] Add a new attribute for rich answer type.
Bug: 261205664
Test: local
Change-Id: I2ff89c02c72d0a8ef3572b51f9429ab199231c3f
2022-12-08 15:41:37 -08:00
Johannes Gallmann
6518efce73 Extracting ViewCapture into common Library
The ViewCapture functionality is extracted into a common Library accessible to the Launcher and SystemUi modules.

Test: None yet
Change-Id: I4be394ed8dc86e30f6b8c69c438b8bc943e7907c
2022-10-26 12:29:30 +00:00
Pat Manning
5889bc3729 Add launcher metrics for tracking kids nav mode change events.
Fix: 241762670
Test: wwdebug && wwlogcat
Change-Id: I24432f2cd0dddbcc5991645b60a1a8e91dc431e5
2022-10-17 14:06:38 +01:00
Sunny Goyal
c9c81ef320 Compressing view capture data and changing the format to avoid
storing duplicate strings

Also starting the dump process early to avoid timeouts

Bug: 242868825
Test: Verified on web-hv UI tool
Change-Id: I9943e41426f820c9ab70d39b9f01896ed060cab4
2022-08-17 16:48:27 -07:00
Stefan Andonian
608cd69805 Get elevation in time-lapse View Hierarchy capture.
Bug: 234032088
Test: Verified that elevation attributes from device are captured and
show up correctly on go/web-hv UI.

Change-Id: Id4c5a5c5a003cc38d332edc99365b160f17c52a6
2022-08-15 23:40:47 +00:00
Sunny Goyal
25972b1f2f Adding support for continously capturing view hierarcy in Launcher
Bug: 238243939
Test: Verified data being captured and dumped
Change-Id: Ibe069d39ccf728f7b953f85085e58976be6e05ac
2022-07-11 15:43:54 -07:00
Brian Isganitis
5b89b31b12 Log taskbar all apps entrypoint, launches, and drags
Test: wwdebug, wwlogcat, ensure container is formatted as follows:
    container_info {
      all_apps_container {
        taskbar {
        }
      }
    }
Bug: 204696617
Change-Id: I2492b133f95fccb059010bc9e5ed6cce73c211f9
2022-04-11 12:14:14 -07:00
Anushree Ganjam
45f221621e Add ALL_APPS_SEARCH_RESULT_WEB_SUGGEST for ResultType.WEB_SUGGEST
Bug: 220922858
Test: Manual.

Change-Id: I5a52872a3bf75109b95e9853883825e32a623a1d
2022-04-06 22:18:14 +00:00
Thiru Ramasamy
dde19ea64d Rename "ONE_SEARCH" attributes to "WEB_SEARCH"
* Minor fix to logging

Bug: 210792253
Test: manual
Change-Id: Ib32b945e1fa7696b3b8360dae01e1bd00295ff8d
2022-04-01 23:10:43 +00:00
Thiru Ramasamy
834f633931 Add ONE_SEARCH_WEB_PERSONAL attribute.
Test: wwdebug && wwlogcat; http://gpaste/6052674958000128
Change-Id: Iba1d18060b18ab3dad8947d49a412d34db5ac78c
2022-03-04 09:54:34 -08:00
Thiru Ramasamy
d7af3cc784 Add support for logging multiple attributes per item.
This change will make use of new attributes field in LauncherAtoms to log multiple item attributes by converting them int array and then writes proto bytes into statsd.

Test: wwdebug && wwlogcat http://gpaste/5985977337118720
Change-Id: Iabda0b14100558f5625d01ba829d3ad96a6419fc
2022-03-04 08:40:44 -08:00
Thiru Ramasamy
1d7848aedb Add OneSearch SuggestionType enums to launcher atom.
Bug: 222001231
Test: wwdebug && wwlogcat - http://gpaste/6024652376768512
Change-Id: I6062a5fc6c4046521923f564b99a8150c561c0a2
2022-03-03 18:48:00 +00:00
Brian Isganitis
111a5c5df5 Adding support for logging wallpaper container info.
Test: https://paste.googleplex.com/5350571797118976 shows logging carousel size and index of wallpaper tapped. If the wallpaper is a live wallpaper, we also log its application info.
Bug: 188222480
Change-Id: I6dd7ac20af7afd675d8a886d5b838263680f773e
2021-12-06 18:37:07 +00:00
Thiru Ramasamy
e307f447d8 Add LEGACY_SHORTCUT & ASSISTANT_MEMORY search results to launcher logging attribute.
Test: Make NexusLauncherDebug
Bug: 201559997
Change-Id: I308b29c25825c524e5c11bd3a690befdeb411e77
2021-09-30 09:36:47 -07:00
Tony Wickham
2a10e62e92 Add logs for taskbar and overview split action
Log:
- Taskbar app launch (also from foldeR)
- Taskbar app drag (also from folder)
- Taskbar folder open
- Long press to hide taskbar
- Long press to show taskbar
- Overview Split screen action

Also add support for ActivityContext to overwrite/add to LauncherAtom.ItemInfo, which TaskbarActivityContext does to change HotseatContainer and PredictedHotseatContainer to TaskBarContainer

Test: enable logcat locally
Bug: 193009817
Change-Id: Ia82c846a727fecb8cbfd0a069c8af1276083bf83
2021-09-13 17:25:15 -07:00
Thiru Ramasamy
be8b2ad03d Add TaskBarContainer to launcher_atom.proto
Bug: 193009817
Test: Manual
Change-Id: Ib69be2b2405ab38891dff34c4d366105cd2499c1
2021-09-13 16:15:52 -07:00
Yogisha Dixit
658c5dafd4 Log widgets source.
Test: manual
(1) Upgrading to new DB version is successful (no errors thrown in logcat)
(2) Widgets that were added with the old DB version have CONTAINER_UNKNOWN as their source container
(3) Widgets that are added with the new DB version still log source container after reboot
Bug: 185778648
Change-Id: Iaa38f0be6bc4cb0d29842f9a2ea0d08de000c930
2021-06-30 17:48:14 +00:00
Yogisha Dixit
0b15c7ee07 Log widget features.
Design doc: go/widgets-logging
Note that this doesn't log dynamic colors yet. I'll work on that in a
follow-up CL.

Bug: 185778648
Test: manual
Change-Id: I04249ef267907b4112c220fb206e077d1bee783a
2021-05-15 00:26:41 +01:00
thiruram
1987a42d3c [AA+] Add SearchResult type to ItemInfo attributes.
Bug: 186169419
Test: Manual
Change-Id: I9ea707e135eda163dfb3f12f48f4f0c37e6c044e
2021-04-28 09:36:05 -07:00
thiruram
d0ab1a0eed [AA+] Add WW logging for Slice actions.
Bug: 178562918
Test: Manual
Change-Id: I515ee3c0990dea2c30e68d5919568dc1773912ee
2021-02-22 20:07:29 -08:00
thiruram
f8f2a6ed0a [AA+] Log tap on SearchActionItem.
Bug: 178562918
Test: Presubmit
Change-Id: I42a44de4f3cc02ca331c4f99c107891c4658995d
2021-02-22 22:39:41 +00:00
thiruram
cbeb13d6c7 [AA+] Log app launches from AA+ search result container.
This change will update westworld logs for app launches from AA+ search result. Updates log's container info from AllAppsContainer -> AllAppsPlusSearchResultContainer.

Bug: 178562918
Change-Id: I9ffca27fea42951a57640ef36717c04ff0251506
2021-02-03 10:08:57 -08:00
Tony Wickham
1fddddb4f3 Update launcher_trace.proto for quick switch
Sample output from one entry:
entry {
  elapsed_realtime_nanos: 440461382888540
  launcher {
    touch_interaction_service {
      service_connected: true
      overview_component_obvserver {
        overview_activity_started: true
        overview_activity_resumed: false
      }
      input_consumer {
        name: "TYPE_OTHER_ACTIVITY:TYPE_ONE_HANDED"
        swipe_handler {
          gesture_state {
            endTarget: NEW_TASK
          }
          is_recents_attached_to_app_window: true
          scroll_offset: 846
          app_to_overview_progress: 0
        }
      }
    }
  }
}

Bug: 167259591
Change-Id: I7f199d88f1d736efcea6b9165b8c4b77a5d27c58
2020-10-06 18:25:50 -07:00
Hyunyoung Song
95786e077d Good riddance UserEventDispatcher
Bug: 165675920
Bug: 161381246

TL;DR;;
- nano -> lite proto
- add all the missing logs to WW
- pin item related logging fix
- Removed logging for assistant

sgrep "com.android.launcher3.userevent.nano." | cut -f1 -d: | xargs sed -i -e 's/userevent\.nano\./userevent\./g'

Change-Id: Ie2a49fdd891cacbd7ef40a1dc9e41ff0574c7517
2020-09-27 13:41:49 -07:00
Sunny Goyal
852537fd98 Using StatsLog for notifyingAppPredictor
> Adding a listener in StartsLogManager for listening to events.
  This allows events to be directored to the predictor only if
  it is already running, instead of creating it.
> Unifying the event format to be same as hotseat predictor

Bug: 160748731
Change-Id: Ib00e6249ff642c030f00bcad5b748255e704d16a
2020-07-16 14:12:15 -07:00
thiruram
dbd61d4026 Log query_length & parent_container for actions on search results.
Bug: 154717227
Change-Id: I8e7d725014f60a2fd9a7fe13fce705acbc7623ad
2020-06-22 18:14:12 -07:00
thiruram
ec75cbd85a Adds additional folder label states (UNLABELED & EMPTY_LABEL)
UNLABELED -> title==null and EMPTY_LABEL -> title=="". When adding new items for the folder if the folder is in UNLABELED state, auto-labeling will be enabled.
This change also addresses auto-labeling issue due to false edit from UNLABELED to EMPTY.

Bug: 159164315

Change-Id: Ia17cd27b4afb60420dc15c544f544061fc46ad33
2020-06-22 13:24:07 -07:00
Hyunyoung Song
13c2bc7303 LAUNCHER_APP_LAUNCH_TAP should log correctly for icons inside folder
Bug: 137777105

Change-Id: I5c1552481fc1b788ba41c57bfe97f126f55e5b16
2020-06-11 23:51:17 -07:00
thiruram
18c2495b8f Adds PredictedHotseatContainer to launcher_atom.proto
Used for differentiating logs from normal hotseat and predicted hotseat.

Bug: 158218197
Change-Id: I011ff724ea0916b32f680dc24e8d6090d3df766d
2020-06-10 10:44:58 -07:00