blob: d56cdfb33f832f04718ba1942910e59aa024d7b7 [file] [log] [blame]
Anil Admal704bc612019-03-21 18:45:30 +00001/*
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
21namespace android {
22namespace hardware {
23namespace gnss {
24namespace V2_0 {
25namespace implementation {
26
27sp<V2_0::IGnssBatchingCallback> GnssBatching::sCallback = nullptr;
28
29// Methods from ::android::hardware::gnss::V1_0::IGnssBatching follow.
30Return<bool> GnssBatching::init(const sp<V1_0::IGnssBatchingCallback>&) {
31 // TODO implement
32 return bool{};
33}
34
35Return<uint16_t> GnssBatching::getBatchSize() {
36 // TODO implement
37 return uint16_t{};
38}
39
40Return<bool> GnssBatching::start(const V1_0::IGnssBatching::Options&) {
41 // TODO implement
42 return bool{};
43}
44
45Return<void> GnssBatching::flush() {
46 // TODO implement
47 return Void();
48}
49
50Return<bool> GnssBatching::stop() {
51 // TODO implement
52 return bool{};
53}
54
55Return<void> GnssBatching::cleanup() {
56 // TODO implement
57 return Void();
58}
59
60// Methods from V2_0::IGnssBatching follow.
61Return<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