• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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_network_utils.h"
18 
RadioNetworkIndication(RadioServiceTest & parent)19 RadioNetworkIndication::RadioNetworkIndication(RadioServiceTest& parent) : parent_network(parent) {}
20 
barringInfoChanged(RadioIndicationType,const CellIdentity &,const std::vector<BarringInfo> &)21 ndk::ScopedAStatus RadioNetworkIndication::barringInfoChanged(
22         RadioIndicationType /*type*/, const CellIdentity& /*cellIdentity*/,
23         const std::vector<BarringInfo>& /*barringInfos*/) {
24     return ndk::ScopedAStatus::ok();
25 }
26 
cdmaPrlChanged(RadioIndicationType,int32_t)27 ndk::ScopedAStatus RadioNetworkIndication::cdmaPrlChanged(RadioIndicationType /*type*/,
28                                                           int32_t /*version*/) {
29     return ndk::ScopedAStatus::ok();
30 }
31 
cellInfoList(RadioIndicationType,const std::vector<CellInfo> &)32 ndk::ScopedAStatus RadioNetworkIndication::cellInfoList(RadioIndicationType /*type*/,
33                                                         const std::vector<CellInfo>& /*records*/) {
34     return ndk::ScopedAStatus::ok();
35 }
36 
currentLinkCapacityEstimate(RadioIndicationType,const LinkCapacityEstimate &)37 ndk::ScopedAStatus RadioNetworkIndication::currentLinkCapacityEstimate(
38         RadioIndicationType /*type*/, const LinkCapacityEstimate& /*lce*/) {
39     return ndk::ScopedAStatus::ok();
40 }
41 
currentPhysicalChannelConfigs(RadioIndicationType,const std::vector<PhysicalChannelConfig> &)42 ndk::ScopedAStatus RadioNetworkIndication::currentPhysicalChannelConfigs(
43         RadioIndicationType /*type*/, const std::vector<PhysicalChannelConfig>& /*configs*/) {
44     return ndk::ScopedAStatus::ok();
45 }
46 
currentSignalStrength(RadioIndicationType,const SignalStrength &)47 ndk::ScopedAStatus RadioNetworkIndication::currentSignalStrength(
48         RadioIndicationType /*type*/, const SignalStrength& /*signalStrength*/) {
49     return ndk::ScopedAStatus::ok();
50 }
51 
imsNetworkStateChanged(RadioIndicationType)52 ndk::ScopedAStatus RadioNetworkIndication::imsNetworkStateChanged(RadioIndicationType /*type*/) {
53     return ndk::ScopedAStatus::ok();
54 }
55 
networkScanResult(RadioIndicationType,const NetworkScanResult &)56 ndk::ScopedAStatus RadioNetworkIndication::networkScanResult(RadioIndicationType /*type*/,
57                                                              const NetworkScanResult& /*result*/) {
58     return ndk::ScopedAStatus::ok();
59 }
60 
networkStateChanged(RadioIndicationType)61 ndk::ScopedAStatus RadioNetworkIndication::networkStateChanged(RadioIndicationType /*type*/) {
62     return ndk::ScopedAStatus::ok();
63 }
64 
nitzTimeReceived(RadioIndicationType,const std::string &,int64_t,int64_t)65 ndk::ScopedAStatus RadioNetworkIndication::nitzTimeReceived(RadioIndicationType /*type*/,
66                                                             const std::string& /*nitzTime*/,
67                                                             int64_t /*receivedTime*/,
68                                                             int64_t /*age*/) {
69     return ndk::ScopedAStatus::ok();
70 }
71 
registrationFailed(RadioIndicationType,const CellIdentity &,const std::string &,int32_t,int32_t,int32_t)72 ndk::ScopedAStatus RadioNetworkIndication::registrationFailed(RadioIndicationType /*type*/,
73                                                               const CellIdentity& /*cellIdentity*/,
74                                                               const std::string& /*chosenPlmn*/,
75                                                               int32_t /*domain*/,
76                                                               int32_t /*causeCode*/,
77                                                               int32_t /*additionalCauseCode*/) {
78     return ndk::ScopedAStatus::ok();
79 }
80 
restrictedStateChanged(RadioIndicationType,PhoneRestrictedState)81 ndk::ScopedAStatus RadioNetworkIndication::restrictedStateChanged(RadioIndicationType /*type*/,
82                                                                   PhoneRestrictedState /*state*/) {
83     return ndk::ScopedAStatus::ok();
84 }
85 
suppSvcNotify(RadioIndicationType,const SuppSvcNotification &)86 ndk::ScopedAStatus RadioNetworkIndication::suppSvcNotify(RadioIndicationType /*type*/,
87                                                          const SuppSvcNotification& /*suppSvc*/) {
88     return ndk::ScopedAStatus::ok();
89 }
90 
voiceRadioTechChanged(RadioIndicationType,RadioTechnology)91 ndk::ScopedAStatus RadioNetworkIndication::voiceRadioTechChanged(RadioIndicationType /*type*/,
92                                                                  RadioTechnology /*rat*/) {
93     return ndk::ScopedAStatus::ok();
94 }
95 
emergencyNetworkScanResult(RadioIndicationType,const EmergencyRegResult &)96 ndk::ScopedAStatus RadioNetworkIndication::emergencyNetworkScanResult(
97         RadioIndicationType /*type*/, const EmergencyRegResult& /*result*/) {
98     return ndk::ScopedAStatus::ok();
99 }
100 
cellularIdentifierDisclosed(RadioIndicationType,const CellularIdentifierDisclosure &)101 ndk::ScopedAStatus RadioNetworkIndication::cellularIdentifierDisclosed(
102         RadioIndicationType /*type*/,
103         const CellularIdentifierDisclosure& /*disclosures*/) {
104     return ndk::ScopedAStatus::ok();
105 }
106 
securityAlgorithmsUpdated(RadioIndicationType,const SecurityAlgorithmUpdate &)107 ndk::ScopedAStatus RadioNetworkIndication::securityAlgorithmsUpdated(
108         RadioIndicationType /*type*/, const SecurityAlgorithmUpdate& /*securityAlgorithmUpdate*/) {
109     return ndk::ScopedAStatus::ok();
110 }
111