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 - সেট করা থাকলে বাফার পূর্ণ হলে হার্ডওয়্যারটি AP কে জাগিয়ে তুলবে। যদি সেট না করা হয়, হার্ডওয়্যারটি প্রাচীনতম অবস্থান অবজেক্ট ড্রপ করবে।
FLP_BATCH_CALLBACK_ON_LOCATION_FIX - অবস্থান সেট করলে প্রতিবার লোকেশন ফিক্স হলে কলব্যাক কল করা হবে। এটি বন্ধ করার দায়িত্ব উপরের স্তরগুলির (কলার) যদি এটি জানে যে এপি ঘুমাতে পারে। যখন এই বিটটি একটি ব্যাচিং সেশনের মধ্যে চালু থাকে, তখন ব্যাচিং চালিয়ে যাওয়া উচিত যখন রিয়েল টাইমে অবস্থান সংশোধন করা হয়।
অন্যান্য পতাকাগুলিকে বিটওয়াইজ করা হবে বা ভবিষ্যতে করা হবে৷
fused_location.h ফাইলের 284 লাইনে সংজ্ঞা।
দ্বিগুণ সর্বোচ্চ_শক্তি_বরাদ্দ_mW |
mW-তে সর্বাধিক শক্তি যা অন্তর্নিহিত বাস্তবায়ন এই ব্যাচিং কলের জন্য ব্যবহার করতে পারে। যদি সর্বোচ্চ_শক্তি_বরাদ্দকরণ_mW 0 হয়, কেবলমাত্র বিদ্যুতের অতিরিক্ত খরচ ছাড়াই তৈরি করা সংশোধনগুলি রিপোর্ট করা হবে।
fused_location.h ফাইলের 265 লাইনে সংজ্ঞা।
ন্যানো সেকেন্ডে কোন অবস্থানের সাথে ফ্রিকোয়েন্সি ব্যাচ করা দরকার।
fused_location.h ফাইলের 290 লাইনে সংজ্ঞা।
ভাসমান ক্ষুদ্রতম_ স্থানচ্যুতি_মিটার |
মিটারে রিপোর্ট করা অবস্থানের মধ্যে ক্ষুদ্রতম স্থানচ্যুতি।
যদি 0 তে সেট করা হয়, তাহলে ডিভাইসটি স্থির থাকলেও আপনাকে অনুরোধ করা ব্যবধানে অবস্থানের প্রতিবেদন করা উচিত। যদি ইতিবাচক হয়, আপনি এই প্যারামিটারটি শক্তি সংরক্ষণের জন্য একটি ইঙ্গিত হিসাবে ব্যবহার করতে পারেন (যেমন থ্রোটলিং অবস্থানের সময়কাল যদি ব্যবহারকারী স্থানচ্যুতি থ্রেশহোল্ডের কাছাকাছি ভ্রমণ না করে থাকে)। এমনকি ছোট ইতিবাচক মানগুলিকে ব্যাখ্যা করা যেতে পারে যে ডিভাইসটি স্থির থাকলে আপনাকে অবস্থান গণনা করতে হবে না।
এই প্যারামিটারের উপর ভিত্তি করে অবস্থান ডেলিভারি ফিল্টার করার দরকার নেই। অনুরোধের চেয়ে ছোট স্থানচ্যুতি থাকলেও অবস্থানগুলি বিতরণ করা যেতে পারে। সম্ভাব্য শক্তি সঞ্চয়ের খরচে এই পরামিতিটি নিরাপদে উপেক্ষা করা যেতে পারে।
fused_location.h ফাইলের 307 লাইনে সংজ্ঞা।
এই কাঠামোর জন্য ডকুমেন্টেশন নিম্নলিখিত ফাইল থেকে তৈরি করা হয়েছিল:
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 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-29 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)"]]