Commit Graph

3889 Commits

Author SHA1 Message Date
Ryan Mitchell
d906d809fb Merge "Add enforcement of overlayable targetName" 2019-01-19 02:01:23 +00: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
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
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
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
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
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
Frank Li
423b715d48 Merge "correct enum_default_value_name on atoms.proto" 2019-01-15 03:18:58 +00:00
Brian Osman
be8fac26d7 Switch to skcms-based factories and getters in SkColorSpace
Test: Mechanical substitution, still builds.
Change-Id: I877e4edd61e81279830ffbbcfea18d721abf6943
2019-01-15 03:17:09 +00:00
Chih-Hung Hsieh
55773ba766 Suppress cert-dcl50-cpp tidy warnings.
Bug: 122832439
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl50-cpp
Change-Id: I7268617658632140e9d78faa9ad7b112ff3f6408
2019-01-14 11:09:03 -08:00
lifr
357b7cfc2d correct enum_default_value_name on atoms.proto
Test: run runtests.sh, make sure no missing test and get all pass
      run /out/host/linux-x86/bin/statsd_testdrive 103
      Got following metric data dump:pass for local test
Bug: 119862317

Change-Id: I4588cec0dea8a4c5a19847a32a6d53bfc5953be7
2019-01-15 02:05:45 +08:00
Lalit Maganti
e5755008ec statsd: add subscription id to Perfetto command line and fix printf bug
This CL adds the id of the subscription triggering Perfetto to the
command line invocation of Perfetto. This is useful to allow for
distinguishing between experiments in post-processing (since the same
alert can be attached to multiple subscriptions).

This also fixes a bug in the same place where the last character of ids
could be cut off if any of the ids are large negative numbers i.e. the
smallest possible int64 is 20 chars long (including the minus sign).
However there were only 19 available digits in the string buffers which
these ids were printed into (the 20th would be the null terminator).
Increase the buffer size by 5 characters to allow for some headroom just
incase we need some in the future.

Bug: 122822046
Change-Id: I9c3ac8cb8b203fd464eee2c72b1228f1a50448b1
2019-01-14 18:01:18 +00:00
Frank Li
2792f56b90 Merge "Correct the atoms.proto name" 2019-01-14 17:34:33 +00:00
Christian Brunschen
f86039e16e Adds Westworld logging of RescueParty reset events.
Adds the RescuePartyResetReported Atom, and uses it in RescueParty.java
to log when a reset is done.
Also adds a small test program that can be built and run manually in
order to test the flow of new log events.

Test: Ran the test program and verified that the events flow through a
local statsd.

Change-Id: I0202dd8c00441d0544aed7de1d6027160b4d9a2b
Bug: 121121998
2019-01-14 11:29:11 +00:00
Chiachang Wang
6ec5ba9a6c Merge "Add data_stall_event.proto to atom.proto" 2019-01-14 07:56:15 +00:00
lifr
030d23aa77 Correct the atoms.proto name
Test: run runtests.sh, make sure no missing test and get all pass
      run /out/host/linux-x86/bin/statsd_testdrive 103
      Got following metric data dump:pass for local test
Bug: 119862317

Change-Id: I4e003a0e392e15b71fb3ee3adf7de669ccf25d76
2019-01-14 15:44:33 +08:00
Chiachang Wang
f6bedc23ae Add data_stall_event.proto to atom.proto
Test: Build pass
Bug: 120452078
Bug: 121185319
Change-Id: I96f74d938663d579e4fea1eee6a4a250d7e21b3a
2019-01-14 11:54:32 +08:00
Chenjie Yu
f910b78004 Move procstats_pkg_proc into its own wrapper
We rely on atom messages having different types to make configs.

Test: manual
Change-Id: I40a7962f4a63e8b6c5c42f5ffec944e822408f03
2019-01-11 16:08:20 -08:00
TreeHugger Robot
d3dda315c3 Merge "Sort static overlays by priority" 2019-01-11 16:33:01 +00:00
Hyundo Moon
8cd0ae9041 Introduce ControllerCallbackLink
In order to avoid direct AIDL usages in framework, this CL introduces a
new public class ControllerCallbackLink which can prevent usages of
ISessionControllerCallback.

