Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 86) sorted by relevance

1234

/system/core/libsync/
Dsync_test.c81 int i, j; in main() local
93 for (j = 0; j < 2; j++) { in main()
94 unsigned val = i + j * 3 + 1; in main()
95 sprintf(str, "test_fence%d-%d", i, j); in main()
101 sync_data[i].fd[j] = fd; in main()
102 printf("sync_data[%d].fd[%d] = %d;\n", i, j, fd); in main()
108 for (j = 0; j < 2; j++) { in main()
109 sprintf(str, "merged_fence%d", j); in main()
110 sync_data[3].fd[j] = sync_merge(str, sync_data[0].fd[j], sync_data[1].fd[j]); in main()
111 if (sync_data[3].fd[j] < 0) { in main()
[all …]
/system/bt/bta/dm/
Dbta_dm_pm.c87 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_init_pm() local
88 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm()
116 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_disable_pm() local
118 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm()
119 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm()
163 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_pm_stop_timer() local
165 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer()
257 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_pm_stop_timer_by_srvc_id() local
259 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) in bta_dm_pm_stop_timer_by_srvc_id()
261 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer_by_srvc_id()
[all …]
/system/bt/btif/src/
Dbtif_sock_util.c190 int i, j, addr; in dump_bin() local
203 for(j = 0; j < width; j++) in dump_bin()
205 byte2hex((const char*)&j, &line); in dump_bin()
219 for(j = 0; j < width; j++) in dump_bin()
221 byte2hex(&data[j], &line); in dump_bin()
225 for(j = 0; j < width; j++) in dump_bin()
242 for(j = 0; j < leftover; j++) { in dump_bin()
243 byte2hex(&data[j], &line); in dump_bin()
247 for(; j < width; j++) { in dump_bin()
253 for(j = 0; j < leftover; j++) in dump_bin()
Dbtif_config_transcode.cpp51 for (XMLElement *j = i->FirstChildElement(); j != NULL; j = j->NextSiblingElement()) { in btif_config_transcode() local
52 const char *section = j->Attribute("Tag"); in btif_config_transcode()
53 for (XMLElement *k = j->FirstChildElement(); k != NULL; k = k->NextSiblingElement()) { in btif_config_transcode()
Dbtif_hl.c203 UINT8 i, j; in btif_hl_if_channel_setup_pending() local
213 for (j=0; j< BTA_HL_NUM_MCLS; j++) in btif_hl_if_channel_setup_pending()
215 p_mcb = BTIF_HL_GET_MCL_CB_PTR(i, j); in btif_hl_if_channel_setup_pending()
221 *p_mcl_idx = j; in btif_hl_if_channel_setup_pending()
246 UINT8 i,j,x; in btif_hl_num_dchs_in_use() local
255 for (j=0; j < BTA_HL_NUM_MCLS ; j++) in btif_hl_num_dchs_in_use()
257 if(p_acb->mcb[j].in_use) in btif_hl_num_dchs_in_use()
259 j,mcl_handle, p_acb->mcb[j].mcl_handle); in btif_hl_num_dchs_in_use()
260 if (p_acb->mcb[j].in_use && in btif_hl_num_dchs_in_use()
261 (p_acb->mcb[j].mcl_handle == mcl_handle)) in btif_hl_num_dchs_in_use()
[all …]
/system/core/libpixelflinger/tests/arch-arm64/t32cb16blend/
Dt32cb16blend_test.c96 uint32_t j; in scanline_t32cb16blend_test() local
107 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
109 dst_c[j] = test.dst_color; in scanline_t32cb16blend_test()
110 dst_asm[j] = test.dst_color; in scanline_t32cb16blend_test()
111 src[j] = test.src_color; in scanline_t32cb16blend_test()
123 for(j = 0; j < test.count; ++j) in scanline_t32cb16blend_test()
125 printf("dst_c[%d] = %x, dst_asm[%d] = %x \n", j, dst_c[j], j, dst_asm[j]); in scanline_t32cb16blend_test()
/system/core/libpixelflinger/tests/arch-arm64/col32cb16blend/
Dcol32cb16blend_test.c87 uint32_t i, j; in scanline_col32cb16blend_test() local
98 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
100 dst_c[j] = test.dst_color; in scanline_col32cb16blend_test()
101 dst_asm[j] = test.dst_color; in scanline_col32cb16blend_test()
114 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
116 printf("dst_c[%d] = %x, dst_asm[%d] = %x \n", j, dst_c[j], j, dst_asm[j]); in scanline_col32cb16blend_test()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfastgrep.c207 unsigned int j; in grep_search() local
229 j = fg->eol ? len - fg->len : 0; in grep_search()
231 if (grep_cmp(fg->pattern, data + j, in grep_search()
233 pmatch->rm_so = j; in grep_search()
234 pmatch->rm_eo = j + fg->len; in grep_search()
240 j = len; in grep_search()
242 if (grep_cmp(fg->pattern, data + j - fg->len, in grep_search()
244 pmatch->rm_so = j - fg->len; in grep_search()
245 pmatch->rm_eo = j; in grep_search()
250 if (j == fg->len) in grep_search()
[all …]
/system/extras/tests/framebuffer/
Dfb_test.c208 int i, j; in draw_grid() local
214 for (j = 0; j < h/2; j++) { in draw_grid()
217 loc[i + j*(stride)] = red; in draw_grid()
219 loc32[i + j*(stride)] = red32; in draw_grid()
222 loc[i + j*(stride)] = green; in draw_grid()
224 loc32[i + j*(stride)] = green32; in draw_grid()
227 for (; j < h; j++) { in draw_grid()
230 loc[i + j*(stride)] = blue; in draw_grid()
232 loc32[i + j*(stride)] = blue32; in draw_grid()
235 loc[i + j*(stride)] = white; in draw_grid()
[all …]
/system/core/liblog/tests/
Dliblog_test.cpp733 for(size_t j = 0; j < (sizeof(levels) / sizeof(levels[0])); ++j) { in TEST() local
734 if (levels[j].level == -2) { in TEST()
737 fprintf(stderr, "i=%zu j=%zu\r", i, j); in TEST()
738 if ((levels[i].level < levels[j].level) in TEST()
739 || (levels[j].level == -1)) { in TEST()
741 levels[j].level)); in TEST()
744 levels[j].level)); in TEST()
754 for(size_t j = 0; j < (sizeof(levels) / sizeof(levels[0])); ++j) { in TEST() local
756 buf[0] = levels[j].type; in TEST()
761 i, j, key, buf); in TEST()
[all …]
/system/extras/ext4_utils/
Djbd2.h117 #define JBD2_HAS_COMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_fe… argument
118 #define JBD2_HAS_RO_COMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s… argument
119 #define JBD2_HAS_INCOMPAT_FEATURE(j,mask) ((j)->j_format_version >= 2 && ((j)->j_superblock->s_… argument
/system/extras/tests/pftest/
Dpftest.c50 unsigned int j; in main() local
55 for (j = 0; j < sizeof(numPagesList)/sizeof(int); j++) { in main()
56 int numPages = numPagesList[j]; in main()
/system/keymaster/
Dhkdf.cpp81 size_t j = 0; in Rfc5869HmacSha256Kdf() local
84 j = sizeof(digest); in Rfc5869HmacSha256Kdf()
86 memcpy(buf + j, info, info_len); in Rfc5869HmacSha256Kdf()
87 j += info_len; in Rfc5869HmacSha256Kdf()
88 buf[j++] = static_cast<uint8_t>(i); in Rfc5869HmacSha256Kdf()
89 result = hmac.Sign(buf, j, digest, sizeof(digest)); in Rfc5869HmacSha256Kdf()
/system/extras/cpustats/
Dcpustats.c295 int i, j; in print_stats() local
383 int i, j; in should_print_freq_stats() local
386 for (j = 0; j < new_cpus[i].freq_count; j++) { in should_print_freq_stats()
387 if (new_cpus[i].freqs[j].time - old_cpus[i].freqs[j].time != in should_print_freq_stats()
388 new_cpus[0].freqs[j].time - old_cpus[0].freqs[j].time) { in should_print_freq_stats()
404 int i, j; in should_aggregate_freq_stats() local
410 for (j = 0; j < new_cpus[i].freq_count; j++) { in should_aggregate_freq_stats()
411 if (new_cpus[i].freqs[j].freq != new_cpus[0].freqs[j].freq) { in should_aggregate_freq_stats()
/system/bt/stack/rfcomm/
Drfc_utils.c135 int i, j; in rfc_alloc_multiplexer_channel() local
164 for (i = 0, j = rfc_cb.rfc.last_mux + 1; i < MAX_BD_CONNECTIONS; i++, j++) in rfc_alloc_multiplexer_channel()
166 if (j >= MAX_BD_CONNECTIONS) in rfc_alloc_multiplexer_channel()
167 j = 0; in rfc_alloc_multiplexer_channel()
169 p_mcb = &rfc_cb.port.rfc_mcb[j]; in rfc_alloc_multiplexer_channel()
170 if (rfc_cb.port.rfc_mcb[j].state == RFC_MX_STATE_IDLE) in rfc_alloc_multiplexer_channel()
176 is_initiator, &rfc_cb.port.rfc_mcb[j], j); in rfc_alloc_multiplexer_channel()
184 rfc_cb.rfc.last_mux = (UINT8) j; in rfc_alloc_multiplexer_channel()
/system/extras/tests/pagingtest/
Dthrashing_test.c17 unsigned i, j; in thrashing_test() local
52 for (j = 0; j < ARRAY_SIZE(fds); j++) { in thrashing_test()
57 bufs[j][k]; in thrashing_test()
Dpageinout_test.c16 long long j; in pageinout_test() local
49 for (j = ((file_size - 1) & ~(pagesize - 1)); j >= 0; j -= pagesize) { in pageinout_test()
50 buf[j]; in pageinout_test()
/system/core/libmincrypt/
Dp256_ec.c844 felem z1z1, z1z1z1, s2, u2, h, i, j, r, rr, v, tmp; in point_add_mixed() local
855 felem_mul(j, h, i); in point_add_mixed()
862 felem_diff(x_out, rr, j); in point_add_mixed()
868 felem_mul(tmp, y1, j); in point_add_mixed()
882 felem z1z1, z1z1z1, z2z2, z2z2z2, s1, s2, u1, u2, h, i, j, r, rr, v, tmp; in point_add() local
902 felem_mul(j, h, i); in point_add()
909 felem_diff(x_out, rr, j); in point_add()
915 felem_mul(tmp, s1, j); in point_add()
929 felem z1z1, z1z1z1, z2z2, z2z2z2, s1, s2, u1, u2, h, i, j, r, rr, v, tmp; in point_add_or_double_vartime() local
951 felem_mul(j, h, i); in point_add_or_double_vartime()
[all …]
/system/netd/server/
DSoftapController.cpp215 int j; in generatePsk() local
220 for (j=0; j < SHA256_DIGEST_LENGTH; j++) { in generatePsk()
221 sprintf(&psk_str[j*2], "%02x", psk[j]); in generatePsk()
/system/bt/bta/sys/
Dutl.c124 UINT16 j, k; in utl_itoa() local
135 for(j = 10000; j > 0; j /= 10) in utl_itoa()
137 k = i / j; in utl_itoa()
138 i %= j; in utl_itoa()
/system/extras/librank/
Dlibrank.c218 size_t i, j; in main() local
348 for (j = 0; j < num_maps; j++) { in main()
349 if (prefix && (strncmp(pm_map_name(maps[j]), prefix, prefix_len))) in main()
352 if (perm && (pm_map_flags(maps[j]) & PM_MAP_PERMISSIONS) != perm) in main()
355 li = get_library(pm_map_name(maps[j]), all); in main()
361 error = pm_map_usage_flags(maps[j], &map_usage, flags_mask, in main()
366 pm_map_name(maps[j]), proc->pid); in main()
402 for (j = 0; j < li->mappings_count; j++) { in main()
403 mi = li->mappings[j]; in main()
/system/extras/ksmutils/
Dksminfo.c191 size_t i, j, k; in read_pages() local
238 for (j = 0; j < map_len; j++) { in read_pages()
239 error = pm_kernel_flags(ker, PM_PAGEMAP_PFN(pagemap[j]), &flags); in read_pages()
248 vaddr = pm_map_start(maps[i]) + j * pm_kernel_pagesize(ker); in read_pages()
280 rc = pm_kernel_count(ker, PM_PAGEMAP_PFN(pagemap[j]), &kp->pages[kp->len].count); in read_pages()
345 size_t i, j, k; in print_pages() local
369 j = 0; in print_pages()
370 while (j < kp->pages[i].vaddr_len) { in print_pages()
372 for (k = 0; k < 8 && j < kp->pages[i].vaddr_len; k++, j++) { in print_pages()
373 printf(" 0x%08lx", kp->pages[i].vaddr[j].addr); in print_pages()
[all …]
/system/core/toolbox/
Dgetevent.c65 int i, j; in print_input_props() local
78 for(j = 0; j < 8; j++) { in print_input_props()
79 if (bits[i] & 1 << j) { in print_input_props()
80 bit_label = get_label(input_prop_labels, i * 8 + j); in print_input_props()
84 printf(" %04x\n", i * 8 + j); in print_input_props()
99 int i, j, k; in print_possible_events() local
173 for(j = 0; j < res; j++) { in print_possible_events()
175 if(bits[j] & 1 << k) { in print_possible_events()
177 if(j < res2 && (bits[j + bits_size] & 1 << k)) in print_possible_events()
186 bit_label = get_label(bit_labels, j * 8 + k); in print_possible_events()
[all …]
/system/media/audio_route/
Daudio_route.c101 unsigned int j; in path_print() local
108 for (j = 0; j < path->setting[i].num_values; j++) in path_print()
109 ALOGE(" id=%d value=%d", j, path->setting[i].value[j]); in path_print()
325 unsigned int j; in path_reset() local
476 unsigned int j; in alloc_mixer_state() local
537 unsigned int j; in audio_route_update_mixer() local
553 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
554 if (ar->mixer_state[i].old_value[j] != ar->mixer_state[i].new_value[j]) { in audio_route_update_mixer()
655 unsigned int j; in audio_route_update_path() local
685 for (j = 0; j < ms->num_values; j++) { in audio_route_update_path()
[all …]
/system/core/libmemtrack/
Dmemtrack.c149 size_t j; in memtrack_proc_sum() local
153 for (j = 0; j < p->types[type].num_records; j++) { in memtrack_proc_sum()
154 if ((p->types[type].records[j].flags & flags) == flags) { in memtrack_proc_sum()
155 sum += p->types[type].records[j].size_in_bytes; in memtrack_proc_sum()

1234