Home | History | Annotate | Download | only in test
      1 /*
      2  * Copyright (C) 2017 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 #ifndef OFFLOAD_HAL_TEST_CONSTANTS_
     18 #define OFFLOAD_HAL_TEST_CONSTANTS_
     19 
     20 #include <cstdint>
     21 
     22 #include "offload_utils.h"
     23 
     24 namespace android {
     25 namespace hardware {
     26 namespace wifi {
     27 namespace offload {
     28 namespace V1_0 {
     29 namespace implementation {
     30 namespace offload_hal_test_constants {
     31 
     32 extern const uint8_t kSsid1[];
     33 extern const size_t kSsid1_size;
     34 extern const uint8_t kSsid2[];
     35 extern const size_t kSsid2_size;
     36 extern const uint8_t kBssid[6];
     37 extern const int16_t kRssi;
     38 extern const int16_t kRssiThreshold;
     39 extern const uint32_t kFrequency1;
     40 extern const uint32_t kFrequency2;
     41 extern const uint8_t kBssidSize;
     42 extern const uint64_t kTsf;
     43 extern const uint16_t kCapability;
     44 extern const uint8_t kNetworkFlags;
     45 extern const uint32_t kDisconnectedModeScanIntervalMs;
     46 extern const uint64_t kSubscriptionDurationMs;
     47 extern const uint64_t kScanDurationMs[2];
     48 extern const uint32_t kNumChannelsScanned[];
     49 extern const uint8_t kChannelNotScanned;
     50 extern const uint32_t kDefaultNumScansRequestedByWifi;
     51 extern const uint32_t kDefaultNumScansServicedByWifi;
     52 extern const uint64_t kScanDurationTotalMs;
     53 extern const uint32_t kNumChannelsTotalScanned;
     54 extern const uint32_t kNumChannelsInHistogram;
     55 extern const uint64_t kDeathCode;
     56 extern const uint8_t kTestChannels[];
     57 extern const uint32_t kNumTimesChannelScanned[];
     58 extern const uint32_t kSystemStartTime;
     59 extern const uint32_t kIncrementBetweenEvents;
     60 extern const size_t kRecordLength;
     61 extern const size_t kInvalidRecordLength;
     62 extern const wifi_offload::RpcLogRecord::RpcLogRecordType kChreRecordTypeList[];
     63 extern const wifi_offload::RpcLogRecord::RpcLogRecordType kInvalidChreRecordTypeLog[];
     64 extern const android::hardware::wifi::offload::V1_0::RecordName kHidlRecordNameList[];
     65 
     66 }  // namespace offload_hal_test_constants
     67 }  // namespace implementation
     68 }  // namespace V1_0
     69 }  // namespace offload
     70 }  // namespace wifi
     71 }  // namespace hardware
     72 }  // namespace android
     73 
     74 #endif  // OFFLOAD_HAL_TEST_CONSTANTS_
     75