Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 39) sorted by relevance

12

/hardware/google/pixel/pwrstats_util/
Dpwrstats_util.cpp50 Options opt = { in parseArgs() local
68 opt.humanReadable = true; in parseArgs()
72 opt.daemonMode = true; in parseArgs()
73 opt.filePath = std::string(optarg); in parseArgs()
85 return opt; in parseArgs()
88 static void snapshot(const Options& opt, const PowerStatsCollector& collector) { in snapshot() argument
95 if (opt.humanReadable) { in snapshot()
106 static void daemon(const Options& opt, const PowerStatsCollector& collector) { in daemon() argument
188 std::ofstream myfile(opt.filePath, std::ios::out | std::ios::binary); in daemon()
194 if (opt.humanReadable) { in daemon()
[all …]
/hardware/interfaces/radio/aidl/compat/libradiocompat/
Dcollections.h79 std::optional<decltype(toAidl(T{}.value()))> toAidl(const T& opt) { in toAidl() argument
80 if (opt.getDiscriminator() == T::hidl_discriminator::noinit) return std::nullopt;
81 return toAidl(opt.value());
90 std::variant<bool, decltype(toAidl(T{}.value()))> toAidlVariant(const T& opt) { in toAidlVariant() argument
91 if (opt.getDiscriminator() == T::hidl_discriminator::noinit) return false;
92 return toAidl(opt.value());
106 T toHidl(const std::optional<decltype(toAidl(T{}.value()))>& opt) { in toHidl() argument
108 if (opt.has_value()) hidl.value(toHidl(*opt));
/hardware/google/gfxstream/guest/mesa/src/util/
Dxmlconfig.c334 const driOptionDescription *opt = &configOptions[o]; in driParseOptionInfo() local
336 if (opt->info.type == DRI_SECTION) { in driParseOptionInfo()
346 const char *name = opt->info.name; in driParseOptionInfo()
353 assert(optinfo->type == opt->info.type); in driParseOptionInfo()
358 optinfo->type = opt->info.type; in driParseOptionInfo()
359 optinfo->range = opt->info.range; in driParseOptionInfo()
361 switch (opt->info.type) { in driParseOptionInfo()
363 optval->_bool = opt->value._bool; in driParseOptionInfo()
368 optval->_int = opt->value._int; in driParseOptionInfo()
372 optval->_float = opt->value._float; in driParseOptionInfo()
[all …]
Dos_misc.c181 const char *opt = getenv(name); in os_get_option() local
183 if (!opt) { in os_get_option()
184 opt = os_get_android_option(name); in os_get_option()
187 return opt; in os_get_option()
211 const char *opt = NULL; in os_get_option_cached() local
214 opt = os_get_option(name); in os_get_option_cached()
228 opt = entry->data; in os_get_option_cached()
236 opt = ralloc_strdup(options_tbl, os_get_option(name)); in os_get_option_cached()
237 _mesa_hash_table_insert(options_tbl, name_dup, (void *)opt); in os_get_option_cached()
240 return opt; in os_get_option_cached()
/hardware/google/gfxstream/host/
DRenderLibImpl.cpp112 bool RenderLibImpl::getOpt(RenderOpt* opt) { in getOpt() argument
119 opt->display = fb->getDisplay(); in getOpt()
120 opt->surface = fb->getWindowSurface(); in getOpt()
121 opt->config = fb->getConfig(); in getOpt()
123 return (opt->display && opt->surface && opt->config); in getOpt()
DRenderLibImpl.h57 virtual bool getOpt(RenderOpt* opt) override;
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Dminiopt.c66 t->opt = '\0'; in miniopt()
117 t->opt = p[1]; in miniopt()
125 if (strchr(t->flags, t->opt)) { in miniopt()
155 t->opt = '?'; in miniopt()
Ddhdu.c376 char *opt = *argv++; in dhd_option() local
380 "error: expected interface name after option %s\n", opt); in dhd_option()
629 if (!opts.good_int && opts.opt != 'd') { in dhd_pktgen()
635 switch (opts.opt) { in dhd_pktgen()
977 if (opts.opt == 'h') { in dhd_membytes()
979 } else if (opts.opt == 'r') { in dhd_membytes()
1746 if (opts.opt == 'a') { in dhd_download()
1764 } else if (!opts.opt) { in dhd_download()
1777 fprintf(stderr, "unrecognized option %c\n", opts.opt); in dhd_download()
1997 fprintf(stderr, "unrecognized option %c\n", opts.opt); in dhd_dldn()
[all …]
/hardware/interfaces/radio/aidl/compat/libradiocompat/data/
Dstructs.cpp214 static std::optional<aidl::PortRange> toAidl(const V1_6::MaybePort& opt) { in toAidl() argument
215 if (opt.getDiscriminator() == V1_6::MaybePort::hidl_discriminator::noinit) return std::nullopt; in toAidl()
216 return toAidl(opt.range()); // can't use MaybeX template - this field is not named "value" in toAidl()
265 static int8_t toAidl(const V1_6::OptionalSscMode& opt) { in toAidl() argument
266 if (opt.getDiscriminator() == V1_6::OptionalSscMode::hidl_discriminator::noinit) { in toAidl()
269 return static_cast<int8_t>(opt.value()); in toAidl()
272 static aidl::PdpProtocolType toAidl(const V1_6::OptionalPdpProtocolType& opt) { in toAidl() argument
274 if (opt.getDiscriminator() == discriminator::noinit) return aidl::PdpProtocolType::UNKNOWN; in toAidl()
275 return aidl::PdpProtocolType(opt.value()); in toAidl()
/hardware/google/gfxstream/third-party/renderdoc/include/
Drenderdoc_app.h225 typedef int(RENDERDOC_CC *pRENDERDOC_SetCaptureOptionU32)(RENDERDOC_CaptureOption opt, uint32_t val…
226 typedef int(RENDERDOC_CC *pRENDERDOC_SetCaptureOptionF32)(RENDERDOC_CaptureOption opt, float val);
231 typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetCaptureOptionU32)(RENDERDOC_CaptureOption opt);
236 typedef float(RENDERDOC_CC *pRENDERDOC_GetCaptureOptionF32)(RENDERDOC_CaptureOption opt);
/hardware/broadcom/wlan/bcmdhd/halutil/
DAndroid.mk28 frameworks/opt/net/wifi/libwifi_hal/include/wifi_hal \
29 frameworks/opt/net/wifi/libwifi_system_iface/include/wifi_system \
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/
DmakeSpec139 for opt in options:
140 if opt[:7] == 'OUTDIR=':
141 cleanopts.append(opt)
/hardware/libhardware/modules/radio/
Dradio_hal_tool.c194 int opt; in main() local
195 while ((opt = getopt(argc, argv, "lmt:")) != -1) { in main()
196 switch (opt) { in main()
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Dxmlconfig.cpp84 DRI_CONF_OPT_I(opt, 2, 0, 999, "option") in TEST_F()
95 DRI_CONF_OPT_F(opt, 2.0, 1.0, 2.0, "option") in TEST_F()
130 DRI_CONF_OPT_S(opt, value, "option") in TEST_F()
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dminiopt.h50 char opt; member
/hardware/google/apf/
Dapf_run.c284 int opt; in main() local
287 while ((opt = getopt_long_only(argc, argv, "ch", long_options, NULL)) != -1) { in main()
288 switch (opt) { in main()
/hardware/google/gfxstream/include/render-utils/
DRenderLib.h97 virtual bool getOpt(RenderOpt* opt) = 0;
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_AMD_shader_early_and_late_fragment_tests.adoc22 extension, allowing shaders to explicitly opt in to allowing both early
/hardware/qcom/sm8150/gps/android/2.1/location_api/
DBatchingAPIClient.cpp198 BatchingOptions opt = {}; in flushBatchedLocations() local
199 ::std::thread thd(&BatchingAPIClient::onBatchingCb, this, 0, nullptr, opt); in flushBatchedLocations()
/hardware/qcom/sm8150/gps/android/2.0/location_api/
DBatchingAPIClient.cpp198 BatchingOptions opt = {}; in flushBatchedLocations() local
199 ::std::thread thd(&BatchingAPIClient::onBatchingCb, this, 0, nullptr, opt); in flushBatchedLocations()
/hardware/qcom/sm7250/gps/android/2.1/location_api/
DBatchingAPIClient.cpp197 BatchingOptions opt = {}; in flushBatchedLocations() local
198 ::std::thread thd(&BatchingAPIClient::onBatchingCb, this, 0, nullptr, opt); in flushBatchedLocations()
/hardware/interfaces/radio/aidl/compat/libradiocompat/network/
Dstructs.cpp198 static std::optional<aidl::ClosedSubscriberGroupInfo> toAidl(const V1_5::OptionalCsgInfo& opt) { in toAidl() argument
200 if (opt.getDiscriminator() == descr::noinit) return std::nullopt; in toAidl()
201 return toAidl(opt.csgInfo()); in toAidl()
288 toAidl(const V1_5::BarringInfo::BarringTypeSpecificInfo& opt) { in toAidl() argument
290 if (opt.getDiscriminator() == discr::noinit) return std::nullopt; in toAidl()
292 const auto& info = opt.conditional(); in toAidl()
/hardware/synaptics/wlan/synadhd/wifi_hal/
DAndroid.bp25 from: "frameworks/opt/net/wifi/libwifi_hal/Android.bp",
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
DAndroid.bp25 from: "frameworks/opt/net/wifi/libwifi_hal/Android.bp",
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleHalManager.cpp189 for (auto opt : updatedOptions) { in subscribe() local
190 mHal->subscribe(opt.propId, opt.sampleRate); in subscribe()

12