Home
last modified time | relevance | path

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

123

/bootable/libbootloader/gbl/efi/arch/riscv64/
Ddeps.cpp30 for (size_t i = 0; i < count; i++) { in memcmp() local
31 if (left[i] == right[i]) { in memcmp()
34 return left[i] < right[i] ? -1 : 1; in memcmp()
43 for (size_t i = 0; i < count; i++) { in memmove() local
44 _dest[i] = _src[i]; in memmove()
47 for (size_t i = count; i > 0; i--) { in memmove() local
48 _dest[i - 1] = _src[i - 1]; in memmove()
55 size_t i = 0; in strlen() local
56 for (; str[i] != 0; i++) { in strlen()
58 return i; in strlen()
[all …]
/bootable/recovery/minui/
Dgraphics_drm.cpp226 for (int i = 0; i < connector->count_encoders; i++) { in find_crtc_for_connector() local
227 encoder = drmModeGetEncoder(fd, connector->encoders[i]); in find_crtc_for_connector()
248 for (int i = 0; i < resources->count_connectors; i++) { in find_used_connector_by_type() local
249 drmModeConnector* connector = drmModeGetConnector(fd, resources->connectors[i]); in find_used_connector_by_type()
263 for (int i = 0; i < resources->count_connectors; i++) { in find_first_connected_connector() local
266 connector = drmModeGetConnector(fd, resources->connectors[i]); in find_first_connected_connector()
286 for (int i = 0; i < arraysize(kConnectorPriority) && drmConnectors.size() < DRM_MAX; i++) { in FindAndSetMonitor() local
287 auto connectors = find_used_connector_by_type(fd, resources, kConnectorPriority[i]); in FindAndSetMonitor()
323 for (int i = 0; i < resources->count_connectors; i++) { in DisableNonMainCrtcs() local
324 drmModeConnector* connector = drmModeGetConnector(fd, resources->connectors[i]); in DisableNonMainCrtcs()
[all …]
Dresources.cpp262 for (int i = 0; i < num_text; ++i) { in res_create_multi_display_surface() local
263 if (text[i].key && strcmp(text[i].key, "Frames") == 0 && text[i].text) { in res_create_multi_display_surface()
264 *frames = atoi(text[i].text); in res_create_multi_display_surface()
265 } else if (text[i].key && strcmp(text[i].key, "FPS") == 0 && text[i].text) { in res_create_multi_display_surface()
266 *fps = atoi(text[i].text); in res_create_multi_display_surface()
292 for (int i = 0; i < *frames; ++i) { in res_create_multi_display_surface() local
298 surface[i] = created_surface.release(); in res_create_multi_display_surface()
320 for (int i = 0; i < *frames; ++i) { in res_create_multi_display_surface() local
321 free(surface[i]); in res_create_multi_display_surface()
410 for (int i = 0; i < h; ++i, ++y) { in get_locales_in_png() local
[all …]
Devents.cpp275 for (size_t i = 0; i < g_ev_dev_count; ++i) { in ev_sync_sw_state() local
279 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_sync_sw_state()
285 if (ioctl(ev_fdinfo[i].fd, EVIOCGSW(sizeof(sw_bits)), sw_bits) == -1) { in ev_sync_sw_state()
304 for (size_t i = 0; i < g_ev_dev_count; ++i) { in ev_sync_key_state() local
308 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_sync_key_state()
314 if (ioctl(ev_fdinfo[i].fd, EVIOCGKEY(sizeof(key_bits)), key_bits) == -1) { in ev_sync_key_state()
333 for (size_t i = 0; i < g_ev_dev_count; ++i) { in ev_iterate_available_keys() local
338 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_iterate_available_keys()
345 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(EV_KEY, KEY_MAX), key_bits) == -1) { in ev_iterate_available_keys()
358 for (size_t i = 0; i < g_ev_dev_count; ++i) { in ev_iterate_touch_inputs() local
[all …]
/bootable/recovery/tests/unit/
Dscreen_ui_test.cpp81 for (size_t i = 0; i < menu.ItemsCount(); i++) { in TEST_F() local
82 ASSERT_EQ(ITEMS[i], menu.TextItem(i)); in TEST_F()
96 for (size_t i = 0; i < menu.ItemsCount() - 1; i++) { in TEST_F() local
97 ASSERT_EQ(ITEMS[i], menu.TextItem(i)); in TEST_F()
111 for (size_t i = 0; i < menu.ItemsCount(); i++) { in TEST_F() local
112 ASSERT_EQ(ITEMS[i], menu.TextItem(i)); in TEST_F()
128 for (size_t i = 0; i < menu.ItemsCount(); i++) { in TEST_F() local
129 ASSERT_EQ(ITEMS[i], menu.TextItem(i)); in TEST_F()
140 for (int i = 0; i < 10; i++) { in TEST_F() local
145 int expected = (i + 1) % 5; in TEST_F()
[all …]
Dresources_test.cpp83 for (auto i = 0; i < frame_count; i++) { in TEST() local
84 free(frames[i]); in TEST()
126 for (int i = 0; i < h; ++i, ++y) { in TEST_P() local
Dminui_test.cpp47 for (auto i = 0; i < image->data_size(); i++) { in TEST() local
48 image->data()[i] = rand() % 128; in TEST()
Dfuse_sideload_test.cpp86 for (int i = 0; i < kSideloadInstallTimeout; ++i) { in TEST() local
94 if (errno == ENOENT && i < kSideloadInstallTimeout - 1) { in TEST()
/bootable/libbootloader/gbl/libelf/
Drelocation.cpp67 for (size_t i = 0; i < num_entries; i++) { in FixUpRelxTable() local
68 const T& entry = table[i]; in FixUpRelxTable()
141 for (size_t i = 0; dynamic_section_table[i].d_tag != DT_NULL; i++) { in ApplyRelocation() local
142 switch (dynamic_section_table[i].d_tag) { in ApplyRelocation()
145 dynamic_section_info.rela = &dynamic_section_table[i]; in ApplyRelocation()
149 dynamic_section_info.rela_size = &dynamic_section_table[i]; in ApplyRelocation()
153 dynamic_section_info.rel = &dynamic_section_table[i]; in ApplyRelocation()
157 dynamic_section_info.rel_size = &dynamic_section_table[i]; in ApplyRelocation()
162 (const Elf64_Sym*)(dynamic_section_table[i].d_un.d_ptr + program_base); in ApplyRelocation()
Delf_static_relocation_checker.cpp74 for (size_t i = 0; i < elf_header.e_phnum; i++) { in main() local
75 const uint8_t* header_start = program_hdr_start + i * sizeof(Elf64_Phdr); in main()
Drelocation_test.cpp77 for (size_t i = 0; i < num_relocs; i++) { in Program() local
78 table_[i].r_offset = offsetof(ThisType, relocated_addr_table_) + i * sizeof(uint64_t); in Program()
/bootable/deprecated-ota/updater/
Dmounts.cpp42 for (size_t i = 0; i < g_mounts_state.size(); ++i) { in scan_mounted_volumes() local
43 delete g_mounts_state[i]; in scan_mounted_volumes()
66 for (size_t i = 0; i < g_mounts_state.size(); ++i) { in find_mounted_volume_by_mount_point() local
67 if (g_mounts_state[i]->mount_point == mount_point) return g_mounts_state[i]; in find_mounted_volume_by_mount_point()
Ddynamic_partitions.cpp52 for (size_t i = 0; i < arg_names.size(); ++i) { in ReadStringArgs() local
53 if (args[i]->type != Value::Type::STRING) { in ReadStringArgs()
55 arg_names[i].c_str(), name); in ReadStringArgs()
Dcommands.cpp363 for (size_t i = 0; i < ranges_.blocks(); i++) { in DumpBuffer() local
364 size_t block_num = ranges_.GetBlockNumber(i); in DumpBuffer()
365 size_t buffer_index = location.GetBlockNumber(i); in DumpBuffer()
437 for (size_t i = kTransferListHeaderLines; i < lines.size(); i++) { in Parse() local
438 const std::string& line = lines[i]; in Parse()
441 size_t cmdindex = i - kTransferListHeaderLines; in Parse()
/bootable/deprecated-ota/applypatch/
Dimgdiff.cpp563 for (size_t i = 0; i < patch_chunks.size(); ++i) { in WritePatchDataToFd() local
564 offset = patch_chunks[i].WriteHeaderToFd(patch_fd, offset, i); in WritePatchDataToFd()
581 ImageChunk& Image::operator[](size_t i) { in operator []() argument
582 CHECK_LT(i, chunks_.size()); in operator []()
583 return chunks_[i]; in operator []()
586 const ImageChunk& Image::operator[](size_t i) const { in operator []()
587 CHECK_LT(i, chunks_.size()); in operator []()
588 return chunks_[i]; in operator []()
616 for (size_t i = 0; i < chunks_.size(); ++i) { in DumpChunks() local
617 chunks_[i].Dump(i); in DumpChunks()
[all …]
Dimgpatch.cpp159 for (int i = 0; i < num_chunks; ++i) { in ApplyImagePatch() local
162 printf("failed to read chunk %d record\n", i); in ApplyImagePatch()
172 printf("failed to read chunk %d normal header data\n", i); in ApplyImagePatch()
194 printf("failed to read chunk %d raw header data\n", i); in ApplyImagePatch()
201 printf("failed to read chunk %d raw data\n", i); in ApplyImagePatch()
205 printf("failed to write chunk %d raw data\n", i); in ApplyImagePatch()
216 printf("failed to read chunk %d deflate header data\n", i); in ApplyImagePatch()
236 size_t bonus_size = (i == 1 && bonus_data != nullptr) ? bonus_data->data.size() : 0; in ApplyImagePatch()
287 printf("patch chunk %d is unknown type %d\n", i, type); in ApplyImagePatch()
/bootable/deprecated-ota/edify/
Dexpr.cpp83 for (size_t i = 0; i < argv.size(); ++i) { in ConcatFn() local
85 if (!Evaluate(state, argv[i], &str)) { in ConcatFn()
125 for (size_t i = 0; i < argv.size(); ++i) { in AssertFn() local
127 if (!Evaluate(state, argv[i], &result)) { in AssertFn()
131 int len = argv[i]->end - argv[i]->start; in AssertFn()
132 state->errmsg = "assert failed: " + state->script.substr(argv[i]->start, len); in AssertFn()
155 for (size_t i = 0; i < argv.size(); ++i) { in StdoutFn() local
157 if (!Evaluate(state, argv[i], &v)) { in StdoutFn()
365 for (size_t i = start; i < start + len; ++i) { in ReadArgs() local
367 if (!Evaluate(state, argv[i], &var)) { in ReadArgs()
[all …]
/bootable/recovery/otautil/include/otautil/
Dprint_sha1.h28 for (size_t i = 0; i < len; ++i) { in print_sha1() local
29 result.push_back(hex[(sha1[i] >> 4) & 0xf]); in print_sha1()
30 result.push_back(hex[sha1[i] & 0xf]); in print_sha1()
/bootable/recovery/tools/image_generator/
Ddraw-progress.sh10 for ((i=0; i < $N; i++)); do
11 progress=$(bc -l <<< "$i / ($N - 1)")
14 filename="progress$(printf "%02d" $i).png"
/bootable/recovery/otautil/
Dverifier.cpp187 for (size_t i = 4; i < eocd_size - 3; ++i) { in verify_file() local
188 if (eocd[i] == 0x50 && eocd[i + 1] == 0x4b && eocd[i + 2] == 0x05 && eocd[i + 3] == 0x06) { in verify_file()
260 for (size_t i = 0; i < keys.size(); i++) { in verify_file() local
261 const auto& key = keys[i]; in verify_file()
282 LOG(INFO) << "failed to verify against RSA key " << i; in verify_file()
286 LOG(INFO) << "whole-file signature verified against RSA key " << i; in verify_file()
290 LOG(INFO) << "failed to verify against EC key " << i; in verify_file()
294 LOG(INFO) << "whole-file signature verified against EC key " << i; in verify_file()
/bootable/recovery/recovery_utils/
Dlogging.cpp121 size_t i; in logrotate() local
122 if (!android::base::ParseUint(number, &i)) { in logrotate()
126 name = sub + "." + std::to_string(i + 1); in logrotate()
144 for (int i = KEEP_LOG_COUNT - 1; i >= 0; --i) { in rotate_logs() local
146 if (i > 0) { in rotate_logs()
147 old_log += "." + std::to_string(i); in rotate_logs()
149 std::string new_log = android::base::StringPrintf("%s.%d", last_log_file, i + 1); in rotate_logs()
154 if (i > 0) { in rotate_logs()
155 old_kmsg += "." + std::to_string(i); in rotate_logs()
157 std::string new_kmsg = android::base::StringPrintf("%s.%d", last_kmsg_file, i + 1); in rotate_logs()
/bootable/recovery/
Dinterlace-frames.py49 for i in range(w):
51 out.putpixel((i, j*N+fn), f.getpixel((i, j)))
86 for i in range(width):
88 out.putpixel((i, j), img.getpixel((i, j * num_frames + k)))
/bootable/libbootloader/libxbc/
Dlibxbc.c35 for (uint32_t i = 0; i < size; i++) { in checksum() local
36 sum += buffer[i]; in checksum()
/bootable/recovery/tests/testdata/
Drecovery_body205 …����������������������������������ERCP ��� �������������������������������������/init.U
225 …����������������������������ERCP ��� ������������������������������������/sbin��� �/U
248 …�������������ERCP ��� �������������������.������������������g/adf-interfacen����…
253 …�������������������.������������������q/adf-overlay-enginen���������������…
258 …����������������������ERCP ��� �������������������������� �����������/android_adbU
266 …����������������������������������ERCP ��� �������������������������������������/audioU
327 …��������������������ERCP ��� �������������������������� ����������$/graphics��� �/U
333 …���������������������ERCP ��� �������������������������������������1/i2c-n�������������…
339 …���������������������������ERCP ��� ������������������������������������/input�� �/U
345 …��������������ERCP ��� �������������������������� �����������=/iio:devicen��������…
[all …]
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp84 for (size_t i = 0; i < items_count; ++i) { in TextMenu() local
85 text_items_.emplace_back(items[i].substr(0, max_item_length_)); in TextMenu()
184 for (size_t i = MenuStart(); i < MenuEnd(); ++i) { in DrawItems() local
186 if (i == selection()) { in DrawItems()
197 offset += draw_funcs_.DrawTextLine(x, y + offset, TextItem(i), bold); in DrawItems()
245 for (size_t i = 0; i < graphic_items_.size(); i++) { in DrawItems() local
246 auto& item = graphic_items_[i]; in DrawItems()
247 if (i == selection_) { in DrawItems()
434 for (int i = 0; i < max_stage; ++i) { in draw_background_locked() local
435 const auto& stage_surface = (i < stage) ? stage_marker_fill_ : stage_marker_empty_; in draw_background_locked()
[all …]

123