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

Commit c316530f authored by Sherry Huang's avatar Sherry Huang
Browse files

TIS: Standardize TIS Scan Extensions API

Define standardized AIDL interfaces for scan extension package.

Flag: android.media.tv.flags.tif_extension_standardization
Bug: b/344029126
Test: local testing with m

Change-Id: I23b3a75e808e7fb934a57fded76b4ff1698e2e39
parent 8a9da474
Loading
Loading
Loading
Loading
+36 −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.scan;

import android.media.tv.extension.scan.IFavoriteNetworkListener;
import android.os.Bundle;

/**
 * Country: Norway
 * Broadcast Type: BROADCAST_TYPE_DVB_T
 * (Operator: RiksTV)
 *
 * @hide
 */
interface IFavoriteNetwork {
    // Get the favorite network information,If there are no conflicts, the array of Bundle is empty.
    Bundle[] getFavoriteNetworks();
    // Select and set one of two or more favorite networks detected by the service scan.
    int setFavoriteNetwork(in Bundle favoriteNetworkSettings);
    // Set the listener to be invoked when two or more favorite networks are detected.
    int setListener(in IFavoriteNetworkListener listener);
}
+26 −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.scan;

import android.os.Bundle;

/**
 * @hide
 */
oneway interface IFavoriteNetworkListener {
    void onDetectFavoriteNetwork(in Bundle detectFavoriteNetworks);
}
+25 −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.scan;

/**
 * @hide
 */
interface IHDPlusInfo {
    // Specifying a HDPlusInfo and start a network scan.
    int setHDPlusInfo(String isBlindScanContinue, String isHDMode);
}
+35 −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.scan;

import android.media.tv.extension.scan.ILcnConflictListener;
import android.os.Bundle;

/**
 * Country: Italy, France
 * Broadcast Type: BROADCAST_TYPE_DVB_T
 *
 * @hide
 */
interface ILcnConflict {
    // Get the LCN conflict groups information, If there are no conflicts, the array of Bundle is empty.
    Bundle[] getLcnConflictGroups();
    // Resolve LCN conflicts caused by service scans.
    int resolveLcnConflict(in Bundle[] lcnConflictSettings);
    // Set the listener to be invoked the LCN conflict event.
    int setListener(in ILcnConflictListener listener);
}
+26 −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.scan;

import android.os.Bundle;

/**
 * @hide
 */
oneway interface ILcnConflictListener {
    void onDetectLcnConflict(in Bundle detectLcnConflicts);
}
Loading