1 /* 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 22 namespace android { 23 namespace hardware { 24 namespace gnss { 25 namespace visibility_control { 26 namespace V1_0 { 27 namespace implementation { 28 29 // Methods from ::android::hardware::gnss::visibility_control::V1_0::IGnssVisibilityControl follow. enableNfwLocationAccess(const hidl_vec<hidl_string> & proxyApps)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 setCallback(const sp<V1_0::IGnssVisibilityControlCallback> &)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 58