Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 316) sorted by relevance

12345678910>>...13

/system/core/libpixelflinger/codeflinger/
Dmips_disassem.c189 InstFmt i; in db_disasm_insn() local
191 i.word = insn; in db_disasm_insn()
193 switch (i.JType.op) { in db_disasm_insn()
195 if (i.word == 0) { in db_disasm_insn()
199 if (i.word == 0x0080) { in db_disasm_insn()
203 if (i.word == 0x00c0) { in db_disasm_insn()
211 if ( (i.RType.func == OP_ADDU && i.RType.rt == 0) || in db_disasm_insn()
212 (i.RType.func == OP_OR && i.RType.rt == 0) ) { in db_disasm_insn()
214 reg_name[i.RType.rd], in db_disasm_insn()
215 reg_name[i.RType.rs]); in db_disasm_insn()
[all …]
/system/core/libmincrypt/
Drsa.c36 int i; in subM() local
37 for (i = 0; i < key->len; ++i) { in subM()
38 A += (uint64_t)a[i] - key->n[i]; in subM()
39 a[i] = (uint32_t)A; in subM()
47 int i; in geM() local
48 for (i = key->len; i;) { in geM()
49 --i; in geM()
50 if (a[i] < key->n[i]) return 0; in geM()
51 if (a[i] > key->n[i]) return 1; in geM()
64 int i; in montMulAdd() local
[all …]
Dp256.c64 int i, result = 0; in p256_is_zero() local
65 for (i = 0; i < P256_NDIGITS; ++i) result |= P256_DIGIT(a, i); in p256_is_zero()
75 int i; in mulAdd() local
78 for (i = 0; i < P256_NDIGITS; ++i) { in mulAdd()
80 carry += (p256_ddigit)P256_DIGIT(a, i) * b; in mulAdd()
92 int i; in subTop() local
95 for (i = 0; i < P256_NDIGITS; ++i) { in subTop()
114 int i; in subM() local
116 for (i = 0; i < P256_NDIGITS; ++i) { in subM()
118 borrow -= P256_DIGIT(MOD, i) & mask; in subM()
[all …]
Dp256_ec.c220 unsigned i; in felem_sum() local
222 for (i = 0;; i++) { in felem_sum()
223 out[i] = in[i] + in2[i]; in felem_sum()
224 out[i] += carry; in felem_sum()
225 carry = out[i] >> 29; in felem_sum()
226 out[i] &= kBottom29Bits; in felem_sum()
228 i++; in felem_sum()
229 if (i == NLIMBS) in felem_sum()
232 out[i] = in[i] + in2[i]; in felem_sum()
233 out[i] += carry; in felem_sum()
[all …]
/system/core/libion/tests/
Ddevice_test.cpp128 for (size_t i = size-1; i > 0; i--) { in dirtyCache() local
129 ((volatile char *)ptr)[i]; in dirtyCache()
130 ((char *)ptr)[i] = i; in dirtyCache()
151 for (int i = 0; i < 4096; i++) in TEST_F() local
152 ((char *)ptr)[i] = i; in TEST_F()
158 for (int i = 0; i < 4096; i++) in TEST_F() local
159 ASSERT_EQ((char)i, ((char *)buf)[i]); in TEST_F()
173 for (int i = 0; i < 4096; i++) in TEST_F() local
174 ((char *)buf)[i] = i; in TEST_F()
192 for (int i = 0; i < 4096; i++) in TEST_F() local
[all …]
/system/extras/tests/memtest/
Dfptest.cpp60 for(int i=0; i<1020; i++) { in test_mad() local
61 data_f[i] = i; in test_mad()
69 for (int i=0; i < 1000; i++) { in test_mad() local
70 data_f[i] = (data_f[i] * 0.02f + in test_mad()
71 data_f[i+1] * 0.04f + in test_mad()
72 data_f[i+2] * 0.05f + in test_mad()
73 data_f[i+3] * 0.1f + in test_mad()
74 data_f[i+4] * 0.2f + in test_mad()
75 data_f[i+5] * 0.2f + in test_mad()
76 data_f[i+6] * 0.1f + in test_mad()
[all …]
/system/extras/cpustats/
Dcpustats.c71 int i, freq_count; in main() local
78 for (i = 0; i < argc; i++) { in main()
79 if (!strcmp(argv[i], "-n")) { in main()
80 if (i + 1 >= argc) { in main()
85 iterations = atoi(argv[++i]); in main()
88 if (!strcmp(argv[i], "-d")) { in main()
89 if (i + 1 >= argc) { in main()
94 delay = atoi(argv[++i]); in main()
97 if (!strcmp(argv[i], "-m")) { in main()
100 if (!strcmp(argv[i], "-h")) { in main()
[all …]
/system/media/audio_utils/
Dfixedfft.cpp113 int scale = LOG_FFT_SIZE, i, p, r; in fixed_fft() local
115 for (r = 0, i = 1; i < n; ++i) { in fixed_fft()
117 if (i < r) { in fixed_fft()
118 int32_t t = v[i]; in fixed_fft()
119 v[i] = v[r]; in fixed_fft()
127 for (i = 0; i < n; i += p << 1) { in fixed_fft()
128 int32_t x = half(v[i]); in fixed_fft()
129 int32_t y = half(v[i + p]); in fixed_fft()
130 v[i] = x + y; in fixed_fft()
131 v[i + p] = x - y; in fixed_fft()
[all …]
/system/core/libutils/tests/
DBlobCache_test.cpp119 for (int i = 0; i < MAX_KEY_SIZE+1; i++) { in TEST_F() local
120 key[i] = 'a'; in TEST_F()
132 for (int i = 0; i < MAX_VALUE_SIZE+1; i++) { in TEST_F() local
133 buf[i] = 'b'; in TEST_F()
136 for (int i = 0; i < MAX_VALUE_SIZE+1; i++) { in TEST_F() local
137 buf[i] = 0xee; in TEST_F()
140 for (int i = 0; i < MAX_VALUE_SIZE+1; i++) { in TEST_F() local
141 SCOPED_TRACE(i); in TEST_F()
142 ASSERT_EQ(0xee, buf[i]); in TEST_F()
155 for (int i = 0; i < MAX_KEY_SIZE; i++) { in TEST_F() local
[all …]
/system/media/audio_route/
Daudio_route.c100 unsigned int i; in path_print() local
104 for (i = 0; i < path->length; i++) { in path_print()
105 struct mixer_ctl *ctl = index_to_ctl(ar, path->setting[i].ctl_index); in path_print()
107 ALOGE(" id=%d: ctl=%s", i, mixer_ctl_get_name(ctl)); in path_print()
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()
115 unsigned int i; in path_free() local
117 for (i = 0; i < ar->num_mixer_paths; i++) { in path_free()
118 if (ar->mixer_path[i].name) in path_free()
119 free(ar->mixer_path[i].name); in path_free()
[all …]
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfastgrep.c60 unsigned int i; in fgrepcomp() local
71 for (i = 0; i <= UCHAR_MAX; i++) in fgrepcomp()
72 fg->qsBc[i] = fg->len; in fgrepcomp()
73 for (i = 1; i < fg->len; i++) in fgrepcomp()
74 fg->qsBc[fg->pattern[i]] = fg->len - i; in fgrepcomp()
83 unsigned int i; in fastcomp() local
129 for (i = 0; i < fg->len; i++) { in fastcomp()
131 if (fg->pattern[i] == '.') { in fastcomp()
132 hasDot = i; in fastcomp()
133 if (i < fg->len / 2) { in fastcomp()
[all …]
/system/core/libsync/
Dsync_test.c40 int i; in sync_thread() local
42 for (i = 0; i < 2; i++) { in sync_thread()
43 err = sync_wait(sync_data->fd[i], 10000); in sync_thread()
48 i, strerror(errno)); in sync_thread()
50 printf("thread %d wait %d done\n", sync_data->thread_no, i); in sync_thread()
52 info = sync_fence_info(sync_data->fd[i]); in sync_thread()
81 int i, j; in main() local
90 for (i = 0; i < 3; i++) { in main()
91 sync_data[i].thread_no = i; in main()
94 unsigned val = i + j * 3 + 1; in main()
[all …]
/system/core/fs_mgr/
Dfs_mgr.c261 int i; in mount_with_alternatives() local
273 for (i = start_idx; in mount_with_alternatives()
275i < fstab->num_entries && !strcmp(fstab->recs[start_idx].mount_point, fstab->recs[i].mount_point); in mount_with_alternatives()
276 i++) { in mount_with_alternatives()
284 … fstab->recs[i].mount_point, i, fstab->recs[i].fs_type, fstab->recs[*attempted_idx].fs_type); in mount_with_alternatives()
288 if (fstab->recs[i].fs_mgr_flags & MF_CHECK) { in mount_with_alternatives()
289 check_fs(fstab->recs[i].blk_device, fstab->recs[i].fs_type, in mount_with_alternatives()
290 fstab->recs[i].mount_point); in mount_with_alternatives()
292 if (!__mount(fstab->recs[i].blk_device, fstab->recs[i].mount_point, &fstab->recs[i])) { in mount_with_alternatives()
293 *attempted_idx = i; in mount_with_alternatives()
[all …]
/system/core/libutils/
DJenkinsHash.cpp35 size_t i; in JenkinsHashMixBytes() local
36 for (i = 0; i < (size & -4); i += 4) { in JenkinsHashMixBytes()
37 uint32_t data = bytes[i] | (bytes[i+1] << 8) | (bytes[i+2] << 16) | (bytes[i+3] << 24); in JenkinsHashMixBytes()
41 uint32_t data = bytes[i]; in JenkinsHashMixBytes()
42 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0; in JenkinsHashMixBytes()
43 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0; in JenkinsHashMixBytes()
51 size_t i; in JenkinsHashMixShorts() local
52 for (i = 0; i < (size & -2); i += 2) { in JenkinsHashMixShorts()
53 uint32_t data = shorts[i] | (shorts[i+1] << 16); in JenkinsHashMixShorts()
57 uint32_t data = shorts[i]; in JenkinsHashMixShorts()
/system/core/toolbox/
Dgetsebool.c17 int i, get_all = 0, rc = 0, active, pending, len = 0, opt; in getsebool_main() local
62 for (i = 0; i < len; i++) { in getsebool_main()
63 names[i] = strdup(argv[i + 1]); in getsebool_main()
64 if (!names[i]) { in getsebool_main()
72 for (i = 0; i < len; i++) { in getsebool_main()
73 active = security_get_boolean_active(names[i]); in getsebool_main()
78 names[i]); in getsebool_main()
82 pending = security_get_boolean_pending(names[i]); in getsebool_main()
85 names[i]); in getsebool_main()
90 printf("%s --> %s pending: %s\n", names[i], in getsebool_main()
[all …]
/system/core/libcutils/tests/
DMemsetTest.cpp103 for (int i = 0; i < FENCEPOST_LENGTH; i += 2) { in SetFencepost() local
104 buffer[i] = 0xde; in SetFencepost()
105 buffer[i+1] = 0xad; in SetFencepost()
110 for (int i = 0; i < FENCEPOST_LENGTH; i += 2) { in VerifyFencepost() local
111 if (buffer[i] != 0xde || buffer[i+1] != 0xad) { in VerifyFencepost()
113 if (buffer[i] == 0xde) { in VerifyFencepost()
114 i++; in VerifyFencepost()
119 ASSERT_EQ(expected_value, buffer[i]); in VerifyFencepost()
131 for (size_t i = 0; i < MAX_TEST_SIZE/sizeof(uint32_t); i++) { in RunMemsetTests() local
132 expected_buf[i] = value; in RunMemsetTests()
[all …]
/system/core/healthd/
DBatteryPropertiesRegistrar.cpp39 for (size_t i = 0; i < mListeners.size(); i++) { in notifyListeners() local
40 mListeners[i]->batteryPropertiesChanged(props); in notifyListeners()
50 for (size_t i = 0; i < mListeners.size(); i++) { in registerListener() local
51 if (mListeners[i]->asBinder() == listener->asBinder()) { in registerListener()
66 for (size_t i = 0; i < mListeners.size(); i++) { in unregisterListener() local
67 if (mListeners[i]->asBinder() == listener->asBinder()) { in unregisterListener()
68 mListeners[i]->asBinder()->unlinkToDeath(this); in unregisterListener()
69 mListeners.removeAt(i); in unregisterListener()
95 for (size_t i = 0; i < mListeners.size(); i++) { in binderDied() local
96 if (mListeners[i]->asBinder() == who) { in binderDied()
[all …]
/system/core/fastboot/
Dusbtest.c91 unsigned i; in test_null() local
97 for(i = 0; i < arg_count; i++) { in test_null()
110 unsigned i; in test_zero() local
115 for(i = 0; i < arg_count; i++) { in test_zero()
142 int i; in usage() local
145 for(i = 0; tests[i].cmd; i++) { in usage()
146 fprintf(stderr," %-8s %s\n", tests[i].cmd, tests[i].help); in usage()
181 int i; in main() local
191 for(i = 0; tests[i].cmd; i++) { in main()
192 if(!strcmp(argv[1], tests[i].cmd)) { in main()
[all …]
/system/extras/tests/bionic/libc/common/
Dtest_gethostbyname.c40 int i, ret; in main() local
53 for (i = 0; hent->h_aliases[i] != NULL; i++) in main()
54 printf( " %s", hent->h_aliases[i] ); in main()
67 for (i = 0; i < hent->h_length; i++) { in main()
68 printf("%s%d", dot, ((unsigned char*)hent->h_addr)[i]); in main()
75 for (i = 0; i < hent->h_length; i++) { in main()
76 printf( "%02x", ((unsigned char*)hent->h_addr)[i] ); in main()
/system/extras/procrank/
Dprocrank.c93 int i = 0; in print_mem_info() local
94 while (tags[i]) { in print_mem_info()
95 if (strncmp(p, tags[i], tagsLen[i]) == 0) { in print_mem_info()
96 p += tagsLen[i]; in print_mem_info()
104 mem[i] = atoll(num); in print_mem_info()
108 i++; in print_mem_info()
142 size_t i, j; in main() local
186 for (i = 0; i < num_procs; i++) { in main()
187 procs[i] = malloc(sizeof(struct proc_info)); in main()
188 if (procs[i] == NULL) { in main()
[all …]
/system/extras/tests/sdcard/
Dstopwatch.cpp134 for (size_t i = 0; i < mDataLen / 2; ++i) in sprint() local
136 long second = mData[i * 2].mTime.tv_sec - mStart.tv_sec; in sprint()
137 long nano = mData[i * 2].mTime.tv_nsec - mStart.tv_nsec; in sprint()
139 … SNPRINTF_OR_RETURN(*str, *size, "%f %f\n", double(second) + double(nano) / 1.0e9, mDeltas[i]); in sprint()
170 for (size_t i = 0; i < mDataLen; i += 2) // even: start odd: stop in processSamples() local
172 long second = mData[i + 1].mTime.tv_sec - mData[i].mTime.tv_sec; in processSamples()
173 long nano = mData[i + 1].mTime.tv_nsec - mData[i].mTime.tv_nsec; in processSamples()
175 mDeltas[i / 2] = double(second) + double(nano) / 1.0e9; in processSamples()
178 for (size_t i = 0; i < n; ++i) in processSamples() local
180 if (0 == i) in processSamples()
[all …]
/system/core/liblog/tests/
Dliblog_benchmark.cpp48 for (int i = 0; i < iters; ++i) { in BM_log_maximum_retry() local
51 "BM_log_maximum_retry", "%d", i)); in BM_log_maximum_retry()
66 for (int i = 0; i < iters; ++i) { in BM_log_maximum() local
67 __android_log_print(ANDROID_LOG_INFO, "BM_log_maximum", "%d", i); in BM_log_maximum()
80 for (int i = 0; i < iters; ++i) { in BM_clock_overhead() local
93 for (int i = 0; i < iters; ++i) { in BM_log_overhead() local
95 __android_log_print(ANDROID_LOG_INFO, "BM_log_overhead", "%d", i); in BM_log_overhead()
143 for (int j = 0, i = 0; i < iters && j < 10*iters; ++i, ++j) { in BM_log_latency() local
155 iters = i; in BM_log_latency()
171 iters = i; in BM_log_latency()
[all …]
/system/core/debuggerd/arm64/
Dmachine.cpp77 for (int i = 0; i < 28; i += 4) { in dump_registers() local
80 i, r.regs[i], in dump_registers()
81 i+1, r.regs[i+1], in dump_registers()
82 i+2, r.regs[i+2], in dump_registers()
83 i+3, r.regs[i+3]); in dump_registers()
101 for (int i = 0; i < 32; i += 2) { in dump_registers() local
104 i, in dump_registers()
105 static_cast<uint64_t>(f.vregs[i] >> 64), in dump_registers()
106 static_cast<uint64_t>(f.vregs[i]), in dump_registers()
107 i+1, in dump_registers()
[all …]
/system/core/adf/libadfhwc/
Dadfhwc.cpp102 for (size_t i = 0; i < data.n_available_modes; i++) in adf_getDisplayConfigs() local
103 if (memcmp(&data.available_modes[i], &data.current_mode, in adf_getDisplayConfigs()
105 unique_configs.push_back(&data.available_modes[i]); in adf_getDisplayConfigs()
107 for (size_t i = 0; i < min(*numConfigs, unique_configs.size()); i++) { in adf_getDisplayConfigs() local
108 configs[i] = dev->display_configs.size(); in adf_getDisplayConfigs()
109 dev->display_configs.push_back(*unique_configs[i]); in adf_getDisplayConfigs()
160 for (int i = 0; attributes[i] != HWC_DISPLAY_NO_ATTRIBUTE; i++) in adf_getDisplayAttributes() local
161 values[i] = adf_display_attribute(data, dev->display_configs[config], in adf_getDisplayAttributes()
162 attributes[i]); in adf_getDisplayAttributes()
211 for (size_t i = 0; i < dev->intf_fds.size(); i++) { in adf_event_thread() local
[all …]
/system/core/libpixelflinger/tests/gglmul/
Dgglmul_test.cpp54 uint32_t i; in gglClampx_test() local
57 for(i = 0; i < sizeof(gglClampx_tests)/sizeof(gglClampx_test_t); ++i) in gglClampx_test()
59 gglClampx_test_t *test = &gglClampx_tests[i]; in gglClampx_test()
85 uint32_t i; in gglClz_test() local
88 for(i = 0; i < sizeof(gglClz_tests)/sizeof(gglClz_test_t); ++i) in gglClz_test()
90 gglClz_test_t *test = &gglClz_tests[i]; in gglClz_test()
122 uint32_t i; in gglMulx_test() local
126 for(i = 0; i < sizeof(gglMulx_tests)/sizeof(gglMulx_test_t); ++i) in gglMulx_test()
128 gglMulx_test_t *test = &gglMulx_tests[i]; in gglMulx_test()
165 uint32_t i; in gglMulAddx_test() local
[all …]

12345678910>>...13