3922 Commits

Author SHA1 Message Date
Michael Groover
d15f8b9ad5 Merge "Revoke 'always allow' adb grants after period of inactivity" 2019-01-23 16:47:48 +00:00
Jack Yu
4bb90eb246 Define Nfc statistic data atoms
Fix format of variable "packageName".

Test: Manual
Bug:116641110
Change-Id: I4f280e3f2540cf0fdce7c9c89393ce246e0825b2
2019-01-23 15:13:41 +08:00
Tyler Gunn
d109d4bb58 Merge "Add get/set user selected outgoing phone account APIs." am: bf10036306 am: 6e7caec9ae
am: 5797bc598b

Change-Id: Ic1fa374c80d478586bf61956c28eedef2ba5185d
2019-01-22 20:54:33 -08:00
Michael Groover
9e7b06efe3 Revoke 'always allow' adb grants after period of inactivity
Bug: 111656592
Change-Id: I679078dc3e8f61f33ca0922a47777eedb6a933de
Fixes: 116512306
Test: atest AdbDebuggingManagerTest
2019-01-22 20:46:20 -08:00
Tyler Gunn
5797bc598b Merge "Add get/set user selected outgoing phone account APIs." am: bf10036306
am: 6e7caec9ae

Change-Id: I5278da53a5292379c27db7da1a9029d87f785d9a
2019-01-22 20:10:33 -08:00
Alex Salo
a060aee498 Add AttentionManagerService result logging into WW
Bug: 122960476
Test: tested locally on device using statsd_testdrive
Change-Id: I3f77e7c55cd6999d135896b5101fefb60560424a
2019-01-22 18:08:34 -08:00
TreeHugger Robot
810d940769 Merge "Log broadcast dispatch latency during BOOT_COMPLETED" 2019-01-22 19:51:41 +00:00
TreeHugger Robot
aa7fab9483 Merge "statsd: Add BatteryCycleCount atom" 2019-01-22 17:56:55 +00:00
Ng Zhi An
7ff7fdb76f Log broadcast dispatch latency during BOOT_COMPLETED
From device boot until BOOT_COMPLETED, log the dispatch latency of a
broadcast, which is the duration between it being enqueued and it being
dispatched, to get an idea of how long the queue is blocked for.

Each time a broadcast is dispatched, we check mLogLatencyMetrics, which
defaults to true when the queue is initialized, and log to statsd.

When the queue is empty, we check if BOOT_COMPLETED is done. If it is,
we stop logging by setting mLogLatencyMetrics to false, since it means
that we have finished all broadcasts that
would have been blocked by BOOT_COMPLETED.

Bug: 120794810
Test: flash, reboot, use stasd_testdrive to verify logging
Change-Id: I40c14744e5247412c0a03032fd5621706758a324
2019-01-22 08:48:33 -08:00
Tyler Gunn
36c50ed28c Add get/set user selected outgoing phone account APIs.
Promoting getUserSelectedOutgoingPhoneAccount to a public API accessible
to the default dialer app, as well as to system priv apps such as the
settings app.

Promoting setUserSelectedOutgoingPhoneAccount to a system API accessible
to apps such as the settings app.

Add telecom shell commands to support changing the outgoing phone account
in CTS tests.

Bug: 119227574
Test: Manual
Test: Added and ran new CTS test
Change-Id: I204b2f01a1b6746aa35faf8aaacd30ebf53b9a5d
2019-01-22 07:46:06 -08:00
TreeHugger Robot
5ec2516b0f Merge "Define Nfc statistic data atoms" 2019-01-22 13:11:18 +00:00
Jack Yu
95b64f3f4e Define Nfc statistic data atoms
Test: Manual
Bug:116641110

Change-Id: Ib521a9f2d4d098022d973fe6c775231a518f3f49
2019-01-22 18:04:33 +08:00
Nicolas Geoffray
5a516da019 Merge "Delay start of bootanimation until after the Runtime APEX is mounted." am: 20f1e0ca1d am: 73c257556a
am: 8162d9827f

Change-Id: Idd9b09ea7d500b2eb5af6104b44dd7bc7fd1c5c0
2019-01-22 01:25:17 -08:00
Nicolas Geoffray
8162d9827f Merge "Delay start of bootanimation until after the Runtime APEX is mounted." am: 20f1e0ca1d
am: 73c257556a

