996 Commits

Author SHA1 Message Date
Jooyung Han
6c8a51c9f6 Set min_sdk_version to be part of mainline modules
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.

Bug: 152655956
Test: m
Change-Id: I9b630aabff01eb1dd5dc4c0f14517e6d1a914126
2020-06-17 14:36:10 +09:00
Automerger Merge Worker
e750fe9317 Merge "Add EAP methods in wifi.proto" into qt-qpr1-dev am: 2e112273b6
Change-Id: I83923eb362d2432b31f434bd6516f58a28419ce3
2020-03-03 19:21:49 +00:00
Kai Shi
24ee8ef61e Add EAP methods in wifi.proto
To help find the root cause of high authentication failure rate in enterprise network, add EAP method and authentication phase2 method in connection event metrics.

Bug: 150237135
Test: manual
Test: atest com.android.server.wifi
Merged-In: I7f3268b2842783f99c0a43d8b4996d0a7dd46c6e
Change-Id: Id4ac7947871785d16b81c0806986f54d64fdb0ce
2020-03-03 18:50:27 +00:00
Joshua Duong
b06dc6aa5b [adbwifi] Make AdbManager changes for adb over WiFi.
This CL has a couple of notable changes:
- Add communication layer between adbd, system server, and Settings UI
- Add system notification (Wireless debugging connected) when at least
  one device is connected.
- Add trusted networks (BSSID) to the keystore.
  - Changed the keystore format to:
    <keyStore version="1">
    <adbKey ... />
    <wifiAP ... />
    </keyStore>
 - Currently, trusted networks don't have a expiration time. Also, only
   way to clear it is by blowing up the keystore (revoke permissions).
- Add pairing mechanism:
  - Using libadbwifi_pairing_connection C++ library to pair a device
    using SPAKE2 protocol over TLS.
  - Register MDNS service for client discovery.
- Removed ability to ctl.start/stop adbd from UsbDeviceManager
  - AdbService now controls when to do this

Bug: 111434128, 119490154, 119492574

Test: Manual. From developer options:
1) USB debugging off, WiFi Debugging off
- Ensure both transports are disabled by trying to connect via WiFi and
USB.
2) USB debugging on, WiFi Debugging off
- Connections via USB are available, WiFi is disabled
3) USB debugging off, WiFi Debugging on
- Connections via WiFi are available (IP + port), USB is not available
4) USB debugging on, WiFi Debugging on
- Check both transports work

Change-Id: I9f87679d195da99a55b6faf7131da1f1af65fe01
Exempt-From-Owner-Approval: approved in aosp master
(cherry picked from commit a5969b5a1d9fe08783c32ea23bead56252a74383)
2020-02-22 16:06:53 +00:00
Lucas Lin
7038dfad2a Merge "Better notification to user when DNS-over-TLS is broken" am: 81852c8481 am: eb24608dbc
am: a55366ffdb

Change-Id: I9d840678b1612c89b7917e8eece0c920326a83a0
2019-10-23 03:20:21 -07:00
Lucas Lin
eb24608dbc Merge "Better notification to user when DNS-over-TLS is broken"
am: 81852c8481

Change-Id: I8be963e35ed5e5ba914c6d3504a52ccb789aaf29
2019-10-23 02:51:56 -07:00
lucaslin
783f221065 Better notification to user when DNS-over-TLS is broken
Provide a specifc notification to let users know that device
has no internet is because it really doesn't have internet access
or it's caused by private DNS resolution failed.

Bug: 113242081
Test: atest FrameworksNetTests
Change-Id: I710c88a4742f5fd56c39fc797d7fa3ad36dba553
2019-10-22 18:27:33 +08:00
Mingguang Xu
bd2c67b336 Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev
am: 9c1464d7ca

Change-Id: If7613b0b002a3462de5475e000a23b711d2ab5b1
2019-10-04 16:46:49 -07:00
Mingguang Xu
9c1464d7ca Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev 2019-10-04 23:27:38 +00:00
Mingguang Xu
038345da61 Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"
This reverts commit 078fe45552425c18aa8052da0ae3c9205fa5c309.

