Commit Graph

697 Commits

Author SHA1 Message Date
TreeHugger Robot
878aa91106 Merge "wifi.proto: Add metrics for failed SAR sensor reg" 2018-07-02 23:19:22 +00:00
Kevin Chyn
0e58dbd7de Add face metrics constants
Bug: 110589286

Test: builds
Change-Id: I9e369a38c6e41bb98b1fac5abd248f46382a0928
2018-06-29 14:52:55 -07:00
Ahmed ElArabawy
ba64b61697 wifi.proto: Add metrics for failed SAR sensor reg
This commit adds the metric for counting failures in registration of
SAR sensor listener.

Bug: 65174506
Test: Unit tests

Change-Id: I8d13336aa9c433128f500063819081cfcc43d2cc
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-06-29 00:00:06 +00:00
Kevin Chyn
a56dff7339 6/n: Have FaceService extend BiometricService
In the Service layer, this change is pretty much the same as ag/4340638.
FingerprintService already extends BiometricService which contains all
of the common code. FaceService now does the same after this change.

Updated the Manager layer to use the infrastructure added in P, namely
  - Private APIs for BiometricPrompt
  - Removed FaceManager#CryptoObject, use biometrics/CryptoObject directly
  - Few other BiometricAuthenticator things

Bug: 110387294

Test: enrolling FP still works
Test: removing FP still works
Test: changing FP name persists across reboots
Test: enumerating still works (extra framework fp, extra hw fp)
Test: keyguard still receives lockout reset callbacks

Change-Id: I2195b08e28d024a120df56fe87b0dd4f9b96505a
2018-06-27 11:31:03 -07:00
Rebecca Silberstein
1d48831106 Merge "SettingsBackupAgent: notify of apBand conversion" into pi-dev am: cbf554b78b
am: 5f5f4788f1

Change-Id: I8a260e47661912420c20634c390aef288afaf92b
2018-06-22 11:34:55 -07:00
Fan Zhang
0b6bc41140 Add new metrics constant for create shortcut page
Bug: 74806595
Test: rebuild
Change-Id: Ifce389f55a520838721ce4dc059b1accaacd4692
2018-06-21 17:19:02 -07:00
Raff Tsai
a2c3e7cff6 Add metric for settings new homepage
Test: Build

Change-Id: I85e4ec0e6d387481a23ca8f354b5d23c6fe8909b
2018-06-21 12:01:02 +08:00
TreeHugger Robot
751bd5b621 Merge "Link Speed Metrics Proto" 2018-06-20 19:28:39 +00:00
TreeHugger Robot
664e0d66c7 Merge "Wifi Usability Metrics Proto Update" 2018-06-20 18:03:16 +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
Julia Reynolds
d6ba35c9c4 Log notification interruptions to TRON
Test: manual
Bug: 110209821
Change-Id: Ic3521f36127aa0e928d0be5ce9819c78c2bc9bc5
2018-06-19 11:12:04 -04:00
Jong Wook Kim
e4aa37fe48 Link Speed Metrics Proto
Add a histogram of link speed values with count and rssi values.

Collect this metrics only when enabled in settings. By default, we don't
collect this metrics.

Bug: 78354985
Test: Settings Unittest
Change-Id: I683dfb45a01de5e1243d612a117a5544b0d4dc05
2018-06-18 18:21:45 -07:00
Jong Wook Kim
411cab97c6 Wifi Usability Metrics Proto Update
Generate WifiIsUnusableEvent when there is a data stall or a firmware
alert. In WifiIsUnusableEvent, store metrics related to time, packet
counts, trigger reason, and score.

Also, log ExperimentValues that we plan to change through global
settings varaible.

This logging is enabled by setting WIFI_IS_UNUSABLE_EVENT_METRICS_ENABLED
to 1. By default, this metric is not collected.

Manual Check Process:
- Connect to a network
- adb shell settings put global wifi_is_unusable_event_metrics_enabled 1
- adb shell dumpsys wifi wifiMetricsProto
- Move away from the ap to trigger data stall
- adb shell dumpsys wifi | grep -10 WifiIsUnusableEventList
- Verify that there is a WifiIsUnusableEvent

