/system/media/audio_utils/ |
D | mono_blend.cpp | 33 for (size_t j = 0; j < channelCount; ++j) { in mono_blend() local 37 for (size_t j = 0; j < channelCount; ++j) { in mono_blend() local 48 for (size_t j = 0; j < channelCount; ++j) { in mono_blend() local 56 for (size_t j = 0; j < channelCount; ++j) { in mono_blend() local
|
D | Balance.cpp | 93 for (size_t j = 0; j < mChannelCount; ++j) { in process() local 94 mDeltas[j] = (mVolumes[j] - mRampVolumes[j]) * r; in process() 100 for (size_t j = 0; j < mChannelCount; ++j) { // better precision: delta * i in process() local 101 *buffer++ *= mRampVolumes[j] + mDeltas[j] * findex; in process() 114 for (size_t j = 0; j < mChannelCount; ++j) { in process() local 115 *buffer++ *= mVolumes[j]; in process()
|
/system/tools/aidl/tests/ |
D | test_util.cpp | 74 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/extras/simpleperf/ |
D | build_id.h | 47 for (size_t j = i; j < i + 2; ++j) { in BuildId() local 49 if (s[j] >= '0' && s[j] <= '9') { in BuildId() 50 ch |= s[j] - '0'; in BuildId() 51 } else if (s[j] >= 'a' && s[j] <= 'f') { in BuildId() 52 ch |= s[j] - 'a' + 10; in BuildId() 53 } else if (s[j] >= 'A' && s[j] <= 'F') { in BuildId() 54 ch |= s[j] - 'A' + 10; in BuildId()
|
/system/bt/bta/dm/ |
D | bta_dm_pm.cc | 92 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) in bta_dm_init_pm() local 93 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm() 118 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_disable_pm() local 119 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm() 120 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm() 159 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer() local 160 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer() 248 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer_by_srvc_id() local 249 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) { in bta_dm_pm_stop_timer_by_srvc_id() 250 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/extras/tests/framebuffer/ |
D | fb_test.c | 208 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/ |
D | jbd2.h | 112 #define JBD2_HAS_COMPAT_FEATURE(j, mask) \ argument 113 ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_compat & cpu_to_be32((mask)))) 114 #define JBD2_HAS_RO_COMPAT_FEATURE(j, mask) \ argument 115 ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_ro_compat & cpu_to_be32((mask)))) 116 #define JBD2_HAS_INCOMPAT_FEATURE(j, mask) \ argument 117 ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_incompat & cpu_to_be32((mask))))
|
/system/core/storaged/tools/ |
D | ranker.py | 109 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/ |
D | btif_config_transcode.cc | 48 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/ |
D | mmapPerf.cpp | 94 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/extras/tests/memeater/ |
D | memeater.c | 74 for (int j = 0; j < bytesToAllocate; j++) { in main() local 75 p[j] = j & 0xFF; in main()
|
/system/chre/apps/wifi_offload/test/ |
D | randomgenerator_test.cc | 73 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()
|
D | channelhistogram_test.cc | 61 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/libfmq/benchmarks/ |
D | msgq_benchmark_client.cpp | 167 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/core/trusty/libtrusty/tipc-test/ |
D | tipc_test.c | 282 uint i, j; in closer3_test() local 294 for (j = 0; j < 4; j++) { in closer3_test() 295 fd[j] = tipc_connect(dev_name, closer3_name); in closer3_test() 296 if (fd[j] < 0) { in closer3_test() 297 fprintf(stderr, "fd[%d]: failed to connect to '%s' service\n", j, "closer3"); in closer3_test() 300 printf("%s: fd[%d]=%d: connected\n", __func__, j, fd[j]); in closer3_test() 302 memset(buf, i + j, sizeof(buf)); in closer3_test() 303 rc = write(fd[j], buf, sizeof(buf)); in closer3_test() 307 __func__, j, fd[j], rc); in closer3_test() 318 for (j = 0; j < 4; j++) { in closer3_test() [all …]
|
/system/extras/verity/fec/ |
D | main.cpp | 45 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/extras/tests/pftest/ |
D | pftest.c | 50 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/media/audio_route/ |
D | audio_route.c | 144 unsigned int j; 152 for (j = 0; j < path->setting[i].num_values; j++) 153 ALOGE(" id=%d value=0x%02x", j, path->setting[i].value.bytes[j]); 155 for (j = 0; j < path->setting[i].num_values; j++) 156 ALOGE(" id=%d value=%d", j, path->setting[i].value.enumerated[j]); 158 for (j = 0; j < path->setting[i].num_values; j++) 159 ALOGE(" id=%d value=%ld", j, path->setting[i].value.integer[j]); 172 size_t j; in path_free() local 173 for (j = 0; j < ar->mixer_path[i].length; j++) { in path_free() 174 free(ar->mixer_path[i].setting[j].value.ptr); in path_free() [all …]
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | typecmp.c | 162 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/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/ |
D | HidlTestJava.java | 799 for (int j = 0; j < 6; ++j, ++k) { in client() 800 mac[j] = (byte)k; in client() 823 for (int j = 0; j < 6; ++j, ++k) { in client() 824 mac[j] = (byte)k; in client() 850 for (int j = 0; j < 3; ++j) { in client() 851 in.s[i][j] = numberToEnglish(3 * i + j + 1); in client() 852 expectedOut.s[j][i] = in.s[i][j]; in client() 867 for (int j = 0; j < 3; ++j) { in client() 868 in[i][j] = numberToEnglish(3 * i + j + 1); in client() 869 expectedOut[j][i] = in[i][j]; in client() [all …]
|
/system/bt/bta/sys/ |
D | utl.cc | 115 uint16_t j, k; in utl_itoa() local 123 for (j = 10000; j > 0; j /= 10) { in utl_itoa() 124 k = i / j; in utl_itoa() 125 i %= j; in utl_itoa()
|
/system/bt/stack/rfcomm/ |
D | rfc_utils.cc | 134 int i, j; in rfc_alloc_multiplexer_channel() local 162 for (i = 0, j = rfc_cb.rfc.last_mux + 1; i < MAX_BD_CONNECTIONS; i++, j++) { in rfc_alloc_multiplexer_channel() 163 if (j >= MAX_BD_CONNECTIONS) j = 0; in rfc_alloc_multiplexer_channel() 165 p_mcb = &rfc_cb.port.rfc_mcb[j]; in rfc_alloc_multiplexer_channel() 166 if (rfc_cb.port.rfc_mcb[j].state == RFC_MX_STATE_IDLE) { in rfc_alloc_multiplexer_channel() 175 is_initiator, &rfc_cb.port.rfc_mcb[j], j); in rfc_alloc_multiplexer_channel() 184 rfc_cb.rfc.last_mux = (uint8_t)j; in rfc_alloc_multiplexer_channel()
|
/system/update_engine/payload_consumer/ |
D | verity_writer_android.cc | 174 for (size_t j = 0; j < rs_n; j++) { in EncodeFEC() local 177 fec_ecc_interleave(i * rs_n * block_size + j, rs_n, rounds); in EncodeFEC() 190 rs_blocks[k * rs_n + j] = buffer[k]; in EncodeFEC() 194 for (size_t j = 0; j < block_size; j++) { in EncodeFEC() local 198 rs_blocks.data() + j * rs_n, in EncodeFEC() 199 fec.data() + j * fec_roots); in EncodeFEC()
|
/system/chre/util/tests/ |
D | memory_pool_test.cc | 77 for (size_t j = 0; j < kMemoryPoolSize; j++) { in TEST() local 80 .expectedValue = j, in TEST() 83 *allocation.allocation = j; in TEST()
|
/system/extras/tests/pagingtest/ |
D | pageinout_test.c | 17 unsigned long long j; in pageinout_test() local 59 for (j = 0; j < file_size; j += pagesize) { in pageinout_test() 60 buf[j]; in pageinout_test()
|