1611 Commits

Author SHA1 Message Date
Jeffrey Huang
e77476a9bb Update owners files with new team members
Test: N/A
Change-Id: I48dddae02c9c377f705094d9b58dbe3e2128ac7b
2020-01-13 23:51:27 +00:00
Muhammad Qureshi
6a6bd7ee22 Remove dependency on libutils in native autogen
Right now, Q schema generated code has a dependency on libutils.
Turning on R schema for clients will remove libutils as a required
dependency. Once libutils is removed from clients, turning the flag off
again will be complicated as all clients will need to re-include
libutils. To fix this problem, remove dependency on libutils in Q
schema.

Right now, we only use SystemClock.h from libutils in Q schema autogen.
Use timespec from C standard library instead.

Bug: 146808265
Test: m
Test: flashes successfully
Test: adb logcat "*:S statsd:*"
Test: bit statsd_test:*
Change-Id: I00efeab1be351a95083f3b6e2dbc9067849bee20
Merged-In: I00efeab1be351a95083f3b6e2dbc9067849bee20
2020-01-08 17:08:05 -08:00
Muhammad Qureshi
c29064e14c Move statsd metadata from statslog to atoms_info
Clients don't need to know about statsd metadata. Extract out metadata
from statslog.h/cpp into atoms_info.h/cpp which is only used by statsd.

Generated atoms_info.h: https://paste.googleplex.com/6303016724463616
Generated atoms_info.cpp: https://paste.googleplex.com/5717940978581504

Test: m -j
Test: old metadata in statslog matches the metadata in
atoms_info
Test: Flashes successfully
Test: adb logcat "*:S statsd:*"

Change-Id: I56ef3cc4ea1fbd2cd0130d4e9576b242efb9f627
Merged-In: I56ef3cc4ea1fbd2cd0130d4e9576b242efb9f627
2020-01-08 17:05:15 -08:00
Chen Xu
9663781a86 Expose ModemActivitiyInfo to system API
ModemActivityInfo is used for batteryStatusService which is part of
system service. To prepare telephony to be an mainline module, we
should expose ModemActivityInfo to systemAPI

1. remove getConsumedPower API as we are missing modem support, API
today only report 0
2. isValid API is introduced to cover modem issues before. Do not
expose this for now.

Bug: 140908357
Test: Build
Change-Id: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
(cherry picked from commit 7322e4a7ce0ba5a331df215e48d6f68f2cf890b9)
Merged-in: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
2019-12-18 10:45:00 -08:00
Hector Dearman
25af773ac6 Reland Perfetto upload logging atoms DO NOT MERGE
Initial state:
- I landed ag/9652310 (the original change) downstream
- I cherry-picked this change on upstream to aosp/1158971
- This cherry-pick had an incorrect Merged-In tag referring to ag/7911242
- This cl was present between mirror-aosp-master and master internally

Branch                      CL
aosp/master                 (aosp/1158971)
    \/
internal/mirror-aosp-master (aosp/1158971)
    \/
internal/[---]              Nothing since ag/7911242 was here
    ||                      already automerger skipped our change
    \/
internal/master             (ag/9652310)
    \/
[various children]          (ag/9652310)

See:
https://android-build.googleplex.com/builds/automerger/graph/project/googleplex-android/platform/frameworks/base

How this will fix the issue:
- The revert will go everywhere aosp/1158971 did
- The reland will go everywhere aosp/1158971 did plus to internal/master

This reverts commit 8ed72df3d8e21c06d8b1b848d6e58c15b251d25a.

Merged-In: Ia40303aa2a669c301fab912b0b0bdf5ec1259caf
Change-Id: I3c061fef4f103f0f83147d56ed8019dcb39a7711
2019-12-04 21:56:05 +00:00
Tej Singh
dbd03d7f3a Merge "Store elapsedRealtimeNs as int64 instead of long"
am: dc51e5ef21

