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.
Tài liệu tham khảo về cấu trúc FlpDeviceContextInterface
#include <
fused_location.h
>
Giao diện mở rộng để hỗ trợ ngữ cảnh thiết bị.
Định nghĩa tại dòng
507
của tệp
fused_location.h
.
int(* inject_device_context)(uint32_t enabledMask)
|
Chèn dữ liệu gỡ lỗi vào hệ thống con FLP. Trả về 0 nếu thành công, -1 nếu gặp lỗi.
Định nghĩa tại dòng
515
của tệp
fused_location.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: FlpDeviceContextInterface Struct Reference\n\nFlpDeviceContextInterface Struct Reference\n==========================================\n\n[Data Fields](#pub-attribs) \nFlpDeviceContextInterface Struct Reference \n\n`\n#include \u003c\n`[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)`\n\u003e\n`\n\n|--------|---------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/struct_flp_device_context_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| int(\\* | [inject_device_context](/reference/hal/struct_flp_device_context_interface#a774313ab08b82cf8e7c98c923ff962c6) )(uint32_t enabledMask) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nExtended interface for device context support.\n\n\nDefinition at line\n[507](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------|\n| int(\\* inject_device_context)(uint32_t enabledMask) |\n\n\nInjects debug data into the FLP subsystem. Return 0 on success, -1 on error.\n\n\nDefinition at line\n[515](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to sizeof(FlpDeviceContextInterface)\n\n\nDefinition at line\n[509](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)"]]