Home
last modified time | relevance | path

Searched refs:line (Results 1 – 18 of 18) sorted by relevance

/device/google/contexthub/firmware/src/platform/stm32f4xx/
Dexti.c36 void extiEnableIntLine(const enum ExtiLine line, enum ExtiTrigger trigger) in extiEnableIntLine() argument
39 EXTI->RTSR |= (1UL << line); in extiEnableIntLine()
40 EXTI->FTSR |= (1UL << line); in extiEnableIntLine()
42 EXTI->RTSR |= (1UL << line); in extiEnableIntLine()
43 EXTI->FTSR &= ~(1UL << line); in extiEnableIntLine()
45 EXTI->RTSR &= ~(1UL << line); in extiEnableIntLine()
46 EXTI->FTSR |= (1UL << line); in extiEnableIntLine()
50 extiClearPendingLine(line); in extiEnableIntLine()
53 EXTI->IMR |= (1UL << line); in extiEnableIntLine()
56 void extiDisableIntLine(const enum ExtiLine line) in extiDisableIntLine() argument
[all …]
/device/google/dragon/audio/hal/
Diniparser.c562 char line[ASCIILINESZ+1]; in iniparser_line() local
565 strcpy(line, strstrip(input_line)); in iniparser_line()
566 len = (int)strlen(line); in iniparser_line()
572 } else if (line[0]=='#' || line[0]==';') { in iniparser_line()
575 } else if (line[0]=='[' && line[len-1]==']') { in iniparser_line()
577 sscanf(line, "[%[^]]", section); in iniparser_line()
581 } else if (sscanf (line, "%[^=] = \"%[^\"]\"", key, value) == 2 in iniparser_line()
582 || sscanf (line, "%[^=] = '%[^\']'", key, value) == 2 in iniparser_line()
583 || sscanf (line, "%[^=] = %[^;#]", key, value) == 2) { in iniparser_line()
596 } else if (sscanf(line, "%[^=] = %[;#]", key, value)==2 in iniparser_line()
[all …]
/device/htc/flounder/thermal/
Dthermal.c147 char *line = NULL; in get_cpu_usages() local
164 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
166 if (strnlen(line, read) < 4 || strncmp(line, "cpu", 3) != 0 || !isdigit(line[3])) { in get_cpu_usages()
167 free(line); in get_cpu_usages()
168 line = NULL; in get_cpu_usages()
173 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, in get_cpu_usages()
176 free(line); in get_cpu_usages()
177 line = NULL; in get_cpu_usages()
/device/huawei/angler/thermal/
Dthermal.c181 char *line = NULL; in get_cpu_usages() local
198 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
200 if (strnlen(line, read) < 4 || strncmp(line, "cpu", 3) != 0 || !isdigit(line[3])) { in get_cpu_usages()
201 free(line); in get_cpu_usages()
202 line = NULL; in get_cpu_usages()
207 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, in get_cpu_usages()
210 free(line); in get_cpu_usages()
211 line = NULL; in get_cpu_usages()
/device/moto/shamu/thermal/
Dthermal.c173 char *line = NULL; in get_cpu_usages() local
190 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
192 if (strnlen(line, read) < 4 || strncmp(line, "cpu", 3) != 0 || !isdigit(line[3])) { in get_cpu_usages()
193 free(line); in get_cpu_usages()
194 line = NULL; in get_cpu_usages()
199 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, in get_cpu_usages()
202 free(line); in get_cpu_usages()
203 line = NULL; in get_cpu_usages()
/device/lge/bullhead/thermal/
Dthermal.c183 char *line = NULL; in get_cpu_usages() local
200 while ((read = getline(&line, &len, file)) != -1) { in get_cpu_usages()
202 if (strnlen(line, read) < 4 || strncmp(line, "cpu", 3) != 0 || !isdigit(line[3])) { in get_cpu_usages()
203 free(line); in get_cpu_usages()
204 line = NULL; in get_cpu_usages()
209 vals = sscanf(line, "cpu%d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64, &cpu_num, &user, in get_cpu_usages()
212 free(line); in get_cpu_usages()
213 line = NULL; in get_cpu_usages()
/device/google/contexthub/util/nanotool/
Dlog.cpp76 char line[32]; in DebugBuf() local
83 offset += snprintf(&line[offset], sizeof(line) - offset, "%02x ", in DebugBuf()
89 Log::Debug(" %s\t%s", line, line_chars); in DebugBuf()
93 offset += snprintf(&line[offset], sizeof(line) - offset, " "); in DebugBuf()
103 Log::Debug(" %s%s%s", line, tabs.c_str(), line_chars); in DebugBuf()
/device/google/contexthub/firmware/inc/platform/stm32f4xx/
Dexti.h62 void extiEnableIntLine(const enum ExtiLine line, enum ExtiTrigger trigger);
63 void extiDisableIntLine(const enum ExtiLine line);
64 bool extiIsPendingLine(const enum ExtiLine line);
65 void extiClearPendingLine(const enum ExtiLine line);
/device/google/contexthub/util/nanoapp_cmd/
Dnanoapp_cmd.c177 char *line = NULL; in parseInstalledAppInfo() local
187 while ((numRead = getline(&line, &len, fp)) != -1) { in parseInstalledAppInfo()
189 …sscanf(line, "app: %d id: %" PRIx64 " ver: %d size: %d\n", &currApp->num, &currApp->id, &currApp->… in parseInstalledAppInfo()
194 if (line) in parseInstalledAppInfo()
195 free(line); in parseInstalledAppInfo()
214 char *line = NULL; in parseConfigAppInfo() local
226 while (((numRead = getline(&line, &len, fp)) != -1) && (installCnt < MAX_INSTALL_CNT)) { in parseConfigAppInfo()
231 sscanf(line, "%32s %" PRIx64 " %d\n", appsToInstall[installCnt], &appId, &appVersion); in parseConfigAppInfo()
241 if (line) in parseConfigAppInfo()
242 free(line); in parseConfigAppInfo()
/device/generic/goldfish/opengl/tests/gles_android_wrapper/
Degl.cpp119 char line[1000]; in getProcName() local
120 if (fgets(line, sizeof(line), fp) == NULL) { in getProcName()
127 if (line[0] == '\0') { in getProcName()
133 line[sizeof(line) - 1] = '\0'; in getProcName()
134 char *p = line; in getProcName()
143 while (p > line && *p != '/') p--; in getProcName()
166 char line[100]; in isNeedEncode() local
170 while (fgets(line, sizeof(line), fp) != NULL) { in isNeedEncode()
171 if (strlen(line) >= procnameLen && in isNeedEncode()
172 !strncmp(procname, line, procnameLen)) { in isNeedEncode()
[all …]
/device/lge/bullhead/power/
Dpower.c573 char *line; in extract_stats() local
583 for (line = NULL, len = 0; in extract_stats()
584 ((read = getline(&line, &len, fp) != -1) && (index < num_parameters)); in extract_stats()
585 free(line), line = NULL, len = 0) { in extract_stats()
589 size_t begin = strspn(line, " \t"); in extract_stats()
590 if (strncmp(line + begin, parameter_names[index], strlen(parameter_names[index]))) { in extract_stats()
594 offset = memchr(line, ':', len); in extract_stats()
613 free(line); in extract_stats()
/device/huawei/angler/power/
Dpower.c654 char *line; in extract_stats() local
664 for (line = NULL, len = 0; in extract_stats()
665 ((read = getline(&line, &len, fp) != -1) && (index < num_parameters)); in extract_stats()
666 free(line), line = NULL, len = 0) { in extract_stats()
670 size_t begin = strspn(line, " \t"); in extract_stats()
671 if (strncmp(line + begin, parameter_names[index], strlen(parameter_names[index]))) { in extract_stats()
675 offset = memchr(line, ':', len); in extract_stats()
694 free(line); in extract_stats()
/device/linaro/hikey/wpan/
DREADME5 bt_sco_app - Command line application to send PCM configuruations to WL12xx chip(optional)
8 fmradio - Stack and Command line application for FM on WiLink chipsets
/device/moto/shamu/sepolicy/
Duntrusted_app.te4 # b/17630431: The unix_socket_connect line above needs to be
Dmpdecision.te26 # Without the following line, the following denial occurs:
/device/google/accessory/demokit/hardware/fab/shield/
DREADME.txt33 All components on TOP side of board, EXCEPT for 6 single-row in-line headers
/device/sample/frameworks/PlatformLibrary/
DREADME.txt70 - A LOCAL_JAVA_LIBRARIES line in the Android.mk to have the build system link
73 - A <uses-library> line in the AndroidManifest.xml to have the runtime load
/device/google/accessory/demokit/firmware/demokit/
Ddemokit.pde39 #define JOY_SWITCH A9 // pulls line down when pressed