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 "GnssBatching"
18 
19 #include "GnssBatching.h"
20 
21 namespace android {
22 namespace hardware {
23 namespace gnss {
24 namespace V2_0 {
25 namespace implementation {
26 
27 sp<V2_0::IGnssBatchingCallback> GnssBatching::sCallback = nullptr;
28 
29 // Methods from ::android::hardware::gnss::V1_0::IGnssBatching follow.
init(const sp<V1_0::IGnssBatchingCallback> &)30 Return<bool> GnssBatching::init(const sp<V1_0::IGnssBatchingCallback>&) {
31     // TODO implement
32     return bool{};
33 }
34 
getBatchSize()35 Return<uint16_t> GnssBatching::getBatchSize() {
36     // TODO implement
37     return uint16_t{};
38 }
39 
start(const V1_0::IGnssBatching::Options &)40 Return<bool> GnssBatching::start(const V1_0::IGnssBatching::Options&) {
41     // TODO implement
42     return bool{};
43 }
44 
flush()45 Return<void> GnssBatching::flush() {
46     // TODO implement
47     return Void();
48 }
49 
stop()50 Return<bool> GnssBatching::stop() {
51     // TODO implement
52     return bool{};
53 }
54 
cleanup()55 Return<void> GnssBatching::cleanup() {
56     // TODO implement
57     return Void();
58 }
59 
60 // Methods from V2_0::IGnssBatching follow.
init_2_0(const sp<V2_0::IGnssBatchingCallback> & callback)61 Return<bool> GnssBatching::init_2_0(const sp<V2_0::IGnssBatchingCallback>& callback) {
62     sCallback = callback;
63     return true;
64 }
65 
66 }  // namespace implementation
67 }  // namespace V2_0
68 }  // namespace gnss
69 }  // namespace hardware
70 }  // namespace android
71