החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מידע על המבנה של FlpDiagnosticInterface
#include <
fused_location.h
>
ממשק מורחב לתמיכה באבחון.
ההגדרה מופיעה בשורה
468
בקובץ
fused_location.h
.
הפונקציה פותחת את ממשק האבחון ומספקת את פונקציות ה-callback להטמעה של הממשק הזה.
ההגדרה מופיעה בשורה
476
בקובץ
fused_location.h
.
int(* inject_data)(char *data, int length)
|
הזרקת נתוני אבחון למערכת המשנה FLP. הפונקציה מחזירה 0 אם הפעולה בוצעה בהצלחה, ו--1 אם הייתה שגיאה.
ההגדרה מופיעה בשורה
482
בקובץ
fused_location.h
.
התיעוד של המבנה הזה נוצר מהקובץ הבא:
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Android Hardware Abstraction Layer: FlpDiagnosticInterface Struct Reference\n\nFlpDiagnosticInterface Struct Reference\n=======================================\n\n[Data Fields](#pub-attribs) \nFlpDiagnosticInterface 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_diagnostic_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| void(\\* | [init](/reference/hal/struct_flp_diagnostic_interface#a0a79fdf3fceb8a7e7e2cbe2641765529) )( [FlpDiagnosticCallbacks](/reference/hal/struct_flp_diagnostic_callbacks) \\*callbacks) |\n| ||\n| int(\\* | [inject_data](/reference/hal/struct_flp_diagnostic_interface#a05c32a5df98d304e274416fe24d3580a) )(char \\*data, int length) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nExtended interface for diagnostic support.\n\n\nDefinition at line\n[468](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| void(\\* init)( [FlpDiagnosticCallbacks](/reference/hal/struct_flp_diagnostic_callbacks) \\*callbacks) |\n\n\nOpens the diagnostic interface and provides the callback routines to the implemenation of this interface.\n\n\nDefinition at line\n[476](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| int(\\* inject_data)(char \\*data, int length) |\n\n\nInjects diagnostic data into the FLP subsystem. Return 0 on success, -1 on error.\n\n\nDefinition at line\n[482](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(FlpDiagnosticInterface)\n\n\nDefinition at line\n[470](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)"]]