Reason for revert: This change introduced a bug and it completely changed the functionality of WiFi data stall detection, e.g., high Tx link speed can easily trigger data stall.  We would like to roll back them to restore the normal functionality of Wifi data stall detection.

Bug: 141995185

Change-Id: I024808b580955545b084112c4b14921f038b595f
Merged-In: I078d28ed81a84e32aaece839a51590364a974481
2019-10-04 21:19:53 +00:00
Edgar Wang
9423025444 Merge "Add log metrics for Aware Display Settings" into qt-qpr1-dev
am: 2ee661e584

Change-Id: I74c79ceaac3ad51c434706d37aa4f28cb60ceadf
2019-09-21 02:07:47 -07:00
Edgar Wang
2ee661e584 Merge "Add log metrics for Aware Display Settings" into qt-qpr1-dev 2019-09-21 08:54:47 +00:00
Edgar Wang
f37615e4f8 Add log metrics for Aware Display Settings
Bug: 136610131
Test: rebuild
Merged-In: I5b96a3a04a1d2c1ba01b9ec1f707dec040a331c3
Change-Id: Ibfdcba4be652cf7885f46e7549c344e12ae11127
2019-09-20 15:35:15 +08:00
Mingguang Xu
db114da8a5 Merge "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps" into qt-qpr1-dev
am: a295feab37

Change-Id: Ib759afbf288649cea7f2f4ca39bfef8eb88fc17c
2019-09-19 14:37:50 -07:00
Mingguang Xu
078fe45552 Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps
Data stall event can be triggered if the tx/rx tput is consecutively below a threshold over multiple RSSI polls. Changing the unit of the threshold from Mbps to Kbps allows us to configure a value below 1Mbps, e.g., 400Kbps.

Bug: 141027476

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

Signed-off-by: Mingguang Xu <mingguangxu@google.com>

Change-Id: Ib7b398fb6975c0d03b09550db9bf68a2bb8bddfb
Merged-In: I76d6338cd2d482d198fde1e5a2d1a0540c087ca6
2019-09-19 07:42:34 +00:00
Mingguang Xu
12a8212d5b Merge "Wifi usability: Data stall detection based on link layer stats" into qt-qpr1-dev
am: d65f8c6704

Change-Id: I31776ebb6951059b4b0b6dd4e9ad2074b4c42c8e
2019-09-18 11:44:32 -07:00
Mingguang Xu
d65f8c6704 Merge "Wifi usability: Data stall detection based on link layer stats" into qt-qpr1-dev 2019-09-18 18:28:02 +00:00
Mingguang Xu
de3725b8fa Wifi usability: Data stall detection based on link layer stats
This is an effort to define new criterion for triggering Wifi data stall:
(1) Defined data stall criterion based on transmit and/or receive throughput, transmit packet error rate, and CCA level. Data stall is triggered when transmit and/or receive links are consecutively bad over multiple RSSI polls.
(2) Added DeviceConfig flags (that is disabled by default) which may be configured on the server side to tune the thresholds at which data stall gets triggered.

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

Change-Id: I895fd54cc7ec32815bce1899354ca265d4e93ea9
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Merged-In: I76d6338cd2d482d198fde1e5a2d1a0540c087ca6
2019-09-18 01:58:33 -07:00
Blake Kragten
b0a6968f9d Merge "L5 Metrics Addition:" into qt-qpr1-dev
am: 9c16632a24

Change-Id: If50095321517893b805b6ca02150c2c2fd210aab
2019-09-16 11:34:04 -07:00
Blake Kragten
9c16632a24 Merge "L5 Metrics Addition:" into qt-qpr1-dev 2019-09-16 18:19:54 +00:00
Alison Cichowlas
452ab27da2 Merge "Add constant for System actions in Sharesheet." into qt-qpr1-dev
am: 0bff8bb2ef

Change-Id: I82f25f5322d43ee63421b2b6bdbfaa9fd1b04acc
2019-09-13 13:54:38 -07:00
Alison Cichowlas
65687f5c56 Add constant for System actions in Sharesheet.
Test: manual; compiles
Bug: 140928181
Change-Id: I66e38efbf87bed573766a17cc1401ed19e606c48
(cherry picked from commit a2d980661cb7d02c917764bde1d426cb55bc2d88)

