Home
last modified time | relevance | path

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

12345678910>>...36

/system/core/libpixelflinger/codeflinger/
Dmips64_disassem.c154 InstFmt i; in db_disasm_insn() local
156 i.word = insn; in db_disasm_insn()
158 switch (i.JType.op) { in db_disasm_insn()
160 if (i.word == 0) { in db_disasm_insn()
164 if (i.word == 0x0080) { in db_disasm_insn()
168 if (i.word == 0x00c0) { in db_disasm_insn()
176 if ( (i.RType.func == OP_ADDU && i.RType.rt == 0) || in db_disasm_insn()
177 (i.RType.func == OP_OR && i.RType.rt == 0) ) { in db_disasm_insn()
179 reg_name[i.RType.rd], in db_disasm_insn()
180 reg_name[i.RType.rs]); in db_disasm_insn()
[all …]
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/bt/osi/test/
Dalarm_test.cpp63 int i = PTR_TO_INT(data); in ordered_cb() local
64 if (i != cb_counter) in ordered_cb()
131 for (int i = 1; i <= 10; i++) { in TEST_F() local
134 EXPECT_GE(cb_counter, i); in TEST_F()
150 for (int i = 1; i <= 10; i++) { in TEST_F() local
153 EXPECT_GE(cb_counter, i); in TEST_F()
279 for (int i = 0; i < 100; i++) { in TEST_F() local
281 std::to_string(i) + "]"; in TEST_F()
282 alarms[i] = alarm_new(alarm_name.c_str()); in TEST_F()
285 for (int i = 0; i < 100; i++) { in TEST_F() local
[all …]
Darray_test.cpp35 for (int i = 0; i < 100; ++i) { in TEST_F() local
36 array_append_value(array, i * i); in TEST_F()
38 for (int i = 0; i < 100; ++i) { in TEST_F() local
39 EXPECT_EQ(*(int *)array_at(array, i), i * i); in TEST_F()
47 for (int i = 0; i < 100; ++i) { in TEST_F() local
48 items[i] = i * i; in TEST_F()
49 array_append_ptr(array, &items[i]); in TEST_F()
51 for (int i = 0; i < 100; ++i) { in TEST_F() local
52 EXPECT_EQ(*(int *)array_at(array, i), i * i); in TEST_F()
70 for (int i = 0; i < 100; ++i) { in TEST_F() local
[all …]
Dhash_map_test.cpp67 for (size_t i = 0; i < data_sz; i++) { in TEST_F() local
68 EXPECT_EQ(i, hash_map_size(hash_map)); in TEST_F()
69 hash_map_set(hash_map, data[i].key, (void*)data[i].data); in TEST_F()
70 EXPECT_EQ(i + 1, hash_map_size(hash_map)); in TEST_F()
75 for (size_t i = 0; i < data_sz; i++) { in TEST_F() local
76 char *val = (char *)hash_map_get(hash_map, data[i].key); in TEST_F()
77 EXPECT_STREQ(data[i].data, val); in TEST_F()
100 for (size_t i = 0; i < data_sz; i++) { in TEST_F() local
101 hash_map_set(hash_map, data[i].key, (void*)data[i].data); in TEST_F()
107 for (size_t i = 0; i < data_sz; i++) { in TEST_F() local
[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/cpustats/
Dcpustats.c72 int i, freq_count; in main() local
79 for (i = 0; i < argc; i++) { in main()
80 if (!strcmp(argv[i], "-n")) { in main()
81 if (i + 1 >= argc) { in main()
86 iterations = atoi(argv[++i]); in main()
89 if (!strcmp(argv[i], "-d")) { in main()
90 if (i + 1 >= argc) { in main()
95 delay = atoi(argv[++i]); in main()
98 if (!strcmp(argv[i], "-m")) { in main()
101 if (!strcmp(argv[i], "-h")) { in main()
[all …]
/system/bt/bta/gatt/
Dbta_gatts_utils.c66 UINT8 i; in bta_gatts_alloc_srvc_cb() local
68 for (i = 0; i < BTA_GATTS_MAX_SRVC_NUM; i ++) in bta_gatts_alloc_srvc_cb()
70 if (!p_cb->srvc_cb[i].in_use) in bta_gatts_alloc_srvc_cb()
72 p_cb->srvc_cb[i].in_use = TRUE; in bta_gatts_alloc_srvc_cb()
73 p_cb->srvc_cb[i].rcb_idx = rcb_idx; in bta_gatts_alloc_srvc_cb()
74 return i; in bta_gatts_alloc_srvc_cb()
91 UINT8 i; in bta_gatts_find_app_rcb_by_app_if() local
94 for (i = 0, p_reg = bta_gatts_cb.rcb; i < BTA_GATTS_MAX_APP_NUM; i ++, p_reg++) in bta_gatts_find_app_rcb_by_app_if()
114 UINT8 i; in bta_gatts_find_app_rcb_idx_by_app_if() local
116 for (i = 0; i < BTA_GATTS_MAX_APP_NUM; i ++) in bta_gatts_find_app_rcb_idx_by_app_if()
[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()
68 for (int i=0; i < 1000; i++) { in test_mad() local
69 data_f[i] = (data_f[i] * 0.02f + in test_mad()
70 data_f[i+1] * 0.04f + in test_mad()
71 data_f[i+2] * 0.05f + in test_mad()
72 data_f[i+3] * 0.1f + in test_mad()
73 data_f[i+4] * 0.2f + in test_mad()
74 data_f[i+5] * 0.2f + in test_mad()
75 data_f[i+6] * 0.1f + in test_mad()
[all …]
/system/core/libmemunreachable/tests/
DAllocator_test.cpp67 for (int i = 0; i < num; i++) { in TEST_F() local
68 ptr[i] = allocator.allocate(); in TEST_F()
69 memset(ptr[i], 0xaa, size); in TEST_F()
70 *(reinterpret_cast<unsigned char*>(ptr[i])) = i; in TEST_F()
73 for (int i = 0; i < num; i++) { in TEST_F() local
75 if (i != j) { in TEST_F()
76 ASSERT_NE(ptr[i], ptr[j]); in TEST_F()
81 for (int i = 0; i < num; i++) { in TEST_F() local
82 ASSERT_EQ(*(reinterpret_cast<unsigned char*>(ptr[i])), i & 0xFF); in TEST_F()
83 allocator.deallocate(ptr[i]); in TEST_F()
[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/core/base/
Dparseint_test.cpp22 int i; in TEST() local
23 ASSERT_FALSE(android::base::ParseInt("x", &i)); in TEST()
24 ASSERT_FALSE(android::base::ParseInt("123x", &i)); in TEST()
26 ASSERT_TRUE(android::base::ParseInt("123", &i)); in TEST()
27 ASSERT_EQ(123, i); in TEST()
28 ASSERT_TRUE(android::base::ParseInt("-123", &i)); in TEST()
29 ASSERT_EQ(-123, i); in TEST()
35 ASSERT_TRUE(android::base::ParseInt("12", &i, 0, 15)); in TEST()
36 ASSERT_EQ(12, i); in TEST()
37 ASSERT_FALSE(android::base::ParseInt("-12", &i, 0, 15)); in TEST()
[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/connectivity/shill/shims/
Denvironment_unittest.cc43 for (size_t i = 0; i < arraysize(kVarValues); i++) { in TEST_F() local
45 EXPECT_EQ(0, setenv(kVarName, kVarValues[i], 0)) << kVarValues[i]; in TEST_F()
47 EXPECT_TRUE(environment_->GetVariable(kVarName, &value)) << kVarValues[i]; in TEST_F()
48 EXPECT_EQ(kVarValues[i], value); in TEST_F()
65 for (size_t i = 0; i < arraysize(kVarNames); i++) { in TEST_F() local
66 EXPECT_EQ(0, setenv(kVarNames[i], kVarValues[i], 0)) << kVarNames[i]; in TEST_F()
69 for (size_t i = 0; i < arraysize(kVarNames); i++) { in TEST_F() local
70 EXPECT_TRUE(ContainsKey(env, kVarNames[i])) << kVarNames[i]; in TEST_F()
71 EXPECT_EQ(kVarValues[i], env[kVarNames[i]]) << kVarNames[i]; in TEST_F()
72 EXPECT_EQ(0, unsetenv(kVarNames[i])) << kVarNames[i]; in TEST_F()
/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/extras/tests/pagingtest/
Dthrashing_test.c35 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test() local
36 fds[i] = create_tmp_file(tmpnames[i], filesize); in thrashing_test()
37 if (fds[i] < 0) { in thrashing_test()
42 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test() local
43 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0); in thrashing_test()
44 if (bufs[i] == ((void *)-1)) { in thrashing_test()
50 for (int i = 0; i < test_runs; i++) { in thrashing_test() local
71 for (size_t i = 0; i < ARRAY_SIZE(bufs) && bufs[i] != NULL; i++) { in thrashing_test() local
72 munmap((void *)bufs[i], filesize); in thrashing_test()
75 for (size_t i = 0; i < ARRAY_SIZE(fds) && fds[i] >= 0; i++) { in thrashing_test() local
[all …]
/system/bt/stack/pan/
Dpan_utils.c182 UINT16 i; in pan_allocate_pcb() local
184 for (i=0; i<MAX_PAN_CONNS; i++) in pan_allocate_pcb()
186 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
187 pan_cb.pcb[i].handle == handle) in pan_allocate_pcb()
191 for (i=0; i<MAX_PAN_CONNS; i++) in pan_allocate_pcb()
193 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
194 memcmp (pan_cb.pcb[i].rem_bda, p_bda, BD_ADDR_LEN) == 0) in pan_allocate_pcb()
198 for (i=0; i<MAX_PAN_CONNS; i++) in pan_allocate_pcb()
200 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) in pan_allocate_pcb()
202 memset (&(pan_cb.pcb[i]), 0, sizeof (tPAN_CONN)); in pan_allocate_pcb()
[all …]
/system/media/audio_route/
Daudio_route.c129 unsigned int i;
133 for (i = 0; i < path->length; i++) {
134 struct mixer_ctl *ctl = index_to_ctl(ar, path->setting[i].ctl_index);
136 ALOGE(" id=%d: ctl=%s", i, mixer_ctl_get_name(ctl));
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]);
[all …]
/system/core/fs_mgr/
Dfs_mgr.c133 int i; in check_fs() local
134 for (i = 0; i < 5; i++) { in check_fs()
309 int i; in mount_with_alternatives() local
321 for (i = start_idx; in mount_with_alternatives()
323i < fstab->num_entries && !strcmp(fstab->recs[start_idx].mount_point, fstab->recs[i].mount_point); in mount_with_alternatives()
324 i++) { in mount_with_alternatives()
332 … fstab->recs[i].mount_point, i, fstab->recs[i].fs_type, fstab->recs[*attempted_idx].fs_type); in mount_with_alternatives()
336 if (fstab->recs[i].fs_mgr_flags & MF_CHECK) { in mount_with_alternatives()
337 check_fs(fstab->recs[i].blk_device, fstab->recs[i].fs_type, in mount_with_alternatives()
338 fstab->recs[i].mount_point); in mount_with_alternatives()
[all …]
/system/bt/btcore/src/
Duuid.c68 for (size_t i = 0; i < sizeof(bt_uuid_t); ++i, s+=2) { in uuid_new() local
72 uuid->uu[i] = strtoul(buf, NULL, 16); in uuid_new()
74 switch(i) { in uuid_new()
134 for (int i = 0; i < 4; i++) { in uuid_to_string() local
135 string += sprintf(string, "%02x", uuid->uu[i]); in uuid_to_string()
138 for (int i = 4; i < 6; i++) { in uuid_to_string() local
139 string += sprintf(string, "%02x", uuid->uu[i]); in uuid_to_string()
142 for (int i = 6; i < 8; i++) { in uuid_to_string() local
143 string += sprintf(string, "%02x", uuid->uu[i]); in uuid_to_string()
146 for (int i = 8; i < 10; i++) { in uuid_to_string() local
[all …]
/system/bt/bta/sys/
Dutl.c122 UINT8 utl_itoa(UINT16 i, char *p_s) in utl_itoa() argument
128 if (i == 0) in utl_itoa()
137 k = i / j; in utl_itoa()
138 i %= j; in utl_itoa()
238 UINT16 i = 0; in utl_isintstr() local
240 for(i=0; p_s[i] != 0; i++) in utl_isintstr()
242 if(((p_s[i] < '0') || (p_s[i] > '9')) && (p_s[i] != ';')) in utl_isintstr()
262 UINT16 i = 0; in utl_isdialstr() local
264 for(i=0; p_s[i] != 0; i++) in utl_isdialstr()
266 if(!(((p_s[i] >= '0') && (p_s[i] <= '9')) in utl_isdialstr()
[all …]

12345678910>>...36