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

Commit 5acbc036 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add getModemEnabled HAL API"

parents 7224c5dc da4e793b
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -60,4 +60,15 @@ interface IRadio extends @1.2::IRadio {
    * Response function is IRadioResponse.enableModemResponse()
    */
    oneway enableModem(int32_t serial, bool on);

   /**
    * Request status of logical modem associated with the given serial number. It returns
    * isEnabled=true if the logical modem is in low power mode without any activity, while
    * the SIM card remains visible.
    *
    * @param serial Serial number of request.
    *
    * Response function is IRadioResponse.getModemStackStatusResponse()
    */
    oneway getModemStackStatus(int32_t serial);
};
 No newline at end of file
+11 −1
Original line number Diff line number Diff line
@@ -43,7 +43,17 @@ interface IRadioResponse extends @1.2::IRadioResponse {
     * Valid errors returned:
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:INTERNAL_ERR
     *   RadioError:MODEM_ERR
     */
    oneway enableModemResponse(RadioResponseInfo info);

    /**
     * @param info Response info struct containing response type, serial no. and error
     *
     * Valid errors returned:
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:MODEM_ERR
     */
    oneway getModemStackStatusResponse(RadioResponseInfo info, bool isEnabled);
};

radio/1.3/types.hal

0 → 100644
+27 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2019 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@1.3;

import @1.0::RadioResponseType;
import @1.0::RadioError;

struct RadioResponseInfoModem {
    RadioResponseType type;               // Response type
    int32_t serial;                       // Serial number of the request
    RadioError error;                     // Response error
    bool isEnabled;                       // whether modem is enabled or not
};
 No newline at end of file

radio/1.3/vts/OWNERS

0 → 100644
+10 −0
Original line number Diff line number Diff line
# Telephony team
amitmahajan@google.com
sanketpadawe@google.com
shuoq@google.com
sasindran@google.com
nazaninb@google.com

# VTS team
yuexima@google.com
yim@google.com
+36 −0
Original line number Diff line number Diff line
//
// Copyright (C) 2019 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.
//

cc_test {
    name: "VtsHalRadioV1_3TargetTest",
    defaults: ["VtsHalTargetTestDefaults"],
    srcs: [
        "radio_hidl_hal_api.cpp",
        "radio_hidl_hal_test.cpp",
        "radio_response.cpp",
        "radio_indication.cpp",
        "VtsHalRadioV1_3TargetTest.cpp",
    ],
    static_libs: [
        "RadioVtsTestUtilBase",
        "android.hardware.radio@1.3",
        "android.hardware.radio@1.2",
        "android.hardware.radio@1.1",
        "android.hardware.radio@1.0",
    ],
    header_libs: ["radio.util.header@1.0"],
    test_suites: ["general-tests"],
}
Loading