1 /*
2  * Copyright (C) 2018 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 #define LOG_TAG "AGnssRil"
18 
19 #include "AGnssRil.h"
20 #include <log/log.h>
21 
22 namespace android {
23 namespace hardware {
24 namespace gnss {
25 namespace V2_0 {
26 namespace implementation {
27 
28 // Methods from V1_0::IAGnssRil follow.
setCallback(const sp<V1_0::IAGnssRilCallback> &)29 Return<void> AGnssRil::setCallback(const sp<V1_0::IAGnssRilCallback>&) {
30     // TODO implement
31     return Void();
32 }
33 
setRefLocation(const V1_0::IAGnssRil::AGnssRefLocation &)34 Return<void> AGnssRil::setRefLocation(const V1_0::IAGnssRil::AGnssRefLocation&) {
35     // TODO implement
36     return Void();
37 }
38 
setSetId(V1_0::IAGnssRil::SetIDType,const hidl_string &)39 Return<bool> AGnssRil::setSetId(V1_0::IAGnssRil::SetIDType, const hidl_string&) {
40     // TODO implement
41     return bool{};
42 }
43 
updateNetworkState(bool,V1_0::IAGnssRil::NetworkType,bool)44 Return<bool> AGnssRil::updateNetworkState(bool, V1_0::IAGnssRil::NetworkType, bool) {
45     // TODO implement
46     return bool{};
47 }
48 
updateNetworkAvailability(bool,const hidl_string &)49 Return<bool> AGnssRil::updateNetworkAvailability(bool, const hidl_string&) {
50     // TODO implement
51     return bool{};
52 }
53 
54 // Methods from ::android::hardware::gnss::V2_0::IAGnssRil follow.
updateNetworkState_2_0(const V2_0::IAGnssRil::NetworkAttributes & attributes)55 Return<bool> AGnssRil::updateNetworkState_2_0(
56     const V2_0::IAGnssRil::NetworkAttributes& attributes) {
57     ALOGD("updateNetworkState_2_0 networkAttributes: %s", toString(attributes).c_str());
58     return true;
59 }
60 
61 }  // namespace implementation
62 }  // namespace V2_0
63 }  // namespace gnss
64 }  // namespace hardware
65 }  // namespace android
66