Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2546ec04 authored by Jooyung Han's avatar Jooyung Han
Browse files

Support string-array type value for bootstrap atom

Bug: 366068337
Test: statsd_testdrive 732 733 734
Test: adb install <apex> && adb reboot
Change-Id: I050cd1c97b38eec29ccecc5ddb2077fb02202ad1
parent 3d7c275c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,4 +26,5 @@ union StatsBootstrapAtomValue {
    float floatValue;
    String stringValue;
    byte[] bytesValue;
    String[] stringArrayValue;
}
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -62,6 +62,9 @@ public class StatsBootstrapAtomService extends IStatsBootstrapAtomService.Stub {
                case StatsBootstrapAtomValue.bytesValue:
                    builder.writeByteArray(value.getBytesValue());
                    break;
                case StatsBootstrapAtomValue.stringArrayValue:
                    builder.writeStringArray(value.getStringArrayValue());
                    break;
                default:
                    Slog.e(TAG, "Unexpected value type " + value.getTag()
                            + " when logging atom " + atom.atomId);