This macro hasn't been meaningful in years.
Test: logging unit tests
Merged-In: I1b5008dd468e8ce0280a1e3e8c106e34c9648695
Change-Id: I1b5008dd468e8ce0280a1e3e8c106e34c9648695
Some primitives were not initialized to a default value causing
--ignore-overlayable and --verbose to default to true.
Bug: 148181123
Test: idmap2_tests
Change-Id: If87ba76b7d24803f46b71ef36befa12f25916680
Merged-In: Ic9dbd3e9a768beb39ac677ff294b0fca5ee8f9d2
`incident` may exit too early, which leads to data lost. This commit
fixes it.
Bug: 144821874
Test: atest com.android.server.cts.IncidentdTest
Change-Id: Ib73118cb690a8247049b5685ed0b227dad63f752
The directories are now created by the platform
Test: m -j
Change-Id: If1704623794f45149dd81405924bb956fee576e2
Merged-In: Ib4ea98aedef629dd9a2a8764cfd91284a38ba596
With the Virtual A/B feature, when the device successfully boots after
an OTA update, a dm-snapshot merge operation is performed, which
consolidates the updated images to the base devices.
This merge operation depends on the OTA size and may affect the device
performance until completed.
The new virtual_ab_update_reported push metric tracks the merge
operation duration (if not interrupted), the final merge status and
possible number of reboots that occurred during the merge.
Bug: 138817833
Bug: 148138124
Test: build + OTA application + local metric test with statsd_testdrive
Change-Id: Iabd1dc48ad0d737f6ed14caa247fd4952c65a258
Signed-off-by: Alessio Balsini <balsini@google.com>
Merged-In: Iabd1dc48ad0d737f6ed14caa247fd4952c65a258
AIDL generates optional<T> for nullable T types for C++, which is more
efficient and idomatic and easy to use.
Bug: 144773267
Test: build/flash/boot
Merged-In: I90cf2ce1193c479179687d71a5c1416f6cdf0b16
Change-Id: I90cf2ce1193c479179687d71a5c1416f6cdf0b16
(cherry picked from commit ff7f4279bd7fa33577f5f4d46aa9de322fb625d4)
Exempt-From-Owner-Approval: CP from master
Currently, it is possible for two threads in statsd to concurrently
access/modify memory in ConditionTrackers since they do not have locks.
This happens when one thread is processing LogEvents (lock on
StatsLogProcessor mutex), while the other thread receives uidmap updates
and locks on the mutex in the MetricProducer. This Cl changes uidmap
updates to also go through the mutex in StatsLogProcessor.
This is a cherry pick from internal.
Test: bit statsd_test:*
Test: atest CtsStatsdHostTestCases
Test: local test that forced the race condition now passes
Bug: 144373785
Change-Id: I04ae2f7ed025f5ce8bc4fdeb7f10717e20d76282
Merged-In: I04ae2f7ed025f5ce8bc4fdeb7f10717e20d76282
UserspaceRebootLogger class is introduced to encapsulate (tiny) state
machine for logging of userspace reboot.
So far state is stored in a persistent property, but that can be changed
in the future.
Unit tests will be added in a follow-up CL.
Test: adb shell svc power reboot userspace
Bug: 148767783
Change-Id: Ib9e2c6cef7094ccac7862be249d619212f0013fd
Merged-In: Ib9e2c6cef7094ccac7862be249d619212f0013fd
(cherry picked from commit 779d6bee21fada56116ff44d11943b241dc3531c)
- Most of them are for migrating from existing historgram logging.
- Following three items added as those critical information were missing:
SECONDARY_ZYGOTE_INIT_START, LAUNCHER_START, LAUNCHER_SHOWN
Bug: 132691841
Test: build only, follow-up CLs will be added later per each logging components
Change-Id: I26cbca3b6f2d9f990dde31ac0880272ac141ff36
Merged-In: I26cbca3b6f2d9f990dde31ac0880272ac141ff36
- FS_STAT can be returned per each partition mounted. Currently only
/data partition is checked but rename it so that we can add additional
partitions in future.
Bug: 132691841
Test: Build
Change-Id: I3f1280ce84df1137a92ac59b15937a32c7ac8d01
Merged-In: I3f1280ce84df1137a92ac59b15937a32c7ac8d01
- Init's 1st stage has both start time and duration. Add missing duration.
- Fix other errata.
Bug: 132691841
Test: Build
Change-Id: I5ea25cba29ab8b4de630308eaba2b5d6f30a29b7
Merged-In: I5ea25cba29ab8b4de630308eaba2b5d6f30a29b7
- Most of them are for migrating from existing historgram logging.
- Following three items added as those critical information were missing:
SECONDARY_ZYGOTE_INIT_START, LAUNCHER_START, LAUNCHER_SHOWN
Bug: 132691841
Test: build only, follow-up CLs will be added later per each logging components
Change-Id: I26cbca3b6f2d9f990dde31ac0880272ac141ff36
Merged-In: I26cbca3b6f2d9f990dde31ac0880272ac141ff36
A first stab at the atom to log.
Actual logic to log will be in the follow up CL.
Test: builds
Bug: 148767783
Change-Id: Id3f81ced73ea708f1dcfbcfd66f554e8daed8ccc
Merged-In: Id3f81ced73ea708f1dcfbcfd66f554e8daed8ccc
(cherry picked from commit 41dd57ee229d808bb401c19cb8533539f0eb42a3)
A first stab at the atom to log.
Actual logic to log will be in the follow up CL.
Test: builds
Bug: 148767783
Change-Id: Id3f81ced73ea708f1dcfbcfd66f554e8daed8ccc
Merged-In: Id3f81ced73ea708f1dcfbcfd66f554e8daed8ccc
(cherry picked from commit 41dd57ee229d808bb401c19cb8533539f0eb42a3)
* changes:
make sim_colors a system config
convert hidden configs to public
Add back off timer configs as carrier config
Carrier config to switch data if primary is OOS
Do not use hidden enabledSetting
Do not use hidden putIntForUser
Fix testNetworkScanRequestParcel_Parcel CTS
Do not use hidden broadcast API of RemoteCallbackList
Make requestModemActivityInfo a system api
Remove usage of hidden Parcel APIs
Do not use hidden withCleanCallingIdentity
Do not use hidden isPrivilegedApp
In case userspace reboot boot animation can't be found, a default
Android logo is going to be shown.
Test: adb reboot userspace
Bug: 148172262
Change-Id: Ida12ffcfe73b335b63178f3e3f2b0c4063dae2c2
Remove usage of isPrivilegedApp as it is used only for logging.
Bug: 140908357
Test: Build
Merged-In: I510e10cd17546ebd4aa59f14a3b10738e37e912d
Change-Id: I510e10cd17546ebd4aa59f14a3b10738e37e912d
Define the atom protos for
UpdateEngineUpdateAttemptReported
UpdateEngineSuccessfulUpdateReported
The fields for both atoms are copied from the already reported Tron
counters, except for the source fingerprint. By defining our own proto,
we can have a better insight about each update events. It also makes the
query easier without the server side work to correlate each counters.
Sample output from testdrive shows:
data {
elapsed_timestamp_nanos: 64932607816092
atom {
update_engine_update_attempt_reported {
attempt_number: 1
payload_type: FULL
duration_boottime_in_minutes: 0
duration_monotonic_in_minutes: 0
payload_size_mib: 510
attempt_result: METADATA_VERIFICATION_FAILED
error_code: DOWNLOAD_METADATA_SIGNATURE_MISMATCH
fingerprint: "google/walleye/walleye:R/MASTER/eng.xuncha.20190731.151212:userdebug/dev-keys"
}
}
}
Bug: 138253582
Bug: 137682371
Test: run statsd_testdrive and check events
Change-Id: Ic502acc8831fe4da0b32a826171d10e9c0f9876d
Merged-In: Ic502acc8831fe4da0b32a826171d10e9c0f9876d
Merged-In: Ifa57f23135b4cd63888df2b8f25650be133bb1de
(cherry picked from commit 167c3db93401adccc703815a9d71ef057b17e780)
Define the atom protos for
UpdateEngineUpdateAttemptReported
UpdateEngineSuccessfulUpdateReported
The fields for both atoms are copied from the already reported Tron
counters, except for the source fingerprint. By defining our own proto,
we can have a better insight about each update events. It also makes the
query easier without the server side work to correlate each counters.
Sample output from testdrive shows:
data {
elapsed_timestamp_nanos: 64932607816092
atom {
update_engine_update_attempt_reported {
attempt_number: 1
payload_type: FULL
duration_boottime_in_minutes: 0
duration_monotonic_in_minutes: 0
payload_size_mib: 510
attempt_result: METADATA_VERIFICATION_FAILED
error_code: DOWNLOAD_METADATA_SIGNATURE_MISMATCH
fingerprint: "google/walleye/walleye:R/MASTER/eng.xuncha.20190731.151212:userdebug/dev-keys"
}
}
}
Bug: 138253582
Bug: 137682371
Test: run statsd_testdrive and check events
Merged-In: Ic502acc8831fe4da0b32a826171d10e9c0f9876d
(cherry picked from commit 167c3db93401adccc703815a9d71ef057b17e780)
Change-Id: Ifa57f23135b4cd63888df2b8f25650be133bb1de
(cherry picked from commit f00d7fb3bd217bf236adb936febdb44e59250c78)