Change-Id: If9aae9dba3a5b4d71d5102fdc1489118a58fbc78
2019-01-22 01:10:06 -08:00
Maggie White
3dc172438a Merge "statsd implementation of USB port overheat event reporting" 2019-01-22 07:58:44 +00:00
Siarhei Vishniakou
3ddecff56f Touch event latency metrics
Add a basic metric about touch event latency.

Metric design doc:
https://docs.google.com/document/d/1funj0dM9oZMiivhz43U5WM2wA2zWiPWsOxO-Jl5PmbY/edit#

Bug: 111431676
Bug: 122748138
Test: manual test following procedures in the doc
Change-Id: Ifc2643b53c2211f67355b27c2ab4e706c00eae97
2019-01-21 20:56:16 -08:00
Martin Stjernholm
d848183572 Delay start of bootanimation until after the Runtime APEX is mounted.
It depends on libdexfile_external and libnative{bridge,helper,loader} which
are provided by the Runtime APEX.

Test: flash & boot
Test: atest CtsJdwpTestCases
Bug: 113373927
Change-Id: Id9a78f9adb4c928ab4c91fda0ee3ea4b13eed592
2019-01-21 10:55:30 +00:00
Sungsoo Lim
c8b15b6b77 Remove direct use of ISessionController in media cmd
Test: manual
Change-Id: Ia955858bee1b9a270b44f37e5dec9f4a594618bd
2019-01-21 19:53:59 +09:00
Ryan Mitchell
d906d809fb Merge "Add enforcement of overlayable targetName" 2019-01-19 02:01:23 +00:00
Maggie White
8735b85958 statsd: Add BatteryCycleCount atom
The health HAL specifies a charge cycles path that currently has no
atoms allocated to it. This change will allow statsd to collect this
information. I also ran 'clang-format -i --style=file' on this file.

Bug: 120680509
Test: cts-tradefed run singleCommand cts-dev -m CtsStatsdHostTestCases \
      -t android.cts.statsd.atom.HostAtomTests#testBatteryCycleCount
Test: adb shell cmd stats pull-source 10045
Change-Id: I796b275c5d6880e9d7ec5bc468b55d7dc421ac78
Signed-off-by: Maggie White <maggiewhite@google.com>
2019-01-18 17:24:15 -08:00
Maggie White
fc1aa59dff statsd implementation of USB port overheat event reporting
Bug: 119200347
Test: su 0 ./stats_client -u
Test: Observed USB port overheat event in statsd logs
Change-Id: Ic8801417c54c118e10bb9b631d8e77d68a65c799
Signed-off-by: Maggie White <maggiewhite@google.com>
2019-01-18 16:00:48 -08:00
TreeHugger Robot
837f453cfb Merge "Add GnssNfwNotificationReported and GnssConfigurationReported" 2019-01-18 22:09:29 +00:00
Ryan Mitchell
a362846d4d Add enforcement of overlayable targetName
Adds android:targetName to the overlay manifest attributes and
PackageParser reads the name into PackageInfo. Specifying
android:targetName on an overlay allows the overlay to be associated
with a particular set of overlayable resources. The overlay can only
override the values of the resources defined within the target
overlayable element.

Test: idmap2_tests
Bug: 119390855
Bug: 110869880

Change-Id: I1128274af4cae983f61ae15cdfcbface63233ff2
2019-01-18 11:47:20 -08:00
TreeHugger Robot
73dd7c9104 Merge "allow disable partial bucket on app upgrade" 2019-01-18 19:26:40 +00:00
Chenjie Yu
cd1b797c8c allow disable partial bucket on app upgrade
Bug: 112630210
Test: unit test
Change-Id: I2de38d35f14b813d2837455a322acc2e00813e3b
2019-01-18 09:38:39 -08:00
Yu-Han Yang
14d5fb45d4 Add GnssNfwNotificationReported and GnssConfigurationReported
Bug: 122091220
Test: on device using statsd_testdrive
Change-Id: I888ce76ce585589e27dae9bace9da842eb21437f
2019-01-18 08:52:34 -08:00
Felix Lopez Luis
25b35daba8 Merge "Add new atoms to log Downgraded Apps and Low Storage" 2019-01-18 10:30:04 +00:00
TreeHugger Robot
19d2020dab Merge "add page fragmentation info into procstats" 2019-01-18 01:10:39 +00:00
Ryan Mitchell
9853845074 Merge "Add enforcement of idmap policies" 2019-01-18 00:41:11 +00:00
Jack He
50b90a031d Merge "Atom: Update BluetoothConnectionStateChanged atom" am: 1ff7bdb095
am: 93c60d8e14

