Home
last modified time | relevance | path

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

12345678

/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/media/audio_utils/
Dmono_blend.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
DBalance.cpp112 for (size_t j = 0; j < mChannelCount; ++j) { in process() local
113 mDeltas[j] = (mVolumes[j] - mRampVolumes[j]) * r; in process()
119 for (size_t j = 0; j < mChannelCount; ++j) { // better precision: delta * i in process() local
120 *buffer++ *= mRampVolumes[j] + mDeltas[j] * findex; in process()
133 for (size_t j = 0; j < mChannelCount; ++j) { in process() local
134 *buffer++ *= mVolumes[j]; in process()
/system/bt/bta/dm/
Dbta_dm_pm.cc99 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_init_pm() local
100 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm()
125 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_disable_pm() local
126 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm()
127 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
167 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer()
255 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer_by_srvc_id() local
256 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) { in bta_dm_pm_stop_timer_by_srvc_id()
257 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/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/extras/simpleperf/
Dbuild_id.h49 for (size_t j = i; j < i + 2; ++j) { in BuildId() local
51 if (s[j] >= '0' && s[j] <= '9') { in BuildId()
52 ch |= s[j] - '0'; in BuildId()
53 } else if (s[j] >= 'a' && s[j] <= 'f') { in BuildId()
54 ch |= s[j] - 'a' + 10; in BuildId()
55 } else if (s[j] >= 'A' && s[j] <= 'F') { in BuildId()
56 ch |= s[j] - 'A' + 10; in BuildId()
/system/extras/tests/framebuffer/
Dfb_test.c208 int i, j; in draw_grid() local
213 for (j = 0; j < h/2; j++) { in draw_grid()
216 loc[i + j*(stride)] = red; in draw_grid()
218 loc32[i + j*(stride)] = red32; in draw_grid()
221 loc[i + j*(stride)] = green; in draw_grid()
223 loc32[i + j*(stride)] = green32; in draw_grid()
226 for (; j < h; j++) { in draw_grid()
229 loc[i + j*(stride)] = blue; in draw_grid()
231 loc32[i + j*(stride)] = blue32; in draw_grid()
234 loc[i + j*(stride)] = white; in draw_grid()
[all …]
/system/extras/ext4_utils/include/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/core/storaged/tools/
Dranker.py109 for j in range(8):
110 task_io[j] += long(words[i+j])
113 for j in range(8):
114 task_io.append(long(words[i+j]))
127 for j in range(8):
128 uid_io[j] += long(words[i+j])
131 uid_io = [long(words[i+j]) for j in range(8)]
163 for j in range(min(args.uidcnt, len(uid_rank[0]))):
164 uid = uid_rank[i][j][1]
/system/bt/btif/src/
Dbtif_config_transcode.cc48 for (XMLElement* j = i->FirstChildElement(); j != NULL; in btif_config_transcode() local
49 j = j->NextSiblingElement()) { in btif_config_transcode()
50 const char* section = j->Attribute("Tag"); in btif_config_transcode()
51 for (XMLElement* k = j->FirstChildElement(); k != NULL; in btif_config_transcode()
/system/extras/mmap-perf/
DmmapPerf.cpp94 void benchLinearRead(unsigned int j) { in benchLinearRead() argument
95 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearRead()
98 void benchLinearWrite(unsigned int j) { in benchLinearWrite() argument
99 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearWrite()
136 unsigned int j = 0; in benchLinearRead() local
138 file.benchLinearRead(j); in benchLinearRead()
139 j = (j + 1) % pagesTotal; in benchLinearRead()
147 unsigned int j = 0; in benchLinearWrite() local
149 file.benchLinearWrite(j); in benchLinearWrite()
150 j = (j + 1) % pagesTotal; in benchLinearWrite()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c277 uint i, j; in closer3_test() local
289 for (j = 0; j < 4; j++) { in closer3_test()
290 fd[j] = tipc_connect(dev_name, closer3_name); in closer3_test()
291 if (fd[j] < 0) { in closer3_test()
292 fprintf(stderr, "fd[%d]: failed to connect to '%s' service\n", j, "closer3"); in closer3_test()
295 printf("%s: fd[%d]=%d: connected\n", __func__, j, fd[j]); in closer3_test()
297 memset(buf, i + j, sizeof(buf)); in closer3_test()
298 rc = write(fd[j], buf, sizeof(buf)); in closer3_test()
302 __func__, j, fd[j], rc); in closer3_test()
313 for (j = 0; j < 4; j++) { in closer3_test()
[all …]
/system/extras/tests/memeater/
Dmemeater.c74 for (int j = 0; j < bytesToAllocate; j++) { in main() local
75 p[j] = j & 0xFF; in main()
/system/libfmq/benchmarks/
Dmsgq_benchmark_client.cpp167 for (uint32_t j = 0; j < numLoops; j++) { in TEST_F() local
202 for (uint32_t j = 0; j < numLoops; j++) { in TEST_F() local
234 for (uint32_t j = 0; j < numLoops; j++) { in TEST_F() local
266 for (uint32_t j = 0; j < numLoops; j++) { in TEST_F() local
295 for (uint32_t j = 0; j < numLoops; j++) { in TEST_F() local
329 for (uint32_t j = 0; j < numLoops; j++) { in TEST_F() local
362 for (uint32_t j = 0; j < numLoops; j++) { in TEST_F() local
397 for (uint32_t j = 0; j < numLoops; j++) { in TEST_F() local
/system/chre/apps/wifi_offload/test/
Drandomgenerator_test.cc73 for (size_t j = 0; j < repeats_to_fill_8_bytes; j++) { in GeneratesDifferentNumbersIn8Bytes() local
82 for (size_t j = i + 1; j < num_values; j++) { in GeneratesDifferentNumbersIn8Bytes() local
83 ASSERT_NE(rand_values[i], rand_values[j]); in GeneratesDifferentNumbersIn8Bytes()
Dchannelhistogram_test.cc61 for (size_t j = 0; j < kNumFrequencies_Test; j++) { in TEST_F() local
62 EXPECT_EQ(kAllChannels_Test[i] == kAllChannels_Test[j] ? 255 : 0, in TEST_F()
63 histo.GetChannelScanCount(kAllChannels_Test[j])); in TEST_F()
/system/extras/verity/fec/
Dmain.cpp45 int j; in encode_rs() local
50 for (j = 0; j < fcx->rs_n; ++j) { in encode_rs()
51 data[j] = image_get_interleaved_byte(i + j, fcx); in encode_rs()
62 int j, rv; in decode_rs() local
69 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs()
70 data[j] = image_get_interleaved_byte(i + j, fcx); in decode_rs()
81 for (j = 0; j < fcx->rs_n; ++j) { in decode_rs()
82 image_set_interleaved_byte(i + j, fcx, data[j]); in decode_rs()
/system/media/audio_route/
Daudio_route.c131 unsigned int j;
139 for (j = 0; j < path->setting[i].num_values; j++)
140 ALOGE(" id=%d value=0x%02x", j, path->setting[i].value.bytes[j]);
142 for (j = 0; j < path->setting[i].num_values; j++)
143 ALOGE(" id=%d value=%d", j, path->setting[i].value.enumerated[j]);
145 for (j = 0; j < path->setting[i].num_values; j++)
146 ALOGE(" id=%d value=%ld", j, path->setting[i].value.integer[j]);
159 size_t j; in path_free() local
160 for (j = 0; j < ar->mixer_path[i].length; j++) { in path_free()
161 free(ar->mixer_path[i].setting[j].value.ptr); in path_free()
[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/sepolicy/tools/sepolicy-analyze/
Dtypecmp.c162 size_t i, j; in analyze_types() local
220 for (j = i + 1; j < policydb->p_types.nprim; j++) { in analyze_types()
221 type = policydb->type_val_to_struct[j]; in analyze_types()
223 free_type_rules(type_rules[j].next); in analyze_types()
224 type_rules[j].next = NULL; in analyze_types()
227 for (l1 = type_rules[i].next, l2 = type_rules[j].next; in analyze_types()
242 policydb->p_type_val_to_name[j]); in analyze_types()
245 if (find_match(policydb, l1, i, l2, j)) in analyze_types()
247 if (find_match(policydb, l2, j, l1, i)) in analyze_types()
253 display_allow(policydb, &l2->key, j, l2->datum.data); in analyze_types()
[all …]
/system/update_engine/payload_consumer/
Dverity_writer_android.cc150 for (size_t j = 0; j < rs_n; j++) { in EncodeFEC() local
153 fec_ecc_interleave(i * rs_n * block_size + j, rs_n, rounds); in EncodeFEC()
166 rs_blocks[k * rs_n + j] = buffer[k]; in EncodeFEC()
170 for (size_t j = 0; j < block_size; j++) { in EncodeFEC() local
174 rs_blocks.data() + j * rs_n, in EncodeFEC()
175 fec.data() + j * fec_roots); in EncodeFEC()
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java798 for (int j = 0; j < 6; ++j, ++k) { in client()
799 mac[j] = (byte)k; in client()
822 for (int j = 0; j < 6; ++j, ++k) { in client()
823 mac[j] = (byte)k; in client()
849 for (int j = 0; j < 3; ++j) { in client()
850 in.s[i][j] = numberToEnglish(3 * i + j + 1); in client()
851 expectedOut.s[j][i] = in.s[i][j]; in client()
866 for (int j = 0; j < 3; ++j) { in client()
867 in[i][j] = numberToEnglish(3 * i + j + 1); in client()
868 expectedOut[j][i] = in[i][j]; in client()
[all …]
/system/bt/bta/sys/
Dutl.cc114 uint16_t j, k; in utl_itoa() local
122 for (j = 10000; j > 0; j /= 10) { in utl_itoa()
123 k = i / j; in utl_itoa()
124 i %= j; in utl_itoa()
/system/bt/stack/rfcomm/
Drfc_utils.cc135 int i, j; in rfc_alloc_multiplexer_channel() local
163 for (i = 0, j = rfc_cb.rfc.last_mux + 1; i < MAX_BD_CONNECTIONS; i++, j++) { in rfc_alloc_multiplexer_channel()
164 if (j >= MAX_BD_CONNECTIONS) j = 0; in rfc_alloc_multiplexer_channel()
166 p_mcb = &rfc_cb.port.rfc_mcb[j]; in rfc_alloc_multiplexer_channel()
167 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()
185 rfc_cb.rfc.last_mux = (uint8_t)j; in rfc_alloc_multiplexer_channel()

12345678