mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge changes from topic "cas-aidl-frameworks" am: b8e8ab3775 am: 872de78dee am: b9b6a35496
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2329895 Change-Id: If66cbf3b6557027d4293a8123f1afe1c816d6287 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -44,9 +44,9 @@ enum ScramblingMode {
|
||||
DVB_IDSA = 7,
|
||||
MULTI2 = 8,
|
||||
AES128 = 9,
|
||||
AES_CBC = 10,
|
||||
AES_ECB = 11,
|
||||
AES_SCTE52 = 12,
|
||||
TDES_ECB = 13,
|
||||
TDES_SCTE52 = 14,
|
||||
AES_ECB = 10,
|
||||
AES_SCTE52 = 11,
|
||||
TDES_ECB = 12,
|
||||
TDES_SCTE52 = 13,
|
||||
AES_CBC = 14,
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.hardware.cas;
|
||||
|
||||
/**
|
||||
* Describes a CAS plugin with its system ID and name.
|
||||
* @hide
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable AidlCasPluginDescriptor {
|
||||
|
||||
@@ -19,6 +19,9 @@ package android.hardware.cas;
|
||||
import android.hardware.cas.SharedBuffer;
|
||||
import android.hardware.common.NativeHandle;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@VintfStability
|
||||
union DestinationBuffer {
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -18,6 +18,9 @@ package android.hardware.cas;
|
||||
|
||||
import android.hardware.cas.StatusEvent;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@VintfStability
|
||||
interface ICasListener {
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ import android.hardware.cas.SubSample;
|
||||
|
||||
/**
|
||||
* IDescrambler is the API to control the descrambling operations.
|
||||
* @hide
|
||||
*/
|
||||
@VintfStability
|
||||
interface IDescrambler {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -69,11 +69,6 @@ enum ScramblingMode {
|
||||
*/
|
||||
AES128,
|
||||
|
||||
/**
|
||||
* Advanced Encryption System (AES) Cipher Block Chaining (CBC) mode.
|
||||
*/
|
||||
AES_CBC,
|
||||
|
||||
/**
|
||||
* Advanced Encryption System (AES) Electronic Code Book (ECB) mode.
|
||||
*/
|
||||
@@ -95,4 +90,9 @@ enum ScramblingMode {
|
||||
* Engineers (SCTE) 52 mode.
|
||||
*/
|
||||
TDES_SCTE52,
|
||||
|
||||
/**
|
||||
* Advanced Encryption System (AES) Cipher Block Chaining (CBC) mode.
|
||||
*/
|
||||
AES_CBC,
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
|
||||
package android.hardware.cas;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@VintfStability
|
||||
parcelable Status {
|
||||
/**
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.hardware.cas;
|
||||
|
||||
/**
|
||||
* The Event Type for status change.
|
||||
* @hide
|
||||
*/
|
||||
@VintfStability
|
||||
@Backing(type="byte")
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user