Commit Graph

651 Commits

Author SHA1 Message Date
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
Chiachang Wang
fc0708615c Merge "Fix build warnings for CaptivePortalLogin" 2019-02-21 11:45:10 +00:00
Chiachang Wang
c6610acf82 Fix build warnings for CaptivePortalLogin
CaptivePortalLogin needs only the defintion in
metrics_constants.proto. This will not need the jarjar_rules.
Thus, remove the unnecessary rule to fix the build warning.

Test: make CaptivePortalLogin and no warning
Bug: 123717273
Change-Id: I5bb3ee61be769989d02a2762a7747d4dafd7bd71
2019-02-21 14:00:59 +08:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
Remi NGUYEN VAN
47274275cf Prepare CaptivePortalLogin for system_current
Includes small changes to stop using non-SystemApi endpoints.

Test: make CaptivePortalLogin
Test: flashed, login works, SSL certificate invalid flow works
Bug: 112869080
Merged-In: Ic6ce98942959705ea7ef14a7a62d33e3abf7eb72
Change-Id: Ie7ea3bab6aa8629ce4c111adee0c0699d95d4b0e
2019-01-31 18:14:54 +09:00
lucaslin
d2e045e040 Popup a notification after logging in the captive portal network
Captive portal app will be auto dismissed after user login the
captive portal network. In order to improve the user experience,
popup a notification to notify user that the captive portal
network is connected.

Bug: 113629026
Test: 1.atest FrameworksNetTests:NetworkNotificationManagerTest
      2.Connect to a captive portal network and login, check if
      there is a notification popup.

Change-Id: Id54d12268e107af2f213c2bb348c5f7908e880f4
2019-01-24 15:55:30 +08:00
Xin Li
15b123ef45 DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
Bug: 120502534
Change-Id: Idc8bfb6d97a869b76cfb87ca1a494201baf9e8bd
2018-12-11 14:13:44 -08:00
Jong Wook Kim
f3375f360e Merge "Add WIFI_ENABLED and WIFI_DISABLED to StaEvent" into pi-dev 2018-11-09 21:16:38 +00:00
Jong Wook Kim
3ebb24e94b Add WIFI_ENABLED and WIFI_DISABLED to StaEvent
Log whenever wifi is turned on/off in StaEvent metrics.

Bug: 112193991
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: Turn wifi on/off from settings
Test: adb shell dumpsys wifi | grep -A10 StaEventList
Change-Id: Icf32d4a622f4447e8461560b7cfa4818dcfb1efa
Merged-In: Icf32d4a622f4447e8461560b7cfa4818dcfb1efa
(cherry picked from commit b56979f7f5)
2018-10-10 15:01:15 -07:00
Oscar Shu
be13cfb37e Merge "proto change for wifi link layer usage stats" into pi-dev 2018-10-10 19:42:55 +00:00
Shaotang Li
8af3a2416e Add new metrics in power menu
These include,
1. An event indicating that power menu is shown.
2. An event indicating that user taps the emergency dialer icon.

Bug: 112168722
Bug: 111378820

Test: manual and check the result of
'adb logcat -b events | grep sysui_multi_action'

Change-Id: I958ed1af65f559e4999517031cd80fbb1c417108
Merged-In: I958ed1af65f559e4999517031cd80fbb1c417108
2018-10-03 03:42:24 +00:00
Shaotang Li
ebffdbd44d Add new metrics constants for emergency dialer
Bug: 112168722
Bug: 111378820

Test: build
Change-Id: I2eb6965238e37435bb380fb4a0e616bd1da6dae6
Merged-In: I2eb6965238e37435bb380fb4a0e616bd1da6dae6
2018-10-03 02:59:29 +00:00
xshu
fb9e5decf7 proto change for wifi link layer usage stats
Adds a new proto field.

