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

Commit 0d128c92 authored by shubang's avatar shubang
Browse files

Add result constants

Test: make;
Change-Id: I894d36eda840e0cddc39d0201adddb69e52b5428
parent 0d52f420
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -108,6 +108,19 @@ final class TunerConstants {
    public static final int DVR_SETTINGS_RECORD = Constants.DvrType.RECORD;
    public static final int DVR_SETTINGS_PLAYBACK = Constants.DvrType.PLAYBACK;

    @Retention(RetentionPolicy.SOURCE)
    @IntDef({RESULT_SUCCESS, RESULT_UNAVAILABLE, RESULT_NOT_INITIALIZED, RESULT_INVALID_STATE,
            RESULT_INVALID_ARGUMENT, RESULT_OUT_OF_MEMORY, RESULT_UNKNOWN_ERROR})
    public @interface Result {}

    public static final int RESULT_SUCCESS = Constants.Result.SUCCESS;
    public static final int RESULT_UNAVAILABLE = Constants.Result.UNAVAILABLE;
    public static final int RESULT_NOT_INITIALIZED = Constants.Result.NOT_INITIALIZED;
    public static final int RESULT_INVALID_STATE = Constants.Result.INVALID_STATE;
    public static final int RESULT_INVALID_ARGUMENT = Constants.Result.INVALID_ARGUMENT;
    public static final int RESULT_OUT_OF_MEMORY = Constants.Result.OUT_OF_MEMORY;
    public static final int RESULT_UNKNOWN_ERROR = Constants.Result.UNKNOWN_ERROR;

    private TunerConstants() {
    }
}