हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
FlpBatchOptions स्ट्रक्चर का रेफ़रंस
#include <
fused_location.h
>
एक साथ कई फ़ाइलें अपलोड करने के लिए FLP API के विकल्प
परिभाषा,
fused_location.h
की फ़ाइल के
258
पंक्ति पर दी गई है.
FLP_BATCH_WAKEUP_ON_FIFO_FULL - अगर यह सेट है, तो बफ़र भर जाने पर हार्डवेयर, एपी को चालू कर देगा. अगर यह सेट नहीं किया जाता है, तो हार्डवेयर सबसे पुराने जगह की जानकारी वाले ऑब्जेक्ट को हटा देगा.
FLP_BATCH_CALLBACK_ON_LOCATION_FIX - अगर यह सेट किया जाता है, तो जगह की जानकारी अपडेट होने पर हर बार जगह की जानकारी का कॉलबैक किया जाएगा. अगर ऊपरी लेयर (कॉल करने वाले) को पता है कि एपी स्लीप मोड में जा सकता है, तो उसे बंद करना उसकी ज़िम्मेदारी है. अगर बैचिंग सेशन के दौरान यह विकल्प चालू है, तो रीयल टाइम में जगह की जानकारी ठीक होने की रिपोर्ट मिलने के दौरान, बैचिंग जारी रहनी चाहिए.
आने वाले समय में, अन्य फ़्लैग को बिटवाइज़ OR किया जाएगा.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
284
पर दी गई है.
double max_power_allocation_mW
|
mW में ज़्यादा से ज़्यादा वह पावर जिसका इस्तेमाल, बैचिंग कॉल के लिए किया जा सकता है. अगर max_power_allocation_mW 0 है, तो सिर्फ़ वे सुधार रिपोर्ट किए जाएंगे जो बिना किसी अतिरिक्त लागत के जनरेट किए गए हैं.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
265
पर दी गई है.
जगह की जानकारी को कितने नैनो सेकंड में एक साथ भेजना है.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
290
पर दी गई है.
float smallest_displacement_meters
|
रिपोर्ट की गई जगहों के बीच की सबसे कम दूरी, मीटर में.
अगर इसे 0 पर सेट किया जाता है, तो आपको डिवाइस के स्थिर होने पर भी, अनुरोध किए गए इंटरवल पर जगह की जानकारी की रिपोर्ट देनी चाहिए. अगर यह वैल्यू 'सही' है, तो इस पैरामीटर का इस्तेमाल, बैटरी बचाने के लिए एक हिंट के तौर पर किया जा सकता है. उदाहरण के लिए, अगर उपयोगकर्ता ने डिसप्लेसमेंट थ्रेशोल्ड के करीब यात्रा नहीं की है, तो जगह की जानकारी ट्रैक करने की अवधि को कम करना. छोटी पॉज़िटिव वैल्यू का मतलब यह भी हो सकता है कि डिवाइस के एक जगह पर होने पर, आपको जगह की जानकारी का हिसाब नहीं लगाना पड़ेगा.
इस पैरामीटर के आधार पर, डिलीवरी की जगह को फ़िल्टर करने की ज़रूरत नहीं है. जगहों की जानकारी तब भी डिलीवर की जा सकती है, जब वे अनुरोध की गई जगह से कम दूरी पर हों. इस पैरामीटर को अनदेखा किया जा सकता है. हालांकि, इससे बिजली की बचत नहीं हो पाएगी.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
307
पर दी गई है.
इस्तेमाल करने के लिए, FLP_TECH_MASKS का बिटवाइज़ OR
परिभाषा, फ़ाइल
fused_location.h
की लाइन
268
पर दी गई है.
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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: FlpBatchOptions Struct Reference\n\nFlpBatchOptions Struct Reference\n================================\n\n[Data Fields](#pub-attribs) \nFlpBatchOptions 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| double | [max_power_allocation_mW](/reference/hal/struct_flp_batch_options#ae300330f3b7cb10809a7e67735e02410) |\n| ||\n| uint32_t | [sources_to_use](/reference/hal/struct_flp_batch_options#a352dd652f7b9c6033433ad53089fe281) |\n| ||\n| uint32_t | [flags](/reference/hal/struct_flp_batch_options#a773b39d480759f67926cb18ae2219281) |\n| ||\n| int64_t | [period_ns](/reference/hal/struct_flp_batch_options#a9d1968cb4382e5653d8d5a31c8a2ee6b) |\n| ||\n| float | [smallest_displacement_meters](/reference/hal/struct_flp_batch_options#a1b30671f2f5bdad79f87fdd30f6bb8a8) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nOptions with the batching FLP APIs\n\n\nDefinition at line\n[258](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| uint32_t flags |\n\n\nFLP_BATCH_WAKEUP_ON_FIFO_FULL - If set the hardware will wake up the AP when the buffer is full. If not set, the hardware will drop the oldest location object.\n\n\nFLP_BATCH_CALLBACK_ON_LOCATION_FIX - If set the location callback will be called every time there is a location fix. Its the responsibility of the upper layers (caller) to switch it off, if it knows that the AP might go to sleep. When this bit is on amidst a batching session, batching should continue while location fixes are reported in real time.\n\n\nOther flags to be bitwised ORed in the future.\n\n\nDefinition at line\n[284](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| double max_power_allocation_mW |\n\n\nMaximum power in mW that the underlying implementation can use for this batching call. If max_power_allocation_mW is 0, only fixes that are generated at no additional cost of power shall be reported.\n\n\nDefinition at line\n[265](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| int64_t period_ns |\n\n\nFrequency with which location needs to be batched in nano seconds.\n\n\nDefinition at line\n[290](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| float smallest_displacement_meters |\n\n\nThe smallest displacement between reported locations in meters.\n\n\nIf set to 0, then you should report locations at the requested interval even if the device is stationary. If positive, you can use this parameter as a hint to save power (e.g. throttling location period if the user hasn't traveled close to the displacement threshold). Even small positive values can be interpreted to mean that you don't have to compute location when the device is stationary.\n\n\nThere is no need to filter location delivery based on this parameter. Locations can be delivered even if they have a displacement smaller than requested. This parameter can safely be ignored at the cost of potential power savings.\n\n\nDefinition at line\n[307](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| uint32_t sources_to_use |\n\n\nBitwise OR of the FLP_TECH_MASKS to use\n\n\nDefinition at line\n[268](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)"]]