CAS: Add @hide annotations

Add annotations so the java-source library can be used in
frameworks/base to initialize the constants.

Bug: 230377377, 227673974, 233862815
Test: build
Change-Id: Iff7f937bd996866e19a8b23492cb8a982d1d57fe
This commit is contained in:
Venkatarama Avadhani 2022-12-05 15:44:34 +05:30
parent 7b54065598
commit b4eb99bd97
20 changed files with 26 additions and 0 deletions

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
parcelable AidlCasPluginDescriptor {
int caSystemId;

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
union DestinationBuffer {
android.hardware.cas.SharedBuffer nonsecureMemory;

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
interface ICas {
void closeSession(in byte[] sessionId);

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
interface ICasListener {
void onEvent(in int event, in int arg, in byte[] data);

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
interface IDescrambler {
int descramble(in android.hardware.cas.ScramblingControl scramblingControl, in android.hardware.cas.SubSample[] subSamples, in android.hardware.cas.SharedBuffer srcBuffer, in long srcOffset, in android.hardware.cas.DestinationBuffer dstBuffer, in long dstOffset);

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
interface IMediaCasService {
android.hardware.cas.IDescrambler createDescrambler(in int CA_system_id);

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
parcelable SharedBuffer {
android.hardware.common.Ashmem heapBase;

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
parcelable Status {
const int OK = 0;

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@Backing(type="byte") @VintfStability
enum StatusEvent {
PLUGIN_PHYSICAL_MODULE_CHANGED = 0,

View file

@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.cas;
/* @hide */
@VintfStability
parcelable SubSample {
int numBytesOfClearData;

View file

@ -18,6 +18,7 @@ package android.hardware.cas;
/**
* Describes a CAS plugin with its system ID and name.
* @hide
*/
@VintfStability
parcelable AidlCasPluginDescriptor {

View file

@ -19,6 +19,9 @@ package android.hardware.cas;
import android.hardware.cas.SharedBuffer;
import android.hardware.common.NativeHandle;
/**
* @hide
*/
@VintfStability
union DestinationBuffer {
/**

View file

@ -23,6 +23,7 @@ import android.hardware.cas.SessionIntent;
* ICas is the API to control the CAS. It is used to manage sessions, provision/refresh the cas
* system, and process the EMM/ECM messages. It also allows bi-directional, scheme-specific
* communications between the client and the cas system.
* @hide
*/
@VintfStability
interface ICas {

View file

@ -18,6 +18,9 @@ package android.hardware.cas;
import android.hardware.cas.StatusEvent;
/**
* @hide
*/
@VintfStability
interface ICasListener {
/**

View file

@ -23,6 +23,7 @@ import android.hardware.cas.SubSample;
/**
* IDescrambler is the API to control the descrambling operations.
* @hide
*/
@VintfStability
interface IDescrambler {

View file

@ -26,6 +26,7 @@ import android.hardware.cas.IDescrambler;
* cas HAL to create cas and descrambler plugin instances. A cas plugin instance
* opens cas sessions which are used to obtain keys for a descrambler session,
* which can in turn be used to descramble protected video content.
* @hide
*/
@VintfStability
interface IMediaCasService {

View file

@ -22,6 +22,7 @@ import android.hardware.common.Ashmem;
* SharedBuffer describes a shared buffer which is defined by a heapBase, an
* offset and a size. The offset is relative to the shared memory base for the
* memory region identified by heapBase.
* @hide
*/
@VintfStability
parcelable SharedBuffer {

View file

@ -16,6 +16,9 @@
package android.hardware.cas;
/**
* @hide
*/
@VintfStability
parcelable Status {
/**

View file

@ -18,6 +18,7 @@ package android.hardware.cas;
/**
* The Event Type for status change.
* @hide
*/
@VintfStability
@Backing(type="byte")

View file

@ -19,6 +19,7 @@ package android.hardware.cas;
/**
* A subsample consists of some number of bytes of clear (unscrambled)
* data followed by a number of bytes of scrambled data.
* @hide
*/
@VintfStability
parcelable SubSample {