blob: 99b8e347461c8f2b7131a0f9c05385cc217641c1 [file] [log] [blame]
Anil Admal4d739e72018-11-14 12:38:57 -08001/*
2 * Copyright (C) 2019 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 "GnssVisibilityControl"
18
19#include "GnssVisibilityControl.h"
20#include <log/log.h>
21
22namespace android {
23namespace hardware {
24namespace gnss {
25namespace visibility_control {
26namespace V1_0 {
27namespace implementation {
28
29// Methods from ::android::hardware::gnss::visibility_control::V1_0::IGnssVisibilityControl follow.
30Return<bool> GnssVisibilityControl::enableNfwLocationAccess(
31 const hidl_vec<hidl_string>& proxyApps) {
32 std::string os;
33 bool first = true;
34 for (const auto& proxyApp : proxyApps) {
35 if (first) {
36 first = false;
37 } else {
38 os += " ";
39 }
40
41 os += proxyApp;
42 }
43
44 ALOGD("enableNfwLocationAccess proxyApps: %s", os.c_str());
45 return true;
46}
47
48Return<bool> GnssVisibilityControl::setCallback(const sp<V1_0::IGnssVisibilityControlCallback>&) {
49 return true;
50}
51
52} // namespace implementation
53} // namespace V1_0
54} // namespace visibility_control
55} // namespace gnss
56} // namespace hardware
57} // namespace android