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

Commit cc525b61 authored by Shubang Lu's avatar Shubang Lu Committed by Android (Google) Code Review
Browse files

Merge "TIAF: handle createSession and internal states"

parents 2b2d2840 cd65bc47
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 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.interactive;

/**
 * Interface a client of the ITvIAppManager implements, to identify itself and receive information
 * about changes to the state of each TV interactive application service.
 * @hide
 */
oneway interface ITvIAppClient {
    void onSessionCreated(in String iAppServiceId, IBinder token, int seq);
    void onSessionReleased(int seq);
}
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
@@ -16,10 +16,15 @@

package android.media.tv.interactive;

import android.media.tv.interactive.ITvIAppClient;

/**
 * Interface to the TV interactive app service.
 * @hide
 */
interface ITvIAppManager {
    void startIApp(in IBinder sessionToken, int userId);
    void createSession(
            in ITvIAppClient client, in String iAppServiceId, int type, int seq, int userId);
    void releaseSession(in IBinder sessionToken, int userId);
}
 No newline at end of file
+28 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 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.interactive;

import android.media.tv.interactive.ITvIAppSessionCallback;

/**
 * Top-level interface to a TV IApp component (implemented in a Service). It's used for
 * TvIAppManagerService to communicate with TvIAppService.
 * @hide
 */
oneway interface ITvIAppService {
    void createSession(in ITvIAppSessionCallback callback, in String iAppServiceId, int type);
}
 No newline at end of file
+25 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 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.interactive;

/**
 * Helper interface for ITvIAppService to allow the TvIAppService to notify the
 * TvIAppManagerService.
 * @hide
 */
oneway interface ITvIAppServiceCallback {
}
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -17,9 +17,10 @@
package android.media.tv.interactive;

/**
 * Sub-interface of ITvIAppService which is created per session and has its own context.
 * Sub-interface of ITvIAppService.aidl which is created per session and has its own context.
 * @hide
 */
oneway interface ITvIAppSession {
    void startIApp();
    void release();
}
 No newline at end of file
Loading