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

Commit 0cb5244e authored by Dongwon Kang's avatar Dongwon Kang
Browse files

TIF: Be consistent with argument name for startRecording

Change-Id: Icb0125049cc92c5664e0810cdb86f1cb0903405f
parent f2d2aab3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ interface ITvInputManager {
    void timeShiftEnablePositionTracking(in IBinder sessionToken, boolean enable, int userId);

    // For the recording session
    void startRecording(in IBinder sessionToken, in Uri programHint, int userId);
    void startRecording(in IBinder sessionToken, in Uri programUri, int userId);
    void stopRecording(in IBinder sessionToken, int userId);

    // For TV input hardware binding
+1 −1
Original line number Diff line number Diff line
@@ -56,6 +56,6 @@ oneway interface ITvInputSession {
    void timeShiftEnablePositionTracking(boolean enable);

    // For the recording session
    void startRecording(in Uri programHint);
    void startRecording(in Uri programUri);
    void stopRecording();
}
+2 −2
Original line number Diff line number Diff line
@@ -352,8 +352,8 @@ public class ITvInputSessionWrapper extends ITvInputSession.Stub implements Hand
    }

    @Override
    public void startRecording(@Nullable Uri programHint) {
        mCaller.executeOrSendMessage(mCaller.obtainMessageO(DO_START_RECORDING, programHint));
    public void startRecording(@Nullable Uri programUri) {
        mCaller.executeOrSendMessage(mCaller.obtainMessageO(DO_START_RECORDING, programUri));
    }

    @Override
+3 −3
Original line number Diff line number Diff line
@@ -2082,16 +2082,16 @@ public final class TvInputManager {
        /**
         * Starts TV program recording in the current recording session.
         *
         * @param programHint The URI for the TV program to record as a hint, built by
         * @param programUri The URI for the TV program to record as a hint, built by
         *            {@link TvContract#buildProgramUri(long)}. Can be {@code null}.
         */
        void startRecording(@Nullable Uri programHint) {
        void startRecording(@Nullable Uri programUri) {
            if (mToken == null) {
                Log.w(TAG, "The session has been already released");
                return;
            }
            try {
                mService.startRecording(mToken, programHint, mUserId);
                mService.startRecording(mToken, programUri, mUserId);
            } catch (RemoteException e) {
                throw e.rethrowFromSystemServer();
            }
+4 −4
Original line number Diff line number Diff line
@@ -1717,8 +1717,8 @@ public abstract class TvInputService extends Service {
         *
         * <p>The application may supply the URI for a TV program for filling in program specific
         * data fields in the {@link android.media.tv.TvContract.RecordedPrograms} table.
         * A non-null {@code programHint} implies the started recording should be of that specific
         * program, whereas null {@code programHint} does not impose such a requirement and the
         * A non-null {@code programUri} implies the started recording should be of that specific
         * program, whereas null {@code programUri} does not impose such a requirement and the
         * recording can span across multiple TV programs. In either case, the application must call
         * {@link TvRecordingClient#stopRecording()} to stop the recording.
         *
@@ -1783,8 +1783,8 @@ public abstract class TvInputService extends Service {
         * Calls {@link #onStartRecording(Uri)}.
         *
         */
        void startRecording(@Nullable  Uri programHint) {
            onStartRecording(programHint);
        void startRecording(@Nullable  Uri programUri) {
            onStartRecording(programUri);
        }

        /**
Loading