Change-Id: I487ca72036cfcc28bb04aebc44c7f3ca156a78b4
2019-11-04 12:15:03 -08:00
Tej Singh
ca782ac5ff Store elapsedRealtimeNs as int64 instead of long
long can be 32 bits, which will overflow in ~2 seconds if signed.

Test: builds
Change-Id: I78e69e2c2ceb21a5748d9d5d860b45e5a3fae865
Merged-In: I78e69e2c2ceb21a5748d9d5d860b45e5a3fae865
2019-11-01 17:30:36 -07:00
Xin Li
6f48900f50 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: If5056a73ede668b0048ca107b686413695e5b3b6
2019-10-30 14:33:01 -07:00
Xin Li
d3498e3053 Merge Coral/Flame into AOSP master
Bug: 141248619
Change-Id: Ic0486c8c79d94c9a30efa37676b2f6a94fb7b5fa
Merged-In: Ibe8ff7bdba7a886bd8b91155ae56f087a836981f
2019-10-25 10:27:58 -07:00
Tom Cherry
2ff78bb657 Merge "Remove legacy logger_entry_v* structs"
am: 4be2934e61

Change-Id: I910d9429de9ae6dd571af726fc3dbd04c2b94490
2019-10-25 10:05:00 -07:00
Tom Cherry
d02698938e Remove legacy logger_entry_v* structs
These are obsolete so we move all users to a single format.

Test: build, logging unit tests
Change-Id: I05ebb0b9135c61585ff103d24b785b9f21197257
2019-10-24 10:56:34 -07:00
Tom Cherry
7b1e0eee95 Merge "Use sizeof(android_log_header_t) instead of sizeof its components"
am: 8facba4326

Change-Id: Ia7655b2d082c1b55fa2e0a98245e49d2b0326dbc
2019-10-17 06:54:34 -07:00
Tom Cherry
937e1bdc1f Use sizeof(android_log_header_t) instead of sizeof its components
Particularly because sizeof_log_id_t is a misnomer and is going away.

Test: build, liblog and logcat unit tests
Change-Id: I7978bf83e44336a334229753ff1e11a07134e8fc
2019-10-16 15:48:56 -07:00
Howard Ro
41128933e4 Merge "Terminate statsd on a few signals including SIGTERM"
am: 99f231f3bc

Change-Id: I4a1f39eac54da861d88337a15e0c8e7a764a66f3
2019-10-14 15:37:24 -07:00
Treehugger Robot
99f231f3bc Merge "Terminate statsd on a few signals including SIGTERM" 2019-10-14 22:23:12 +00:00
Howard Ro
48dfcdb90a Terminate statsd on a few signals including SIGTERM
- statsd is handling SIGHUP/SIGQUIT/SIGINT/SIGTERM, but doesn't exit.
- The expected behaviour is that statsd would exit after finalizing log
processing when those signals are received.

Bug: 139817664
Bug: 138764189
Test: Send SIGTERM to statsd and check if it is terminated. (note that
init will revive statsd)

Change-Id: Ie45821613664bf030754f835f5481c986ed3cede
Merged-In: Id1146d772f8c68892256ee7a3eea70837fee5c7a
2019-10-14 13:56:41 -07:00
Nick Desaulniers
4a3a9b4a9f Merge "[frameworks][base][statsd] fix -Wimplicit-int-float-conversion"
am: 8b178a6607

Change-Id: I6345752405ea779c221aff6699a832cc440de06e
2019-10-14 09:38:15 -07:00
Nick Desaulniers
8208b201ca Merge "[frameworks][base][statsd] fix -Wreorder-init-list"
am: 00ae277630

Change-Id: Icf1d23aba020cec0b084c435cfcf2a2ca4a66f83
2019-10-11 09:24:42 -07:00
Nick Desaulniers
58664e8a7c [frameworks][base][statsd] fix -Wimplicit-int-float-conversion
RAND_MAX cannot be precisely represented in an IEEE 754 single precision
float.  For the purpose of generating a random number, the imprecision
is irrelevant. Fix the warning with an explicit cast.

