1052 Commits

Author SHA1 Message Date
tmfang
fb4dbb7812 Add logging enums for slice converter exceptions
- [Refactor] Also remove ACTION_DISPLAY_WHITE_BALANCE_SETTING_CHANGED
to Action enum.

Test: Rebuild rom
Bug: 131449561

Change-Id: I4edfdf275b7858a57cb12a1b4e3c03d2ec37e181
2019-05-09 10:32:17 +08:00
Felipe Leme
c0df895a41 Added moar augmented-autofill metrics:
- AUTOFILL_AUGMENTED_WHITELIST_REQUEST
- AUTOFILL_AUGMENTED_RESPONSE
- FIELD_AUTOFILL_AUGMENTED_ONLY on AUTOFILL_SESSION_FINISHED

Test: adb shell logcat -b events | grep sysui
Test: atest CtsContentCaptureServiceTestCases # sanity check

Bug: 112192360
Fixes: 122858578

Merged-In: Ia6bfced9396dd9e3f8ef2a6c45415dc22f4327c9
Change-Id: Ia6bfced9396dd9e3f8ef2a6c45415dc22f4327c9
2019-05-07 11:46:12 -07:00
Aran Ink
35231f7fc5 DO NOT MERGE: Bump metrics_constants value by ~100 to avoid conflicts with master.
Add Global Actions Panel Settings constant.

Bug: 127295457
Test: Automated tests pass.
Change-Id: Ib37a13192fb1aa20cf3d914beee7b9a4eb399168
2019-05-07 13:55:20 -04:00
Mehdi Alizadeh
97fb3ed8bc Collects metrics for the new Sharing Shortcuts api
Bug: 122904954
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Change-Id: Ifafcaa789814618846d41431d6190e4d79e871e5
2019-05-06 12:35:03 -07:00
Steven Wu
11da5744bf Add logging for assistant start activity.
Test: manual
Bug: 128982146
Change-Id: Icb9973facd9a1fdd90ea669c21d772c981254777
2019-05-03 15:20:38 -04:00
Julia Reynolds
c0fb5c1851 Metrics constants for new screen
Test: make
Bug: 128445911
Change-Id: I8577ed12b6c60e7a8996ec313d22b2adcba12b6a
2019-05-03 09:45:39 -04:00
Antony Sargent
0a7036b919 Add metrics for Delete sim dialogs
These are for the new dialogs being added for b/124254555. There is one
for the confirmation dialog, and one for the progress dialog.

Bug: 131519375
Test: manual
Change-Id: I32d639f45b5b2d5ef14c53c37f5d8e34f27524bd
2019-04-29 15:07:06 -07:00
David Su
cf263d9535 Merge "wifi.proto: Count number of probes triggered by experiments" into qt-dev 2019-04-29 17:05:49 +00:00
TreeHugger Robot
831dc426f1 Merge "Add action metrics for Wi-Fi provision features" into qt-dev 2019-04-23 17:36:54 +00:00
Mingguang Xu
b09eed2309 Merge "Wifi usability: Add timestamp in WifiUsabilityStats" into qt-dev 2019-04-23 06:00:22 +00:00
Arc Wang
036f404d88 Add action metrics for Wi-Fi provision features
// ACTION: Share a Wi-Fi network by generating a QR code
  ACTION_SETTINGS_SHARE_WIFI_QR_CODE

  // ACTION: Connect to a Wi-Fi network by scanning a QR code
  ACTION_SETTINGS_ENROLL_WIFI_QR_CODE

  // ACTION: Share Wi-Fi hotspot by generating a QR code
  ACTION_SETTINGS_SHARE_WIFI_HOTSPOT_QR_CODE

Bug: 130521826
Test: manual
Change-Id: I99e55b53c49830347e48f688aa38afc3912e71b1
2019-04-23 11:26:45 +08:00
TreeHugger Robot
7feb1a1f7d Merge "Add logging enums for 3 new SIM related pages." into qt-dev 2019-04-22 21:37:29 +00:00
David Su
36da81ff8a wifi.proto: Count number of probes triggered by experiments
Protos to count number of probes triggered by each experiment.

Bug: 131091030
Test: compiles
Change-Id: I61c15d5183fd7e1b819f2f751bd5a98bd7dd5202
2019-04-22 11:23:45 -07:00
Fan Zhang
6cd3b90123 Add logging enums for 3 new SIM related pages.
Bug: 130897640
Test: rebuild
Change-Id: I97fa886d54af7f1035b2fda100e276c5b34c5c63
2019-04-19 14:24:22 -07:00
Mingguang Xu
3e5d63a8f7 Wifi usability: Add timestamp in WifiUsabilityStats
Together with the timestamps in each entry (WifiUsabilityStatsEntry) of WifiUsabilityStats, the added timestamp allows us to check whether the WifiUsabilityStats is obsolete or not.

