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

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

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

parents 72550ce5 b4430c07
Loading
Loading
Loading
Loading
+27 −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.rating;

import android.os.Bundle;

/**
 * @hide
 */
interface IDownloadableRatingTableMonitor {
    // Get RRT rating info on downloadable rating data
    Bundle[] getTable();
}
+31 −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.rating;

import android.media.tv.extension.rating.IPmtRatingListener;

/**
 * @hide
 */
interface IPmtRatingInterface {
    // Get Pmt rating information.
    String getPmtRating(String sessionToken);
    // Register a listener for pmt rating updates.
    void addPmtRatingListener(String clientToken, in IPmtRatingListener listener);
    // Remove the previously added IPmtRatingListener.
    void removePmtRatingListener(in IPmtRatingListener listener);
}
+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.rating;

/**
 * @hide
 */
oneway interface IPmtRatingListener {
    void onPmtRatingChanged(String sessionToken, String newTvContentRating);
}
+32 −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.rating;

import android.media.tv.extension.rating.IProgramRatingInfoListener;
import android.os.Bundle;

/**
 * @hide
 */
interface IProgramRatingInfo {
    // Register a listener to receive notifications when ProgramRatingInfo is updated.
    void addProgramRatingInfoListener(String clientToken, in IProgramRatingInfoListener listener);
    // Remove a listener for ProgramRatingInfo update notifications.
    void removeProgramRatingInfoListener(in IProgramRatingInfoListener listener);
    // Get ProgramRatingInfo that may only be obtained when viewing.
    Bundle getProgramRatingInfo(String sessionToken);
}
+26 −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.rating;

import android.os.Bundle;

/**
 * @hide
 */
interface IProgramRatingInfoListener {
    void onProgramInfoChanged(String sessionToken,in Bundle changedProgramInfo);
}
Loading