2 * Copyright (C) 2016 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef WIFICOND_SCAN_STATS_H
18 #define WIFICOND_SCAN_STATS_H
22 #include <binder/Parcel.h>
23 #include <binder/Parcelable.h>
31 class NativeScanStats : public ::android::Parcelable {
34 NativeScanStats(uint32_t num_scans_requested_by_wifi,
35 uint32_t num_scans_serviced_by_wifi,
36 uint32_t subscription_duration_ms, uint32_t scan_duration_ms,
37 uint32_t num_channels_scanned,
38 std::vector<uint8_t> histogram_channels);
40 bool operator==(const NativeScanStats&) const;
41 ::android::status_t writeToParcel(::android::Parcel* parcel) const override;
42 ::android::status_t readFromParcel(const ::android::Parcel* parcel) override;
45 uint32_t num_scans_requested_by_wifi_;
46 uint32_t num_scans_serviced_by_wifi_;
47 uint32_t subscription_duration_ms_;
48 uint32_t scan_duration_ms_;
49 uint32_t num_channels_scanned_;
51 std::vector<uint8_t> histogram_channels_;
54 } // namespace wificond
57 } // namespace android
59 #endif // WIFICOND_SCAN_STATS_H