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

Commit 49e41d94 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Atoms for binary push and flag flip."

parents e4e44325 b89807ec
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
@@ -154,6 +154,8 @@ message Atom {
        // Consider removing this if it becomes a problem
        ServiceStateChanged service_state_changed = 99;
        ServiceLaunchReported service_launch_reported = 100;
        PhenotypeFlagStateChanged phenotype_flag_state_changed = 101;
        BinaryPushStateChanged binary_push_state_changed = 102;
    }

    // Pulled events will start at field 10000.
@@ -2148,6 +2150,43 @@ message Notification {
    optional int64 visible_millis = 16;
}

/*
 * Logs when a flag flip state changes.
 * Logged in P/h.
 */
message PhenotypeFlagStateChanged {
    // Mendel configuration name.
    optional string mendel_config_name = 1;
    // State
    enum State {
        STATE_UNKNOWN = 0;
        COMMITTED = 1;
    }
    optional State state = 2;
}

/*
 * Logs when a binary push state changes.
 * Logged in Play store
 */
message BinaryPushStateChanged {
    // Binary package name.
    optional string binary_name = 1;
    // Version code.
    optional int64 version = 2;
    // State
    enum State {
        STATE_UNKNOWN = 0;
        DOWNLOAD_START = 1;
        DOWNLOAD_DONE = 2;
        INSTALL_START = 3;
        INSTALL_DONE = 4;
        REBOOT_START = 5;
        REBOOT_DONE = 6;
    }
    optional State state = 3;
}

/*
 * Logs when a connection becomes available and lost.
 * Logged in StatsCompanionService.java