blob: c8e8bf17ad1a702f58db25e5cc3e542fb78d0ebf [file] [log] [blame]
Anil Admal3a405c52018-11-14 09:35:14 -08001/*
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 "AGnss"
18
19#include "AGnss.h"
20#include <log/log.h>
21
22namespace android {
23namespace hardware {
24namespace gnss {
25namespace V2_0 {
26namespace implementation {
27
28// Methods from ::android::hardware::gnss::V2_0::IAGnss follow.
29Return<void> AGnss::setCallback(const sp<V2_0::IAGnssCallback>&) {
30 // TODO implement
31 return Void();
32}
33
34Return<bool> AGnss::dataConnClosed() {
35 // TODO implement
36 return bool{};
37}
38
39Return<bool> AGnss::dataConnFailed() {
40 // TODO implement
41 return bool{};
42}
43
44Return<bool> AGnss::setServer(V2_0::IAGnssCallback::AGnssType type, const hidl_string& hostname,
45 int32_t port) {
46 ALOGD("setServer: type: %s, hostname: %s, port: %d", toString(type).c_str(), hostname.c_str(),
47 port);
48 return true;
49}
50
51Return<bool> AGnss::dataConnOpen(uint64_t, const hidl_string&, V2_0::IAGnss::ApnIpType) {
52 // TODO implement
53 return bool{};
54}
55
56} // namespace implementation
57} // namespace V2_0
58} // namespace gnss
59} // namespace hardware
60} // namespace android