Bug: 77603419
Test: compile, unit test
Change-Id: I540e0eda718b6ef586837855e8d650f373f986f2
Merged-In: I540e0eda718b6ef586837855e8d650f373f986f2
(cherry picked from commit 0e0dea406e)
2018-10-02 17:59:50 -07:00
Shaotang Li
882f4e1f44 resolve merge conflicts of b825510b80 to stage-aosp-master
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I3dd8e3f70d648fc37811d80f4f1356687a4df1b8
Merged-In: I2eb6965238e37435bb380fb4a0e616bd1da6dae6
2018-08-30 05:26:19 +00:00
Shaotang Li
b9a9a2f224 Add new metrics constants for emergency dialer
Bug: 111378820
Test: build
Change-Id: I2eb6965238e37435bb380fb4a0e616bd1da6dae6
Merged-In: I2eb6965238e37435bb380fb4a0e616bd1da6dae6
2018-08-29 13:45:16 +08:00
TreeHugger Robot
1465046e39 Merge "Addition of HW Revision to Wifi metrics" into pi-dev 2018-08-15 23:16:52 +00:00
Siddharth Ray
2e068a3bec Addition of HW Revision to Wifi metrics
BUG:112541087
Change-Id: If71584373f2a62c7c915c3dec3777d02878b7fda
Merged-In: If71584373f2a62c7c915c3dec3777d02878b7fda
2018-08-15 13:52:50 -07:00
Siddharth Ray
dcbed5fbe6 Add HW Revision to GNSS Metrics
Test:
adb shell dumpsys location
Hardware Version: EVT2.0

BUG:112541087
Change-Id: I6278188f15f22ff7b4f5cc30c4c225e0f95ec53d
2018-08-13 15:57:02 -07:00
Michal Karpinski
dfba41947b Merge "DO NOT MERGE Log various information about non-foreground activity starts" into pi-dev 2018-08-10 08:32:57 +00:00
Howard Ro
4db243a3db Add a logging for ACTION_BAN_APP_NOTES
Bug: 111215354
Test: adb logcat -b events
Change-Id: I4e26adac7a7ad5053b919605b8a25e18bd93cac7
Merged-In: I4e26adac7a7ad5053b919605b8a25e18bd93cac7
2018-08-09 20:50:03 +00:00
Michal Karpinski
3eab951217 DO NOT MERGE Log various information about non-foreground activity starts
Logging activity starts to TRON, but only if the caller app
doesn't have any foreground activity present.

Example event:
08-03 15:21:30.813  1231  3220 I sysui_multi_action: [757,1513,758,4,805,1533306090812,1514,10147,1515,com.google.android.talk,1516,1018,1517,0,1518,1000,1519,1000,1520,0,1521,10147,1522,com.google.android.talk,1523,1018,1524,0,1525,pendingintent:u0a12:com.google.android.talk/com.google.android.apps.hangouts.phone.ConversationActivity,1526,com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity,1527,1,1528,com.google.android.apps.hangouts.phone.conversationlist,1540,1,1541,com.google.android.apps.hangouts.phone.BabelHomeActivity,1542,3146240,1543,{com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity},1544,com.google.android.talk/com.google.android.apps.hangouts.phone.BabelHomeActivity,1545,com.google.android.talk,1546,1,1547,0,1551,0,1552,0]

(cherry-picked from 201bc0c14e)

Bug: b/111866309
Context: go/activity-starts-logging-tron
Test: 1) enable logging with: adb shell settings put global activity_starts_logging_enabled 1
      2) open some activities and observe: adb logcat -b events | grep "sysui_multi_action: \[757,1513"
Test: atest FrameworksServicesTests:ActivityStarterTests

Change-Id: Ie7dee51c574e544d12e83d279afda46b336f2013
2018-08-09 15:18:07 +01:00
Ecco Park
2ea8e0b31f wifi.proto: Add metric for installed passpoint profile type
Bug: 111473296
Test: Unit Tests

Merged-In: Ia6c6641697ecea1a51d7931d5f0f5b25963ae198
Change-Id: Ia6c6641697ecea1a51d7931d5f0f5b25963ae198
Signed-off-by: Ecco Park <eccopark@google.com>
2018-07-31 13:56:40 -07:00
Julia Reynolds
fdaa649449 DO NOT MERGE Log notification interruptions to TRON
Test: manual
Bug: 110209821
Change-Id: Ic3521f36127aa0e928d0be5ce9819c78c2bc9bc5
2018-06-26 20:12:21 +00:00
Rebecca Silberstein
d41106c52e SettingsBackupAgent: notify of apBand conversion
Added support to notify user of a change to their softap configuration
preferences after being restored via SettingsBackupAgent.

