Home | History | Annotate | Download | only in default
      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 "AGnss"
     18 
     19 #include "AGnss.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 ::android::hardware::gnss::V2_0::IAGnss follow.
     29 Return<void> AGnss::setCallback(const sp<V2_0::IAGnssCallback>&) {
     30     // TODO implement
     31     return Void();
     32 }
     33 
     34 Return<bool> AGnss::dataConnClosed() {
     35     // TODO implement
     36     return bool{};
     37 }
     38 
     39 Return<bool> AGnss::dataConnFailed() {
     40     // TODO implement
     41     return bool{};
     42 }
     43 
     44 Return<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 
     51 Return<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
     61