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

Commit 44c3d8a6 authored by Sherry Huang's avatar Sherry Huang Committed by Android (Google) Code Review
Browse files

Merge "TIS: Standardize TIS PVR Extensions API" into main

parents 8c494386 ad731558
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.media.tv.extension.pvr;

/**
 * @hide
 */
oneway interface IDeleteRecordedContentsCallback {
    void onRecordedContentsDeleted(in String[] contentUri, in int[] result);
}
+24 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.media.tv.extension.pvr;

/**
 * @hide
 */
interface IGetInfoRecordedContentsCallback {
    void onRecordedContentsGetInfo(int result);
}
+36 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.media.tv.extension.pvr;

import android.media.tv.extension.pvr.IDeleteRecordedContentsCallback;
import android.media.tv.extension.pvr.IGetInfoRecordedContentsCallback;


/**
 * @hide
 */
interface IRecordedContents {
    // Delete recorded contents by URIs
    // using callback to notify the result or any errors during the deletion process.
    void deleteRecordedContents(in String[] contentUri,
        in IDeleteRecordedContentsCallback callback);
    // Get the channel lock status for recorded content identified by the URI provided in sync way.
    int getRecordedContentsLockInfoSync(String contentUri);
    // Get the channel lock status for recorded content identified by the URI provided in async way.
    void getRecordedContentsLockInfoAsync(String contentUri,
        in IGetInfoRecordedContentsCallback callback);
}