4717 Commits

Author SHA1 Message Date
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
Kyeongkab.Nam
a56bd2550c Merge "Fix bootanimation stack overflow" am: 935d8032c8 am: 15e24878d6
am: 228808aa0a

Change-Id: I72220db5f31bc3e7ba5ddc128731b724e7f55cb1
2019-07-22 20:16:19 -07:00
Kyeongkab.Nam
15e24878d6 Merge "Fix bootanimation stack overflow"
am: 935d8032c8

Change-Id: If5b2538dc6f2f8639166eaf9c27eb152b8c5419a
2019-07-22 19:57:21 -07:00
Treehugger Robot
935d8032c8 Merge "Fix bootanimation stack overflow" 2019-07-23 02:13:28 +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
Kyeongkab.Nam
35a8a11697 Fix bootanimation stack overflow
length of input from scanf is not limited even though MAX char of path
is defined as 256. This could cause stack corruption when length of input
is over MAX.

Test: run bootanimation with desc.txt which has over 256 length of path.

Change-Id: Ic60081ca82067ad671508e766c495546af9233d1
2019-07-18 10:12:10 +09:00
Steven Moreland
aa11c66fe2 Merge "libbootanimation: remove unused deps" am: a367e0e4fa am: 3c8780e832
am: f216a50d59

Change-Id: I61e85c0ea1c3765cddd3f22e996993b932853e4a
2019-07-16 14:29:59 -07:00
Steven Moreland
3c8780e832 Merge "libbootanimation: remove unused deps"
am: a367e0e4fa

Change-Id: I7eed8816df090c1cb8d935a79aeeb819ad1a6886
2019-07-16 14:10:21 -07: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
Steven Moreland
d2a323969c libbootanimation: remove unused deps
Bug: 137311188
Test: library still builds
Change-Id: I105cedd7ca6311a767fa627ca4b869e3f077498a
2019-07-11 16:16:31 -07:00
Nazanin Bakhshi
1ca89a995b Merge "Add device identifier permission checks to TelephonyPermissions" 2019-07-01 23:26:18 +00:00
Michael Groover
94672cea7c Add device identifier permission checks to TelephonyPermissions
Bug: 131916175
Fixes: 136305129
Test: atest PhoneSubInfoControllerTest
Change-Id: Icca98347ab76b7c3468b95756a33a758a3abde37
Merged-In: I3c82c53ec89cd17b34a61166ccc9e9747388efac
2019-07-01 17:53:11 +00:00
Felix Lopez Luis
7ca1abd367 Add new atoms to log Downgraded Apps and Low Storage
Merged-In: I211696c836cb9c8a7b72e3693ecba3061ca599bf
Exempt-From-Owner-Approval: Cherry-pick
Change-Id: I211696c836cb9c8a7b72e3693ecba3061ca599bf
Bug-Id: b/120911106
Test: refactoring CL. Existing unit tests still pass.
2019-07-01 16:20:55 +00:00
Tej Singh
6c27d9a5ba Merge "StatsdStats: improve activation time logging" into qt-dev am: 26b6ef7904
am: 383dd33392

Change-Id: I6a34566bd69174dd2f752b118779afd7d7f28efa
2019-06-27 19:42:11 -07:00
Tej Singh
f98ee2cd52 Merge "StatsdStats: improve activation time logging" into qt-dev am: 26b6ef7904
am: 1b5e46fdf5

Change-Id: I5113225dad6a4bb001f6a69e644100eee5e1bed4
2019-06-27 19:39:52 -07:00
Tej Singh
383dd33392 Merge "StatsdStats: improve activation time logging" into qt-dev
am: 26b6ef7904

Change-Id: I3c9be295caf4acb672bed44ba47a4d67a44ed52a
2019-06-27 19:19:45 -07:00
Tej Singh
1b5e46fdf5 Merge "StatsdStats: improve activation time logging" into qt-dev
am: 26b6ef7904

