/system/core/libpixelflinger/codeflinger/ |
D | mips64_disassem.c | 153 InstFmt i; in db_disasm_insn() local 155 i.word = insn; in db_disasm_insn() 157 switch (i.JType.op) { in db_disasm_insn() 159 if (i.word == 0) { in db_disasm_insn() 163 if (i.word == 0x0080) { in db_disasm_insn() 167 if (i.word == 0x00c0) { in db_disasm_insn() 175 if ( (i.RType.func == OP_ADDU && i.RType.rt == 0) || in db_disasm_insn() 176 (i.RType.func == OP_OR && i.RType.rt == 0) ) { in db_disasm_insn() 178 reg_name[i.RType.rd], in db_disasm_insn() 179 reg_name[i.RType.rs]); in db_disasm_insn() [all …]
|
D | mips_disassem.c | 189 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/bt/osi/test/ |
D | array_test.cc | 31 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/core/libion/tests/ |
D | device_test.cpp | 129 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/ |
D | cpustats.c | 72 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/ |
D | bta_gatts_utils.cc | 65 uint8_t i; in bta_gatts_alloc_srvc_cb() local 67 for (i = 0; i < BTA_GATTS_MAX_SRVC_NUM; i++) { in bta_gatts_alloc_srvc_cb() 68 if (!p_cb->srvc_cb[i].in_use) { in bta_gatts_alloc_srvc_cb() 69 p_cb->srvc_cb[i].in_use = true; in bta_gatts_alloc_srvc_cb() 70 p_cb->srvc_cb[i].rcb_idx = rcb_idx; in bta_gatts_alloc_srvc_cb() 71 return i; in bta_gatts_alloc_srvc_cb() 87 uint8_t i; in bta_gatts_find_app_rcb_by_app_if() local 90 for (i = 0, p_reg = bta_gatts_cb.rcb; i < BTA_GATTS_MAX_APP_NUM; in bta_gatts_find_app_rcb_by_app_if() 91 i++, p_reg++) { in bta_gatts_find_app_rcb_by_app_if() 110 uint8_t i; in bta_gatts_find_app_rcb_idx_by_app_if() local [all …]
|
/system/core/libunwindstack/tests/ |
D | MemoryFileTest.cpp | 70 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 …]
|
/system/extras/tests/memtest/ |
D | fptest.cpp | 60 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/chre/apps/wifi_offload/test/ |
D | channelhistogram_test.cc | 45 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 …]
|
D | randomgenerator_test.cc | 38 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/nfc/halimpl/bcm2079x/gki/common/ |
D | gki_debug.c | 40 int i; in GKI_PrintBufferUsage() local 50 for (i = 0; i < gki_cb.com.curr_total_no_of_pools; i++) { in GKI_PrintBufferUsage() 51 p = &gki_cb.com.freeq[i]; in GKI_PrintBufferUsage() 52 if ((1 << i) & gki_cb.com.pool_access_mask) { in GKI_PrintBufferUsage() 53 GKI_TRACE_5("%02d: (R), %4d, %3d, %3d, %3d", i, p->size, p->cur_cnt, in GKI_PrintBufferUsage() 56 GKI_TRACE_5("%02d: (P), %4d, %3d, %3d, %3d", i, p->size, p->cur_cnt, in GKI_PrintBufferUsage() 59 cur[i] = p->cur_cnt; in GKI_PrintBufferUsage() 75 uint16_t i; in GKI_PrintBuffer() local 76 for (i = 0; i < GKI_NUM_TOTAL_BUF_POOLS; i++) { in GKI_PrintBuffer() 77 GKI_TRACE_5("pool:%4u free %4u cur %3u max %3u total%3u", i, in GKI_PrintBuffer() [all …]
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 110 int scale = LOG_FFT_SIZE, i, p, r; in fixed_fft() local 112 for (r = 0, i = 1; i < n; ++i) { in fixed_fft() 114 if (i < r) { in fixed_fft() 115 int32_t t = v[i]; in fixed_fft() 116 v[i] = v[r]; in fixed_fft() 124 for (i = 0; i < n; i += p << 1) { in fixed_fft() 125 int32_t x = half(v[i]); in fixed_fft() 126 int32_t y = half(v[i + p]); in fixed_fft() 127 v[i] = x + y; in fixed_fft() 128 v[i + p] = x - y; in fixed_fft() [all …]
|
/system/core/libmemunreachable/tests/ |
D | Allocator_test.cpp | 67 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/core/base/ |
D | parseint_test.cpp | 22 int i = 0; 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/bt/stack/pan/ |
D | pan_utils.cc | 179 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/ |
D | nano_string.cc | 37 for (size_t i = 0; i < count; i++) { in memset() local 38 bytes[i] = 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/ |
D | heap_test.cc | 31 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 …]
|
D | array_queue_test.cc | 16 DummyElement(int i) { in DummyElement() argument 17 val_ = i; in DummyElement() 25 void setValue(int i) { in setValue() argument 26 val_ = i; in setValue() 132 for (size_t i = 0; i < kMaxTestCapacity; ++i) { in TEST() local 133 destructor_count[i] = 0; in TEST() 151 for (size_t i = 0; i < kMaxTestCapacity; ++i) { in TEST() local 152 destructor_count[i] = 0; in TEST() 160 for (size_t i = 0; i < 3; ++i) { in TEST() local 162 q[i].setValue(i); in TEST() [all …]
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | fastgrep.c | 60 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/extras/tests/pagingtest/ |
D | thrashing_test.c | 36 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/libsync/ |
D | sync_test.c | 40 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/bt/vendor_libs/test_vendor_lib/src/ |
D | bt_address.cc | 29 for (size_t i = 0; i < kStringLength; i++) { in IsValid() local 30 if (i % 3 == 2) { // Every third character must be ':' in IsValid() 31 if (addr[i] != ':') return false; in IsValid() 33 if (!isxdigit(addr[i])) return false; in IsValid() 46 for (size_t i = 0; i < kOctets; i++) { in FromString() local 49 address_ |= (octet << (8 * ((kOctets - 1) - i))); in FromString() 58 for (size_t i = 0; i < kOctets; i++) { in FromVector() local 59 uint64_t to_shift = octets[i]; in FromVector() 60 address_ |= to_shift << (8 * i); in FromVector() 66 for (size_t i = 0; i < kOctets; i++) { in ToVector() local [all …]
|
/system/media/audio_route/ |
D | audio_route.c | 129 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/tools/hidl/test/java_test/ |
D | hidl_test_java_native.cpp | 112 for (size_t i = 0; i < foo.aaa.size(); ++i) { in TEST_F() local 113 foo.aaa[i].z = 1.0f + (float)i * 0.01f; in TEST_F() 114 foo.aaa[i].s = ("Hello, world " + std::to_string(i)).c_str(); in TEST_F() 136 for (size_t i = 0; i < foo[0].aaa.size(); ++i) { in TEST_F() local 137 foo[0].aaa[i].z = 1.0f + (float)i * 0.01f; in TEST_F() 138 foo[0].aaa[i].s = ("Hello, world " + std::to_string(i)).c_str(); in TEST_F() 146 for (size_t i = 0; i < foo[1].aaa.size(); ++i) { in TEST_F() local 147 foo[1].aaa[i].z = 2.0f - (float)i * 0.01f; in TEST_F() 148 foo[1].aaa[i].s = ("Alea iacta est: " + std::to_string(i)).c_str(); in TEST_F() 172 for (size_t i = 0; i < foo[0].aaa.size(); ++i) { in TEST_F() local [all …]
|
/system/libhwbinder/vts/performance/ |
D | Benchmark_throughput.cpp | 124 for (uint32_t i = 0; i < num_buckets; i++) { in combine() local 125 ret.m_buckets[i] = a.m_buckets[i] + b.m_buckets[i]; in combine() 148 for (uint32_t i = 0; i < num_buckets; i++) { in dump() local 149 float cur_time = time_per_bucket_ms * i + 0.5f * time_per_bucket_ms; in dump() 151 && (cur_total + m_buckets[i] >= 0.5f * m_transactions)) { in dump() 155 && (cur_total + m_buckets[i] >= 0.9f * m_transactions)) { in dump() 159 && (cur_total + m_buckets[i] >= 0.95f * m_transactions)) { in dump() 163 && (cur_total + m_buckets[i] >= 0.99f * m_transactions)) { in dump() 166 cur_total += m_buckets[i]; in dump() 209 for (int i = 0; i < service_count; i++) { in worker_fx() local [all …]
|