Coverage for src / bluetooth_sig / gatt / services / generic_telephone_bearer.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-03 16:41 +0000

1"""GenericTelephoneBearer Service implementation.""" 

2 

3from __future__ import annotations 

4 

5from typing import ClassVar 

6 

7from ..characteristics.registry import CharacteristicName 

8from .base import BaseGattService 

9 

10 

11class GenericTelephoneBearerService(BaseGattService): 

12 """Generic Telephone Bearer Service implementation (0x184C). 

13 

14 A generic instance of the Telephone Bearer Service providing 

15 a standardised telephony interface. 

16 """ 

17 

18 service_characteristics: ClassVar[dict[CharacteristicName, bool]] = { 

19 CharacteristicName.BEARER_PROVIDER_NAME: True, 

20 CharacteristicName.BEARER_TECHNOLOGY: True, 

21 CharacteristicName.BEARER_UCI: True, 

22 CharacteristicName.BEARER_SIGNAL_STRENGTH: False, 

23 CharacteristicName.BEARER_SIGNAL_STRENGTH_REPORTING_INTERVAL: False, 

24 CharacteristicName.BEARER_URI_SCHEMES_SUPPORTED_LIST: True, 

25 CharacteristicName.BEARER_LIST_CURRENT_CALLS: True, 

26 CharacteristicName.CONTENT_CONTROL_ID: True, 

27 CharacteristicName.STATUS_FLAGS: True, 

28 CharacteristicName.CALL_CONTROL_POINT: True, 

29 CharacteristicName.CALL_STATE: True, 

30 CharacteristicName.CALL_FRIENDLY_NAME: False, 

31 CharacteristicName.INCOMING_CALL: True, 

32 CharacteristicName.INCOMING_CALL_TARGET_BEARER_URI: False, 

33 CharacteristicName.TERMINATION_REASON: True, 

34 }