Bug: 139945549
Test: mm
Change-Id: Ica60b410bbbca0b3807f985e302abb0775133877
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-10 13:09:42 -07:00
Nick Desaulniers
691e1a093c [frameworks][base][statsd] fix -Wreorder-init-list
C++20 would like members of designated initializers to be ordered, so
that initialization side effects match member initialization in explicit
constructors. This differs from C99.

Bug: 139945549
Test: mm
Change-Id: Iadc96f8f0bf57181970ca3e96b5c5f68ac40a030
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-10 13:08:34 -07:00
Anna Trostanetski
28fa70f0e0 Merge "Implement stats logging for Compatibility API." into stage-aosp-master am: 81e186ab99
am: 44b8ba5095

Change-Id: I0a7652cc97b7b50fc3797b26582b09caa0617a16
2019-09-18 03:55:45 -07:00
atrost
e36b1a142f Implement stats logging for Compatibility API.
Add a new atom and log from both the app process API and the system server API
Bug: 136794938
Bug: 138378110
Test: statsd_testdrive 228

Change-Id: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
Merged-In: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
2019-09-16 14:55:53 +01:00
atrost
1516d5290c Implement stats logging for Compatibility API.
Add a new atom and log from both the app process API and the system server API
Bug: 136794938
Bug: 138378110
Test: statsd_testdrive 228

Change-Id: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
Merged-In: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
2019-09-16 14:54:44 +01:00
Mady Mellor
3e3e48e981 Merge "qt-r1-bubbles-dev @ build 5835883" into qt-qpr1-dev-plus-aosp 2019-09-11 22:40:21 +00:00
TreeHugger Robot
ad324a3d7e Merge "Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master" into stage-aosp-master 2019-09-11 20:31:32 +00:00
Colin Cross
88b8d5c8e8 Merge changes from topic "protobuf-3.9.1" am: 2e928fb62a am: 89ee99a00d
am: 1a1c84d6bc

Change-Id: Ia7db50a9600e10405c3f3f760804c5280f07e53d
2019-09-11 12:28:42 -07:00
Colin Cross
92fb855e8c Adapt to google::protobuf::uint64 type change am: f74defb808 am: 595bfb9b00
am: 6b1de1743e

Change-Id: I0e1840b0e6d84b8dc543e2b880f695b36e1986a3
2019-09-11 12:28:34 -07:00
Colin Cross
1a1c84d6bc Merge changes from topic "protobuf-3.9.1" am: 2e928fb62a
am: 89ee99a00d

Change-Id: Ibbd3573012345c37a8f52b9826337c094e18aa8b
2019-09-11 12:09:19 -07:00
Colin Cross
6b1de1743e Adapt to google::protobuf::uint64 type change am: f74defb808
am: 595bfb9b00

Change-Id: Id752f8f112ad04beeb9ec24196745c32b5d84731
2019-09-11 12:09:10 -07:00
Colin Cross
595bfb9b00 Adapt to google::protobuf::uint64 type change
am: f74defb808

Change-Id: Ic87bcb3c775da26c5fb93015ad78cf0704cd67b4
2019-09-11 11:45:11 -07:00
Colin Cross
2e928fb62a Merge changes from topic "protobuf-3.9.1"
* changes:
  Convert statsd_test and statsd_benchmark to proto lite
  Adapt to google::protobuf::uint64 type change
2019-09-11 18:00:16 +00:00
Steven Moreland
e39e591af2 Merge "Remove libhwbinder/libhidltransport deps" am: 32f968b767 am: 350e380ced
am: 90640230f8

Change-Id: If6ef601b91084579dcb0138afc7ed21b915d240c
2019-09-10 17:08:50 -07:00
Steven Moreland
90640230f8 Merge "Remove libhwbinder/libhidltransport deps" am: 32f968b767
am: 350e380ced

Change-Id: I918bc5573f6f0efa676573209ce1874b02462576
2019-09-10 16:52:34 -07:00
Mady Mellor
8e10394ccc qt-r1-bubbles-dev @ build 5835883
Test: presubmit setup on source branch

