Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 227) sorted by relevance

12345678910

/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dinv_sysfs_utils.c78 char str[35]; in inv_read_buffer() local
81 count = read(fd, str, sizeof(str)); in inv_read_buffer()
85 count = sscanf(str, "%ld%ld%ld", &data[0], &data[1], &data[2]); in inv_read_buffer()
87 count = sscanf(str, "%ld%ld%ld%lld", &data[0], &data[1], in inv_read_buffer()
105 char str[40]; in inv_read_raw() local
108 count = inv_sysfs_read((char*)names->raw_data, sizeof(str), str); in inv_read_raw()
112 count = sscanf(str, "%ld%ld%ld", &data[0], &data[1], &data[2]); in inv_read_raw()
114 count = sscanf(str, "%ld%ld%ld%lld", &data[0], &data[1], in inv_read_raw()
131 char str[25]; in inv_read_temperature_raw() local
134 count = inv_sysfs_read((char*)names->temperature, sizeof(str), str); in inv_read_temperature_raw()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dinv_sysfs_utils.c72 char str[35]; in inv_read_buffer() local
75 count = read(fd, str, sizeof(str)); in inv_read_buffer()
79 count = sscanf(str, "%ld%ld%ld", &data[0], &data[1], &data[2]); in inv_read_buffer()
81 count = sscanf(str, "%ld%ld%ld%lld", &data[0], &data[1], in inv_read_buffer()
99 char str[40]; in inv_read_raw() local
102 count = inv_sysfs_read((char*)names->raw_data, sizeof(str), str); in inv_read_raw()
106 count = sscanf(str, "%ld%ld%ld", &data[0], &data[1], &data[2]); in inv_read_raw()
108 count = sscanf(str, "%ld%ld%ld%lld", &data[0], &data[1], in inv_read_raw()
125 char str[25]; in inv_read_temperature_raw() local
128 count = inv_sysfs_read((char*)names->temperature, sizeof(str), str); in inv_read_temperature_raw()
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_uevents.cpp47 static bool isHDMI(const char* str) in isHDMI() argument
49 if(strcasestr("change@/devices/virtual/switch/hdmi", str)) in isHDMI()
56 const char *str = udata; in handle_uevent() local
67 if(!strcasestr("change@/devices/virtual/switch/hdmi", str) && in handle_uevent()
68 !strcasestr("change@/devices/virtual/switch/wfd", str)) { in handle_uevent()
83 int dpy = isHDMI(str) ? HWC_DISPLAY_EXTERNAL : extDpyNum; in handle_uevent()
93 while(*str) { in handle_uevent()
94 if (!strncmp(str, "SWITCH_STATE=", strlen("SWITCH_STATE="))) { in handle_uevent()
95 connected = atoi(str + strlen("SWITCH_STATE=")); in handle_uevent()
103 str += strlen(str) + 1; in handle_uevent()
[all …]
/hardware/qcom/msm8998/json-c/
Djson_tokener.c159 struct json_object* json_tokener_parse(const char *str) in json_tokener_parse() argument
163 obj = json_tokener_parse_verbose(str, &jerr_ignored); in json_tokener_parse()
167 struct json_object* json_tokener_parse_verbose(const char *str, enum json_tokener_error *error) in json_tokener_parse_verbose() argument
175 obj = json_tokener_parse_ex(tok, str, -1); in json_tokener_parse_verbose()
217 (((dest) = *str), 1) \
225 #define ADVANCE_CHAR(str, tok) \ argument
226 ( ++(str), ((tok)->char_offset)++, c)
233 const char *str, int len) in json_tokener_parse_ex() argument
253 if ((len < -1) || (len == -1 && strlen(str) > INT32_MAX)) { in json_tokener_parse_ex()
266 if ((!ADVANCE_CHAR(str, tok)) || (!PEEK_CHAR(c, tok))) in json_tokener_parse_ex()
[all …]
Djson_tokener.h80 char *str; member
125 extern struct json_object* json_tokener_parse(const char *str);
126 extern struct json_object* json_tokener_parse_verbose(const char *str, enum json_tokener_error *err…
202 const char *str, int len);
/hardware/qcom/camera/msm8998/usbcamcore/src/
DQCameraUsbParm.cpp280 String8 str = String8(params); in usbCamSetParameters() local
288 qParam.unflatten(str); in usbCamSetParameters()
321 String8 str; in usbCamGetParameters() local
325 str = qParam.flatten( ); in usbCamGetParameters()
326 rc = (char *)malloc(sizeof(char)*(str.length()+1)); in usbCamGetParameters()
328 memset(rc, 0, sizeof(char)*(str.length()+1)); in usbCamGetParameters()
329 strncpy(rc, str.string(), str.length()); in usbCamGetParameters()
330 rc[str.length()] = 0; in usbCamGetParameters()
376 String8 str; in create_sizes_str() local
381 str.append(buffer); in create_sizes_str()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraParameters.cpp1195 String8 str; in createSizesString() local
1200 str.append(buffer); in createSizesString()
1205 str.append(buffer); in createSizesString()
1207 return str; in createSizesString()
1227 String8 str; in createValuesString() local
1235 str.append(","); in createValuesString()
1237 str.append(map[j].desc); in createValuesString()
1243 return str; in createValuesString()
1260 String8 str; in createValuesStringFromMap() local
1265 str.append(","); in createValuesStringFromMap()
[all …]
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dcbor.h97 StringBuffer<char, TextStr> text(const char (&str)[size]) {
98 if (size > 0) return StringBuffer<char, TextStr>(str, size - 1);
99 return StringBuffer<char, TextStr>(str, size);
106 StringBuffer<char, TextStr> text_keep_last(const char (&str)[size]) {
107 return StringBuffer<char, TextStr>(str, size);
121 auto text(const T& str) -> StringBuffer<std::decay_t<decltype(*getData(str))>, TextStr> {
122 return StringBuffer<std::decay_t<decltype(*getData(str))>, TextStr>(getData(str), str.size());
125 inline StringBuffer<char, TextStr> text(const char* str, size_t size) {
126 return StringBuffer<char, TextStr>(str, size);
130 StringBuffer<T, ByteStr> bytes(const T (&str)[size]) {
[all …]
/hardware/qcom/display/msm8960/liboverlay/
DoverlayUtils.cpp331 char str[256] = {'\0'}; in getDump() local
332 snprintf(str, 256, in getDump()
336 strncat(buf, str, strlen(str)); in getDump()
363 char str[256] = {'\0'}; in getDump() local
364 snprintf(str, 256, in getDump()
367 strncat(buf, str, strlen(str)); in getDump()
383 char str[256] = {'\0'}; in getDump() local
384 snprintf(str, 256, "%s sessid=%u rot=%d, enable=%d downscale=%d\n", in getDump()
387 strncat(buf, str, strlen(str)); in getDump()
395 char str[256] = {'\0'}; in getDump() local
[all …]
Doverlay.cpp72 char str[32]; in configDone() local
73 sprintf(str, "Unset pipe=%s dpy=%d; ", in configDone()
75 strncat(mDumpStr, str, strlen(str)); in configDone()
109 char str[32]; in nextPipe() local
110 snprintf(str, 32, "Set pipe=%s dpy=%d; ", in nextPipe()
112 strncat(mDumpStr, str, strlen(str)); in nextPipe()
280 const char *str = "\nOverlay State\n==========================\n"; in getDump() local
281 strncat(buf, str, strlen(str)); in getDump()
285 char str[64] = {'\0'}; in getDump() local
286 snprintf(str, 64, "Attached to dpy=%d\n\n", mPipeBook[i].mDisplay); in getDump()
[all …]
/hardware/qcom/sdm845/data/ipacfg-mgr/hal/src/
DLocalLogBuffer.cpp55 mSSArgs.str(other.mSSArgs.str()); in FunctionLog()
56 mSSReturn.str(other.mSSReturn.str()); in FunctionLog()
109 ret << mName << "(" << mSSArgs.str() << ") returned " << mSSReturn.str(); in toString()
110 return ret.str(); in toString()
/hardware/qcom/sm8150/data/ipacfg-mgr/hal/src/
DLocalLogBuffer.cpp55 mSSArgs.str(other.mSSArgs.str()); in FunctionLog()
56 mSSReturn.str(other.mSSReturn.str()); in FunctionLog()
109 ret << mName << "(" << mSSArgs.str() << ") returned " << mSSReturn.str(); in toString()
110 return ret.str(); in toString()
/hardware/qcom/data/ipacfg-mgr/msm8998/hal/src/
DLocalLogBuffer.cpp56 mSSArgs.str(other.mSSArgs.str()); in FunctionLog()
57 mSSReturn.str(other.mSSReturn.str()); in FunctionLog()
110 ret << mName << "(" << mSSArgs.str() << ") returned " << mSSReturn.str(); in toString()
111 return ret.str(); in toString()
/hardware/interfaces/tests/trie/1.0/default/
DTrie.cpp48 for (const auto& str : strings) { in addStrings() local
49 addString(&newTrie, str); in addStrings()
67 void Trie::addString(TrieNode* trieRoot, const std::string& str) { in addString() argument
70 for (char ch : str) { in addString()
89 bool Trie::containsString(const TrieNode* trieRoot, const std::string& str) { in containsString() argument
92 for (char ch : str) { in containsString()
/hardware/interfaces/camera/common/1.0/default/
DCameraParameters.cpp263 char str[16]; in set() local
264 sprintf(str, "%d", value); in set()
265 set(key, str); in set()
270 char str[16]; // 14 should be enough. We overestimate to be safe. in setFloat() local
271 snprintf(str, sizeof(str), "%g", value); in setFloat()
272 set(key, str); in setFloat()
304 static int parse_pair(const char *str, int *first, int *second, char delim, in parse_pair() argument
309 int w = (int)strtol(str, &end, 10); in parse_pair()
312 ALOGE("Cannot find delimeter (%c) in str=%s", delim, str); in parse_pair()
356 char str[32]; in setPreviewSize() local
[all …]
/hardware/qcom/sm8150/display/sdm/libs/utils/
Ddebug.cpp190 std::string str(value); in GetMixerResolution() local
192 *width = UINT32(stoi(str)); in GetMixerResolution()
193 *height = UINT32(stoi(str.substr(str.find('x') + 1))); in GetMixerResolution()
206 std::string str(value); in GetReducedConfig() local
208 *num_vig_pipes = UINT32(stoi(str)); in GetReducedConfig()
209 *num_dma_pipes = UINT32(stoi(str.substr(str.find('x') + 1))); in GetReducedConfig()
/hardware/qcom/sdm845/display/sdm/libs/utils/
Ddebug.cpp190 std::string str(value); in GetMixerResolution() local
192 *width = UINT32(stoi(str)); in GetMixerResolution()
193 *height = UINT32(stoi(str.substr(str.find('x') + 1))); in GetMixerResolution()
206 std::string str(value); in GetReducedConfig() local
208 *num_vig_pipes = UINT32(stoi(str)); in GetReducedConfig()
209 *num_dma_pipes = UINT32(stoi(str.substr(str.find('x') + 1))); in GetReducedConfig()
/hardware/qcom/display/msm8994/liboverlay/
DoverlayUtils.cpp332 char str[256] = {'\0'}; in getDump() local
333 snprintf(str, 256, in getDump()
338 strlcat(buf, str, len); in getDump()
365 char str[256] = {'\0'}; in getDump() local
366 snprintf(str, 256, in getDump()
369 strlcat(buf, str, len); in getDump()
384 char str[256] = {'\0'}; in getDump() local
385 snprintf(str, 256, "%s sessid=%u rot=%d, enable=%d downscale=%d\n", in getDump()
388 strlcat(buf, str, len); in getDump()
396 char str[256] = {'\0'}; in getDump() local
[all …]
/hardware/qcom/display/msm8226/liboverlay/
DoverlayUtils.cpp339 char str[256] = {'\0'}; in getDump() local
340 snprintf(str, 256, in getDump()
345 strlcat(buf, str, len); in getDump()
372 char str[256] = {'\0'}; in getDump() local
373 snprintf(str, 256, in getDump()
376 strlcat(buf, str, len); in getDump()
391 char str[256] = {'\0'}; in getDump() local
392 snprintf(str, 256, "%s sessid=%u rot=%d, enable=%d downscale=%d\n", in getDump()
395 strlcat(buf, str, len); in getDump()
403 char str[256] = {'\0'}; in getDump() local
[all …]
/hardware/interfaces/audio/effect/all-versions/default/
DConversions.cpp49 char str[64]; in uuidToString() local
50 snprintf(str, sizeof(str), "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x", halUuid.timeLow, in uuidToString()
53 return str; in uuidToString()
/hardware/qcom/display/msm8084/liboverlay/
DoverlayUtils.cpp408 char str[256] = {'\0'}; in getDump() local
409 snprintf(str, 256, in getDump()
414 strlcat(buf, str, len); in getDump()
441 char str[256] = {'\0'}; in getDump() local
442 snprintf(str, 256, in getDump()
445 strlcat(buf, str, len); in getDump()
460 char str[256] = {'\0'}; in getDump() local
461 snprintf(str, 256, "%s sessid=%u rot=%d, enable=%d downscale=%d\n", in getDump()
464 strlcat(buf, str, len); in getDump()
472 char str[256] = {'\0'}; in getDump() local
[all …]
/hardware/nxp/nfc/extns/impl/
DNxp_Features.h96 #define STRCPY_FW_LIB(str) { \ argument
99 nfcFL._FW_LIB_PATH.append(str); \
102 #define STRCPY_FW_BIN(str) { \ argument
105 nfcFL._FW_BIN_PATH.append(str); \
/hardware/qcom/sdm845/gps/msm8998/utils/platform_lib_abstractions/loc_pla/src/
Dplatform_lib_log_util.cpp34 char * get_timestamp(char *str, unsigned long buf_size) in get_timestamp() argument
43 snprintf(str, buf_size, "%02d:%02d:%02d.%06ld", hh, mm, ss, tv.tv_usec); in get_timestamp()
44 return str; in get_timestamp()
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_pla/src/
Dplatform_lib_log_util.cpp31 char * get_timestamp(char *str, unsigned long buf_size) in get_timestamp() argument
40 snprintf(str, buf_size, "%02d:%02d:%02d.%06ld", hh, mm, ss, tv.tv_usec); in get_timestamp()
41 return str; in get_timestamp()
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_pla/src/
Dplatform_lib_log_util.cpp34 char * get_timestamp(char *str, unsigned long buf_size) in get_timestamp() argument
43 snprintf(str, buf_size, "%02d:%02d:%02d.%06ld", hh, mm, ss, tv.tv_usec); in get_timestamp()
44 return str; in get_timestamp()

12345678910