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

Commit 393262d8 authored by Sherry Huang's avatar Sherry Huang
Browse files

TIS: Standardize TIS Tune Extensions API

Define standardized AIDL interfaces for tune extension package.

Flag: android.media.tv.flags.tif_extension_standardization
Bug: b/344029126
Test: local testing with m
Change-Id: I359843e2474d19255767330783822566ae25e188
parent 7d7002f7
Loading
Loading
Loading
Loading
+27 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2024 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.extension.tune;

import android.media.tv.extension.tune.IChannelTunedListener;

/*
* @hide
*/
interface IChannelTunedInterface {
    void addChannelTunedListener(in IChannelTunedListener listener);
    void removeChannelTunedListener(in IChannelTunedListener listener);
}
+26 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2024 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.extension.tune;

import android.os.Bundle;

/*
* @hide
*/
oneway interface IChannelTunedListener {
    void onChannelTuned(String sessionToken, in Bundle channelTunedInfo);
}
+26 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2024 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.extension.tune;

import android.media.tv.extension.tune.IMuxTuneSession;

/**
* @hide
*/
interface IMuxTune {
    IMuxTuneSession createSession(int broadcastType, String clientToken);
}
+33 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2024 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.extension.tune;

import android.os.Bundle;

/**
* @hide
*/
interface IMuxTuneSession {
    // Start mux tune with tune params.
    void start(int broadcastType, int frequency, int brandwith, in Bundle muxTuneParams);
    // Stop mux tune.
    void stop();
    // Release muxtune resources.
    void release();
    // Get the session token created by TIS to identify different sessions.
    String getSessionToken();
}