Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 154) sorted by relevance

1234567

/hardware/nxp/nfc/halimpl/log/
DphNxpLog.cc57 unsigned long num = 0; in phNxpLog_SetGlobalLogLevel() local
63 sscanf(valueStr, "%lu", &num); in phNxpLog_SetGlobalLogLevel()
64 level = (unsigned char)num; in phNxpLog_SetGlobalLogLevel()
80 unsigned long num = 0; in phNxpLog_SetHALLogLevel() local
84 if (GetNxpNumValue(NAME_NXPLOG_HAL_LOGLEVEL, &num, sizeof(num))) { in phNxpLog_SetHALLogLevel()
86 (level > (unsigned char)num) ? level : (unsigned char)num; in phNxpLog_SetHALLogLevel()
93 sscanf(valueStr, "%lu", &num); in phNxpLog_SetHALLogLevel()
94 gLog_level.hal_log_level = (unsigned char)num; in phNxpLog_SetHALLogLevel()
108 unsigned long num = 0; in phNxpLog_SetExtnsLogLevel() local
111 if (GetNxpNumValue(NAME_NXPLOG_EXTNS_LOGLEVEL, &num, sizeof(num))) { in phNxpLog_SetExtnsLogLevel()
[all …]
/hardware/st/nfc/1.2/
Dhal_st21nfc.cc426 unsigned long num = 0; in StNfc_hal_getConfig() local
434 if (GetNumValue(NAME_CE_ON_SWITCH_OFF_STATE, &num, sizeof(num))) { in StNfc_hal_getConfig()
435 if (num == 0x1) { in StNfc_hal_getConfig()
440 if (GetNumValue(NAME_POLL_BAIL_OUT_MODE, &num, sizeof(num))) { in StNfc_hal_getConfig()
441 config.nfaPollBailOutMode = num; in StNfc_hal_getConfig()
444 if (GetNumValue(NAME_ISO_DEP_MAX_TRANSCEIVE, &num, sizeof(num))) { in StNfc_hal_getConfig()
445 config.maxIsoDepTransceiveLength = num; in StNfc_hal_getConfig()
447 if (GetNumValue(NAME_DEFAULT_OFFHOST_ROUTE, &num, sizeof(num))) { in StNfc_hal_getConfig()
448 config.defaultOffHostRoute = num; in StNfc_hal_getConfig()
450 if (GetNumValue(NAME_DEFAULT_NFCF_ROUTE, &num, sizeof(num))) { in StNfc_hal_getConfig()
[all …]
/hardware/st/nfc/1.1/
Dhal_st21nfc.cc423 unsigned long num = 0; in StNfc_hal_getConfig() local
431 if (GetNumValue(NAME_CE_ON_SWITCH_OFF_STATE, &num, sizeof(num))) { in StNfc_hal_getConfig()
432 if (num == 0x1) { in StNfc_hal_getConfig()
437 if (GetNumValue(NAME_POLL_BAIL_OUT_MODE, &num, sizeof(num))) { in StNfc_hal_getConfig()
438 config.nfaPollBailOutMode = num; in StNfc_hal_getConfig()
441 if (GetNumValue(NAME_ISO_DEP_MAX_TRANSCEIVE, &num, sizeof(num))) { in StNfc_hal_getConfig()
442 config.maxIsoDepTransceiveLength = num; in StNfc_hal_getConfig()
444 if (GetNumValue(NAME_DEFAULT_OFFHOST_ROUTE, &num, sizeof(num))) { in StNfc_hal_getConfig()
445 config.defaultOffHostRoute = num; in StNfc_hal_getConfig()
447 if (GetNumValue(NAME_DEFAULT_NFCF_ROUTE, &num, sizeof(num))) { in StNfc_hal_getConfig()
[all …]
/hardware/google/av/media/sfplugin/
DSkipCutBuffer.cpp137 void SkipCutBuffer::write(const char *src, size_t num) { in write() argument
145 if (available < num) { in write()
146 int32_t newcapacity = mCapacity + (num - available); in write()
156 if (copyfirst > num) copyfirst = num; in write()
159 num -= copyfirst; in write()
164 if (num) { in write()
165 memcpy(mCutBuffer, src, num); in write()
166 mWriteHead += num; in write()
171 size_t SkipCutBuffer::read(char *dst, size_t num) { in read() argument
179 if (available < int32_t(num)) { in read()
[all …]
DSkipCutBuffer.h51 void write(const char *src, size_t num);
52 size_t read(char *dst, size_t num);
/hardware/st/nfc/1.0/adaptation/
Dandroid_logmsg.cpp45 unsigned long num = 0; in InitializeSTLogLevel() local
48 num = 1; in InitializeSTLogLevel()
49 if (GetNumValue(NAME_STNFC_HAL_LOGLEVEL, &num, sizeof(num))) in InitializeSTLogLevel()
50 hal_trace_level = (unsigned char)num; in InitializeSTLogLevel()
55 sscanf(valueStr, "%lu", &num); in InitializeSTLogLevel()
56 hal_trace_level = (unsigned char)num; in InitializeSTLogLevel()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dstorage_manager.c44 int num; /**< Number of differnt save entities */ member
75 for (kk=0; kk<ds.num; ++kk) { in inv_register_load_store()
81 if (ds.num >= NUM_STORAGE_BOXES) { in inv_register_load_store()
85 ds.hd[ds.num].key = key; in inv_register_load_store()
86 ds.hd[ds.num].size = size; in inv_register_load_store()
87 ds.load[ds.num] = load_func; in inv_register_load_store()
88 ds.save[ds.num] = save_func; in inv_register_load_store()
90 ds.num++; in inv_register_load_store()
112 for (kk=0; kk<ds.num; ++kk) { in inv_find_entry()
186 for (kk = 0; kk < ds.num; ++kk) { in inv_save_mpl_states()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dstorage_manager.c44 int num; /**< Number of differnt save entities */ member
75 for (kk=0; kk<ds.num; ++kk) { in inv_register_load_store()
81 if (ds.num >= NUM_STORAGE_BOXES) { in inv_register_load_store()
85 ds.hd[ds.num].key = key; in inv_register_load_store()
86 ds.hd[ds.num].size = size; in inv_register_load_store()
87 ds.load[ds.num] = load_func; in inv_register_load_store()
88 ds.save[ds.num] = save_func; in inv_register_load_store()
90 ds.num++; in inv_register_load_store()
112 for (kk=0; kk<ds.num; ++kk) { in inv_find_entry()
186 for (kk = 0; kk < ds.num; ++kk) { in inv_save_mpl_states()
/hardware/google/av/codec2/tests/
DC2_test.cpp29 inline constexpr static int num() { return N; } in num() function
39 static_assert(c2_const_checker<min_i32_i32>::num() == 1, "should be 1");
40 static_assert(c2_const_checker<min_i32_i64>::num() == 2, "should be 2");
41 static_assert(c2_const_checker<min_i8_i32>::num() == 0xffffffff, "should be 0xffffffff");
50 static_assert(c2_const_checker<min_u32_u32>::num() == 1, "should be 1");
51 static_assert(c2_const_checker<min_u32_u64>::num() == 2, "should be 2");
52 static_assert(c2_const_checker<min_u32_u8>::num() == 0xff, "should be 0xff");
61 static_assert(c2_const_checker<max_i32_i32>::num() == 2, "should be 2");
62 static_assert(c2_const_checker<max_i32_i64>::num() == 3, "should be 3");
63 static_assert(c2_const_checker<max_i8_i32>::num() == 0xffffffff, "should be 0xffffffff");
[all …]
/hardware/st/secure_element/ese-spi-driver/utils-lib/
Dandroid_logmsg.cc47 unsigned long num = 0; in InitializeSTLogLevel() local
49 num = 1; in InitializeSTLogLevel()
50 num = EseConfig::getUnsigned(NAME_STESE_HAL_LOGLEVEL, 0); in InitializeSTLogLevel()
51 if (num >= 0) hal_trace_level = (unsigned char)num; in InitializeSTLogLevel()
/hardware/interfaces/media/omx/1.0/
DIOmxStore.hal38 * num: 0 | [1-9][0-9]*
40 * size: <num>x<num>
41 * ratio: <num>:<num>
54 * key: 'max-video-encoder-input-buffers', value-type: num
79 * key: 'bitrate-range', value-type: range<num>
80 * key: 'max-concurrent-instances', value-type: num
81 * key: 'max-supported-instances', value-type: num
84 * key: 'max-channel-count', value-type: num
85 * key: 'sample-rate-ranges', value-type: list<range<num>>
90 * key: 'block-count-range', value-type: range<num>
[all …]
/hardware/st/nfc/st21nfc/adaptation/
Dandroid_logmsg.cpp45 unsigned long num = 0; in InitializeSTLogLevel() local
47 num = 1; in InitializeSTLogLevel()
48 if (GetNumValue(NAME_STNFC_HAL_LOGLEVEL, &num, sizeof(num))) in InitializeSTLogLevel()
49 hal_trace_level = (unsigned char)num; in InitializeSTLogLevel()
/hardware/nxp/nfc/halimpl/hal/
DphNxpNciHal.cc143 unsigned long num = 0; in phNxpNciHal_initialize_debug_enabled_flag() local
145 if(GetNxpNumValue(NAME_NFC_DEBUG_ENABLED, &num, sizeof(num))) { in phNxpNciHal_initialize_debug_enabled_flag()
146 nfc_debug_enabled = (num == 0) ? false : true; in phNxpNciHal_initialize_debug_enabled_flag()
426 unsigned long num = 0; in phNxpNciHal_CheckValidFwVersion() local
453 GetNxpNumValue(NAME_NXP_FW_PROTECION_OVERRIDE, &num, sizeof(num)); in phNxpNciHal_CheckValidFwVersion()
455 if (num == 0x01) { in phNxpNciHal_CheckValidFwVersion()
485 unsigned long num = 0; in phNxpNciHal_get_clk_freq() local
492 isfound = GetNxpNumValue(NAME_NXP_SYS_CLK_SRC_SEL, &num, sizeof(num)); in phNxpNciHal_get_clk_freq()
494 nxpprofile_ctrl.bClkSrcVal = num; in phNxpNciHal_get_clk_freq()
497 num = 0; in phNxpNciHal_get_clk_freq()
[all …]
/hardware/knowles/athletico/sound_trigger_hal/tests/
Doslo_config_test.c396 int num; in cal_read_persist() local
401 num = fscanf(fid, "Version: %f\n", &coef.version); in cal_read_persist()
402 if (num != 1) { in cal_read_persist()
403 ALOGE("%s: Parse Version failed, num:%d\n", __func__, num); in cal_read_persist()
407 num = fscanf(fid, "Mode: %d\n", &coef.mode); in cal_read_persist()
408 if (num != 1) { in cal_read_persist()
409 ALOGE("%s: Parse Mode failed, num:%d\n", __func__, num); in cal_read_persist()
413 num = fscanf(fid, "ch1: %f %f\n", &coef.ch1_i_val, &coef.ch1_q_val); in cal_read_persist()
414 if (num != 2) { in cal_read_persist()
415 ALOGE("%s: Parse ch1 failed, num:%d\n", __func__, num); in cal_read_persist()
[all …]
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dgscan.cpp331 static int parseScanResults(wifi_scan_result *results, int num, nlattr *attr) in parseScanResults() argument
333 memset(results, 0, sizeof(wifi_scan_result) * num); in parseScanResults()
336 for (nl_iterator it(attr); it.has_next() && i < num; it.next(), i++) { in parseScanResults()
365 if (i >= num) { in parseScanResults()
845 wifi_cached_scan_results *results, int max, int *num) in GetScanResultsCommand() argument
846 : WifiCommand("GetScanResultsCommand", iface, -1), mScans(results), mMax(max), mNum(num), in GetScanResultsCommand()
850 int createRequest(WifiRequest& request, int num, byte flush) { in createRequest() argument
857 result = request.put_u32(GSCAN_ATTRIBUTE_NUM_OF_RESULTS, num); in createRequest()
939 int scan_id = 0, flags = 0, num = 0, scan_ch_bucket_mask = 0; in handleResponse() local
948 num = it2.get_u32(); in handleResponse()
[all …]
/hardware/nxp/secure_element/libese-spi/p73/lib/
DphNxpEse_Api.cpp93 unsigned long int num; in phNxpEse_init() local
101 num = EseConfig::getUnsigned(NAME_NXP_WTX_COUNT_VALUE); in phNxpEse_init()
102 protoInitParam.wtx_counter_limit = num; in phNxpEse_init()
195 unsigned long int num = 0; in phNxpEse_open() local
197 num = EseConfig::getUnsigned(NAME_NXP_POWER_SCHEME); in phNxpEse_open()
198 nxpese_ctxt.pwr_scheme = num; in phNxpEse_open()
199 ALOGE("Power scheme read from config file - %lu", num); in phNxpEse_open()
202 ALOGE("Power scheme not defined in config file - %lu", num); in phNxpEse_open()
347 unsigned long int num = 0; in phNxpEse_openPrioSession() local
364 num = EseConfig::getUnsigned(NAME_NXP_POWER_SCHEME); in phNxpEse_openPrioSession()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/store/
DVtsHalMediaOmxV1_0TargetStoreTest.cpp210 const std::string num = "(0|([1-9][0-9]*))"; in TEST_P() local
211 const std::string size = "(" + num + "x" + num + ")"; in TEST_P()
212 const std::string ratio = "(" + num + ":" + num + ")"; in TEST_P()
213 const std::string range_num = "((" + num + "-" + num + ")|" + num + ")"; in TEST_P()
226 {"complexity-default", num}, in TEST_P()
236 {"max-channel-count", num}, in TEST_P()
237 {"max-concurrent-instances", num}, in TEST_P()
238 {"max-supported-instances", num}, in TEST_P()
240 {"quality-default", num}, in TEST_P()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.h29 inv_error_t inv_get_handler_number(const char *name, int *num);
30 inv_error_t inv_get_input_number(const char *name, int *num);
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_sysfs_helper.h29 inv_error_t inv_get_handler_number(const char *name, int *num);
30 inv_error_t inv_get_input_number(const char *name, int *num);
/hardware/ti/am57x/libhwcomposer/
Ddisplay.cpp222 size_t num = this->configs.size(); in get_display_configs() local
223 if (num > *numConfigs) in get_display_configs()
224 num = *numConfigs; in get_display_configs()
226 for (size_t i = 0; i < num; i++) in get_display_configs()
229 *numConfigs = num; in get_display_configs()
/hardware/google/pixel/perfstatsd/include/
Dperfstats_buffer.h47 constexpr auto operator""_KiB(unsigned long long const num) {
48 return num * 1024;
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_exif.c316 val_rat.num = (uint32_t)(apex_value * 100); in process_sensor_data()
323 val_rat.num = (uint32_t)(p_sensor_params->aperture_value * 100); in process_sensor_data()
415 val_rat.num = 0; in process_3a_data()
418 val_rat.num = 1; in process_3a_data()
421 val_rat.num = ROUND(p_3a_params->exp_time); in process_3a_data()
424 LOGD("numer %d denom %d %zd", val_rat.num, val_rat.denom, in process_3a_data()
436 val_srat.num = (int32_t)(shutter_speed_value * 1000); in process_3a_data()
439 val_srat.num = 0; in process_3a_data()
505 val_srat.num = (int32_t) (p_3a_params->brightness * 100.0f); in process_3a_data()
/hardware/qcom/display/msm8084/liboverlay/
Doverlay.cpp450 for(int num = 1; num < MAX_FB_DEVICES; num++) { in initOverlay() local
452 "/sys/class/graphics/fb%d/msm_fb_type", num); in initOverlay()
460 sDpyFbMap[DPY_EXTERNAL] = num; in initOverlay()
462 sDpyFbMap[DPY_WRITEBACK] = num; in initOverlay()
539 int num = 0; in validateAndSet() local
543 pipeArray[num++] = mPipeBook[i].mPipe; in validateAndSet()
548 return num ? GenericPipe::validateAndSet(pipeArray, num, fbFd) : true; in validateAndSet()
/hardware/qcom/display/msm8994/liboverlay/
Doverlay.cpp453 for(int num = 1; num < MAX_FB_DEVICES; num++) { in initOverlay() local
455 "/sys/class/graphics/fb%d/msm_fb_type", num); in initOverlay()
463 sDpyFbMap[DPY_EXTERNAL] = num; in initOverlay()
465 sDpyFbMap[DPY_WRITEBACK] = num; in initOverlay()
537 int num = 0; in validateAndSet() local
541 pipeArray[num++] = mPipeBook[i].mPipe; in validateAndSet()
546 return num ? GenericPipe::validateAndSet(pipeArray, num, fbFd) : true; in validateAndSet()
/hardware/google/av/codec2/vndk/include/util/
DC2InterfaceUtils.h179 C2SupportedRange<T> InSeries(T min, T max, T num, T denom) {
180 return C2SupportedRange(min, max, 0, num, denom);
195 C2SupportedRange<T> InMacSeries(T min, T max, T step, T num, T denom) {
196 return C2SupportedRange(min, max, step, num, denom);
264 inline C2_HIDE constexpr T num() const { return _mNum; }
327 constexpr C2_HIDE C2SupportedRange(T min, T max, T step, T num, T den)
328 : _mMin(min), _mMax(max), _mStep(step), _mNum(num), _mDenom(den) { }
735 C2ParamFieldValuesBuilder<T> &inSeries(T min, T max, T num, T denom) {
736 return limitTo(C2SupportedRange<T>::InSeries(min, max, num, denom));
743 C2ParamFieldValuesBuilder<T> &inMacSeries(T min, T max, T step, T num, T denom) {
[all …]

1234567