Merged-In: I66e38efbf87bed573766a17cc1401ed19e606c48
2019-09-13 18:25:57 +00:00
Blake Kragten
025aabe693 L5 Metrics Addition:
Added L5 metrics to determine if L5 should be enabled or not.

Test: On device

adb shell dumpsys location

Output:
  Number of CN0 reports: 149
  Top 4 Avg CN0 mean (dB-Hz): 26.100838872410307
  Top 4 Avg CN0 standard deviation (dB-Hz): 1.7702387090734562
  Total number of sv status messages processed: 4202
  Total number of L5 sv status messages processed: 703
  Total number of sv status messages processed, where sv is used in fix: 1979
  Total number of L5 sv status messages processed, where sv is used in fix: 46
  Number of L5 CN0 reports: 97
  L5 Top 4 Avg CN0 mean (dB-Hz): 20.273711379041377
  L5 Top 4 Avg CN0 standard deviation (dB-Hz): 2.632911219511556
  Used-in-fix constellation types: GPS GLONASS GALILEO

Output Logs: https://drive.google.com/drive/folders/1tGEolHWtF92UkJ8lxgFihIzfWLl8ChZK?usp=sharing
Bug: 137575988
Change-Id: Id306d7cc27c9410a5ad73f5a0940c25f8d795686
Merged-In: Id306d7cc27c9410a5ad73f5a0940c25f8d795686
2019-09-13 16:36:17 +00:00
Kai Shi
4b8e648da6 Merge "WifiMetrics: add per-band Tx and Rx speed histogram" into qt-r1-dev am: 6564df6264
am: e6fb43cff3

Change-Id: Ie442aff6a8271f67836e2bac2436ae0c87d834a2
2019-07-25 13:39:25 -07:00
Kai Shi
714e449ff5 Merge "WifiMetrics: add per-band Tx and Rx speed histogram" into qt-r1-dev
am: 6564df6264

Change-Id: I89c4a1b1bb96ab8d36ccff4a0c5a1cbdd503e964
2019-07-25 13:28:34 -07:00
Kai Shi
026e5441a4 WifiMetrics: add per-band Tx and Rx speed histogram
Bug: 137886569
Test: Unit tests for Wifi: frameworks/opt/net/wifi/tests/wifitests/runtest.sh and manual test

Change-Id: I30aae21651237b1bc7291527d0beab3e28dadb21
2019-07-19 09:56:45 -07:00
Mehdi Alizadeh
d104ed0a67 Merge "Adds metrics categories for gesture navigation dialogs" into qt-dev
am: cdd5808bd0

Change-Id: Id01df942a1f89096f30b71fb5636b615d4aa8ee3
2019-06-24 17:36:17 -07:00
Mehdi Alizadeh
873f1727e5 Adds metrics categories for gesture navigation dialogs
Bug: 135211145
Test: Builds
Change-Id: I0bc0749bbbb9b78d3d125e1a0f1e9bc35b645db2
2019-06-24 20:31:11 +00:00
Tim Joines
2b9196611e Merge "Add config to control full task snapshot scale" into qt-dev
am: 10b9def7cb

Change-Id: I6e07c1e6d9aa300e42e27daa10ad048af56fc40b
2019-06-19 15:03:46 -07:00
Tim Joines
10b9def7cb Merge "Add config to control full task snapshot scale" into qt-dev 2019-06-19 21:33:29 +00:00
Andrew Sapperstein
41d9e7ca8d Merge "Add metrics for mainline modules license UI." into qt-dev
am: eb1b030175

Change-Id: I3b568d73d56bddf3943e4106703ee10da5629dd6
2019-06-18 20:19:35 -07:00
Andrew Sapperstein
aad89bd490 Add metrics for mainline modules license UI.
Bug: 135183006
Test: none
Change-Id: Id5f0ed37f64545d7e1b73f9aad61a0357460eea5
2019-06-18 14:25:07 -07:00
Winson Chung
ffde2ea8e5 Add config to control full task snapshot scale
- Also save the scale with the snapshot data instead of trying to infer it
  from the state
- Also recycle the reduced resolution snapshot copy after writing it

