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

Commit 27b7b258 authored by Sherry Huang's avatar Sherry Huang Committed by Android (Google) Code Review
Browse files

Merge "TIS: Standardize TIS Scan Background Service Extensions API" into main

parents 25c72337 0813431e
Loading
Loading
Loading
Loading
+32 −0
Original line number 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.scanbsu;

import android.media.tv.extension.scanbsu.IScanBackgroundServiceUpdateListener;

/**
 * @hide
 */
interface IScanBackgroundServiceUpdate {
    // Set the listener for background service update
    // receives notifications for svl/tsl/nwl update during background service update.
    void addBackgroundServiceUpdateListener(String clientToken,
        in IScanBackgroundServiceUpdateListener listener);
    // Remove the listener for background service update to stop receiving notifications
    // for svl/tsl/nwl update during background service update.
    void removeBackgroundServiceUpdateListener(in IScanBackgroundServiceUpdateListener listener);
}
+31 −0
Original line number 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.scanbsu;

import android.os.Bundle;

/**
 * @hide
 */
interface IScanBackgroundServiceUpdateListener {
    // On background service update add/delete/update svl records.
    void onChannelListUpdate(String sessionToken, out Bundle[] updateInfos);
    // On background service update add/delete/update nwl records.
    void onNetworkListUpdate(String sessionToken, out Bundle[] updateInfos);
    // On background service update add/delete/update tsl records.
    void onTransportStreamingListUpdate(String sessionToken, out Bundle[] updateInfos);
}