237 Commits

Author SHA1 Message Date
Daniel Nishi
ff97ea2eef Merge changes from topic 'cp-movies' into oc-dev
* changes:
  Use the real filters when determining Other Apps.
  Add support for movies & tv apps querying.
2017-04-13 18:39:57 +00:00
Salvador Martinez
ab932147aa Added strings for thermal shutdown warning
Strings for thermal shutdown warning were missing
so this CL adds them and a proto message value.

Test: SysUI tests still pass
Bug: 30994946
Change-Id: Ifd0b26248c2ebae5bcf32ecbea2566c14be7dc32
2017-04-12 18:41:35 +00:00
Daniel Nishi
45c23fa689 Add support for movies & tv apps querying.
Bug: 36223441
Test: Robotest
Change-Id: Icbb9b8947112f45d37858ceb5cfb1d76f06bda32
Merged-In: Icfb34844601f87d11b7309eacf9385d49ed36338
2017-04-07 14:20:36 -07:00
Kevin Chyn
8d1a52803d renaming/removing fingerprints should be reflected in UI immediately
Fixes 30252265
Test: manual

Change-Id: I1828a9f24f732ae3026074fe58542988ca839ef7
2017-04-06 17:51:39 -07:00
Jason Monk
1b77565a6f Add metrics for nav buttons through KeyButtonView
Doesn't cover home-long-press or overview, but those appear to be
covered by other events.

Test: runtest systemui
Merged-In: I590b52765aaef3c2bf573ce8ab980aa992b1d5b0
Change-Id: I630356245e223a3fb8d4d2fe11be5d498227c0e3
Fixes: 25931698
2017-04-06 15:19:14 -07:00
Chris Wren
717a8815c2 standardize account manager notification IDs
Bug: 36807942
Test: frameworks/base/services/tests/runtests/py
Change-Id: Iad5383ebbf9cf1765da5ad7405da1f79a3761c63
2017-04-04 08:20:58 -04:00
Chad Brubaker
e35d50622c Merge "Rename READ_PHONE_NUMBER to READ_PHONE_NUMBERS" into oc-dev 2017-04-03 17:34:13 +00:00
Chris Wren
ef3a28cb92 Merge "standardize network policy notification IDs" into oc-dev 2017-04-03 13:42:44 +00:00
Chris Wren
193ae6bc78 standardize network policy notification IDs
Bug: 36811253
Test: make
Change-Id: I8cb2c0a4be549f6e600b4d75b8113a2fd6d7cd64
2017-03-31 15:17:11 -04:00
Chad Brubaker
0c1651f289 Rename READ_PHONE_NUMBER to READ_PHONE_NUMBERS
Bug: 35853790
Test: make -j128 checkbuild
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermission2TestCases
Change-Id: I11d374cbbb6c2deaf74ac784ff995bd182fe9157
2017-03-31 11:20:02 -07:00
Chris Wren
f8c4f620ca move network notification IDs to central registry
Bug: 36808999
Test: make
Change-Id: I34bafa9ce69fc6913a6b4a5935cafd8979d0193b
2017-03-31 14:02:23 -04:00
Chris Wren
282cfefea0 standardize system notification IDs
All the trivial cases, plus some fixes to try to
mitigate collisions with the complex ones.

Complex services to follow in another CL,

Bug: 32584866
Test: make framework services
Change-Id: Ie9663600171d8ede11676e9d66f009dbb06def03
2017-03-31 11:44:05 -04:00
Jason Monk
8c09ac7435 Clean up and cover more QS metrics
Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377
Fixes: 34801532
Test: runtest systemui
2017-03-27 12:36:25 -04:00
TreeHugger Robot
a56d9a1841 Merge "add alert and reason enums" 2017-03-27 13:01:39 +00:00
Fan Zhang
1a34e7503e Add logging constant for reset dashboard page.
Change-Id: I526bdd71dad46510a205ed7f540914e83f779224
Fix: 36458355
Test: builds
2017-03-24 13:52:28 -07:00
Antony Sargent
b062e90b2f Create a metrics event for ag/1972563 (instant apps detail screen)
Bug: 35098444
Test: Tests for functional changes are in ag/1972563

Change-Id: I17de46278c815c9b6b385b111ca6544aa456d133
2017-03-24 13:30:03 -07:00
Chris Wren
65f07feeb4 add alert and reason enums
useful for notification logs
also some format cleanup

Test: make framework-protos
Change-Id: Iced9ee1d1648060c80243e34ccca060040207726
2017-03-24 15:49:00 -04:00
Casey Burkhardt
f4e98036a5 Update metrics proto for revised Magnification Settings
Adds 1 new constants for metrics logging:
 - Magnification Settings UI in Settings > Accessibility
   > Magnification

