Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 188) sorted by relevance

12345678

/hardware/interfaces/confirmationui/support/src/
DConfirmationUITranslations.c1080 for (int n = 0; haystack[n] != NULL; n++) { in ConfirmationUITranslations_find_str() local
1081 if (strcmp(needle, haystack[n]) == 0) { in ConfirmationUITranslations_find_str()
1082 return n; in ConfirmationUITranslations_find_str()
1094 size_t n; in ConfirmationUITranslations_lang_id_match() local
1102 for (n = 0; lang_id[n] != '\0' && n < MAX_LANG_ID_SIZE; n++) { in ConfirmationUITranslations_lang_id_match()
1103 lang_id_buf[n] = lang_id[n]; in ConfirmationUITranslations_lang_id_match()
1105 lang_id_buf[n] = '\0'; in ConfirmationUITranslations_lang_id_match()
1107 while (n >= 1) { in ConfirmationUITranslations_lang_id_match()
1109 while (n >= 1 && lang_id_buf[n - 1] != '-') { in ConfirmationUITranslations_lang_id_match()
1110 n--; in ConfirmationUITranslations_lang_id_match()
[all …]
/hardware/qcom/display/msm8998/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
Dfullscreen_vertex_shader.inl21 "#version 300 es \n"
22 "precision highp float; \n"
23 "layout(location = 0) in vec2 iUV; \n"
24 "out vec2 uv; \n"
25 "void main() \n"
26 "{ \n"
27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
[all …]
/hardware/qcom/sdm845/display/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
Dfullscreen_vertex_shader.inl21 "#version 300 es \n"
22 "precision highp float; \n"
23 "layout(location = 0) in vec2 iUV; \n"
24 "out vec2 uv; \n"
25 "void main() \n"
26 "{ \n"
27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
[all …]
/hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
Dfullscreen_vertex_shader.inl21 "#version 300 es \n"
22 "precision highp float; \n"
23 "layout(location = 0) in vec2 iUV; \n"
24 "out vec2 uv; \n"
25 "void main() \n"
26 "{ \n"
27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
[all …]
/hardware/qcom/sm8150/display/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
Dfullscreen_vertex_shader.inl21 "#version 300 es \n"
22 "precision highp float; \n"
23 "layout(location = 0) in vec2 iUV; \n"
24 "out vec2 uv; \n"
25 "void main() \n"
26 "{ \n"
27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
[all …]
/hardware/qcom/display/msm8909/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …out(location = 3) uniform vec2 tSO; \n"
28 … defined(USE_NONUNIFORM_SAMPLING) \n"
29 …out(location = 4) uniform vec2 xSO; \n"
30 …dif \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
28 "#ifdef USE_NONUNIFORM_SAMPLING \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
30 "#endif \n"
[all …]
Dfullscreen_vertex_shader.inl21 "#version 300 es \n"
22 "precision highp float; \n"
23 "layout(location = 0) in vec2 iUV; \n"
24 "out vec2 uv; \n"
25 "void main() \n"
26 "{ \n"
27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_mixer.c99 static const char *elem_iface_name(snd_ctl_elem_iface_t n) in elem_iface_name() argument
101 switch (n) { in elem_iface_name()
113 static const char *elem_type_name(snd_ctl_elem_type_t n) in elem_type_name() argument
115 switch (n) { in elem_type_name()
129 unsigned n,m; in mixer_close() local
135 for (n = 0; n < mixer->count; n++) { in mixer_close()
136 if (mixer->ctl[n].ename) { in mixer_close()
137 unsigned max = mixer->ctl[n].info->value.enumerated.items; in mixer_close()
139 free(mixer->ctl[n].ename[m]); in mixer_close()
140 free(mixer->ctl[n].ename); in mixer_close()
[all …]
Dalsa_pcm.c195 static inline struct snd_interval *param_to_interval(struct snd_pcm_hw_params *p, int n) in param_to_interval() argument
197 return &(p->intervals[n - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL]); in param_to_interval()
200 static inline struct snd_mask *param_to_mask(struct snd_pcm_hw_params *p, int n) in param_to_mask() argument
202 return &(p->masks[n - SNDRV_PCM_HW_PARAM_FIRST_MASK]); in param_to_mask()
205 void param_set_mask(struct snd_pcm_hw_params *p, int n, unsigned bit) in param_set_mask() argument
209 if (param_is_mask(n)) { in param_set_mask()
210 struct snd_mask *m = param_to_mask(p, n); in param_set_mask()
217 void param_set_min(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_min() argument
219 if (param_is_interval(n)) { in param_set_min()
220 struct snd_interval *i = param_to_interval(p, n); in param_set_min()
[all …]
/hardware/interfaces/automotive/can/1.0/default/libnetdevice/
DNetlinkRequest.cpp23 static struct rtattr* nlmsg_tail(struct nlmsghdr* n) { in nlmsg_tail() argument
25 reinterpret_cast<uintptr_t>(n) + NLMSG_ALIGN(n->nlmsg_len)); in nlmsg_tail()
28 struct rtattr* addattr_l(struct nlmsghdr* n, size_t maxLen, rtattrtype_t type, const void* data, in addattr_l() argument
30 size_t newLen = NLMSG_ALIGN(n->nlmsg_len) + RTA_SPACE(dataLen); in addattr_l()
36 auto attr = nlmsg_tail(n); in addattr_l()
41 n->nlmsg_len = newLen; in addattr_l()
45 struct rtattr* addattr_nest(struct nlmsghdr* n, size_t maxLen, rtattrtype_t type) { in addattr_nest() argument
46 return addattr_l(n, maxLen, type, nullptr, 0); in addattr_nest()
49 void addattr_nest_end(struct nlmsghdr* n, struct rtattr* nest) { in addattr_nest_end() argument
50 size_t nestLen = reinterpret_cast<uintptr_t>(nlmsg_tail(n)) - reinterpret_cast<uintptr_t>(nest); in addattr_nest_end()
/hardware/qcom/msm8998/json-c/
Dlinkhash.c110 #define hashsize(n) ((uint32_t)1<<(n)) argument
111 #define hashmask(n) (hashsize(n)-1) argument
495 unsigned long h, n; in lh_table_insert() local
501 n = h % t->size; in lh_table_insert()
504 if(t->table[n].k == LH_EMPTY || t->table[n].k == LH_FREED) break; in lh_table_insert()
506 if ((int)++n == t->size) n = 0; in lh_table_insert()
509 t->table[n].k = k; in lh_table_insert()
510 t->table[n].v = v; in lh_table_insert()
514 t->head = t->tail = &t->table[n]; in lh_table_insert()
515 t->table[n].next = t->table[n].prev = NULL; in lh_table_insert()
[all …]
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dlist.h62 #define list_for_each_entry_safe(pos, n, head, member) \ argument
64 n = list_entry(pos->member.next, typeof(*pos), member); \
66 pos = n, n = list_entry(n->member.next, typeof(*n), member))
68 #define list_for_each_safe(pos, n, head) \ argument
69 for (pos = (head)->next, n = pos->next; pos != (head); \
70 pos = n, n = pos->next)
/hardware/interfaces/health/utils/libhealthloop/
DHealthLoop.cpp134 int n; in UeventEvent() local
136 n = uevent_kernel_multicast_recv(uevent_fd_, msg, UEVENT_MSG_LEN); in UeventEvent()
137 if (n <= 0) return; in UeventEvent()
138 if (n >= UEVENT_MSG_LEN) /* overflow -- discard */ in UeventEvent()
141 msg[n] = '\0'; in UeventEvent()
142 msg[n + 1] = '\0'; in UeventEvent()
220 for (int n = 0; n < nevents; ++n) { in MainLoop() local
221 if (events[n].data.ptr) { in MainLoop()
222 auto* event_handler = reinterpret_cast<EventHandler*>(events[n].data.ptr); in MainLoop()
223 event_handler->func(event_handler->object, events[n].events); in MainLoop()
/hardware/interfaces/keymaster/4.0/support/
Dkeymaster_utils.cpp115 for (size_t n = 0; n < sizeof(uint64_t); n++) { in appendUint64() local
116 uint8_t byte = (value >> (n * 8)) & 0xff; in appendUint64()
123 for (size_t n = 0; n < sizeof(uint64_t); n++) { in extractUint64() local
124 uint64_t tmp = data[offset + n]; in extractUint64()
125 value |= (tmp << (n * 8)); in extractUint64()
131 for (size_t n = 0; n < sizeof(uint32_t); n++) { in appendUint32() local
132 uint8_t byte = (value >> (n * 8)) & 0xff; in appendUint32()
139 for (size_t n = 0; n < sizeof(uint32_t); n++) { in extractUint32() local
140 uint32_t tmp = data[offset + n]; in extractUint32()
141 value |= (tmp << (n * 8)); in extractUint32()
/hardware/ril/libril/
Dril_event.cpp143 int n = 0; in removeWatch() local
148 if ((rev != NULL) && (rev->fd > n)) { in removeWatch()
149 n = rev->fd; in removeWatch()
152 nfds = n + 1; in removeWatch()
182 static void processReadReadies(fd_set * rfds, int n) in processReadReadies() argument
184 dlog("~~~~ +processReadReadies (%d) ~~~~", n); in processReadReadies()
187 for (int i = 0; (i < MAX_FD_EVENTS) && (n > 0); i++) { in processReadReadies()
194 n--; in processReadReadies()
199 dlog("~~~~ -processReadReadies (%d) ~~~~", n); in processReadReadies()
347 int n; in ril_event_loop() local
[all …]
/hardware/interfaces/bluetooth/1.0/default/test/
Dasync_fd_watcher_unittest.cc84 int n = TEMP_FAILURE_RETRY(read(fd, server_buffer_, kBufferSize - 1)); in ReadIncomingMessage() local
85 EXPECT_FALSE(n < 0); in ReadIncomingMessage()
87 if (n == 0) { // got EOF in ReadIncomingMessage()
91 n = write(fd, "1", 1); in ReadIncomingMessage()
179 int n = write(socket_cli_fd, client_buffer_, strlen(client_buffer_)); in WriteFromClient() local
180 EXPECT_TRUE(n > 0); in WriteFromClient()
185 int n = read(socket_cli_fd, client_buffer_, 1); in AwaitServerResponse() local
187 EXPECT_TRUE(n > 0); in AwaitServerResponse()
286 int n = TEMP_FAILURE_RETRY(read(fd, read_buf, sizeof(read_buf))); in TEST_F() local
287 ASSERT_TRUE(n == sizeof(read_buf)); in TEST_F()
[all …]

12345678