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

Commit dd0854be authored by Daniel Bright's avatar Daniel Bright Committed by Automerger Merge Worker
Browse files

Merge "Introduce Radio Hal Device Capabilities" am: 64f69904

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1522564

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8045f781225ec07d641fa3e1ecb24fa9532bfd6c
parents 40c6d690 64f69904
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -434,6 +434,14 @@
            <instance>default</instance>
        </interface>
    </hal>
    <hal format="hidl" optional="true">
        <name>android.hardware.radio.config</name>
        <version>1.3</version>
        <interface>
            <name>IRadioConfig</name>
            <instance>default</instance>
        </interface>
    </hal>
    <hal format="hidl" optional="true">
        <name>android.hardware.renderscript</name>
        <version>1.0</version>
+21 −0
Original line number Diff line number Diff line
// This file is autogenerated by hidl-gen -Landroidbp.

hidl_interface {
    name: "android.hardware.radio.config@1.3",
    root: "android.hardware",
    srcs: [
        "types.hal",
        "IRadioConfig.hal",
        "IRadioConfigResponse.hal",
    ],
    interfaces: [
        "android.hardware.radio.config@1.0",
        "android.hardware.radio.config@1.1",
        "android.hardware.radio.config@1.2",
        "android.hardware.radio@1.0",
        "android.hardware.radio@1.6",
        "android.hidl.base@1.0",
    ],
    gen_java: true,
    system_ext_specific: true,
}
+42 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2020 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.
 *
 *
 * This interface is used by telephony and telecom to talk to cellular radio for the purpose of
 * radio configuration, and it is not associated with any specific modem or slot.
 * All the functions have minimum one parameter:
 * serial: which corresponds to serial no. of request. Serial numbers must only be memorized for the
 * duration of a method call. If clients provide colliding serials (including passing the same
 * serial to different methods), multiple responses (one for each method call) must still be served.
 */

package android.hardware.radio.config@1.3;

import @1.1::IRadioConfig;
import IRadioConfigResponse;

interface IRadioConfig extends @1.1::IRadioConfig {
    /**
     * Gets the available Radio Hal capabilities on the current device.
     *
     * This is called once per device boot up.
     *
     * @param serial Serial number of request
     *
     * Response callback is
     * IRadioConfigResponse.getHalDeviceCapabilitiesResponse()
     */
    oneway getHalDeviceCapabilities(int32_t serial);
};
+39 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2020 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.hardware.radio.config@1.3;

import android.hardware.radio@1.6::RadioResponseInfo;
import @1.2::IRadioConfigResponse;
import HalDeviceCapabilities;

/**
 * Interface declaring response functions to solicited radio config requests.
 */
interface IRadioConfigResponse extends @1.2::IRadioConfigResponse {
    /**
     * @param info Response info struct containing response type, serial no. and error
     * @param capabilities Capabilities struct containing the capabilities of the
     * device related to the Radio HAL
     *
     * Valid errors returned:
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:INTERNAL_ERR
     */
    oneway getHalDeviceCapabilitiesResponse(RadioResponseInfo info,
        HalDeviceCapabilities capabilities);
};
+22 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2020 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.hardware.radio.config@1.3;

/**
 * Contains the device capabilities with respect to the Radio HAL.
 */
struct HalDeviceCapabilities {};
Loading