Bug: 1428815208
Test: Manual
Change-Id: I2d15b5b8525235b46ff344fa67a07bf993838df7
2017-03-24 00:25:45 -07:00
Fan Zhang
ed1845fdcc Add logging constant for vr display preference
Change-Id: I46f4add85162a4242adb5b3ff519c21129ef917e
Fix: 36557316
Test: builds
2017-03-23 14:46:59 -07:00
Winson Chung
248278fc82 Merge "Update PiP AppOps flag to enforce all PiP functionality." 2017-03-21 00:29:05 +00:00
Winson Chung
f4ac063f3e Update PiP AppOps flag to enforce all PiP functionality.
- Previously it only enforced whether an app could enter PiP as it was
  hiding.
- Also updating metrics constant name to reflect the change.
- Adding public OPSTR for apps to check if it the user has disabled PiP

Bug: 35957404
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I979b5c6d4c85946623999ced1cfb197d830ccecb
2017-03-20 15:15:52 -07:00
Chris Wren
1488055804 revise the reader semantics
checkpoint modifies the underlying log rather than reading timestamps.
reset replays without going back to the underlying log.
add a test

Bug: 32982362
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I381b203a1c24fcd098d7df4d9d0a50bd8aaa1309
2017-03-18 09:13:10 -04:00
Philip P. Moltmann
7b77116802 TRON log important auto-fill events
Example log from
android.autofillservice.cts.LoginActivityTest#testAutoFill#testAutoFillOneDatasetAndSave
(translated from numbers of human readable string):

AUTOFILL_SESSION_STARTED
   package=android.autofillservice.cts
AUTOFILL_REQUEST
   type=TYPE_SUCCESS
   package=android.autofillservice.cts
   FIELD_AUTOFILL_SERVICE=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_DATASETS=1
AUTOFILL_FILL_UI
   type=TYPE_ACTION
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_DATASETS=1
   FIELD_AUTOFILL_FILTERTEXT_LEN=0
AUTOFILL_DATASET_APPLIED
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_VALUES=2
   FIELD_AUTOFILL_NUM_VIEWS_FILLED=2
AUTOFILL_SAVE_UI
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_IDS=2
AUTOFILL_DATA_SAVE_REQUEST
   type=TYPE_SUCCESS
   package=android.autofillservice.cts
   FIELD_AUTOFILL_SERVICE=android.autofillservice.cts
AUTOFILL_SESSION_FINISHED
   package=android.autofillservice.cts

Test: Ran auto-fill tests and looked at event log.
Change-Id: I58aaa58e4435e7d04c8cd91878411943d3eb13de
2017-03-16 15:41:33 -07:00
Todd Kennedy
7e5407ec43 Add new metrics tags
Change-Id: I79c5609237246a2835c41fffed1092f859cbd4d8
Fixes: 35431326
Fixes: 35430849
Test: Manual; the tree builds and the constants can be accessed by other classes
2017-03-16 15:26:20 -07:00
Philip P. Moltmann
e56c08e852 Add TRON Events for app-ops permissions.
Fixes: 36212313
Test: Added and ran new EventLoggerTest-case. Installed and ran MobilIron Go app (like in the bug-report)
Change-Id: Ib1c69bb3aa2159b9101b6924484b51c223d136e0
2017-03-16 09:21:15 -07:00
Christine Franks
47175c3d4a Change system alert window setting proto comments
Bug: 36070413
Test: only comments changed
Change-Id: I2bb2a8a2be5a0535997e4cb382b52cb98ded6b09
2017-03-16 00:30:21 +00:00
Doris Ling
bf8d9de325 Add logging constants for settings security lockscreen preferences.
Bug: 36163515
Test: builds
Change-Id: I245c69073576975ec1531c83ac90090f3386909f
2017-03-15 11:52:50 -07:00
Fan Zhang
5379793357 Add logging constants for settings search recent results.
Bug: 27391895
Test: builds
Change-Id: I20763eb51e80a9b54a5cfc22cb3a640a7bc3c800
2017-03-14 10:16:03 -07:00
Fan Zhang
082d21c13d Add logging constants for settings
- New constants for logging app details page button clicks
- New constants for logging search result clicks

Change-Id: Ib2d1f1cec656881941a43363cbcb6c57395a7766
Fix: 32798201
Fix: 32652772
Test: Builds
2017-03-14 10:15:50 -07:00
Jorim Jaggi
3878ca3333 Fix multi-dimen app transition delay tron event
Make sure to log everything.

Test: Open app, inspect log.
Test: com.android.systemmetrics.functional.AppStartTests

Bug: 33086172
Change-Id: I6fdfef625c09267dcf20724e853cf7471abc86c9
2017-03-14 16:24:04 +01:00
Doris Ling
6d6b0be4d6 Merge "Add logging constants for setting bluetooth preference." 2017-03-13 17:24:18 +00:00
Insaf Latypov
d8aa2e67e7 Add host-side version of framework-protos.
AfwTestHarness needs to use framework-protos from host-side. This is why
new rule is added to build framework-protos usable from host-side.