Bug: 129282057
Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I1c968786173f0e719b10651315a6d1bb5b42438f
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-04-19 13:59:56 -07:00
hsuvictor
c0106148c6 WifiMetrics: add histogram of installed Passpoint profiles for R2
Added Histogram of the EAP method type of installed
Passpoint profiles for R2

Bug: 122542221
Test: atest WifiMetricsTest PasspointManagerTest

Change-Id: I5c09d13a284dc15f9ba08d175212ad56cf0bc244
2019-04-19 11:09:55 +08:00
hsuvictor
17510161ac WifiMetrics: add histogram of passpoint provisioning
Added histograms tracking the number of passpoint provisioning.
Histograms are dimensioned on: <failure code>

Bug: 122542221
Test: atest WifiMetricsTest PasspointProvisionerTest
PasspointManagerTest

Change-Id: If71ed11c1898e210e08f694d85a931c811598c17
2019-04-15 11:35:13 +08:00
Lucas Dupin
046282eabd Dark Theme QS tile
Creates Dark Theme tile and adds it to the default config,
under the fold.

Test: manually toggle tile
Fixes: 130253100
Change-Id: I2859d2eb20db1c6d9dd8e8e24979294316b905bb
2019-04-11 09:58:11 -07:00
Oscar Shu
a39c85fc2b Merge "wifi proto change for some legacy API usage metrics" into qt-dev 2019-04-08 17:07:11 +00:00
xshu
08c6738b1c wifi proto change for some legacy API usage metrics
Bug: 129884654
Test: unit tests
Change-Id: I9f67c0dc8bb3813236335b62c8ecee81d44cd69b
2019-04-04 17:39:33 -07:00
David Su
a847e58eec wifi.proto: Add link probe event to StaEvent
Add link probe event type to StaEvent in order to correlate link probe
success/failure with other StaEvents (e.g. disconnection, score breach).

Bug: 112029045
Test: compiles
Change-Id: I2a18abc6f19179b164cd4c007597ba6cb69bf889
2019-04-04 18:28:43 +00:00
Susi Kharraz-Post
14cbfcdbd0 Add logging for direct share target
To answer the question if users share mainly with 1 or 2 direct targets
or with a multitude of contacts, we need to log the direct target +
package name. For privacy, this gets hashed with a salt that expires by
default every 7 days. The PH flag will allow us to change the expiration
time if we obtain PWG permission for that.

Bug: 126365511
Test: New test in ChooserActivityTest + manual testing of consistency
and flag rollout using adb shell device_config put systemui
hash_salt_max_days with multiple values

Change-Id: Ib4255b3eb39ca91ccb5803dc036ffe0ea83a27c9
2019-04-03 17:54:25 -04:00
Christine Franks
92aa9b2fba Reserve display white balance metric
Bug: 123930917
Test: n/a
Change-Id: Ieb7fb22566dee89b9128756ec2e2c06cc0211f9a
2019-04-03 17:53:01 -04:00
Mingguang Xu
66c7c95c05 Merge "Wifi usability: Add firmware alert reason code into WifiUsabilityStats" 2019-04-03 01:41:28 +00:00
Ahmed ElArabawy
5b54cbd631 Merge "wifi.proto: Add WifiLock statistics" 2019-04-01 22:57:54 +00:00
TreeHugger Robot
5e4bd68c95 Merge "Metrics constants for bubble confirmation" 2019-03-30 01:31:28 +00:00
Mingguang Xu
67af9085e4 Merge "Wifi usability: Add IP reachability lost into Wifi unusable event" 2019-03-29 21:13:36 +00:00
Mingguang Xu
b331242220 Merge "Wifi usability: Add device mobility state into Wifi usability stats" 2019-03-29 21:01:08 +00:00
Julia Reynolds
50e18ca6e9 Metrics constants for bubble confirmation
Test: make
Bug: 129068779
Change-Id: I7f38ab0548078ef4efec3784df8ec19a11e06019
2019-03-29 16:01:20 -04:00
Mingguang Xu
4225eae1c9 Wifi usability: Add device mobility state into Wifi usability stats
Device mobility state is helpful for predicting Wifi usability in a
future time conditioned on current Wifi status.
Extend the Wifi.proto to include mobility state.

Bug: 129409568
Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I40a46bb797e4185720391ff24a943364e81bb00e
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-03-28 11:48:42 -07:00
Ahmed ElArabawy
048e148ea0 wifi.proto: Add WifiLock statistics
This commit adds WifiLock statistcis to the wifi.proto

Bug: 129273779
Test: Compiles
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: Ie2424b28d78d668d41da752cdbb7c9eefad35976
2019-03-27 17:19:23 -07:00
Mingguang Xu
8424b29b56 Wifi usability: Add firmware alert reason code into WifiUsabilityStats
Firmware alert can trigger Wifi usability stats data collection.
Currently the reason code of firmware alert is not collected as an
attribute.  Add the reason code into Wifi usability stats as an
attribute.

