Home
last modified time | relevance | path

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

12345678910>>...54

/system/core/libpixelflinger/codeflinger/
Dmips64_disassem.c155 InstFmt i; in db_disasm_insn() local
157 i.word = insn; in db_disasm_insn()
159 switch (i.JType.op) { in db_disasm_insn()
161 if (i.word == 0) { in db_disasm_insn()
165 if (i.word == 0x0080) { in db_disasm_insn()
169 if (i.word == 0x00c0) { in db_disasm_insn()
177 if ( (i.RType.func == OP_ADDU && i.RType.rt == 0) || in db_disasm_insn()
178 (i.RType.func == OP_OR && i.RType.rt == 0) ) { in db_disasm_insn()
180 reg_name[i.RType.rd], in db_disasm_insn()
181 reg_name[i.RType.rs]); in db_disasm_insn()
[all …]
Dmips_disassem.c190 InstFmt i; in db_disasm_insn() local
192 i.word = insn; in db_disasm_insn()
194 switch (i.JType.op) { in db_disasm_insn()
196 if (i.word == 0) { in db_disasm_insn()
200 if (i.word == 0x0080) { in db_disasm_insn()
204 if (i.word == 0x00c0) { in db_disasm_insn()
212 if ( (i.RType.func == OP_ADDU && i.RType.rt == 0) || in db_disasm_insn()
213 (i.RType.func == OP_OR && i.RType.rt == 0) ) { in db_disasm_insn()
215 reg_name[i.RType.rd], in db_disasm_insn()
216 reg_name[i.RType.rs]); in db_disasm_insn()
[all …]
/system/bt/bta/gatt/
Dbta_gatts_utils.cc44 uint8_t i; in bta_gatts_alloc_srvc_cb() local
46 for (i = 0; i < BTA_GATTS_MAX_SRVC_NUM; i++) { in bta_gatts_alloc_srvc_cb()
47 if (!p_cb->srvc_cb[i].in_use) { in bta_gatts_alloc_srvc_cb()
48 p_cb->srvc_cb[i].in_use = true; in bta_gatts_alloc_srvc_cb()
49 p_cb->srvc_cb[i].rcb_idx = rcb_idx; in bta_gatts_alloc_srvc_cb()
50 return i; in bta_gatts_alloc_srvc_cb()
66 uint8_t i; in bta_gatts_find_app_rcb_by_app_if() local
69 for (i = 0, p_reg = bta_gatts_cb.rcb; i < BTA_GATTS_MAX_APP_NUM; in bta_gatts_find_app_rcb_by_app_if()
70 i++, p_reg++) { in bta_gatts_find_app_rcb_by_app_if()
89 uint8_t i; in bta_gatts_find_app_rcb_idx_by_app_if() local
[all …]
/system/bt/osi/test/
Darray_test.cc31 for (int i = 0; i < 100; ++i) { in TEST_F() local
32 array_append_value(array, i * i); in TEST_F()
34 for (int i = 0; i < 100; ++i) { in TEST_F() local
35 EXPECT_EQ(*(int*)array_at(array, i), i * i); in TEST_F()
43 for (int i = 0; i < 100; ++i) { in TEST_F() local
44 items[i] = i * i; in TEST_F()
45 array_append_ptr(array, &items[i]); in TEST_F()
47 for (int i = 0; i < 100; ++i) { in TEST_F() local
48 EXPECT_EQ(*(int*)array_at(array, i), i * i); in TEST_F()
60 for (int i = 0; i < 100; ++i) { in TEST_F() local
[all …]
/system/bt/vendor_libs/test_vendor_lib/test/
Diterator_test.cc88 for (size_t i = 0; i < complete_l2cap_packet.size(); i += 2) { in TEST_F() local
89 ASSERT_EQ(complete_l2cap_packet[i], *plus_eq) in TEST_F()
90 << "+= test: Dereferenced iterator does not equal expected at index " << i; in TEST_F()
97 for (size_t i = 0; i < complete_l2cap_packet.size() - 1; i++) { in TEST_F() local
98 ASSERT_EQ(complete_l2cap_packet[i + 1], *(++plus_plus)) in TEST_F()
100 << "at index " << i; in TEST_F()
106 for (size_t i = 0; i < complete_l2cap_packet.size(); i++) { in TEST_F() local
107 ASSERT_EQ(complete_l2cap_packet[i], *(plus_plus++)) in TEST_F()
109 << "at index " << i; in TEST_F()
115 for (size_t i = 0; i < complete_l2cap_packet.size(); i++) { in TEST_F() local
[all …]
/system/core/libunwindstack/tests/
DMemoryCacheTest.cpp47 for (size_t i = 1; i <= kMaxCachedSize; i++) { in TEST_F() local
48 std::vector<uint8_t> buffer(i); in TEST_F()
49 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F()
50 << "Read failed at size " << i; in TEST_F()
51 ASSERT_EQ(std::vector<uint8_t>(i, 0xab), buffer) << "Failed at size " << i; in TEST_F()
56 for (size_t i = 1; i <= kMaxCachedSize; i++) { in TEST_F() local
57 std::vector<uint8_t> buffer(i); in TEST_F()
58 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F()
59 << "Read failed at size " << i; in TEST_F()
60 ASSERT_EQ(std::vector<uint8_t>(i, 0xab), buffer) << "Failed at size " << i; in TEST_F()
[all …]
DMemoryFileTest.cpp70 for (size_t i = 0; i < pagesize; i++) { in TEST_F() local
86 for (size_t i = 0; i < 2 * pagesize; i++) { in TEST_F() local
87 data += static_cast<char>((i / pagesize) + '0'); in TEST_F()
88 data += static_cast<char>((i % 10) + '0'); in TEST_F()
97 for (size_t i = 0; i < 5; i++) { in TEST_F() local
99 expected_str += static_cast<char>(((i + pagesize) % 10) + '0'); in TEST_F()
107 for (size_t i = 0; i < 2 * pagesize; i++) { in TEST_F() local
108 data += static_cast<char>((i / pagesize) + '0'); in TEST_F()
109 data += static_cast<char>((i % 10) + '0'); in TEST_F()
118 for (size_t i = 0; i < 5; i++) { in TEST_F() local
[all …]
DRegsInfoTest.cpp66 for (uint32_t i = 0; i < 64; i++) { in TEST() local
67 regs[i] = i * 0x100; in TEST()
68 ASSERT_EQ(i * 0x100, info.Get(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
71 for (uint32_t i = 0; i < 64; i++) { in TEST() local
72 ASSERT_FALSE(info.IsSaved(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
73 uint64_t* reg = info.Save(i); in TEST()
74 ASSERT_EQ(reg, &regs[i]) << "Reg " + std::to_string(i) + " failed."; in TEST()
75 *reg = i * 0x1000 + 0x100; in TEST()
76 ASSERT_EQ(i * 0x1000 + 0x100, regs[i]) << "Reg " + std::to_string(i) + " failed."; in TEST()
79 for (uint32_t i = 0; i < 64; i++) { in TEST() local
[all …]
/system/core/libion/tests/
Ddevice_test.cpp129 for (size_t i = size-1; i > 0; i--) { in dirtyCache() local
130 ((volatile char *)ptr)[i]; in dirtyCache()
131 ((char *)ptr)[i] = i; in dirtyCache()
152 for (int i = 0; i < 4096; i++) in TEST_F() local
153 ((char *)ptr)[i] = i; in TEST_F()
159 for (int i = 0; i < 4096; i++) in TEST_F() local
160 ASSERT_EQ((char)i, ((char *)buf)[i]); in TEST_F()
172 for (int i = 0; i < 4096; i++) in TEST_F() local
173 ((char *)buf)[i] = i; in TEST_F()
191 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/core/base/
Dparseint_test.cpp25 int i = 0; in TEST() local
26 ASSERT_FALSE(android::base::ParseInt("x", &i)); in TEST()
29 ASSERT_FALSE(android::base::ParseInt("123x", &i)); in TEST()
32 ASSERT_TRUE(android::base::ParseInt("123", &i)); in TEST()
33 ASSERT_EQ(123, i); in TEST()
35 i = 0; in TEST()
36 EXPECT_TRUE(android::base::ParseInt(" 123", &i)); in TEST()
37 EXPECT_EQ(123, i); in TEST()
38 ASSERT_TRUE(android::base::ParseInt("-123", &i)); in TEST()
39 ASSERT_EQ(-123, i); in TEST()
[all …]
/system/chre/apps/wifi_offload/test/
Dchannelhistogram_test.cc45 for (size_t i = 0; i < kNumFrequencies_Test; i++) { in TEST_F() local
46 ASSERT_EQ(0, channel_histo_.GetChannelScanCount(kAllChannels_Test[i])); in TEST_F()
56 for (size_t i = 0; i < kNumFrequencies_Test; i++) { in TEST_F() local
58 histo.IncrementScanCountForFrequency(kAllFrequencies_Test[i]); in TEST_F()
62 EXPECT_EQ(kAllChannels_Test[i] == kAllChannels_Test[j] ? 255 : 0, in TEST_F()
70 for (size_t i = 0; i < 12; i++) { in TEST_F() local
73 kAllFrequencies_Test[i], increase); in TEST_F()
77 for (size_t i = 0; i < 12; i++) { in TEST_F() local
79 channel_histo_.GetChannelScanCount(kAllChannels_Test[i]); in TEST_F()
85 for (size_t i = 12; i < 14; i++) { in TEST_F() local
[all …]
Drandomgenerator_test.cc38 for (size_t i = 0; i < num_values; i++) { in AllRandomGeneratorsGenerateTheSameSequence() local
39 rand_values[i] = random_gen_.get<TestType>(); in AllRandomGeneratorsGenerateTheSameSequence()
43 for (size_t i = 0; i < num_values; i++) { in AllRandomGeneratorsGenerateTheSameSequence() local
44 ASSERT_EQ(rand_values[i], another_random_gen_.get<TestType>()); in AllRandomGeneratorsGenerateTheSameSequence()
52 for (size_t i = 0; i < num_values; i++) { in AfterResetGeneratesTheSameSequence() local
53 rand_values[i] = random_gen_.get<TestType>(); in AfterResetGeneratesTheSameSequence()
57 for (size_t i = 0; i < num_values; i++) { in AfterResetGeneratesTheSameSequence() local
58 ASSERT_EQ(rand_values[i], random_gen_.get<TestType>()); in AfterResetGeneratesTheSameSequence()
71 for (size_t i = 0; i < num_values; i++) { in GeneratesDifferentNumbersIn8Bytes() local
72 rand_values[i] = 0; in GeneratesDifferentNumbersIn8Bytes()
[all …]
/system/media/audio_utils/
Dfixedfft.cpp109 int scale = LOG_FFT_SIZE, i, p, r; in fixed_fft() local
111 for (r = 0, i = 1; i < n; ++i) { in fixed_fft()
113 if (i < r) { in fixed_fft()
114 int32_t t = v[i]; in fixed_fft()
115 v[i] = v[r]; in fixed_fft()
123 for (i = 0; i < n; i += p << 1) { in fixed_fft()
124 int32_t x = half(v[i]); in fixed_fft()
125 int32_t y = half(v[i + p]); in fixed_fft()
126 v[i] = x + y; in fixed_fft()
127 v[i + p] = x - y; in fixed_fft()
[all …]
/system/bt/packet/tests/base/
Diterator_test.cc84 for (size_t i = 0; i < GetTestPacketLength(); i++) { in TEST_P() local
85 ASSERT_EQ(test_l2cap_data[i + GetLowerBound()], *it++); in TEST_P()
127 for (size_t i = 0; i < GetTestPacketLength(); i += 2) { in TEST_P() local
128 ASSERT_EQ(test_l2cap_data[i + GetLowerBound()], *plus_eq) in TEST_P()
130 << i; in TEST_P()
140 for (size_t i = 0; i < GetTestPacketLength() - 1; i++) { in TEST_P() local
141 ASSERT_EQ(test_l2cap_data[i + GetLowerBound() + 1], *(++plus_plus)) in TEST_P()
143 << "at index " << i; in TEST_P()
150 for (size_t i = 0; i < GetTestPacketLength(); i++) { in TEST_P() local
151 ASSERT_EQ(test_l2cap_data[i + GetLowerBound()], *(plus_plus++)) in TEST_P()
[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/bt/stack/pan/
Dpan_utils.cc179 uint16_t i; in pan_allocate_pcb() local
181 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_allocate_pcb()
182 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
183 pan_cb.pcb[i].handle == handle) in pan_allocate_pcb()
187 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_allocate_pcb()
188 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
189 pan_cb.pcb[i].rem_bda == p_bda) in pan_allocate_pcb()
193 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_allocate_pcb()
194 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) { in pan_allocate_pcb()
195 memset(&(pan_cb.pcb[i]), 0, sizeof(tPAN_CONN)); in pan_allocate_pcb()
[all …]
/system/chre/apps/chqts/src/shared/
Dnano_string.cc37 for (size_t i = 0; i < count; i++) { in memset() local
38 bytes[i] = static_cast<uint8_t>(val); in memset()
45 for (size_t i = 0; i < bytes; i++) { in memcpy() local
46 dst[i] = src[i]; in memcpy()
57 size_t i; in strncpy() local
58 for (i = 0; (i < len) && (src[i] != '\0'); i++) { in strncpy()
59 dest[i] = src[i]; in strncpy()
61 for (; i < len; i++) { in strncpy()
62 dest[i] = '\0'; in strncpy()
80 for (size_t i = 0, shift = 28; i < 8; i++, shift -= 4) { in uint32ToHexAscii() local
[all …]
/system/chre/util/tests/
Dheap_test.cc31 for (size_t i = 0; i < MaxSize; ++i) { in TEST() local
32 array[i] = std::rand(); in TEST()
33 array_sorted[i] = array[i]; in TEST()
38 for (size_t i = 0; i < s; ++i) { in TEST() local
39 v.push_back(array[i]); in TEST()
45 for (size_t i = 0; i < s; ++i) { in TEST() local
47 EXPECT_EQ(array_sorted[i], v[v.size() - 1]); in TEST()
71 for (size_t i = 0; i < MaxSize; ++i) { in TEST() local
72 array[i] = std::rand(); in TEST()
73 array_sorted[i] = array[i]; in TEST()
[all …]
/system/core/adb/
Dadb.bash27 local where i cur serial
32 for ((i=1; i <= COMP_CWORD; i++)); do
56 if [[ $where == COMMAND && $i -ge $COMP_CWORD ]]; then
72 if [[ $i -eq $COMP_CWORD ]]; then
75 i=$((i+1))
78 _adb_cmd_install "$serial" $i
81 _adb_cmd_sideload "$serial" $i
84 _adb_cmd_pull "$serial" $i
87 _adb_cmd_push "$serial" $i
90 if [[ $COMP_CWORD == $i ]]; then
[all …]
/system/extras/tests/pagingtest/
Dthrashing_test.c36 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test() local
37 fds[i] = create_tmp_file(tmpnames[i], filesize); in thrashing_test()
38 if (fds[i] < 0) { in thrashing_test()
43 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test() local
44 bufs[i] = mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fds[i], 0); in thrashing_test()
45 if (bufs[i] == ((void *)-1)) { in thrashing_test()
51 ret = madvise((void *)bufs[i], filesize, MADV_RANDOM) || in thrashing_test()
52 posix_fadvise(fds[i], 0, filesize, POSIX_FADV_RANDOM); in thrashing_test()
59 for (int i = 0; i < test_runs; i++) { in thrashing_test() local
79 for (size_t i = 0; i < ARRAY_SIZE(bufs) && bufs[i] != NULL; i++) { in thrashing_test() local
[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/keymaster/android_keymaster/
Doperation_table.cpp31 for (size_t i = 0; i < table_size_; ++i) { in Add() local
32 if (!table_[i]) { in Add()
33 table_[i] = move(operation); in Add()
47 for (size_t i = 0; i < table_size_; ++i) { in Find() local
48 if (table_[i] && table_[i]->operation_handle() == op_handle) in Find()
49 return table_[i].get(); in Find()
58 for (size_t i = 0; i < table_size_; ++i) { in Delete() local
59 if (table_[i] && table_[i]->operation_handle() == op_handle) { in Delete()
60 table_[i].reset(); in Delete()
/system/security/keystore/tests/
Dconfirmationui_rate_limiting_test.cpp83 for (int i = 0; i < 10000; ++i) { in TEST() local
98 for (int i = 0; i < 3; ++i) { in TEST() local
105 for (int i = 0; i < 10000; ++i) { in TEST() local
113 for (int i = 3; i < 6; ++i) { in TEST() local
123 for (int i = 0; i < 10000; ++i) { in TEST() local
131 for (int i = 6; i < 17; ++i) { in TEST() local
132 FakeClock::setNow((FakeClock::now() + 60s * (1ULL << (i - 6))) - 1s); in TEST()
141 for (int i = 0; i < 10000; ++i) { in TEST() local
160 for (int i = 0; i < 10000; ++i) { in TEST() local
167 for (int i = 1; i < 3; ++i) { in TEST() local
[all …]
/system/media/audio_utils/tests/
Dchannels_tests.cpp33 for (size_t i = 1; i < size; ++i) { in checkMonotone() local
34 EXPECT_LT(ary[i-1], ary[i]); in checkMonotone()
44 for (size_t i = 1; i < size; ++i) { in checkUnsignedMonotoneOrZero() local
45 if (ary[i]) { in checkUnsignedMonotoneOrZero()
46 EXPECT_LT(least, ary[i]); in checkUnsignedMonotoneOrZero()
47 least = ary[i]; in checkUnsignedMonotoneOrZero()
65 for (size_t i = 0; i < u16ref.size(); ++i) { in TEST() local
66 u16ref[i] = i; in TEST()
101 for (size_t i = 0; i < u16ref.size(); ++i) { in TEST() local
102 u16ref[i] = i; in TEST()
[all …]

12345678910>>...54