Commit Graph

36 Commits

Author SHA1 Message Date
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
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
d5a9b57713 Log whether an event happened during landscape mode or not
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
2017-05-16 11:12:43 -07:00
Hyunyoung Song
e295acaeb3 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
(cherry picked from commit 6aa3729e98)
2017-04-04 23:06:30 +00:00
TreeHugger Robot
c5c9cae70d Merge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3-dorval 2017-03-30 18:58:18 +00:00
Sunny Goyal
778634c818 Adding logging for various interaction in PinItemRequest UI
Bug: 34766840
Change-Id: Ib29d7d4b53ab99cdf3ff253976ef55345729487b
2017-03-22 16:47:21 -07:00
Jon Miranda
fe96432b43 Add isInMultiWindowMode bool to all logs.
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
2017-03-22 13:08:50 -07:00
Tony Wickham
c6b79e307f Add logging for notifications.
- 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
2017-02-07 10:16:52 -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
Tamas Berghammer
e54852d9f4 Update package names to work with the proto3 compiler
Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
(cherry picked from commit f4f62cfb2d)
2016-11-10 00:25:46 +00:00
Hyunyoung Song
ffad962092 Add user event logging for action on search box
b/31772967

Change-Id: Ide652ddfad931e392b21f5a2bbdf9f07729d0383
2016-09-27 18:07:00 -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
Sunny Goyal
eb77aaea89 Removing Key-Value pair backup logic as Launcher now uses full-data backup
Change-Id: I3bbaec2b33afe8c1da3ca1468c7c733cc3194604
2016-06-23 16:31:54 -07:00
Sunny Goyal
eb4b79935e Removing icon_type column
Icon type is not used consistently. It is used initially
during the loader. Afterwards, we save both the icon and resource to the db.
Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available,
always write the bitmap to DB whenever the shortcut is edited.

Change-Id: I0ea5e88f8904bd3250ca669220b3e5d6aeef1bfd
2016-05-11 15:21:42 -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
726eb822d3 Fix the broken build
Change-Id: I2750cde454a6604f33b910ac8b31fd07bba567bb
2016-03-07 10:07:35 -08:00
Hyunyoung Song
3650019856 Trim down the logging class
b/26494415

Change-Id: I9035f515e4eb54af8f8ad2f29ab294d2ac9760e8
2016-03-04 12:00:25 -08:00
Hyunyoung Song
c619edbc72 [DO NOT MERGE] Upload proto file to burnaby-polish
b/26494415
- needed for ag/879262 getLogger function parameter
- prediction to start parsing proto instead of the bundle

Change-Id: I002ceb5faad0f2272ae5676b891f20826dbfcf3f
2016-03-04 10:27:09 -08:00
Sunny Goyal
a6164c5c9b Adding a .nano prefix in the proto package name
Change-Id: Ia513089f813567953ca146538f79d21ca5fd8ddf
2016-01-06 14:47:13 -08:00
Adam Cohen
519a40f731 am a547c451: Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"
* commit 'a547c4516c1a2dfd87f3466fccffd5ca6c5cab8c':
  Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"
2015-07-31 21:10:14 +00:00
Adam Cohen
a547c4516c Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"
This reverts commit cb7674118c.

Change-Id: I831abe3746be49fd164046655e8c5e059bae074f
2015-07-31 21:06:10 +00:00
Adam Cohen
e40e77b34f am cb767411: Add proto flag "javanano_use_deprecated_package" to avoid build breakage
* commit 'cb7674118c6fa6849e657fb8fea25c8fd93477cc':
  Add proto flag "javanano_use_deprecated_package" to avoid build breakage
2015-07-31 18:49:57 +00:00
Adam Cohen
cb7674118c Add proto flag "javanano_use_deprecated_package" to avoid build breakage
Change-Id: Iea8a7bc2bb385e066b3f972105224fee3eb7c894
2015-07-31 11:15:49 -07:00
Sunny Goyal
107ea6345b Adding rank column in backup
> targetType was only added for M builds, so it can also be considered
  as v4 change. V3 which introduced minSpanX and minSpanY didn't
  contain targetType

