1#!/usr/bin/env python3
2#
3# Copyright (C) 2019 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License"); you may not
6# use this file except in compliance with the License. You may obtain a copy of
7# 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, WITHOUT
13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14# License for the specific language governing permissions and limitations under
15# the License.
16"""This is a placeholder for all IXIT values in PTS
17    that matter to Fuchsia devices.
18"""
19
20A2DP_IXIT = {
21    b'TSPX_security_enabled': (b'BOOLEAN', b'FALSE'),
22    b'TSPX_bd_addr_iut': (b'OCTETSTRING', b'000000000000'),
23    b'TSPX_SRC_class_of_device': (b'OCTETSTRING', b'080418'),
24    b'TSPX_SNK_class_of_device': (b'OCTETSTRING', b'04041C'),
25    b'TSPX_pin_code': (b'IA5STRING', b'0000'),
26    b'TSPX_delete_link_key': (b'BOOLEAN', b'FALSE'),
27    b'TSPX_time_guard': (b'INTEGER', b'300000'),
28    b'TSPX_use_implicit_send': (b'BOOLEAN', b'TRUE'),
29    b'TSPX_media_directory':
30    (b'IA5STRING', b'C:\Program Files\Bluetooth SIG\Bluetooth PTS\\bin\\audio'),
31    b'TSPX_auth_password': (b'IA5STRING', b'0000'),
32    b'TSPX_auth_user_id': (b'IA5STRING', b'PTS'),
33    b'TSPX_rfcomm_channel': (b'INTEGER', b'8'),
34    b'TSPX_l2cap_psm': (b'OCTETSTRING', b'1011'),
35    b'TSPX_no_confirmations': (b'BOOLEAN', b'FALSE'),
36    b'TSPX_cover_art_uuid': (b'OCTETSTRING', b'3EEE'),
37}
38
39GATT_IXIT = {
40    b'TSPX_bd_addr_iut': (b'OCTETSTRING', b'000000000000'),
41    b'TSPX_iut_device_name_in_adv_packet_for_random_address': (b'IA5STRING', b'tbd'),
42    b'TSPX_security_enabled': (b'BOOLEAN', b'FALSE'),
43    b'TSPX_delete_link_key': (b'BOOLEAN', b'TRUE'),
44    b'TSPX_time_guard': (b'INTEGER', b'180000'),
45    b'TSPX_selected_handle': (b'OCTETSTRING', b'0012'),
46    b'TSPX_use_implicit_send': (b'BOOLEAN', b'TRUE'),
47    b'TSPX_secure_simple_pairing_pass_key_confirmation': (b'BOOLEAN', b'FALSE'),
48    b'TSPX_iut_use_dynamic_bd_addr': (b'BOOLEAN', b'FALSE'),
49    b'TSPX_iut_setup_att_over_br_edr': (b'BOOLEAN', b'FALSE'),
50    b'TSPX_tester_database_file': (b'IA5STRING', b'C:\Program Files\Bluetooth SIG\Bluetooth PTS\Data\SIGDatabase\GATT_Qualification_Test_Databases.xml'),
51    b'TSPX_iut_is_client_periphral': (b'BOOLEAN', b'FALSE'),
52    b'TSPX_iut_is_server_central': (b'BOOLEAN', b'FALSE'),
53    b'TSPX_mtu_size': (b'INTEGER', b'23'),
54    b'TSPX_pin_code':  (b'IA5STRING', b'0000'),
55    b'TSPX_use_dynamic_pin': (b'BOOLEAN', b'FALSE'),
56    b'TSPX_delete_ltk': (b'BOOLEAN', b'FALSE'),
57    b'TSPX_tester_appearance': (b'OCTETSTRING', b'0000'),
58}
59
60SDP_IXIT = {
61    b'TSPX_sdp_service_search_pattern': (b'IA5STRING', b'0100'),
62    b'TSPX_sdp_service_search_pattern_no_results': (b'IA5STRING', b'EEEE'),
63    b'TSPX_sdp_service_search_pattern_additional_protocol_descriptor_list': (b'IA5STRING', b''),
64    b'TSPX_sdp_service_search_pattern_bluetooth_profile_descriptor_list': (b'IA5STRING', b''),
65    b'TSPX_sdp_service_search_pattern_browse_group_list': (b'IA5STRING', b''),
66    b'TSPX_sdp_service_search_pattern_client_exe_url': (b'IA5STRING', b''),
67    b'TSPX_sdp_service_search_pattern_documentation_url': (b'IA5STRING', b''),
68    b'TSPX_sdp_service_search_pattern_icon_url': (b'IA5STRING', b''),
69    b'TSPX_sdp_service_search_pattern_language_base_attribute_id_list': (b'IA5STRING', b''),
70    b'TSPX_sdp_service_search_pattern_protocol_descriptor_list': (b'IA5STRING', b''),
71    b'TSPX_sdp_service_search_pattern_provider_name': (b'IA5STRING', b''),
72    b'TSPX_sdp_service_search_pattern_service_availability': (b'IA5STRING', b''),
73    b'TSPX_sdp_service_search_pattern_service_data_base_state': (b'IA5STRING', b'1000'),
74    b'TSPX_sdp_service_search_pattern_service_description': (b'IA5STRING', b''),
75    b'TSPX_sdp_service_search_pattern_service_id': (b'IA5STRING', b''),
76    b'TSPX_sdp_service_search_pattern_service_info_time_to_live': (b'IA5STRING', b''),
77    b'TSPX_sdp_service_search_pattern_version_number_list': (b'IA5STRING', b''),
78    b'TSPX_sdp_service_search_pattern_service_name': (b'IA5STRING', b''),
79    b'TSPX_sdp_service_search_pattern_service_record_state': (b'IA5STRING', b''),
80    b'TSPX_sdp_unsupported_attribute_id': (b'OCTETSTRING', b'EEEE'),
81    b'TSPX_security_enabled': (b'BOOLEAN', b'FALSE'),
82    b'TSPX_delete_link_key': (b'BOOLEAN', b'FALSE'),
83    b'TSPX_bd_addr_iut': (b'OCTETSTRING', b''),
84    b'TSPX_class_of_device_pts': (b'OCTETSTRING', b'200404'),
85    b'TSPX_class_of_device_test_pts_initiator': (b'BOOLEAN', b'TRUE'),
86    b'TSPX_limited_inquiry_used': (b'BOOLEAN', b'FALSE'),
87    b'TSPX_pin_code': (b'IA5STRING', b'0000'),
88    b'TSPX_time_guard': (b'INTEGER', b'200000'),
89    b'TSPX_device_search_time': (b'INTEGER', b'20'),
90    b'TSPX_use_implicit_send': (b'BOOLEAN', b'TRUE'),
91    b'TSPX_secure_simple_pairing_pass_key_confirmation': (b'BOOLEAN', b'FALSE'),
92}
93