929 Commits

Author SHA1 Message Date
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
Mingguang Xu
e05b0ec4da Merge "Wifi usability: Comments from API review council are addressed" 2019-03-12 18:21:08 +00:00
Will Brockman
934b8e3674 Add Tron logging of explanation for notification importance.
Adds the results of CalculateImportance by default on notification
logs, so that we can track the effects of NotificationAssistant and
user and system importance overrides.

Adds tests for the various different sources of importance.

Bug: 127834982
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification SystemUITests

Change-Id: I044d1206f5180a028bb55704ced05117bc0a00bb
2019-03-12 12:03:25 -04:00
Lucas Lin
fc0fbbb3af Merge "Check if network has partial connectivity" am: 174ae05817 am: 6cf91d1558
am: c0448b383f

Change-Id: Ib6c5ecc8238e1ac237eddcc00802fa5e7c0e24b9
2019-03-12 01:47:25 -07:00
Lucas Lin
c0448b383f Merge "Check if network has partial connectivity" am: 174ae05817
am: 6cf91d1558

Change-Id: I1c552638f576738540dda033f35bd32b011485b5
2019-03-12 01:37:59 -07:00
Lucas Lin
6cf91d1558 Merge "Check if network has partial connectivity"
am: 174ae05817

Change-Id: I3e94029fe067a1a22acc640a0df6a87720572b94
2019-03-12 01:28:50 -07:00
lucaslin
e252a740ca Check if network has partial connectivity
In some networks, network validation may only get success
result for http probe but fail result for https probe.
For this kind of network, it may still work at some websites
or apps, but user didn't know about that. In order to fix this
issue, we will check if network has partial connectivity and
notify user to make a choice if they want to use this partial
connectivity or not.

Bug: 113450764
Test: 1. Build pass.
      2. Fake partial connectivity case for testing.
      3. atest FrameworksNetTests
      4. atest NetworkStackTests

Change-Id: I69ed00ac4850904ff708c9fef22e148879a10e92
2019-03-12 07:37:33 +00:00
Mingguang Xu
3a2cc143a8 Merge "Wifi usability: Add screen status into WifiIsUnusableEvent" 2019-03-11 17:49:38 +00:00
Mingguang Xu
e77cabc488 Wifi usability: Comments from API review council are addressed
Addressed all comments from API review council:
1. Rename WifiUsabilityStatsListener to OnWifiUsabilityStatsListener.
2. Change the modifier of member variables in WifiUsabilityStatsEntry.java to private and use getters.
3. Document the unit of predicitonHoirzonSec and its expected range.
4. Add @ProbeStaus in probeStatusSinceLastUpdate.
5. Rename probeElapsedTimeMsSinceLastUpdate to
ProbeElapsedTimeSinceLastUpdateMs.
6. Marked @NonNull for Argument 3 in onWifiUsabilityStats.

Bug: 126391553
Bug: 126699865
Bug: 113262380

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

Change-Id: I20d9ad05dc0bb537b09006ca44a447401b3e1001
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-03-08 17:24:27 -08:00
David Su
f6e4d4e398 wifi.proto: Rename MapEntryInt32Int32 to Int32Count
Rename MapEntryInt32Int32 to Int32Count to be more specific to the actual use
case.

Bug: 112029045
Test: compiles
Change-Id: I71d70e7572078a9ff62d80993256e55d25dfbc5d
2019-03-08 13:18:21 -08:00
Mingguang Xu
7b6e184222 Wifi usability: Add screen status into WifiIsUnusableEvent
Currently screen status is not included in WifiIsUnusableEvent. Need to
add this status to allow for better classification of WifiIsUnusableEvent.

Bug: 126640380

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

Change-Id: I04fb8c50a114053a70de3a939e193715e515d983
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-03-06 22:31:41 +00:00
Matthew Fritze
20caff697e Add Wifi Settings Panel API
Wifi Panel is the fourth Settings Panel, which hosts Wifi related settings.
Currently the panel only holds the Wifi slice, but is open to future
additions.

Also add metrics constants for panel logging.

Test: atest SettingsPanelTest
Bug: 126894142
Change-Id: Ie72b3b52ea89047dfde77daa35ff2f95c655dbb7
2019-03-05 10:43:28 -08:00
Yi-Ling Chuang
ea9ec71908 Add log metrics for contextual card loading.
Bug: 124492762
Test: rebuild
Change-Id: I1481e72eb166f97f505ce2ad37a231c4bce96e01
2019-03-05 15:55:49 +08:00
TreeHugger Robot
c20b41f583 Merge "Add log metric for Grayscale conditional" 2019-03-04 20:59:37 +00:00
Susi Kharraz-Post
915031d26c Merge "Add logging for reshuffle of direct share targets" 2019-03-04 17:19:30 +00:00
Susi Kharraz-Post
fcec993fe5 Add logging for reshuffle of direct share targets
Direct share targets can update after they have been initially
displayed. This modifies the logging that was there to indicate when the
direct targets are displayed for the first time and when they are being
reordered.

Bug: 126920281
Test: successfully ran atest ChooserActivityTest
Change-Id: I1d16c0fb2b5631473879ba9758128e6f482567c2
2019-03-04 08:54:56 -05:00
Mill Chen
d768dc6163 Add log metric for Grayscale conditional
Bug: 118387886
Test: rebuild
Change-Id: I033f75e3dee2d335d540f7aed2a21dd52d2b8bc7
2019-03-04 13:10:52 +00:00
Jackal Guo
5af401bd35 Merge "Add new enum for accessibility detail settings" 2019-03-04 03:35:56 +00:00
Mingguang Xu
a3cececf41 Merge "Add authentication failure reason in ConnectionEvent" 2019-03-02 00:35:30 +00:00
Mingguang Xu
7d2adc167e Add authentication failure reason in ConnectionEvent
To allow for a breakdown of authentication failures.

Bug: 121223972

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

Change-Id: I30898ecb6acd779c1e41baf535bcf45df3ef4b56
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-03-01 10:38:11 -08:00
Roshan Pius
bebb5ab1a2 wifi.proto: Fix a bug in the proto for API
Bug: 123362619
Bug: 123362779
Test: Compiles
Change-Id: I021ef2e93bd8547d7c135868b87861c72c808df7
2019-03-01 15:13:55 +00:00
Roshan Pius
034a1e13eb Merge "wifi.proto: Add metrics for new API surface" 2019-02-28 15:10:53 +00:00
Roshan Pius
3f30ba8ad2 wifi.proto: Add metrics for new API surface
Bug: 123362619
Bug: 123362779
Test: Compiles
Change-Id: I5641f07b43cbd4204a34ad6f1d80a9f7ee9221ea
2019-02-27 14:54:50 -08:00
Christine Franks
4ed935a5aa Merge "Move ColorDisplayService to color subdirectory" 2019-02-27 22:04:24 +00:00