247 Commits

Author SHA1 Message Date
TreeHugger Robot
2e0d455177 Merge "TV PIP: Fix broken TV PIP" into oc-dev 2017-05-08 22:26:18 +00:00
Jorim Jaggi
515dd689ad Add TRON logging for bindApplication
Such that we know how much startup latency is the system to blame
and how much of it is the client process to blame.

Test: Open dead app, inspect logs
Change-Id: Ib8d359c2d59ef6f90893928f2b1d4e2ac2590d74
Fixes: 37327717
2017-05-05 15:05:07 +02:00
Jaewan Kim
26c6356397 TV PIP: Fix broken TV PIP
Bug: 37249867
Test: Manual test (checked that the notification UI is shown when the
    PIP starts, and dismissed when the PIP is closed. The 'DETAILS' and
    the 'DISMISS' button in the notification also worked.)
Change-Id: I12e385b51f834991a0115ce5ba7dd98180577adb
2017-05-04 16:16:38 +00:00
Dianne Hackborn
83b40f69be Work on issue #36891897: Need to ensure foreground services can't...
...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
2017-04-29 19:41:12 -07:00
Chris Wren
4d6b54d2bf expose the UID in the EventLog API
Bug: 32806111
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I16800a33bc6d4d37b3addd71b675fd760bd5d7b8
2017-04-28 11:18:07 -04:00
Julia Reynolds
80b180761d New constant for new settings screen.
Bug: 36561295
Test: make
Change-Id: I0e2ec6d7b372a9594f8b583540804dde1b79de1a
2017-04-27 14:52:04 +00:00
Denis Kuznetsov
605beddfee Create a metrics events for ag/2085657 (DO disclosure screens)
Bug: 32692748
Test: Tests for functional changes are in ag/2085657
Change-Id: I6988a950ab2aa78dcb3f848b59a5b0905da7b204
Merged-In: I6988a950ab2aa78dcb3f848b59a5b0905da7b204
(cherry picked from commit 7152a41d25f0296ec5ed41c497f7666e185890eb)
2017-04-27 11:35:01 +00:00
TreeHugger Robot
9870d0bef7 Merge "Wifi Metrics STA event list" into oc-dev 2017-04-24 17:57:32 +00:00
Abodunrinwa Toki
54486c16ba TRON: Log "textAssist" actions.
- Logs when the assist menu item appears in the text selection menu.
- Logs when the assist menu item is selected.
- Logs the the type of the assist menu item that was presented.

Test: Manually tested by looking at the logs. See: go/tron-howto
Bug: 32572232
Change-Id: Ibbbf59423b3f510ab6f2f072962a556c3d6e2f65
2017-04-19 22:10:51 +01:00
Glen Kuhne
8ce9a1ceca Wifi Metrics STA event list
Implemented a new, more atomic connection event list for tracking wifi
connection event metrics. The old 'packaged' connection events are too
inflexible/artificial, and only track the connection ATTEMPT.
The new event list will track the individual commands/messages/events
modifying the state of wifi, with the post processing to determine
number of connections, successes, failures, etc, offloaded to the
consumer of the data.
Coverage has also been extended to track the full connection from
initiation, to connection and final disconnection, as well as piping
through of specific disconnection status and reason codes.

Bug: 35799311
Test: Added unit tests
Change-Id: Id29f39b31ec59adbe010bd21c1c7de7d305ff0f7
2017-04-18 15:57:52 -07:00
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