Change-Id: I6e92b0274e3a3266038fd91308818c56a83c29ca
2019-06-27 19:19:42 -07:00
TreeHugger Robot
26b6ef7904 Merge "StatsdStats: improve activation time logging" into qt-dev 2019-06-28 02:03:40 +00:00
TreeHugger Robot
9bbe35ee74 Merge "Deprecate the isForeground value because we don't care about it" into qt-r1-bubbles-dev 2019-06-25 23:25:49 +00:00
Tej Singh
16ca28fc8e StatsdStats: improve activation time logging
Add logging to record whenever the 10 second guardrail for sending
active configs changed broadcast is met, so that we know when the
broadcast would not have been sent.
Add activation time for configs that are active when the device boots.
This will help determine whether or not statsd thinks configs are active
and will help debug issues like b/133809948

Bug: 133809948
Test: bit statsd_test:*
Test: manually rebooted to make sure activation time was logged
Change-Id: Ifa72202bc52485e4953e49d78dffea685cc3d1e7
2019-06-25 13:52:58 -07:00
Mady Mellor
daa0a660eb Deprecate the isForeground value because we don't care about it
Test: none
Bug: 135488406
Change-Id: I93630fe11cba87482d79aa57fdddfe341cedd0f8
2019-06-24 16:42:35 -07:00
Rafal Slawik
85dd681301 Merge "Add atom for per-process system ion heap size" into qt-dev am: 956197e8e0
am: fa214b65ff

Change-Id: If65f12297ea55dd63e7bfbd3db4615c614543b11
2019-06-24 15:32:27 -07:00
Rafal Slawik
fa214b65ff Merge "Add atom for per-process system ion heap size" into qt-dev
am: 956197e8e0

Change-Id: Ica2629bf4a5cc744004d19393ce7733aff1689fd
2019-06-24 15:28:29 -07:00
Rafal Slawik
99c185a729 Merge "Add atom for per-process system ion heap size" into qt-dev
am: 956197e8e0

Change-Id: I236d656d3bcfef05590f8c1262f1fbd5905ddb6b
2019-06-24 15:28:29 -07:00
Ioannis Ilkos
c724ee2de3 Merge "Add anon RSS + swap metric" into qt-dev am: 9af8d15783
am: 83270da58c

Change-Id: I059f5a51d7a7399df9ec4fd26989fc77eb03c734
2019-06-24 08:59:34 -07:00
Ioannis Ilkos
689148acc6 Merge "Add anon RSS + swap metric" into qt-dev
am: 9af8d15783

Change-Id: I00f58e98bb7c162032bf381348a63be4bd77ac0f
2019-06-24 08:16:21 -07:00
Ioannis Ilkos
83270da58c Merge "Add anon RSS + swap metric" into qt-dev
am: 9af8d15783

Change-Id: Icdc2f66054c9f1450a731f051707b3824c487865
2019-06-24 08:11:08 -07:00
Rafal Slawik
6d44d6dafa Add atom for per-process system ion heap size
The pulling code will be added in the next commit.

Bug: 130526489
Test: statsd_testdrive
Change-Id: I0fea4b6a7a8dbbdc574fb342c1e07aa0165bf797
(cherry picked from commit 77987ed47f5a0c11052c9f33f1d7933ca60e50b5)
2019-06-24 09:54:42 +00:00
Ioannis Ilkos
9af8d15783 Merge "Add anon RSS + swap metric" into qt-dev 2019-06-24 08:46:40 +00:00
Stanislav Zholnin
6130900c18 Add logging atom for PermissionApps fragment views am: 32a89c15a7
am: afc5d42765

Change-Id: I5bd37f12ab71d93e16270f90833ea4c965a5e237
2019-06-21 09:17:39 -07:00
Stanislav Zholnin
744c835fa1 Add atom for logging of AppPermissionsFragment views. am: dc3e2b35fb
am: 57f15e881c

Change-Id: I4aaf366d1ef53537eaf5bab0c340fd5cac15545d
2019-06-21 09:14:44 -07:00
Stanislav Zholnin
6de27af19f Add atom for logging views in AppPermissionFragment am: c9dda9ecdf
am: 12f7a5ff0f

Change-Id: I76a154456bc107cf757f28c63054e79aaacf87d7
2019-06-21 08:59:17 -07:00
Stanislav Zholnin
4e89016a4e Add logging atoms to record user actions in AppPermissionFragment (handheld devices only) am: 3e0f9bcce0
am: abfa32bbb3