Bug: 80251951
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually confirmed configs are converted for different device
Change-Id: I4cec15549d694cdb1a7b09f1426d027eec021122
2018-06-19 09:59:12 -07:00
Felipe Leme
ce3ae87da9 New Autofill field: FIELD_AUTOFILL_SESSION_ID
This field contains the autofill session id (Thank You, Captain Obvious!), which
is useful to correlate autofill metrics that are not logged on
AUTOFILL_REQUEST.

Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched
      'adb shell logcat -b events | grep sysui'. Example:
     [757,913,758,4,806,android.autofillservice.cts,871,android.autofillservice.cts.LoginActivity,914,2,915,2,1456,-2045861404

Fixes: 80093094

Merged-In: If4b1c9ab616b2ba580745096894997eb7edb3e34
Change-Id: If4b1c9ab616b2ba580745096894997eb7edb3e34
2018-05-25 06:22:25 +00:00
Felipe Leme
212b1614f4 Added the class name of activity being autofilled on (most) autofill metrics.
Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched
      'adb shell logcat -b events | grep sysui'

Fixes: 80151641

Change-Id: I5b83e6ceb549a641d10c39bbfd4f24d0a43d1a23
2018-05-24 13:59:06 -07:00
Felipe Leme
f61ba5cabf Merged many autofill session metrics into AUTOFILL_REQUEST:
- AUTOFILL_UI_LATENCY
- AUTOFILL_AUTHENTICATED;
- AUTOFILL_DATASET_AUTHENTICATED
- AUTOFILL_INVALID_AUTHENTICATION
- AUTOFILL_INVALID_DATASET_AUTHENTICATION

At least one AUTOFILL_REQUEST is created on each session; additional ones are
created for each additional request made to the service (which is tracked by
FIELD_AUTOFILL_REQUEST_INDEX).

Also:
- Added TYPE_CLOSE to indicate a timeout waiting for the service response.
- Added FIELD_AUTOFILL_REQUEST_ORDINAL to indicate the order of the request in
  the session.
- Added FIELD_AUTOFILL_NUMBER_REQUESTS on AUTOFILL_SESSION_FINISHED.
- Created an AUTOFILL_FIELD_FLAGS to avoid conflict with FIELD_FLAGS.

Test: atest CtsAutoFillServiceTestCases # to make sure it didn't break anything
Test: manually run some test and watched the result of
      'adb shell logcat -b events | grep sysui', as described below.

1) LoginActivityTest#testAutoFillNoDatasets:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,-1,1454,1]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,1]

Where 907=AUTOFILL_REQUEST, 919=AUTOFILL_SESSION_FINISHED,
1454=FIELD_AUTOFILL_REQUEST_ORDINAL, 1455=FIELD_AUTOFILL_NUMBER_REQUESTS,
758:10 = TYPE_SUCCESS, 909 = FIELD_AUTOFILL_NUM_DATASETS (-1 == null response)

2) LoginActivityTest#testAutoFillTwoDatasetsSameNumberOfFields:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,2,1145,60,1454,1]

Where 1145=FIELD_AUTOFILL_DURATION (60ms UI latency)

3) LoginActivityTest#testCancellationSignalCalledAfterTimeout:

[757,907,758,2,806,android.autofillservice.cts,908,android.autofillservice.cts,1454,1]

Where 758:2 = TYPE_CLOSE (timeout)

4) LoginActivityTest#testAutofillManuallyOneDataset:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,67,1452,1,1454,1]

Where 1452=FIELD_AUTOFILL_FLAGS and 1=FLAG_MANUAL_REQUEST

5) FillEventHistoryTest#testNoEvents_whenServiceReturnsFailure:

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,48,1454,1]
[757,907,758,11,806,android.autofillservice.cts,908,android.autofillservice.cts,1454,2]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,2]

Where 758:11 = TYPE_FAILURE

6) AuthenticationTest#testFillResponseAuthJustOneField

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1145,91,1453,912,1454,1]

Where 1453:912 is FIELD_AUTOFILL_AUTHENTICATION_STATUS = AUTOFILL_AUTHENTICATED

7) AuthenticationTest#testDatasetAuthTwoDatasets

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,2,1145,64,1453,1126,1454,1]

Where 1453:1126 is FIELD_AUTOFILL_AUTHENTICATION_STATUS =
                   AUTOFILL_DATASET_AUTHENTICATED

8) AuthenticationTest#testFillResponseAuthServiceHasNoData
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1145,49,1453,1128,1454,1]

Where 1453:1128 is FIELD_AUTOFILL_AUTHENTICATION_STATUS =
                   AUTOFILL_INVALID_AUTHENTICATION

9) VirtualContainerActivityCompatModeTest#testAutofillSync

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,53,1414,1,1454,1]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1414,1,1455,1]

Where 1414 is FIELD_AUTOFILL_COMPAT_MODE

10) FieldsClassificationTest#testHit_manyUserData_manyDetectableFields

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,0,1271,2,1454,1]
Where 1271 is FIELD_AUTOFILL_NUM_FIELD_CLASSIFICATION_IDS

