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

Commit c1e701d0 authored by Chong Zhang's avatar Chong Zhang
Browse files

MediaCas: move *.aidl files from frameworks/base to frameworks/av

PDK builds can't reference frameworks/base from frameworks/av.

bug: 22804304
Change-Id: Ibcda0b6a56e36233ad37c2d5d2b03d5c58674010
parent 7485a9bb
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -408,10 +408,10 @@ LOCAL_SRC_FILES += \
	location/java/android/location/INetInitiatedListener.aidl \
	location/java/com/android/internal/location/ILocationProvider.aidl \
	media/java/android/media/IAudioService.aidl \
	media/java/android/media/ICas.aidl \
	media/java/android/media/ICasListener.aidl \
	media/java/android/media/IDescrambler.aidl \
	media/java/android/media/IMediaCasService.aidl \
	../av/drm/libmediadrm/aidl/android/media/ICas.aidl \
	../av/drm/libmediadrm/aidl/android/media/ICasListener.aidl \
	../av/drm/libmediadrm/aidl/android/media/IDescrambler.aidl \
	../av/drm/libmediadrm/aidl/android/media/IMediaCasService.aidl \
	media/java/android/media/IAudioFocusDispatcher.aidl \
	media/java/android/media/IAudioRoutesObserver.aidl \
	media/java/android/media/IMediaHTTPConnection.aidl \
@@ -537,6 +537,7 @@ LOCAL_AIDL_INCLUDES += \

LOCAL_AIDL_INCLUDES += \
	frameworks/av/camera/aidl \
	frameworks/av/drm/libmediadrm/aidl \
	frameworks/native/aidl/gui \
	system/netd/server/binder

+0 −34
Original line number Diff line number Diff line
/*
 * Copyright (C) 2017 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;

import android.media.MediaCas;

/** @hide */
interface ICas {
    void setPrivateData(in byte[] pvtData);
    byte[] openSession(int program_number);
    byte[] openSessionForStream(int program_number, int elementary_PID);
    void closeSession(in byte[] sessionId);
    void setSessionPrivateData(in byte[] sessionId, in byte[] pvtData);
    void processEcm(in byte[] sessionId, in MediaCas.ParcelableCasData ecm);
    void processEmm(in MediaCas.ParcelableCasData emm);
    void sendEvent(int event, int arg, in @nullable byte[] eventData);
    void provision(String provisionString);
    void refreshEntitlements(int refreshType, in @nullable byte[] refreshData);
    void release();
}
 No newline at end of file
+0 −22
Original line number Diff line number Diff line
/*
 * Copyright (C) 2017 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;

/** @hide */
interface ICasListener {
    void onEvent(int event, int arg, in @nullable byte[] data);
}
 No newline at end of file
+0 −27
Original line number Diff line number Diff line
/*
 * Copyright (C) 2017 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;

import android.media.MediaDescrambler;

/** @hide */
interface IDescrambler {
    void setMediaCasSession(in byte[] sessionId);
    boolean requiresSecureDecoderComponent(String mime);
    int descramble(in MediaDescrambler.DescrambleInfo descrambleInfo);
    void release();
}
 No newline at end of file
+0 −32
Original line number Diff line number Diff line
/*
 * Copyright (C) 2017 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;

import android.media.IDescrambler;
import android.media.ICas;
import android.media.ICasListener;
import android.media.MediaCas;

/** @hide */
interface IMediaCasService {
    MediaCas.ParcelableCasPluginDescriptor[] enumeratePlugins();
    boolean isSystemIdSupported(int CA_system_id);
    ICas createPlugin(int CA_system_id, ICasListener listener);
    boolean isDescramblerSupported(int CA_system_id);
    IDescrambler createDescrambler(int CA_system_id);
}
Loading