Bug: 129426122
Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I5640745b5ee4588bb8ac106420262685ad8d6a28
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-03-27 15:26:02 -07:00
Edgar Wang
b132eed3f7 Add log metrics for Aware status dialog
Bug: 128853573
Test: rebuild
Change-Id: I90ac8ffff10d8d75a4b0fa4b282855276e32548e
2019-03-27 02:18:55 +00:00
David Su
362f85e222 Merge "wifi.proto: Rename NOMINATOR_NETREC to NOMINATOR_SPECIFIER" 2019-03-26 23:54:02 +00:00
Julia Reynolds
1251103159 Metrics constants for new settings screens
Test: make
Bug: 129068779
Change-Id: I7eb96c3e9369c2dd9a3686c0a6e793f5fa2c4104
2019-03-26 12:32:41 +00:00
Mingguang Xu
cd53d0bddf Wifi usability: Add IP reachability lost into Wifi unusable event
IP reachability is a strong indicator of Wi-Fi network quality. Extend
the WifiIsUnusableEvent list to include IP reachability lost.

Bug: 129282057
Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I0ff1075d619073d19fa365a1e6fc9894a109b8e9
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-03-26 00:57:01 -07:00
Salvador Martinez
39adab4a5b Add new constants for dark mode screen
This just adds constants to the new dark mode screen

Test: Build succeeds
Bug: 128686189
Change-Id: Iefb32f6f9beaa443cae661de21d4975585d9f475
2019-03-22 12:39:57 -07:00
David Su
a75b6394dc wifi.proto: Rename NOMINATOR_NETREC to NOMINATOR_SPECIFIER
wifi.proto: Rename NOMINATOR_NETREC to NOMINATOR_SPECIFIER

Bug: 127452844
Test: compiles
Change-Id: I23e19e1658821561546e5916e6ec4a8ba250c822
2019-03-21 20:34:22 -07:00
Steven Wu
e442acfac4 Add logging for biometric authentication.
Fixes: 128436428
Test: manual
Change-Id: I5c4daa0c3b92882c991256c2c37585366ba35289
2019-03-21 11:21:15 -04:00
Michael Wright
188bbbf11b Log the requested display policy.
This way we can track what the general desire for the display is. Note
that this is different than tracking the actual display state since, for
example, you may be applying POLICY_DOZE but the DozeService actually
has the display in the ON state.

Bug: 122949636
Test: manual inspection
Change-Id: I65b7e26937f6fbb40057a49c4ebe4aed7380100b
2019-03-20 21:41:54 +00:00
Steven Wu
0e6e5de7ca Add logging for the detailed reason of screen on/off.
Bug: 128437652
Test: manual
Change-Id: If5c281f80b6fce5291bb32eddd2ee7522bd19bb1
2019-03-20 13:34:28 -04:00
Kevin Chyn
59e6749ccb Add metrics constants / enums for removal dialog
Bug: 123605413

Test: Builds
Change-Id: I4693771066d02a5920d97790f2f9e0c40bc76b5c
2019-03-19 19:59:16 -07:00
Kai Shi
06d82fb327 Merge "Wifi usability: add four new fields to report the latest celluar signal strength" 2019-03-19 16:39:48 +00:00
TreeHugger Robot
a1e4cacc71 Merge "Add metric enums for zen access control page." 2019-03-18 18:52:13 +00:00
Fan Zhang
255464a1bd Add metric enums for zen access control page.
Bug: 128547723
Test: rebuild
Change-Id: I7a45fa91259497ceba9aafc0d55964e1f7e280d3
2019-03-15 15:51:17 -07:00
TreeHugger Robot
b21d225ff6 Merge "Add notification for Test Harness Mode" 2019-03-14 23:07:01 +00:00
William Hester
b5abc2f451 Add notification for Test Harness Mode
As part of Security Review's requirements, I need to add a notification to
Test Harness Mode. It is visible iff Test Harness Mode is active (unless
the user blocks notifications from the system).

Currently, tapping on it does nothing; there's no Intent available in
the system to direct the user to perform a factory reset.

Bug: 80137798
Test: make && adb shell cmd testharness enable; verify that the dialog
exists
Change-Id: I9b391bce57ec1ef5392bd78bfdcf62a3a7e00e55
2019-03-13 18:38:42 -07:00
Will Brockman
8a46b8c774 Merge "Add Tron logging of explanation for notification importance." 2019-03-12 23:26:47 +00:00
Kai Shi
dfef383995 Wifi usability: add four new fields to report the latest celluar signal
strength

cellularDataNetworkType
cellularSignalStrengthDbm
cellularSignalStrengthDb
isSameRegisteredCell

Bug: 123095038
Test: Unit tests for Wifi: frameworks/base/wifi/tests/runtest.sh

Change-Id: I090e2ab1a327894dfc84e6ce880e887311e1df7d
2019-03-12 15:42:29 -07:00
David Su
c39140f62c Merge "wifi.proto: Rename MapEntryInt32Int32 to Int32Count" 2019-03-12 21:46:40 +00:00