Loading media/java/android/media/tv/ad/ITvAdClient.aidl 0 → 100644 +30 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.ad; import android.view.InputChannel; /** * Interface a client of the ITvAdManager implements, to identify itself and receive * information about changes to the state of each TV AD service. * @hide */ oneway interface ITvAdClient { void onSessionCreated(in String serviceId, IBinder token, in InputChannel channel, int seq); void onSessionReleased(int seq); void onLayoutSurface(int left, int top, int right, int bottom, int seq); } No newline at end of file media/java/android/media/tv/ad/ITvAdManager.aidl +15 −0 Original line number Diff line number Diff line Loading @@ -16,10 +16,25 @@ package android.media.tv.ad; import android.media.tv.ad.ITvAdClient; import android.media.tv.ad.ITvAdManagerCallback; import android.media.tv.ad.TvAdServiceInfo; import android.view.Surface; /** * Interface to the TV AD service. * @hide */ interface ITvAdManager { List<TvAdServiceInfo> getTvAdServiceList(int userId); void createSession( in ITvAdClient client, in String serviceId, in String type, int seq, int userId); void releaseSession(in IBinder sessionToken, int userId); void startAdService(in IBinder sessionToken, int userId); void setSurface(in IBinder sessionToken, in Surface surface, int userId); void dispatchSurfaceChanged(in IBinder sessionToken, int format, int width, int height, int userId); void registerCallback(in ITvAdManagerCallback callback, int userId); void unregisterCallback(in ITvAdManagerCallback callback, int userId); } media/java/android/media/tv/ad/ITvAdManagerCallback.aidl 0 → 100644 +27 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.ad; /** * Interface to receive callbacks from ITvAdManager regardless of sessions. * @hide */ oneway interface ITvAdManagerCallback { void onAdServiceAdded(in String serviceId); void onAdServiceRemoved(in String serviceId); void onAdServiceUpdated(in String serviceId); } No newline at end of file media/java/android/media/tv/ad/ITvAdService.aidl 0 → 100644 +35 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.ad; import android.media.tv.ad.ITvAdServiceCallback; import android.media.tv.ad.ITvAdSessionCallback; import android.os.Bundle; import android.view.InputChannel; /** * Top-level interface to a TV AD component (implemented in a Service). It's used for * TvAdManagerService to communicate with TvAdService. * @hide */ oneway interface ITvAdService { void registerCallback(in ITvAdServiceCallback callback); void unregisterCallback(in ITvAdServiceCallback callback); void createSession(in InputChannel channel, in ITvAdSessionCallback callback, in String serviceId, in String type); void sendAppLinkCommand(in Bundle command); } No newline at end of file media/java/android/media/tv/ad/ITvAdServiceCallback.aidl 0 → 100644 +24 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.ad; /** * Helper interface for ITvAdService to allow the TvAdService to notify the TvAdManagerService. * @hide */ oneway interface ITvAdServiceCallback { } No newline at end of file Loading
media/java/android/media/tv/ad/ITvAdClient.aidl 0 → 100644 +30 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.ad; import android.view.InputChannel; /** * Interface a client of the ITvAdManager implements, to identify itself and receive * information about changes to the state of each TV AD service. * @hide */ oneway interface ITvAdClient { void onSessionCreated(in String serviceId, IBinder token, in InputChannel channel, int seq); void onSessionReleased(int seq); void onLayoutSurface(int left, int top, int right, int bottom, int seq); } No newline at end of file
media/java/android/media/tv/ad/ITvAdManager.aidl +15 −0 Original line number Diff line number Diff line Loading @@ -16,10 +16,25 @@ package android.media.tv.ad; import android.media.tv.ad.ITvAdClient; import android.media.tv.ad.ITvAdManagerCallback; import android.media.tv.ad.TvAdServiceInfo; import android.view.Surface; /** * Interface to the TV AD service. * @hide */ interface ITvAdManager { List<TvAdServiceInfo> getTvAdServiceList(int userId); void createSession( in ITvAdClient client, in String serviceId, in String type, int seq, int userId); void releaseSession(in IBinder sessionToken, int userId); void startAdService(in IBinder sessionToken, int userId); void setSurface(in IBinder sessionToken, in Surface surface, int userId); void dispatchSurfaceChanged(in IBinder sessionToken, int format, int width, int height, int userId); void registerCallback(in ITvAdManagerCallback callback, int userId); void unregisterCallback(in ITvAdManagerCallback callback, int userId); }
media/java/android/media/tv/ad/ITvAdManagerCallback.aidl 0 → 100644 +27 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.ad; /** * Interface to receive callbacks from ITvAdManager regardless of sessions. * @hide */ oneway interface ITvAdManagerCallback { void onAdServiceAdded(in String serviceId); void onAdServiceRemoved(in String serviceId); void onAdServiceUpdated(in String serviceId); } No newline at end of file
media/java/android/media/tv/ad/ITvAdService.aidl 0 → 100644 +35 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.ad; import android.media.tv.ad.ITvAdServiceCallback; import android.media.tv.ad.ITvAdSessionCallback; import android.os.Bundle; import android.view.InputChannel; /** * Top-level interface to a TV AD component (implemented in a Service). It's used for * TvAdManagerService to communicate with TvAdService. * @hide */ oneway interface ITvAdService { void registerCallback(in ITvAdServiceCallback callback); void unregisterCallback(in ITvAdServiceCallback callback); void createSession(in InputChannel channel, in ITvAdSessionCallback callback, in String serviceId, in String type); void sendAppLinkCommand(in Bundle command); } No newline at end of file
media/java/android/media/tv/ad/ITvAdServiceCallback.aidl 0 → 100644 +24 −0 Original line number Diff line number Diff line /* * Copyright (C) 2023 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.ad; /** * Helper interface for ITvAdService to allow the TvAdService to notify the TvAdManagerService. * @hide */ oneway interface ITvAdServiceCallback { } No newline at end of file