Bug: 22417713
Change-Id: I5c353674f7e0c2b5b4ab46e574fdb347d82028cd
2015-07-22 16:48:23 -07:00
Sunny Goyal
3a30cfeb7c Adding minSpanX and minSpanY for all the launcher widgets
Bug: 22353460
Change-Id: Id4450dee42a83e4603dcd56e1c4dec2b0e405858
2015-07-17 11:10:05 -07:00
Sunny Goyal
249a510ab3 [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
Bug: 22353460
Change-Id: Id4450dee42a83e4603dcd56e1c4dec2b0e405858
2015-07-16 19:35:36 -07:00
Sunny Goyal
9e0fcdb412 am 1d8f4ad5: Revert "Add "option javanano_use_deprecated_package = true;\n" to protos compiled with the nano proto compiler that are referenced in Java files."
* commit '1d8f4ad59dbb17d80c6b910be8ad85904cb08d68':
  Revert "Add "option javanano_use_deprecated_package = true;\n" to protos compiled with the nano proto compiler that are referenced in Java files."
2015-07-02 00:37:12 +00:00
Sunny Goyal
487c4aa334 am 469fea0b: Add "option javanano_use_deprecated_package = true;\n" to protos compiled with the nano proto compiler that are referenced in Java files.
* commit '469fea0b390e893c1eb8115ff6c5f997916be4c1':
  Add "option javanano_use_deprecated_package = true;\n" to protos compiled with the nano proto compiler that are referenced in Java files.
2015-07-02 00:37:11 +00:00
Sunny Goyal
1d8f4ad59d Revert "Add "option javanano_use_deprecated_package = true;\n" to protos compiled with the nano proto compiler that are referenced in Java files."
This reverts commit 469fea0b39.

Change-Id: I2977f49a9836fd08038028c6cd8d3eed73185dde
2015-07-01 18:25:00 +00:00
Sunny Goyal
469fea0b39 Add "option javanano_use_deprecated_package = true;\n" to protos compiled with the nano proto compiler that are referenced in Java files.
Bug: 21273801
Change-Id: I6d9986f5f93980d8a3400e488609a28082fc2cdb
2015-07-01 10:35:16 -07:00
Sunny Goyal
bb3b02f562 Replacing hotseat icon to an appropriate system app
> During backupi, store the hotseat target app type, based on some predefined
common system apps
> During restore, save this app type in the restore flag, if it is a hotseat app
> During first launcher load, if an app is not being restored, try to replace it
with an appropriate replacement for that type, otherwise delete it.

Bug: 18764649
Change-Id: Ic49e40bd707bd8d7de18bbab8b1e58a0a36426a2
2015-01-22 10:54:50 -08:00
Dave Hawkey
7d17629168 Add syntax option to backup.proto.
This is required to properly compile the file in google3.

Change-Id: Ib9ff3163974a5180797c0ecadb833dae93619b2c
2014-12-19 14:13:30 -07:00
Sunny Goyal
33d4438976 Updating backup restore logic
> Adding DeviceProfile information in the backup
> Removing SharedPreference backup
> Adding helper methods to abort backup in the middle
> Comparing keys against the backup journal during restore
to avoid restoring corrupt/lost entries
> Old backups are still compatible, but lost keys verification
will be ignored in that case.

Bug: 17937935
Bug: 17951775
Bug: 17260941
Change-Id: Iad48646cfdd69abaff5c163b2055f3b8a9b39b19
2014-10-28 09:27:10 -07:00
Chris Wren
fd13c714f4 backup widget assets.
Bug: 10778984
Change-Id: I842a88c517401fa4eb3798fd03e0fbc3634e3144
2013-10-03 12:57:52 -04:00
Chris Wren
22e130d401 backup launcher icons
Only allow a small number of icons to be backed up in any given pass.
Also refactor common code out of favorite and screen backups.

Bug: 10778984
Change-Id: I54bc769c1d1c1c9087ea4bc58f258bd15c167aea
2013-10-02 08:02:57 -04:00
Chris Wren
1ada10d595 add a backup agent.
backup only, restore path is just debugging/verification.
todo: restore path
todo: additional asset backup for widgets and launcher items

Bug: 10778984
Change-Id: I01aed4794a02f03daf21bca28f99cfbea90e4967
2013-09-24 09:41:39 -04:00