2026년부터 트렁크 안정 개발 모델과 일치하고 생태계의 플랫폼 안정성을 보장하기 위해 2분기와 4분기에 AOSP에 소스 코드를 게시합니다. AOSP를 빌드하고 기여하려면 aosp-main 대신 android-latest-release를 사용하는 것이 좋습니다. android-latest-release 매니페스트 브랜치는 항상 AOSP에 푸시된 최신 버전을 참조합니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
bthf_interface_t 구조체 참조
#include <
bt_hf.h
>
|
|
|
size_t
|
크기
|
|
|
|
bt_status_t
(*
|
init
)(
bthf_callbacks_t
*callbacks, int max_hf_clients)
|
|
|
|
bt_status_t
(*
|
connect
)(bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
disconnect
)(bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
connect_audio
)(bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
disconnect_audio
)(bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
start_voice_recognition
)(bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
stop_voice_recognition
)(bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
volume_control
)(
bthf_volume_type_t
type, int volume, bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
device_status_notification
)(
bthf_network_state_t
ntk_state,
bthf_service_type_t
svc_type, int signal, int batt_chg)
|
|
|
|
bt_status_t
(*
|
cops_response
)(const char *cops, bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
cind_response
)(int svc, int num_active, int num_held,
bthf_call_state_t
call_setup_state, int signal, int roam, int batt_chg, bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
formatted_at_response
)(const char *rsp, bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
at_response
)(
bthf_at_response_t
response_code, int error_code, bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
clcc_response
)(int index,
bthf_call_direction_t
dir,
bthf_call_state_t
state,
bthf_call_mode_t
mode,
bthf_call_mpty_type_t
mpty, const char *number,
bthf_call_addrtype_t
type, bt_bdaddr_t *bd_addr)
|
|
|
|
bt_status_t
(*
|
phone_state_change
)(int num_active, int num_held,
bthf_call_state_t
call_setup_state, const char *number,
bthf_call_addrtype_t
type)
|
|
|
|
void(*
|
cleanup
)(void)
|
|
|
|
bt_status_t
(*
|
configure_wbs
)(bt_bdaddr_t *bd_addr,
bthf_wbs_config_t
config)
|
|
|
표준 BT-HF 인터페이스를 나타냅니다.
bt_hf.h
파일의
223
번 째 줄에 정의되어 있습니다.
괜찮음/오류 응답 ERROR (0) OK (1)
bt_hf.h
파일의
271
행에 정의되어 있습니다.
|
bt_status_t
(* cind_response)(int svc, int num_active, int num_held,
bthf_call_state_t
call_setup_state, int signal, int roam, int batt_chg, bt_bdaddr_t *bd_addr)
|
CLCC 명령어의 응답입니다. 각 호출 색인에 대해 반복적으로 호출할 수 있습니다. 호출 색인이 0이면 NULL 종료로 처리됩니다 (응답 완료).
bt_hf.h
FILE의
277
라인에 정의되어 있습니다.
|
bt_status_t
(* cops_response)(const char *cops, bt_bdaddr_t *bd_addr)
|
|
bt_status_t
(* formatted_at_response)(const char *rsp, bt_bdaddr_t *bd_addr)
|
사전 형식이 지정된 AT 응답(일반적으로 알 수 없는 AT cmd에 대한 응답)
bt_hf.h
FILE의
265
라인에 정의되어 있습니다.
통화 상태 변경 알림 각 업데이트는
-
진행 중인/보류 중인/벨이 울리는 통화 수
-
call_state: 이 메시지를 트리거한 상태 변경을 나타냅니다. BtHfCallState의 값 중 하나를 사용합니다.
-
번호 및 유형: 수신 및 대기 중인 통화에만 유효함
bt_hf.h
FILE의
289
라인에 정의가 있습니다.
sizeof(BtHfInterface)로 설정
bt_hf.h
파일의
226
번 줄에 정의되어 있습니다.
|
bt_status_t
(* start_voice_recognition)(bt_bdaddr_t *bd_addr)
|
|
bt_status_t
(* stop_voice_recognition)(bt_bdaddr_t *bd_addr)
|
이 구조체에 관한 문서는 다음 파일에서 생성되었습니다.
-
hardware/libhardware/include/hardware/
bt_hf.h
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[null,null,["최종 업데이트: 2025-07-27(UTC)"],[],[]]