Change-Id: Ifa35c5de04483d41e97c5853ea781fc29cef4947
2017-03-13 11:41:54 +00:00
Doris Ling
9ac3ddd36f Add logging constants for setting bluetooth preference.
Bug: 35065258
Test: Builds
Change-Id: Idb462c6c1fded04f45393b9b6a0b5866088639c7
2017-03-09 15:58:21 -08:00
Chris Wren
67b3eb953f add process ID to LogMaker
Bug: 32806111
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I3efa38a6b25502def3ba7ace04b6ba76e4d1a6cb
2017-03-09 15:57:44 -05:00
Hugo Benichi
f684050e8f IP connectivity metrics: update ipconnectivity.proto
This patch adds several new fields to ipconnectivity.proto for
improving APF metrics, connect metrics, and link_layer inference.

Test: build, flashed, ran $ adb shell dumpsys connmetrics list proto
      updated metrics unit tests depending on proto schema
Bug: 34901696
Change-Id: I6f68e16f583a6b407f33f8a500133e100f3453c7
2017-03-09 15:19:02 +09:00
mariagpuyol
0f5512eeec Add new constants to track successful contact queries
Bug: 35803126,35873712
Test: No need to add any tests for this

Change-Id: Ib902c28ebabb1bf17b4b2b80f70e08ab2571e75f
2017-03-08 09:52:52 -08:00
Fan Zhang
9986131b97 Add logging constant for hardware info dialog
Bug: 35851000
Test: builds
Change-Id: I3083c2cbd43ee04cb01c418962408cf00646d4b5
2017-03-07 14:32:38 -08:00
Stephen Chen
be9a9a60ae Create a Tron event for opening the network scorer settings page.
Bug: 35854268
Test: n/a
Change-Id: I0a021dcc9016f163f75b8077678f54df1c4f2bf6
2017-03-07 10:39:38 -08:00
Julia Reynolds
d373d78d15 Log notification channels and groups.
Test: manual, runtest systemui-notification
Change-Id: I326a35ae87e7a3dc4b2587271056b7dd5cd11f8d
2017-03-07 15:25:27 +00:00
Fan Zhang
b5ce2d125d Add logging constants for pref change tracking in Settings.
Change-Id: I16719ac7749795b9b3772ffe7b8ef1feff53c188
Fix: 34775467
Test: builds
2017-03-06 15:33:10 -08:00
jackqdyulei
a2a1434ee7 Add enums for battery settings page.
Bug: 35063415
Test: Manual
Change-Id: If2d8cb88bd4a91458747730dc9f352fe828de7ad
2017-03-02 11:20:42 -08:00
Sundeep Ghuman
104aa31262 Create a Tron event for opening the network details page.
Bug: 35807357
Test: NA
Change-Id: Icbae30d2e4af4e46e289cad490a6531157c54d5e
2017-02-28 17:51:39 -08:00
Fan Zhang
b66e542567 Add logging constants for setting build number preference.
Change-Id: I79ab6c89ec67e464167a96cf4350d8628bacbd91
Fix: 34774945
Test: Builds
2017-02-24 14:37:45 -08:00
Rebecca Silberstein
e71d9469a3 Merge "wifi.proto: add SoftApReturnCode enum" am: 84374678e0 am: e1dd7de75e
am: ded006f4cf

Change-Id: I8c41e4aff5734db561d2e63a7df344e292179832
2017-02-23 21:57:09 +00:00
Rebecca Silberstein
e1dd7de75e Merge "wifi.proto: add SoftApReturnCode enum"
am: 84374678e0

Change-Id: I22d8aca86a5a5c28c393db372b4399e5ddd99f46
2017-02-23 21:46:51 +00:00
Doris Ling
edb84c3a7c Add metrics constant for Settings->Security->Encryption & credentials.
Bug: 35630998
Test: build
Change-Id: I46f364a654440e6b0ba17477e6404e20449d3e0e
2017-02-23 11:07:36 -08:00
Rebecca Silberstein
28d9de269c wifi.proto: add SoftApReturnCode enum
SoftAp startup returns a failure mode if it does not start.  This
additional information is useful in determining where we need to add
logging and retry logic to make SoftAp mode more reliable.  The
combination of Failure + failure reason is mapped to an enum defined for
wifi metrics.

Bug: 30899122
Test: checked WifiMetricsProto.java for the enum
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I944e3e249d3be5738352b26a1d12139fdd50bf80
2017-02-23 10:42:05 -08:00
Daniel Nishi
4058a84e6b Add metric for new storage screen.
Bug: 34715777
Test: None here -- used in topic.

Change-Id: Icffecd5abba197d544a1f9bd382d5c09b0bbb388
2017-02-22 16:53:06 -08:00
Fan Zhang
7f2cace68b Add metrics for default assist/voice input pickers
Bug: 35203386
Test: Builds
Change-Id: Ic131eacfec84e79bcc3734f8f56b8e9848672e9b
2017-02-21 11:20:46 -08:00
Glen Kuhne
d0dcf559c5 Merge "Move wifi.proto to shared service .jar"
am: 9ca5ddff4c

Change-Id: I3c10728fdbcd2882723a1bd519a47a63aeba0ac0
2017-02-21 17:56:13 +00:00