Home
last modified time | relevance | path

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

123456

/system/tools/aidl/tests/
Dtest_util.cpp74 for (size_t j = 0; j < b_lines.size() + 1; ++j) { in PrintDiff() local
75 if (i == 0 || j == 0) { in PrintDiff()
82 if (j) { in PrintDiff()
86 table[i][j].longest_common_subsequence_length = 0; in PrintDiff()
87 table[i][j].propagation_directions = directions; in PrintDiff()
88 } else if (a_lines[i-1] == b_lines[j-1]) { in PrintDiff()
89 table[i][j].longest_common_subsequence_length = in PrintDiff()
90 table[i-1][j-1].longest_common_subsequence_length + 1; in PrintDiff()
91 table[i][j].propagation_directions = UP_LEFT; in PrintDiff()
93 size_t length_up = table[i-1][j].longest_common_subsequence_length; in PrintDiff()
[all …]
/system/bt/bta/dm/
Dbta_dm_pm.c90 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_init_pm() local
91 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm()
119 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_disable_pm() local
121 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm()
122 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm()
166 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_pm_stop_timer() local
168 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer()
260 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_pm_stop_timer_by_srvc_id() local
262 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) in bta_dm_pm_stop_timer_by_srvc_id()
264 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/media/audio_utils/
Dconversion.cpp36 for (size_t j = 0; j < channelCount; ++j) { in mono_blend() local
40 for (size_t j = 0; j < channelCount; ++j) { in mono_blend() local
51 for (size_t j = 0; j < channelCount; ++j) { in mono_blend() local
59 for (size_t j = 0; j < channelCount; ++j) { in mono_blend() local
/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/btif/src/
Dbtif_sock_util.c172 int i, j, addr; in dump_bin() local
185 for(j = 0; j < width; j++) in dump_bin()
187 byte2hex((const char*)&j, &line); in dump_bin()
201 for(j = 0; j < width; j++) in dump_bin()
203 byte2hex(&data[j], &line); in dump_bin()
207 for(j = 0; j < width; j++) in dump_bin()
224 for(j = 0; j < leftover; j++) { in dump_bin()
225 byte2hex(&data[j], &line); in dump_bin()
229 for(; j < width; j++) { in dump_bin()
235 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.c188 UINT8 i, j; in btif_hl_if_channel_setup_pending() local
198 for (j=0; j< BTA_HL_NUM_MCLS; j++) in btif_hl_if_channel_setup_pending()
200 p_mcb = BTIF_HL_GET_MCL_CB_PTR(i, j); in btif_hl_if_channel_setup_pending()
206 *p_mcl_idx = j; in btif_hl_if_channel_setup_pending()
231 UINT8 i,j,x; in btif_hl_num_dchs_in_use() local
240 for (j=0; j < BTA_HL_NUM_MCLS ; j++) in btif_hl_num_dchs_in_use()
242 if(p_acb->mcb[j].in_use) in btif_hl_num_dchs_in_use()
244 j,mcl_handle, p_acb->mcb[j].mcl_handle); in btif_hl_num_dchs_in_use()
245 if (p_acb->mcb[j].in_use && in btif_hl_num_dchs_in_use()
246 (p_acb->mcb[j].mcl_handle == mcl_handle)) in btif_hl_num_dchs_in_use()
[all …]
/system/core/libpixelflinger/tests/arch-mips/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/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/extras/simpleperf/
Dbuild_id.h45 for (size_t j = i; j < i + 2; ++j) { in BuildId() local
47 if (s[j] >= '0' && s[j] <= '9') { in BuildId()
48 ch |= s[j] - '0'; in BuildId()
49 } else if (s[j] >= 'a' && s[j] <= 'f') { in BuildId()
50 ch |= s[j] - 'a' + 10; in BuildId()
51 } else if (s[j] >= 'A' && s[j] <= 'F') { in BuildId()
52 ch |= s[j] - 'A' + 10; in BuildId()
/system/core/libpixelflinger/tests/arch-mips64/col32cb16blend/
Dcol32cb16blend_test.c88 uint32_t i, j; in scanline_col32cb16blend_test() local
99 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
101 dst_c[j] = test.dst_color; in scanline_col32cb16blend_test()
102 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/libpixelflinger/tests/arch-mips/col32cb16blend/
Dcol32cb16blend_test.c88 uint32_t i, j; in scanline_col32cb16blend_test() local
99 for(j = 0; j < test.count; ++j) in scanline_col32cb16blend_test()
101 dst_c[j] = test.dst_color; in scanline_col32cb16blend_test()
102 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/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/core/trusty/libtrusty/tipc-test/
Dtipc_test.c274 uint i, j; in closer3_test() local
286 for (j = 0; j < 4; j++) { in closer3_test()
287 fd[j] = tipc_connect(dev_name, closer3_name); in closer3_test()
288 if (fd[j] < 0) { in closer3_test()
289 fprintf(stderr, "fd[%d]: failed to connect to '%s' service\n", j, "closer3"); in closer3_test()
292 printf("%s: fd[%d]=%d: connected\n", __func__, j, fd[j]); in closer3_test()
294 memset(buf, i + j, sizeof(buf)); in closer3_test()
295 rc = write(fd[j], buf, sizeof(buf)); in closer3_test()
299 __func__, j, fd[j], rc); in closer3_test()
310 for (j = 0; j < 4; j++) { in closer3_test()
[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/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/mmap-perf/
DmmapPerf.cpp93 void benchLinearRead(unsigned int j) { in benchLinearRead() argument
94 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearRead()
97 void benchLinearWrite(unsigned int j) { in benchLinearWrite() argument
98 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearWrite()
135 unsigned int j = 0; in benchLinearRead() local
137 file.benchLinearRead(j); in benchLinearRead()
138 j = (j + 1) % pagesTotal; in benchLinearRead()
146 unsigned int j = 0; in benchLinearWrite() local
148 file.benchLinearWrite(j); in benchLinearWrite()
149 j = (j + 1) % pagesTotal; in benchLinearWrite()
/system/extras/verity/fec/
Dmain.cpp46 int j; in encode_rs() local
51 for (j = 0; j < fcx->rs_n; ++j) { in encode_rs()
52 data[j] = image_get_interleaved_byte(i + j, fcx); in encode_rs()
63 int j, rv; in decode_rs() local
70 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs()
71 data[j] = image_get_interleaved_byte(i + j, fcx); in decode_rs()
82 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs()
83 image_set_interleaved_byte(i + j, fcx, data[j]); in decode_rs()
/system/media/audio_route/
Daudio_route.c130 unsigned int j;
138 for (j = 0; j < path->setting[i].num_values; j++)
139 ALOGE(" id=%d value=0x%02x", j, path->setting[i].value.bytes[j]);
141 for (j = 0; j < path->setting[i].num_values; j++)
142 ALOGE(" id=%d value=%d", j, path->setting[i].value.enumerated[j]);
144 for (j = 0; j < path->setting[i].num_values; j++)
145 ALOGE(" id=%d value=%ld", j, path->setting[i].value.integer[j]);
624 unsigned int j; in audio_route_update_mixer() local
641 for (j = 0; j < num_values; j++) { in audio_route_update_mixer()
642 … if (ar->mixer_state[i].old_value.bytes[j] != ar->mixer_state[i].new_value.bytes[j]) { in audio_route_update_mixer()
[all …]
/system/sepolicy/tools/sepolicy-analyze/
Dtypecmp.c162 size_t i, j; in analyze_types() local
213 for (j = i + 1; j < policydb->p_types.nprim; j++) { in analyze_types()
214 type = policydb->type_val_to_struct[j]; in analyze_types()
216 free_type_rules(type_rules[j].next); in analyze_types()
217 type_rules[j].next = NULL; in analyze_types()
220 for (l1 = type_rules[i].next, l2 = type_rules[j].next; in analyze_types()
235 policydb->p_type_val_to_name[j]); in analyze_types()
238 if (find_match(policydb, l1, i, l2, j)) in analyze_types()
240 if (find_match(policydb, l2, j, l1, i)) in analyze_types()
246 display_allow(policydb, &l2->key, j, l2->datum.data); in analyze_types()
[all …]
/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/extras/cpustats/
Dcpustats.c301 int i, j; in print_stats() local
389 int i, j; in should_print_freq_stats() local
392 for (j = 0; j < new_cpus[i].freq_count; j++) { in should_print_freq_stats()
393 if (new_cpus[i].freqs[j].time - old_cpus[i].freqs[j].time != in should_print_freq_stats()
394 new_cpus[0].freqs[j].time - old_cpus[0].freqs[j].time) { in should_print_freq_stats()
410 int i, j; in should_aggregate_freq_stats() local
416 for (j = 0; j < new_cpus[i].freq_count; j++) { in should_aggregate_freq_stats()
417 if (new_cpus[i].freqs[j].freq != new_cpus[0].freqs[j].freq) { in should_aggregate_freq_stats()
/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/tests/pagingtest/
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()

123456