11)PartitionedActivityTest#testAutofill4PartitionsMixManualAndAuto

[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1145,109,1454,1]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1452,1,1454,2]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1454,3]
[757,907,758,10,806,android.autofillservice.cts,908,android.autofillservice.cts,909,1,1452,1,1454,4]
[757,919,758,4,806,android.autofillservice.cts,908,android.autofillservice.cts,1455,4]

Bug: 80093094
Fixes: 80095814

Merged-In: I87424834fc925a3bcba410eec5aa32fcd6253367
Change-Id: I87424834fc925a3bcba410eec5aa32fcd6253367
2018-05-24 09:43:27 -07:00
Oscar Shu
9f402f41e2 Merge "Proto change for new RSSI poll metric" into pi-dev 2018-05-23 21:47:44 +00:00
Andrew Chant
f021d88cd8 Merge "Add new hardware reliability actions and fields" into pi-dev 2018-05-23 19:49:41 +00:00
Andrew Chant
c03bc63a5c Add new hardware reliability actions and fields
Add ACTION_BATTERY_CAUSED_SHUTDOWN, ACTION_SLOW_IO,
ACTION_SPEAKER_IMPEDANCE, and associated new fields.

For pre-existing actions, add FIELD_SPEAKER_LOCATION,
 FIELD_BATTERY_RESISTANCE_UOHMS, FIELD_BATTERY_CURRENT_UA,
 FIELD_HARDWARE_LOCATION.

ACTION_BATTERY_CAUSED_SHUTDOWN
Fired after a boot if the previous boot was detected to be caused
by shutdown due to low battery, this reports the last recorded
low battery voltage.

It uses FIELD_BATTERY_VOLTAGE_UV to report the voltage.

ACTION_SLOW_IO
Daily aggregated count of IO operations that exceed max expected
threshelds, indicating hardware failures.

FIELD_IO_OPERATION_TYPE indicates the type of slow operation, and
FIELD_COUNT indicates how many occured aggregated over 24hrs.

ACTION_SPEAKER_IMPEDANCE
Last recorded speaker impdenace, reported daily.

Uses FIELD_SPEAKER_IMPEDANCE_MILLIOHMS and FIELD_SPEAKER_LOCATION
to report the impedance of each speaker.

Bug: 79996489
Bug: 79881385
Test: Booted and issued ACTIONs via pixelstats HAL.
Change-Id: I95b85fbd38e3a03ebeb146b65ffce17d982d4d6a
2018-05-22 15:55:07 -07:00
TreeHugger Robot
28aa545c57 Merge "wifi.proto score experiment id" into pi-dev 2018-05-22 17:15:01 +00:00
xshu
122886ed3b Proto change for new RSSI poll metric
Adds a new field to store the network frequency for rssi poll
histograms.

Bug: 79864669
Test: compile, unit test

Change-Id: I4a8032c5cb71af03f1af150fed30ba27231069fa
2018-05-21 17:37:14 -07:00
Michael Plass
8a779acc4e wifi.proto score experiment id
Bug: 79482323
Test: unit tests
Change-Id: I293f5acdfdc2f88515a77e6aeff7b704ffcf1dd8
2018-05-21 11:04:10 -07:00
Petri Gynther
915e94484b Add new metrics constant for Bluetooth A2DP hardware offload
Bug: 63932139
Bug: 79568680
Test: Settings app compiles without errors
Change-Id: I535f9cd819787f6c8d24facb5824dbf7472d5231
Merged-In: I535f9cd819787f6c8d24facb5824dbf7472d5231
2018-05-20 05:35:50 +00:00
TreeHugger Robot
ddb56c39cc Merge "wifi.proto: Add metrics for softap band preference unsatisfied" into pi-dev 2018-05-18 17:34:51 +00:00
Roshan Pius
d3a58cb2df wifi.proto: Add metrics for softap band preference unsatisfied
Bug: 79701630
Test: Unit tests
Test: Validated that the metric is updated when STA + AP forces the AP
to not satisfy the band preference.

