• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python3
2#
3#   Copyright 2016 - Google
4#
5#   Licensed under the Apache License, Version 2.0 (the "License");
6#   you may not use this file except in compliance with the License.
7#   You may obtain a copy of the License at
8#
9#       http://www.apache.org/licenses/LICENSE-2.0
10#
11#   Unless required by applicable law or agreed to in writing, software
12#   distributed under the License is distributed on an "AS IS" BASIS,
13#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14#   See the License for the specific language governing permissions and
15#   limitations under the License.
16
17# Constants for Wifi related events.
18WIFI_CONNECTED = "WifiNetworkConnected"
19WIFI_DISCONNECTED = "WifiNetworkDisconnected"
20SUPPLICANT_CON_CHANGED = "SupplicantConnectionChanged"
21WIFI_STATE_CHANGED = "WifiStateChanged"
22WIFI_FORGET_NW_SUCCESS = "WifiManagerForgetNetworkOnSuccess"
23WIFI_NETWORK_REQUEST_MATCH_CB_ON_MATCH = "WifiManagerNetworkRequestMatchCallbackOnMatch"
24WIFI_NETWORK_REQUEST_MATCH_CB_ON_CONNECT_SUCCESS = "WifiManagerNetworkRequestMatchCallbackOnUserSelectionConnectSuccess"
25WIFI_NETWORK_REQUEST_MATCH_CB_ON_CONNECT_FAILURE = "WifiManagerNetworkRequestMatchCallbackOnUserSelectionConnectFailure"
26WIFI_NETWORK_CB_ON_AVAILABLE = "WifiManagerNetworkCallbackOnAvailable"
27WIFI_NETWORK_CB_ON_UNAVAILABLE = "WifiManagerNetworkCallbackOnUnavailable"
28WIFI_NETWORK_CB_ON_LOST = "WifiManagerNetworkCallbackOnLost"
29WIFI_NETWORK_SUGGESTION_POST_CONNECTION = "WifiNetworkSuggestionPostConnection"
30
31# These constants will be used by the ACTS wifi tests.
32CONNECT_BY_CONFIG_SUCCESS = 'WifiManagerConnectByConfigOnSuccess'
33CONNECT_BY_NETID_SUCCESS = 'WifiManagerConnectByNetIdOnSuccess'
34
35# AP related constants
36AP_MAIN = "main_AP"
37AP_AUX = "aux_AP"
38SSID = "SSID"
39
40# cnss_diag property related constants
41DEVICES_USING_LEGACY_PROP = ["sailfish", "marlin", "walleye", "taimen", "muskie"]
42CNSS_DIAG_PROP = "persist.vendor.sys.cnss.diag_txt"
43LEGACY_CNSS_DIAG_PROP = "persist.sys.cnss.diag_txt"
44
45# Delay before registering the match callback.
46NETWORK_REQUEST_CB_REGISTER_DELAY_SEC = 2
47