Commit Graph

8 Commits

Author SHA1 Message Date
Felipe Leme
3e166b27fc Created metric events for scoped directory access API.
BUG: 27334821
Change-Id: I8a1bfc328dcd26b42bb66884d14b34ad11aa232f
2016-03-01 10:12:58 -08:00
Steve McKay
a1f7680f53 Update preconditions to be asserts...
Which are now supported by Jack.
Retain a few preconditions checks that enforce contract.
Disable the one assert we had...because it failed in tests.

Change-Id: I2f6cb01e1af1534be4428ce4a3ee625a163dd163
2016-02-29 14:47:40 -08:00
Ben Kwa
a87e9f94d0 Renumber UMA constants.
Clearcut does not like negative or zero values for its histograms.

Also, consolidate all metrics constants in the Metrics.java file. In
cases where values are being obtained from elsewhere (e.g. State.action
constants), map those constants to constants defined in Metrics.java.
This will reduce occurrences of constants changes accidentally screwing
up metrics data.

BUG=26737132

Change-Id: Ia9fb88a49c3102afc2464d20653e2ee21cfc591f
2016-02-18 16:48:45 -08:00
Tomasz Mikolajewski
cd270153ff Fix tapping on more than one failure notification.
Bug: 26809248
Change-Id: I4e52b7e7a9e09d57b8a2231a09c9121b5fd19e51
2016-02-03 11:03:47 +09:00
Ben Kwa
a3cdbdda9b Fix a crash in Metrics code.
Check for null URIs when logging metrics for DocsUI launches.  This
prevents a NPE caused if DocsUI is started by an intent with a null URI.

BUG=26848462

Change-Id: Iea02488581f582f60eabf61deec1e89c13449d78
2016-01-29 14:18:26 -08:00
Ben Kwa
da518c9e61 Add logging for MTP roots.
BUG=26737132

Change-Id: I09d7f644edd775ce54a06dbed9f4b716eeb662d3
2016-01-29 12:11:01 -08:00
Ben Kwa
d5b2af1544 Add metrics logging for file operations.
Log to two new histograms - one for operations originating from system
providers, the other for operations originating from external providers.

Events in these histograms are bucketed by
- type (copy, move, delete, etc)
- destination (system vs external provider, with a special bucket for
    intra-provider operations)
- result (success vs failure)

BUG=26737132

Change-Id: Ic24c7a22fa3c1227e23cfbd42ae80ca1f70a19ba
2016-01-29 08:31:42 -08:00
Ben Kwa
723799858a Add MetricsLogger calls to DocumentsUI.
- Create new categories in MetricsLogger for DocumentsUI events.
- Add logging code to DocumentsUI for launch events and viewing roots.

BUG=26737132

Change-Id: Ib703878a39dd03b57e68a4d5a1d6cf8fe2936c5a
2016-01-26 14:15:42 -08:00