offload_hal_test_constants.cpp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #include "offload_hal_test_constants.h"
  17. namespace android {
  18. namespace wificond {
  19. namespace offload_hal_test_constants {
  20. const uint8_t kSsid1[] = {'G', 'o', 'o', 'g', 'l', 'e'};
  21. const size_t kSsid1_size = sizeof(kSsid1);
  22. const uint8_t kSsid2[] = {'X', 'f', 'i', 'n', 'i', 't', 'y'};
  23. const size_t kSsid2_size = sizeof(kSsid2);
  24. const uint8_t kBssid[6] = {0x12, 0xef, 0xa1, 0x2c, 0x97, 0x8b};
  25. const int16_t kRssi = -60;
  26. const int16_t kRssiThreshold = -76;
  27. const uint32_t kFrequency1 = 2412;
  28. const uint32_t kFrequency2 = 2437;
  29. const uint8_t kBssidSize = 6;
  30. const uint64_t kTsf = 0;
  31. const uint16_t kCapability = 0;
  32. const uint8_t kNetworkFlags = 0;
  33. const uint32_t kDisconnectedModeScanIntervalMs = 5000;
  34. const uint64_t kSubscriptionDurationMs = 10000;
  35. const uint64_t kScanDurationMs[2] = {2000, 500};
  36. const uint32_t kNumChannelsScanned[2] = {14, 6};
  37. const uint8_t kDefaultNumTimesAChannelsIsScanned = 1;
  38. const uint8_t kChannelNotScanned = 0;
  39. const uint32_t kDefaultNumScansRequestedByWifi = 2;
  40. const uint32_t kDefaultNumScansServicedByWifi = 2;
  41. const uint64_t kScanDurationTotalMs = 2000;
  42. const uint32_t kNumChannelsTotalScanned = 20;
  43. const uint32_t kNumChannelsInHistogram = 256;
  44. const uint64_t kDeathCode = 0xBEEF;
  45. } // namespace offload_hal_test_constants
  46. } // namespace wificond
  47. } // namespace android