Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tham chiếu cấu trúc bluetooth_device_t
#include <
bluetooth.h
>
VIỆC CẦN LÀM: Cần thêm API để Khám phá dịch vụ, Uỷ quyền dịch vụ và quản lý kết nối. Ngoài ra, bạn cũng cần thêm API để định cấu hình các thuộc tính của thiết bị liên kết từ xa, chẳng hạn như tên, UUID, v.v.
Định nghĩa tại dòng
599
của tệp
bluetooth.h
.
Tài liệu cho cấu trúc này được tạo từ tệp sau:
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# Android Hardware Abstraction Layer: bluetooth_device_t Struct Reference\n\nbluetooth_device_t Struct Reference\n===================================\n\n[Data Fields](#pub-attribs) \nbluetooth_device_t Struct Reference \n\n`\n#include \u003c\n`[bluetooth.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h)`\n\u003e\n`\n\n|---------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| struct [hw_device_t](/reference/hal/structhw__device__t) | [common](/reference/hal/structbluetooth__device__t#a86a0ca82dd3f02023e259b8b5e155dbe) |\n| ||\n| const [bt_interface_t](/reference/hal/structbt__interface__t) \\*(\\* | [get_bluetooth_interface](/reference/hal/structbluetooth__device__t#a1858c251d0584ee2ca6dc30b5938c570) )() |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nTODO: Need to add APIs for Service Discovery, Service authorization and connection management. Also need to add APIs for configuring properties of remote bonded devices such as name, UUID etc.\n\n\nDefinition at line\n[599](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h)\nof file\n[bluetooth.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------|\n| struct [hw_device_t](/reference/hal/structhw__device__t) common |\n\n\nDefinition at line\n[600](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h)\nof file\n[bluetooth.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h)\n.\n\n|------------------------------------------------------------------------------------------------|\n| const [bt_interface_t](/reference/hal/structbt__interface__t) \\*(\\* get_bluetooth_interface)() |\n\n\nDefinition at line\n[601](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h)\nof file\n[bluetooth.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bluetooth.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h)"]]