blob: dd629a5e5b5185027c894ef23f5090d29e5ccb93 [file] [log] [blame]
Hunsuk Choi9d4f38c2021-12-16 21:50:04 +00001/*
2 * Copyright (C) 2021 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "radio_ims_utils.h"
18
19RadioImsResponse::RadioImsResponse(RadioServiceTest& parent) : parent_ims(parent) {}
20
21ndk::ScopedAStatus RadioImsResponse::setSrvccCallInfoResponse(const RadioResponseInfo& info) {
22 rspInfo = info;
23 parent_ims.notify(info.serial);
24 return ndk::ScopedAStatus::ok();
25}
26
27ndk::ScopedAStatus RadioImsResponse::updateImsRegistrationInfoResponse(
28 const RadioResponseInfo& info) {
29 rspInfo = info;
30 parent_ims.notify(info.serial);
31 return ndk::ScopedAStatus::ok();
32}
33
34ndk::ScopedAStatus RadioImsResponse::notifyImsTrafficResponse(const RadioResponseInfo& info) {
35 rspInfo = info;
36 parent_ims.notify(info.serial);
37 return ndk::ScopedAStatus::ok();
38}
39
40ndk::ScopedAStatus RadioImsResponse::performAcbCheckResponse(const RadioResponseInfo& info) {
41 rspInfo = info;
42 parent_ims.notify(info.serial);
43 return ndk::ScopedAStatus::ok();
44}
Hwayoung539e1f42021-12-22 08:23:46 +000045
46ndk::ScopedAStatus RadioImsResponse::setAnbrEnabledResponse(const RadioResponseInfo& info) {
47 rspInfo = info;
48 parent_ims.notify(info.serial);
49 return ndk::ScopedAStatus::ok();
50}
51
52ndk::ScopedAStatus RadioImsResponse::sendAnbrQueryResponse(const RadioResponseInfo& info) {
53 rspInfo = info;
54 parent_ims.notify(info.serial);
55 return ndk::ScopedAStatus::ok();
56}