Coverage for src / bluetooth_sig / gatt / services / telephone_bearer.py: 100%
6 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
1"""TelephoneBearer Service implementation."""
3from __future__ import annotations
5from typing import ClassVar
7from ..characteristics.registry import CharacteristicName
8from .base import BaseGattService
11class TelephoneBearerService(BaseGattService):
12 """Telephone Bearer Service implementation (0x184B).
14 Provides telephony call control for a specific bearer including
15 call state, signal strength, and call management.
16 """
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_CONTROL_POINT_OPTIONAL_OPCODES: True,
30 CharacteristicName.CALL_STATE: True,
31 CharacteristicName.CALL_FRIENDLY_NAME: False,
32 CharacteristicName.INCOMING_CALL: True,
33 CharacteristicName.INCOMING_CALL_TARGET_BEARER_URI: False,
34 CharacteristicName.TERMINATION_REASON: True,
35 }