Change-Id: I042bde724451436ef0fa81e60e42b19a68ff138e
2019-01-17 15:36:47 -08:00
Jack He
610a8bffc0 Merge "Atom: Add BluetoothLinkLayerConnectionEvent atom" am: 9a6046bb3b
am: 6bb6b5b280

Change-Id: I3de2055961c34e661a28ad1d578980e088087c95
2019-01-17 15:21:25 -08:00
Chenjie Yu
b2ecc793af add page fragmentation info into procstats
Bug: 123021121
Test: atest
CtsStatsdHostTestCases:android.cts.statsd.validation.ProcStatsValidationTests#testProcStatsPkgProcStats
Change-Id: Icd60aa6fb3e2787fd0f628edeeab0d5872d2c497
2019-01-17 14:49:19 -08:00
Pirama Arumuga Nainar
4b2d55b082 Disable modernize-avoid-c-arrays clang-tidy check
Bug: http://b/122481018

Upcoming clang update has a clang-tidy warning about using c arrays and
instead use std::array:
    warning: do not declare C-style arrays, use std::array<> instead

Disable this warning for now (even before the new clang update lands)
since clang-tidy doesn't complain about flags it doesn't know.

Test: Build with new clang.
Change-Id: I971b84301e6cd1180326bc54711d0be193f09ccb
2019-01-17 12:17:31 -08:00
Felix Lopez Luis
d95346a3c6 Add new atoms to log Downgraded Apps and Low Storage
Change-Id: I211696c836cb9c8a7b72e3693ecba3061ca599bf
Bug-Id: b/120911106
Test: refactoring CL. Existing unit tests still pass.
2019-01-17 14:52:02 +00:00
Jack He
22e4a1da50 Atom: Update BluetoothConnectionStateChanged atom
* Use salted hashed Bluetooth device identifier and deprecate old
  ofuscted_id
* Add BluetoothAclConnectionStateChanged and BluetoothScoConnectionStateChanged
  to track ACL and SCO connections

Bug: 112969790
Test: Bluetooth unit test, test drive with statsd
Change-Id: I5398e4caae751e1fe1d6a95fa3bc56d062eb6172
Merged-In: I5398e4caae751e1fe1d6a95fa3bc56d062eb6172
(cherry picked from commit d9837c8a9e9c91d9907ea10e67bf6c6581ba1b4b)
2019-01-16 16:11:45 -08:00
Jack He
522601435d Atom: Add BluetoothLinkLayerConnectionEvent atom
* Add this atom to report events related to Bluetooth link layer
  connection, including:
  - Obfuscated ID of remote device
  - Connection handle
  - Direction of the connection
  - Type of the connection
  - Associated HCI command and/or event
  - Status code associated with HCI command and/or event
  - Reason code associated with HCI command and/or event
* Add enum definitions for HCI commands and events as defined in the
  Bluetooth 5.0 specification
* Add enum definitions for link type and direction

Bug: 112969790
Test: make, test drive with statsd
Change-Id: I0fdc59274d49ad503e9ba9cf8f49c9d8872a4131
Merged-In: I0fdc59274d49ad503e9ba9cf8f49c9d8872a4131
(cherry picked from commit ab86dbd20cf17a1389d42135865eabfc4fc48604)
2019-01-16 11:51:20 -08:00
Mårten Kongstad
d10d06d0b0 Add enforcement of idmap policies
Teaches idmap2 to recognize policy restrictions put on overlayable
resources. If overlayable enforcement is turned on for an overlay, then
any resources defined within the overlayable api of the target will have
policy restrictions imposed on them. All resources without overlayable
definitions will continue to be overlayable without policy restrictions.

Bug: 119390857
Test: atest idmap2 and booting

Co-authored-by: Ryan Mitchell <rtmitchell@google.com>
Change-Id: I7e435648eb6e4a87b0b90a7b2a0c3f33c1516ea6
2019-01-16 11:47:24 -08:00
Jack He
d9837c8a9e Atom: Update BluetoothConnectionStateChanged atom
* Use salted hashed Bluetooth device identifier and deprecate old
  ofuscted_id
* Add BluetoothAclConnectionStateChanged and BluetoothScoConnectionStateChanged
  to track ACL and SCO connections