Bug: 135150767
Test: atest TaskSnapshotPersisterLoaderTest
Change-Id: I64a9ccf16f3966ad5c6d07ff0b6ce8e9dd710e40
2019-06-18 14:12:25 -07:00
Paul Duffin
d93f565421 Remove superfluous use of no_framework_libs: true
Bug: 134566750
Test: m droid
Change-Id: I2777e8f9da0c7e0f3fc84277600f9db45b2f837e
Exempt-From-Owner-Approval: no response from owners minor build change
2019-06-18 19:21:34 +01:00
Will Brockman
c22772c36a Log usage of addPerson() and setStyle() in notifications.
Added Tron logging to StatusBarNotification.getLogMaker() so it will
be present in most logs about the notification.

Change-Id: I720706d37c663f2018bdfe2153ad180970166c90
Test: atest android.service.notification.StatusBarNotificationTest
Bug: 135180518
2019-06-14 19:10:02 +00:00
Beth Thibodeau
4b05fbcf49 Add logging for media notification seekbar
Also includes some minor fixes and improvements:
- Only update visibility of seekbar/scrubber if it changed
- Switching between seekable and not seekable media will update the
scrubber visibility
- Switching from seekbar to none will not restart the timer

Fixes: 132631846
Test: manual, atest com.android.systemui.statusbar.notification.row.wrapper.NotificationMediaTemplateViewWrapperTest
Change-Id: I158670119ad0742cf6a2387e08d54e548ee14ef5
2019-05-28 16:34:14 -04:00
Jan Althaus
367eb8ca1f Adding issuer information to NAS Adjustments
Test: manually tested with ExtServices and AiAi as NAS
Bug: 132679875
Change-Id: I3b4b3135037fe3f82b18e7c024931842986c70bb
2019-05-23 19:35:01 +00:00
Steven Wu
40cbada807 Logs biometric authentication error type.
Test: manual
Bug: 132644177
Change-Id: I99398140eb17aa6f9b1404815908ef56890dfc7e
2019-05-22 13:10:46 -04:00
Salvador Martinez
20d1db4ebb Add metrics constants for dark ui dialog
This just adds some constants needed for a new dialog that shows
up on the first time dark theme is toggled.

Test: none, is a metrics change
Bug: 132695689
Change-Id: Ic7527879003a7d883e74cb00792e69655e5ec9ad
2019-05-21 15:20:11 -07:00
Julia Reynolds
b58434a869 Revert "Adding issuer information to NAS Adjustments"
This reverts commit 3b33a04fb3b34cac4422b2520ddb0b8be7067b72.

Reason for revert: This is crashing ExtServices on qt-dev

Bug: 132679875
Change-Id: I60b7b6b8db33585f62e108389367c74ce682b922
2019-05-21 15:04:27 +00:00
Jan Althaus
3b33a04fb3 Adding issuer information to NAS Adjustments
Test: manually tested with AiAi NAS
Fixes: 132679875

Change-Id: I5d4bf41383143e9573ddad5c08205e1dca3ba6b3
2019-05-21 08:57:02 +02:00
Leo Hsu
d8faaf97ef Revise metrics for emergency dialer
Add new metrics constants and deprecate old ones for Emergency Dialer.

Bug: 124427605
Test: Manually. Check the result of
'adb logcat -b events | grep -e sysui_multi_action'

Change-Id: Ia72709a237a78e3a80540cb8f18c80f2bfe37adc
2019-05-20 14:36:58 +08:00
Susi Kharraz-Post
1474655fc5 Fixing the metrics_constants jump
There were merge problems because master was modified independent of
qt-dev. This should be fixed by now so moving the number back to next
available.

Bug: 132719892
Change-Id: I19b28734b08877cb54574d5a059da5e7befe54ba
Test: N/A
2019-05-17 11:09:55 +00:00
Susi Kharraz-Post
4a401882a3 Align qt-dev and master
This CL only adds a new line to re-align qt-dev and master for
metrics_constants to make it possible to rebase the enums.

Bug: 132719892
Test: N/A
Change-Id: Ie6354c904f3751f8620ff3ae7d420754b6314b33
2019-05-15 14:42:06 -04:00
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