Bug: 77603216
Test: Unittest (settings core/tests/coretests).
Test: Manual Check.
Change-Id: I2d8425a420f5ba18e3eee0e11b6f35f6239a97b2
2018-06-18 17:32:03 -07:00
xshu
b483b727d3 metrics: add proto field for wifi radio usage
Bug: 77603419
Test: compile, unit tests
Change-Id: I13cc950462800acb33c9e7b40958ec2fe002e946
2018-06-15 16:43:14 -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
833c99b9d1 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

Change-Id: If4b1c9ab616b2ba580745096894997eb7edb3e34
(cherry picked from commit 064c562c23edcb2c220be45450274869b529a8ee)
2018-05-24 23:20:35 -07:00
Felipe Leme
b838a09af3 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
(cherry picked from commit 212b1614f4)
2018-05-24 21:19:58 -07:00
Felipe Leme
21fb1a3385 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

Change-Id: I87424834fc925a3bcba410eec5aa32fcd6253367
(cherry picked from commit 01d82a51670065a683ec67b5c3a7268617a19c1f)
2018-05-24 18:21:31 -07: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
ecfb690a3f Merge "Proto change for new RSSI poll metric" into pi-dev am: 9f402f41e2
am: 39fd73a9a5

Change-Id: Ib7f23508d6e36b762f2d2c8b8d814365f2beea50
2018-05-23 19:29:23 -07:00
Andrew Chant
f9ce9f5c9d Merge "Add new hardware reliability actions and fields" into pi-dev am: f021d88cd8
am: 4846400e95

Change-Id: I0300153f8e2be526d780604bca2fded4b9705b73
2018-05-23 19:11:05 -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
Michael Plass
dd0ff99ab4 Merge "wifi.proto score experiment id" into pi-dev am: 28aa545c57
am: 380372d086

Change-Id: I70be54b6cdbe014b4ca651e795a59c8c69a3c684
2018-05-22 10:37:21 -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
Petri Gynther
778facba49 Add new metrics constant for Bluetooth A2DP hardware offload
Bug: 63932139
Bug: 79568680
Test: Settings app compiles without errors
Change-Id: I535f9cd819787f6c8d24facb5824dbf7472d5231
2018-05-20 05:30:10 +00:00
Roshan Pius
bb88ccdc03 Merge "wifi.proto: Add metrics for softap band preference unsatisfied" into pi-dev am: ddb56c39cc
am: 5b1b12cf23

Change-Id: I502247dac122a1794460ade5cc4b2601a85a444b
2018-05-18 10:57:22 -07: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
d91a1eeb4e Merge "Add metric to log use of hush gesture" into pi-dev am: 2b0ead73c7
am: a3cb0ae74a

Change-Id: I132929f9218013bffe904b69c549070816486428
2018-05-16 08:31:43 -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
23109c320e Merge "clean up comments" into pi-dev am: b8dcc91eb9
am: 66f4f3e2f2

Change-Id: I95c718361fcb64fb67c84441abd0309aeb1d6a78
2018-05-15 07:32:39 -07: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
bc740ba646 Merge "Metrics for hardware reliability reporting" into pi-dev am: 22c738d842
am: 67c3ee3d03

Change-Id: Ic186931c0a69583edf83148e8a361c00e072840e
2018-05-14 18:51:26 -07: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
10348578c8 Merge changes from topic "sysui_flags_drop" into pi-dev am: 53ae6a82cd
am: 59ff523949

Change-Id: I8d6fa49ba23b78648cf43fafe7c290f2e0c4b59f
2018-05-11 16:48:13 -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
71346e7b19 Merge "Add charging metrics" into pi-dev am: cf4f650572
am: 976f6ade83

Change-Id: I31d5c785f45fe72443dcdd24c8714dd6f69ada8c
2018-05-11 14:10:34 -07:00
Beverly
c4eb934499 Add charging metrics
Change-Id: Icef477c99cb9e53faff852cf6003f912ab8b10c3
Fixes: 78463707
Test: manual
2018-05-11 12:59:00 -04:00
hughchen
d564d15ad2 Merge "Add new type into metrics_constants.proto" into pi-dev am: 603824a6e7
am: a1515b588e

Change-Id: Id6fafb25aaaffea432358dd770318b438254b761
2018-05-11 02:54:35 -07: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
android-build-team Robot
1c7e180878 Merge "Add DIALOG_UPDATABLE_LIST_PREFERENCE into metrics_constants.proto" into pi-dev am: cdf52becfe
am: 05d1841f65

Change-Id: I6b68c80bb8682e14d0c8f01b47dae7bdda3e4ca2
2018-05-09 13:09:15 -07: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