Bug: 126945401
Bug: 128932906
Bug: 129158983
Bug: 130237686
Bug: 130250809
Bug: 130442248
Bug: 131267438
Bug: 131609280
Bug: 131692350
Bug: 131849856
Bug: 133444037
Bug: 134064116
Bug: 134064858
Bug: 134070807
Bug: 134077101
Bug: 134090085
Bug: 134155107
Bug: 134423445
Bug: 134512898
Bug: 134514210
Bug: 134514227
Bug: 134734945
Bug: 134960381
Bug: 134989736
Bug: 135214687
Bug: 135280077
Bug: 135472021
Bug: 135475155
Bug: 135487618
Bug: 135488406
Bug: 135518045
Bug: 135633218
Bug: 136034310
Bug: 136150954
Bug: 136199542
Bug: 136538998
Bug: 137201711
Bug: 137213469
Bug: 137214359
Bug: 137214536
Bug: 137233453
Bug: 137876221
Bug: 138301618
Bug: 138445026
Bug: 138659213
Bug: 138749133
Bug: 138799651
Bug: 138801505
Bug: 138941969
Bug: 139002444
Bug: 139025304
Bug: 139816141
Change-Id: Ic3a4ba793db7f1361678ef51c411d9eab85d9b85
Merged-In: Ic271a6a0f0803941dd5a84124dabf4d8c5fcc755
2019-09-09 21:48:30 +00:00
Steven Moreland
0daed48a88 Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I136e4d4459bb8c3c5abf3c0758dd5ae14d0ad2a2
2019-09-09 16:28:55 +00:00
Colin Cross
f74defb808 Adapt to google::protobuf::uint64 type change
Protobuf 3.9.1 redefines google::protobuf::uint64 from unsigned long
long to uint64_t, which is sometimes unsigned long and sometimes
unsigned long long.  Use PRIu64 to print it, and add an implementation
of ProtoOutputStream::write for long.

Bug: 117607748
Test: m checkbuild
Change-Id: Ib2d3f4e17857f8ccbbe342ce6678e76b591df510
Merged-In: Ib2d3f4e17857f8ccbbe342ce6678e76b591df510
2019-09-06 13:54:11 -07:00
Colin Cross
959cc442a1 Convert statsd_test and statsd_benchmark to proto lite
libplatformprotos for the device is compiled using proto lite, and
statsd_test and statsd_benchmark have protos that reference the
libplatformprotos.  With protobuf 3.9.1 compiling a full proto
against a lite proto doesn't work.  Convert them to lite.  Requires
adding the protobuf internal protos to the sources,
libprotobuf-cpp-lite does not contain the compiled version of
field_options.proto.

Bug: 117607748
Test: m checkbuild
Change-Id: I0b101555ff604df17b2e3e06f3b3ce25adb1c9fb
Merged-In: I0b101555ff604df17b2e3e06f3b3ce25adb1c9fb
2019-09-06 13:54:11 -07:00
Tej Singh
77e9007271 Increase stats hardware rpc threadpool.
am: 2e477bf54b

Change-Id: I60b989a1e320e9f1317d6082d6175dcf29a0873f
2019-09-04 16:58:32 -07:00
Tej Singh
2e477bf54b Increase stats hardware rpc threadpool.
Increase the threadpool count to 4.

Test: builds, boots
Test: adb shell cmd stats pull-source 10020 returns a battery capcity
Bug: 139453643
Merged-In: I2929fd6ca300781e67dde97d6196939d7928b350
Change-Id: I2929fd6ca300781e67dde97d6196939d7928b350
(cherry picked from commit 3174c0da99502207b8fa4c97533ed1a924d3990f)
2019-09-04 21:22:32 +00:00
Hyunyoung Song
a708c25bc6 Merge "create ExclusionRectStateChanged/BackGesture atom" into qt-r1-dev
am: 7e9c5d047d

