1"""Constants for Triangle testing.""" 2 3# Internal import 4 5FLAG_TYPE = phenotype_utils.FlagTypes 6 7# Waiting time to trigger connection switching. 8WAITING_TIME_SEC = 60 9 10NEARBY_PACKAGE = 'com.google.android.gms.nearby' 11WEARABLE_PACKAGE = 'com.google.android.gms.wearable' 12 13SET_SCREEN_OFF_TIMEOUT_HALF_HOUR = ( 14 'settings put system screen_off_timeout 1800000') 15 16# Phenotype flags 17CONNECTION_SWITCHING_FLAGS = ( 18 { 19 'name': 'FastPairFeature__enable_triangle_audio_switch', 20 'type': FLAG_TYPE.BOOLEAN, 21 'value': 'true' 22 }, 23 { 24 'name': 'FastPairFeature__enable_wearable_service', 25 'type': FLAG_TYPE.BOOLEAN, 26 'value': 'true' 27 }, 28 { 29 'name': 'fast_pair_enable_api_for_wear_os', 30 'type': FLAG_TYPE.BOOLEAN, 31 'value': 'true' 32 }, 33 { 34 'name': 'FastPairFeature__enable_task_scheduler_service', 35 'type': FLAG_TYPE.BOOLEAN, 36 'value': 'true' 37 }, 38 { 39 'name': 'fast_pair_manual_connect_affect_duration_millis', 40 'type': FLAG_TYPE.LONG, 41 'value': '60000' 42 } 43) 44 45PHONE_PHENOTYPE_FLAGS = { 46 NEARBY_PACKAGE: 47 ( 48 { 49 'name': 'fast_pair_half_sheet_wear_os', 50 'type': FLAG_TYPE.BOOLEAN, 51 'value': 'true' 52 }, 53 { 54 'name': 'default_debug_mode_enabled', 55 'type': FLAG_TYPE.BOOLEAN, 56 'value': 'true' 57 } 58 ) + CONNECTION_SWITCHING_FLAGS 59 , 60 WEARABLE_PACKAGE: 61 ( 62 { 63 'name': 'enable_fast_pair_account_key_processing_for_phone', 64 'type': FLAG_TYPE.BOOLEAN, 65 'value': 'true' 66 }, 67 ) 68} 69 70WATCH_PHENOTYPE_FLAGS = { 71 NEARBY_PACKAGE: ( 72 { 73 'name': 'DiscovererFeature__support_wear_os', 74 'type': FLAG_TYPE.BOOLEAN, 75 'value': 'true' 76 }, 77 { 78 'name': 'fast_pair_enable_wear_os_fastpair_seeker', 79 'type': FLAG_TYPE.BOOLEAN, 80 'value': 'true' 81 }, 82 { 83 'name': 'default_device_notification_enabled', 84 'type': FLAG_TYPE.BOOLEAN, 85 'value': 'true' 86 }, 87 { 88 'name': 'fast_pair_enable_wearable_peripheral_api', 89 'type': FLAG_TYPE.BOOLEAN, 90 'value': 'true' 91 }, 92 { 93 'name': 'fast_pair_footprints_access_strategy', 94 'type': FLAG_TYPE.STRING, 95 'value': 'geller' 96 } 97 ) + CONNECTION_SWITCHING_FLAGS 98} 99