Bug: 112969790
Test: Bluetooth unit test, test drive with statsd
Change-Id: I5398e4caae751e1fe1d6a95fa3bc56d062eb6172
2019-01-16 01:09:12 -08:00
Chiachang Wang
6936b95677 merge conflicts of c564b6e118905cd6e5000215ddcd58266c57890a to pi-dev-plus-aosp
Test: Fix conflict as instruction
Bug: None
Change-Id: Iebce2651c795abd223c2df1ae5ddf168351d70ad
Merged-In: I96f74d938663d579e4fea1eee6a4a250d7e21b3a
2019-01-16 13:28:35 +08:00
Jack He
ab86dbd20c Atom: Add BluetoothLinkLayerConnectionEvent atom
* Add this atom to report events related to Bluetooth link layer
  connection, including:
  - Obfuscated ID of remote device
  - Connection handle
  - Direction of the connection
  - Type of the connection
  - Associated HCI command and/or event
  - Status code associated with HCI command and/or event
  - Reason code associated with HCI command and/or event
* Add enum definitions for HCI commands and events as defined in the
  Bluetooth 5.0 specification
* Add enum definitions for link type and direction

Bug: 112969790
Test: make, test drive with statsd
Change-Id: I0fdc59274d49ad503e9ba9cf8f49c9d8872a4131
2019-01-15 20:07:32 -08:00
Chiachang Wang
bcfa1bfe3d resolve merge conflicts of c564b6e118905cd6e5000215ddcd58266c57890a to pi-dev-plus-aosp
Test: Fix conflict as instruction
Bug: None
Change-Id: I315b2c0ab50d033588dce75e6976f5ccbb5bed29
Merged-In: I96f74d938663d579e4fea1eee6a4a250d7e21b3a
2019-01-16 11:14:27 +08:00
Yu-Han Yang
8a1b51dcc5 Add GnssNiEvent logging
Bug: 122091220
Test: tested locally on device using statsd_testdrive

Change-Id: I45ab9a7b12e6e674f31bc2398d74fa827d6f8f61
2019-01-15 10:38:59 -08:00
TreeHugger Robot
3a13a85fd4 Merge "Log the fact that we don't have a prod key." 2019-01-15 17:42:10 +00:00
Brian Osman
40f4cb5d5e Merge "Switch to skcms-based factories and getters in SkColorSpace" 2019-01-15 15:11:34 +00:00
Mathew Inwood
610d096754 Log the fact that we don't have a prod key.
Hopefully this will never happen, but better to know if it does.

Test: atest SignedConfigHostTest
Bug: 122579497
Change-Id: I4ecdf94f7963728aecf17a448c7bfbc7dbd5f39e
2019-01-15 11:54:18 +00:00
Lalit Maganti
71d560440d Merge "statsd: add subscription id to Perfetto command line and fix printf bug" 2019-01-15 10:48:42 +00:00
lifr
76e0bba86b resolve merge conflicts of 2b208601c2a454220e0d49be4ac607f45079a7a2 to pi-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: I57b03766b585bb38e657e772dc4d6c3ad69a5237
Merged-in: I4588cec0dea8a4c5a19847a32a6d53bfc5953be7
2019-01-15 17:53:02 +08:00
Mathew Inwood
b375be5545 Add westworld logging to signed config.
This will allow verification of how well the feature works in prod, as
well as tracking real time usage once Q is released.

Test: atest CtsSignedConfigHostTests
Test: ./out/host/linux-x86/bin/statsd_testdrive 123

Bug: 110509075
Bug: 122350327
Change-Id: Ibada9490e18cbeee74e18aaa93ba9d0d7d03845e
2019-01-15 08:37:05 +00:00
Chiachang Wang
67f2447feb Add data_stall_event.proto to atoms.proto
Test: Build pass
Bug: 120452078
Bug: 121185319
Change-Id: I5a428fb60d4c1eb4fe397426606e937f27eacbc3
Merged-In: I96f74d938663d579e4fea1eee6a4a250d7e21b3a
2019-01-15 15:14:00 +08:00
lifr
35a7cf0192 Define DNS statistic data atom in atoms.proto file
Test: run runtests.sh, make sure no missing test and get all pass
      run /out/host/linux-x86/bin/statsd_testdrive
      116
      Got following metric data dump:pass for local test
Bug: 119862317

Change-Id: I83ee8500fac7f443711ced097cbd376feb801ccf
Merged-in: I4588cec0dea8a4c5a19847a32a6d53bfc5953be7
2019-01-15 12:44:33 +08:00