Change-Id: I840ad234db5e53553cc2d69dcda9b1644ea639d8
2019-08-04 01:28:27 -07:00
Hyunyoung Song
b1814966d6 Merge "create ExclusionRectStateChanged/BackGesture atom" into qt-r1-dev
am: 7e9c5d047d

Change-Id: Ibdf6058b743f20d3434dd189c87ccbf12e82f8f8
2019-08-04 00:59:14 -07:00
Hyunyoung Song
f1b935ea2e create ExclusionRectStateChanged/BackGesture atom
Bug: 135152789
Test: manual
Test: m statsd_testdrive -j31
Test: out/host/linux-x86/bin/statsd_testdrive [223|224]
Change-Id: Id4b36c89ed5bf3330795107fb6cd6750edcd0dbf
Merged-In: Id4b36c89ed5bf3330795107fb6cd6750edcd0dbf
2019-08-02 12:14:25 +00:00
Frank Li
48e0f97d54 Merge changes from topic "DNS telemetry" into qt-r1-dev
am: 412c59128e

Change-Id: I8d479c2054a894da6f700cd38bfd78cdc96f1558
2019-07-25 20:50:47 -07:00
Frank Li
762eb4a215 Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate.
The sample rate of DNS stats(to statsd) is 1/sampling_rate_denom.

Bug: 119862317
Test: ./out/host/linux-x86/bin/statsd_testdrive 116

Merged-In: Iab542b32a8a18ae0bdbd8e005c430a876f056806
Merged-In: I9d37cac0bca53b3d7c6751ca69c1d304dfe17098
(cherry picked from commit 60d4f1a5bdc2a8412e285baf74e0e9a54b8c42d2)

Change-Id: If380a730942195db91a66944f103674c539ca7ad
2019-07-25 22:00:05 +00:00
Frank Li
be8ecaa59e Refine the proto dns_resolver.proto
1. refine the enum type Transport
   The name of 1st enum value is TRANSPORT_UNKNOWN
2. remove the wrong character "CR"

Bug: 119862317
Test: ./out/host/linux-x86/bin/statsd_testdrive 116

Merged-In: Iaf7abac6170d5818a263392731069d7bf021d981
Merged-In: I8f0e7449036062ecc3827e477ced325d84c1bf54
(cherry picked from commit aee26c026c203a50ffb3b28baaf9aace73f335c7)

Change-Id: Ie33a2ea58d6f39345d0f1d4141eea8b9c458dcfc
2019-07-25 21:57:26 +00:00
Frank Li
60d4f1a5bd Merge "Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate." am: 929cb5fc7f am: 736173bba2
am: 1b4173d819

Change-Id: Iab542b32a8a18ae0bdbd8e005c430a876f056806
2019-07-22 08:13:03 -07:00
Frank Li
736173bba2 Merge "Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate."
am: 929cb5fc7f

Change-Id: I63dadfe56ab3b08ba29bb0b60e0f282a6a458867
2019-07-22 07:45:24 -07:00
lifr
2b9fab728d Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate.
The sample rate of DNS stats(to statsd) is 1/sampling_rate_denom.

Bug: 133111380
Test: ./out/host/linux-x86/bin/statsd_testdrive 116
Change-Id: I85acc8cb8ec4c38e95f7e97b0dd8da1294d9ceb3
2019-07-20 17:50:54 +00:00
Elliott Hughes
bbb6d4d72b Merge "Remove perfprofd support." into stage-aosp-master am: 680c3dc33b
am: 0eb252349b

Change-Id: I6945eed37215140704e3d1efb10229b33fdc010a
2019-07-16 09:30:54 -07:00
Elliott Hughes
f2eb832c32 Remove perfprofd support.
This isn't finished, and no-one's working on finishing it.

(cherry picked from commit 5a12f19ee1485bb8d70078e8b4cc578d74088e61)

Exempt-From-Owner-Approval: cherrypick
Test: builds
Change-Id: I0406afadc0663ef3c07acafcdf40f76c9bba27bf
Merged-In: I0406afadc0663ef3c07acafcdf40f76c9bba27bf
2019-07-16 15:59:12 +00:00