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

Commit ebe442a5 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Use distinct value for BAL_BLOCK

Instead of logging 0 which can be misinterpreted as "missing data" in
protos, use a distinct value defined in the proto enum.

Test: atest BackgroundActivityStartController*Test
Flag: com.android.window.flags.bal_improved_metrics
Bug: 339245692
Change-Id: I6126990f9668e35fe876ceae3cdf94e8f407bcad
parent 13383477
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ public class BackgroundActivityStartController {
    })
    public @interface BalCode {}

    static final int BAL_BLOCK = 0;
    static final int BAL_BLOCK = FrameworkStatsLog.BAL_ALLOWED__ALLOWED_REASON__BAL_BLOCKED;

    static final int BAL_ALLOW_DEFAULT =
            FrameworkStatsLog.BAL_ALLOWED__ALLOWED_REASON__BAL_ALLOW_DEFAULT;