Change-Id: I6817b3fad72a5c47ac7f1d84cc8ba70235ecd671
2019-06-21 08:57:21 -07:00
Stanislav Zholnin
6f916a687c Add logging atom for PermissionApps fragment views
am: 32a89c15a7

Change-Id: I749c575b7eadbc3d51580dde23ec3a50c7b8a5ca
2019-06-21 08:53:53 -07:00
Stanislav Zholnin
afc5d42765 Add logging atom for PermissionApps fragment views
am: 32a89c15a7

Change-Id: I72f9f8459637de005b62d8901d1e87f0bcba635e
2019-06-21 08:50:36 -07:00
Stanislav Zholnin
25cf647b90 Add atom for logging of AppPermissionsFragment views.
am: dc3e2b35fb

Change-Id: I61f7ff871353ea2434adee80e04d7c2ff4c0b4e1
2019-06-21 08:46:12 -07:00
Stanislav Zholnin
57f15e881c Add atom for logging of AppPermissionsFragment views.
am: dc3e2b35fb

Change-Id: I3aebcc6a68c7d49e207c7e257ef04a47aad1f3ec
2019-06-21 08:46:00 -07:00
Stanislav Zholnin
0244d86622 Add atom for logging views in AppPermissionFragment
am: c9dda9ecdf

Change-Id: Ie31e10cd3d7adf56f0310cd8b3ea7881d245977a
2019-06-21 08:44:30 -07:00
Stanislav Zholnin
12f7a5ff0f Add atom for logging views in AppPermissionFragment
am: c9dda9ecdf

Change-Id: I3dbac7f6eaf54cd9b560ea0a6c21d920eef338fb
2019-06-21 08:44:14 -07:00
Stanislav Zholnin
4de2e4173e Add logging atoms to record user actions in AppPermissionFragment (handheld devices only)
am: 3e0f9bcce0

Change-Id: I1c44883c232ecd841d8a4045bbb3ec927bfc7e67
2019-06-21 08:42:16 -07:00
Stanislav Zholnin
abfa32bbb3 Add logging atoms to record user actions in AppPermissionFragment (handheld devices only)
am: 3e0f9bcce0

Change-Id: I9aba7f2f32ff6a9b6f52532e0d2b45331a4790ca
2019-06-21 08:42:15 -07:00
Stanislav Zholnin
32a89c15a7 Add logging atom for PermissionApps fragment views
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 218
Bug: 133401502
Bug: 134581123
Change-Id: I8f41d72c8f96a004911ef68491de8a214da4db24
Add logging to PermissionAppsFragment
2019-06-21 16:39:52 +01:00
Stanislav Zholnin
dc3e2b35fb Add atom for logging of AppPermissionsFragment views.
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 217
Bug: 133401502
Bug: 134581123
Change-Id: I60e500e99a13a4f2dea6d7141fc87f5b8422c3a7
2019-06-21 16:26:08 +01:00
Stanislav Zholnin
c9dda9ecdf Add atom for logging views in AppPermissionFragment
Test: ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 216
Bug: 133401502
Bug: 134581123
Change-Id: I099de3a5ecd7ecf68df618b9738a0428e5792c98
2019-06-21 15:20:44 +00:00
Kevin Chyn
6e4c822f23 Log the amount of time between authentication and error
am: 7fca2368af

Change-Id: I1e662fdf09511029c93eb9443b8fd5cd6c4b332a
2019-06-21 08:14:21 -07:00
Ioannis Ilkos
466ad6c3e0 Add anon RSS + swap metric
We are planning to use this metric to detect leaks.

This CL also decouples the actual memory sampling from AM. This means:
- Less time locking the pid list (we used to lock and then read proc)
- Less serialization / deserialization for the parcel
- Simpler to evolve (e.g. removed the HWM-specific method in AM)

Change-Id: I87a7243156dd8c88cfa85038e7e6cf4963e271e1
Test: manual, MemoryStatUtilTest, UidAtomTests
Bug: b/135418017
2019-06-21 11:10:19 +01:00
Kevin Chyn
7fca2368af Log the amount of time between authentication and error
Fixes: 135705310

Test: Checked logs
Change-Id: I1d9b26befc30f233052504c7c74b17ea0a3d5671
2019-06-21 06:10:40 +00:00