Change-Id: I7d749d33668d0b05ec4beedfa8d5b79b855e3372
2018-05-17 14:52:01 -07:00
Beverly
019d6f636e Add metric to log use of hush gesture
Change-Id: I14578149a79b1455267cb6efc6493c596129032d
Bug: 79537757
Bug: 78665512
Test: manual, builds
2018-05-16 13:18:05 +00:00
Chris Wren
b8dcc91eb9 Merge "clean up comments" into pi-dev 2018-05-15 14:15:09 +00:00
Chris Wren
8f7a144328 clean up comments
Bug: 79698458
Test: make framework-protos
Change-Id: Ifaac050f2e00912188e3fb999b308101e3b07bf0
2018-05-15 07:52:30 -04:00
Andrew Chant
ecdc0dcedf Metrics for hardware reliability reporting
Add event metrics for hardware reliability reporting.

Events include:
 - Battery Health Snapshot
 - Battery Charge cycles
 - Physical Drop
 - Hardware Failed
 - USB Audio Device insertion & removal
 - USB Connector insertion & removal

Bug: 69978775
Test: Logged events from Pixelstats HAL
Change-Id: I9389f71ffe85a430273f33650503f714ea308a78
2018-05-14 15:46:51 -07:00
Winson Chung
53ae6a82cd Merge changes from topic "sysui_flags_drop" into pi-dev
* changes:
  Clean up Recents animation api
  Expose the system ui visibility flags and translucent state with snapshot
2018-05-11 22:18:37 +00:00
Beverly
c4eb934499 Add charging metrics
Change-Id: Icef477c99cb9e53faff852cf6003f912ab8b10c3
Fixes: 78463707
Test: manual
2018-05-11 12:59:00 -04:00
hughchen
2bde409108 Add new type into metrics_constants.proto
* Change DIALOG_UPDATABLE_LIST_PREFERENCE to DIALOG_SWITCH_A2DP_DEVICES.
* Add DIALOG_SWITCH_HFP_DEVICES
* This is for a new dialog which is able to update content instantly when connected devices change

Bug: 77783217
Test: build
Change-Id: I1dd79f35a2b26be071acceca5fe984c8f17d44ec
2018-05-10 18:04:25 +08:00
timhypeng
be1a312501 Add DIALOG_UPDATABLE_LIST_PREFERENCE into metrics_constants.proto
* This is for a new dialog which is able to update content instantly when connected devices change

Bug: 77783217
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I8c70eb93b8bfd39d295fa326df8372ee4b146834
2018-05-09 20:22:53 +08:00
Winson Chung
173020c2ef Expose the system ui visibility flags and translucent state with snapshot
- Allow SystemUI/Launcher to determine whether the snapshot is of a
  translucent activity (to reduce overdraw by skipping drawing task
  background) and also the sysui visibility flags are (to determine how
  to update the nav bar while animating before the app is started.
- Fixing issue where the recents animation was reporting task fillsparent
  state instead of the app's fillsparent state (as we do in normal remote
  animations)

Bug: 79228291
Bug: 77984778
Bug: 78659249
Test: atest FrameworksServicesTests:TaskSnapshotPersisterLoaderTest
Change-Id: I19bdf7f780e7d94014d6a115bf84fa614b1dffa0
2018-05-08 17:56:05 -07:00
Felipe Leme
1116652087 New FIELD_AUTOFILL_COMPAT_MODE field.
This field is used on pretty much all Autofill metrics, except
AUTOFILL_USERDATA_UPDATED, AUTOFILL_SERVICE_DISABLED_SELF, and
AUTOFILL_INVALID_PERMISSION.

Test: atest CtsAutoFillServiceTestCases
Test: adb shell logcat -b events | grep sysui

Bug: 79351659

Change-Id: I2e2f3dcc780a3896162b158926f5ee89c7cb342d
2018-05-07 12:14:00 -07:00
Roshan Pius
6de7a676dd wifi.proto: Add metrics for radio mode change
Bug: 69117051
Test: Unit tests
Change-Id: Ia3df096a4368cdf1d2c254a4610b204dfb0e3778
2018-05-07 08:43:47 -07:00
Jong Wook Kim
506512789d Merge "Connected MAC Randomization Metrics Proto" into pi-dev 2018-05-04 19:25:28 +00:00
Jeff Sharkey
adfc9b68d5 Metrics for user choices in storage wizard.
These metrics help us understand more about how users in the field
are interacting with adoptable storage.

Bug: 37284068
Test: atest com.android.settings.ui.StorageWizardTest
Change-Id: I96bcebc26b53e680d060ec0c23d1f9d11de939a2
2018-05-02 16:14:48 -06:00
Julia Reynolds
2e6c19cfce metrics constant for new button
Bug: 78448988
Test: make
Change-Id: I75977645f4e0fb0ff09a82061c35cf73a96ed1ef
2018-05-01 09:04:38 -04:00