Bug: 122337578
Test: make update-api -j / make -j
      atest CtsMediaTestCases:android.media.cts.MediaSessionTest
      atest CtsMediaTestCases:android.media.cts.MediaControllerTest
Change-Id: Id674576aa071b7fdbd0082bf6189fef2af2d919b
2019-01-11 14:42:14 +09:00
Ryan Mitchell
ebc0b6a68e Sort static overlays by priority
Since static overlays are still managed by the native layer, we must
order the overlays during the initial scan so the are put into the
AssetManager in the correct order.

Bug: 121002654
Test: build_success and manual verification of ordering
Change-Id: Id46baed8f836c3b4b86d19d58aee5fd06ff0b762
2019-01-10 16:59:36 -08:00
Chavi Weingarten
6169956c05 Merge "Added shell command for some general input events" 2019-01-09 16:29:01 +00:00
Shawn Lin
4505ce946d Merge "Add phase 2 atoms for documentsui" 2019-01-09 06:17:26 +00:00
shawnlin
a75e82d709 Add phase 2 atoms for documentsui
Test: manual
Bug: 111552654

Change-Id: Iabf5e64871aafe885bf2b304a7a0c6e61c8c08da
2019-01-09 09:18:50 +08:00
TreeHugger Robot
95cb8e40ca Merge "Make PlaybackInfo implement Parcelable" 2019-01-09 00:27:30 +00:00
chaviw
3a567f17d3 Added shell command for some general input events
Added shell command for events DOWN, UP, and MOVE. This can be invoked
by calling 'adb shell input event <DOWN|UP|MOVE> <x> <y>'

This was needed to test transferTouchFocus, but can be useful for other
testing as well.

Test: 'adb shell input event <DOWN|UP|MOVE> <x> <y>'
Change-Id: If3e77b04c7172505e7fe8998b5b3c496044870bb
2019-01-08 10:39:45 -08:00
TreeHugger Robot
ee57097de9 Merge "Add support for secondary display with display ID" 2019-01-08 06:05:49 +00:00
Arthur Hung
58a3ba639f Add support for secondary display with display ID
- Add display ID parameter for input shell command.
- Do some code refactory to use BaseCommand.

Bug: 112338741
Test: adb shell input [-d display_id] command args
Change-Id: I7264c913f784a35b41458261e1c3356b30f34035
2019-01-07 16:55:12 +08:00
Hyundo Moon
98e819216c Make PlaybackInfo implement Parcelable
This CL makes MediaController.PlaybackInfo implement Parcelable, and
replaces ParcelableVolumeInfo with the class.

Bug: 122243794
Test: make update-api -j; make -j;
Change-Id: I89d3df721a43e8c1454dbb3bdcb0b34c943339ce
2019-01-07 15:23:04 +09:00
Yao Chen
5c5513f2c7 Merge "Add a timeout option in shell subscriber." 2019-01-04 17:51:45 +00:00
arangelov
fd9cdcbdee Add ManagedProvisioning to allowed log sources in statsd_testdrive.
Test: manual
Bug: 122346015
Change-Id: I3f4ec145bb331493efb850574a18a50bd893954c
2019-01-04 12:25:43 +00:00
Hyundo Moon
7053844db7 Revert "Introduce ControllerCallbackLink"
This reverts commit e521669b5d.

Reason for revert: Another CL will be uploaded which makes the APIs public, not @SystemApi.

Bug: 122169124
Change-Id: Ie9ed1067596fe1724879e81d768ac8252eda7841
2019-01-04 14:27:45 +09:00
Yao Chen
35cb8d6537 Add a timeout option in shell subscriber.
Test: cts added
Change-Id: I0fe854fcfd5535ed03e502a4cad3f57079b45381
2019-01-03 17:00:39 -08:00
Tej Singh
06ba0a7db0 Merge "Migrate statsd to thermal hal v2" 2019-01-03 22:55:41 +00:00
TreeHugger Robot
2f3f3b4939 Merge "Turn all warnings into errors" 2019-01-03 15:20:45 +00:00
Chih-hung Hsieh
419a2638a2 Merge "Fix/suppress bootanimation google-explicit-constructor warnings" am: 50ee220126 am: b737b4fdb3
am: 05ae400a06

Change-Id: I2380f3e0467e1b9c4a8c36f31a2c4c8f45e893b0
2019-01-02 12:14:41 -08:00