/bootable/recovery/edify/ |
D | yydefs.h | 22 int start, end; member 28 (Current).start = YYRHSLOC(Rhs, 1).start; \ 31 (Current).start = YYRHSLOC(Rhs, 0).start; \
|
D | parser.yy | 47 Expr* e = new Expr(fn, "(operator)", loc.start, loc.end); 92 $$ = new Expr(Literal, $1, @$.start, @$.end); 94 | '(' expr ')' { $$ = $2; $$->start=@$.start; $$->end=@$.end; } 95 | expr ';' { $$ = $1; $$->start=@1.start; $$->end=@1.end; } 97 | error ';' expr { $$ = $3; $$->start=@$.start; $$->end=@$.end; } 113 $$ = new Expr(fn, $1, @$.start, @$.end);
|
D | expr.cpp | 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() 358 std::vector<std::string>* args, size_t start, size_t len) { in ReadArgs() argument 362 if (start + len > argv.size()) { in ReadArgs() 365 for (size_t i = start; i < start + len; ++i) { in ReadArgs() 384 std::vector<std::unique_ptr<Value>>* args, size_t start, size_t len) { in ReadValueArgs() argument 388 if (len == 0 || start + len > argv.size()) { in ReadValueArgs() 391 for (size_t i = start; i < start + len; ++i) { in ReadValueArgs()
|
D | lexer.ll | 31 #define ADVANCE do {yylloc.start=gPos; yylloc.end=gPos+yyleng; \ 48 yylloc.start = gPos;
|
D | README.md | 40 - Comments start with "#" and run to the end of the line.
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 83 uint64_t start, end; in ParseBlockMapFile() local 84 if (sscanf(line.c_str(), "%" SCNu64 "%" SCNu64, &start, &end) != 2) { in ParseBlockMapFile() 88 uint64_t range_blocks = end - start; in ParseBlockMapFile() 89 if (end <= start || range_blocks > remaining_blocks) { in ParseBlockMapFile() 90 LOG(ERROR) << "Invalid range: " << start << " " << end; in ParseBlockMapFile() 93 ranges.PushBack({ start, end }); in ParseBlockMapFile() 152 for (const auto& [start, end] : block_map_data.block_ranges()) { in MapBlockFile() 153 size_t range_size = (end - start) * blksize; in MapBlockFile() 155 static_cast<off_t>(start) * blksize); in MapBlockFile() 157 PLOG(ERROR) << "failed to map range " << start << ": " << end; in MapBlockFile()
|
D | rangeset.cpp | 224 void SortedRangeSet::Insert(size_t start, size_t len) { in Insert() argument 225 Range to_insert{ start / kBlockSize, (start + len - 1) / kBlockSize + 1 }; in Insert() 229 bool SortedRangeSet::Overlaps(size_t start, size_t len) const { in Overlaps() argument 230 RangeSet rs({ { start / kBlockSize, (start + len - 1) / kBlockSize + 1 } }); in Overlaps() 247 for (const auto& [start, end] : ranges_) { in GetOffsetInRangeSet() 250 new_block_start += (end - start); in GetOffsetInRangeSet() 251 } else if (old_block_start >= start) { in GetOffsetInRangeSet() 252 new_block_start += (old_block_start - start); in GetOffsetInRangeSet()
|
/bootable/recovery/install/ |
D | package.cpp | 53 bool UpdateHashAtOffset(const std::vector<HasherUpdateCallback>& hashers, uint64_t start, 93 bool UpdateHashAtOffset(const std::vector<HasherUpdateCallback>& hashers, uint64_t start, 171 uint64_t start, uint64_t length) { in UpdateHashAtOffset() argument 172 if (length > package_size_ || start > package_size_ - length) { in UpdateHashAtOffset() 173 LOG(ERROR) << "Out of bound read, offset: " << start << ", size: " << length in UpdateHashAtOffset() 179 hasher(addr_ + start, length); in UpdateHashAtOffset() 227 uint64_t start, uint64_t length) { in UpdateHashAtOffset() argument 228 if (length > package_size_ || start > package_size_ - length) { in UpdateHashAtOffset() 229 LOG(ERROR) << "Out of bound read, offset: " << start << ", size: " << length in UpdateHashAtOffset() 238 if (!ReadFullyAtOffset(buffer.data(), read_size, start + so_far)) { in UpdateHashAtOffset()
|
D | install.cpp | 639 auto start = std::chrono::system_clock::now(); in install_package() local 657 std::chrono::duration<double> duration = std::chrono::system_clock::now() - start; in install_package()
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 77 int start, end; member 79 Expr(Function fn, const std::string& name, int start, int end) : in Expr() 82 start(start), in Expr() 132 std::vector<std::string>* args, size_t start, size_t len); 139 std::vector<std::unique_ptr<Value>>* args, size_t start, size_t len);
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 139 size_t start = 0; in WriteBufferToPartition() local 148 if (TEMP_FAILURE_RETRY(lseek(fd, start, SEEK_SET)) == -1) { in WriteBufferToPartition() 149 PLOG(ERROR) << "Failed to seek to " << start << " on \"" << partition << "\""; in WriteBufferToPartition() 153 if (!android::base::WriteFully(fd, data + start, len - start)) { in WriteBufferToPartition() 154 PLOG(ERROR) << "Failed to write " << len - start << " bytes to \"" << partition << "\""; in WriteBufferToPartition() 190 start = len; in WriteBufferToPartition() 204 start = p; in WriteBufferToPartition() 209 if (start == len) { in WriteBufferToPartition()
|
D | imgdiff.cpp | 197 static bool AlignHead(size_t* start, size_t* length) { in AlignHead() argument 198 size_t residual = (*start % BLOCK_SIZE == 0) ? 0 : BLOCK_SIZE - *start % BLOCK_SIZE; in AlignHead() 206 *start += residual; in AlignHead() 211 static bool AlignTail(size_t* start, size_t* length) { in AlignTail() argument 212 size_t residual = (*start + *length) % BLOCK_SIZE; in AlignTail() 226 static bool RemoveUsedBlocks(size_t* start, size_t* length, const SortedRangeSet& used_ranges) { in RemoveUsedBlocks() argument 227 if (!used_ranges.Overlaps(*start, *length)) { in RemoveUsedBlocks() 232 LOG(INFO) << "Removing block " << used_ranges.ToString() << " from " << *start << " - " in RemoveUsedBlocks() 233 << *start + *length - 1; in RemoveUsedBlocks() 237 if (AlignHead(start, length) && !used_ranges.Overlaps(*start, *length)) { in RemoveUsedBlocks() [all …]
|
/bootable/recovery/otautil/include/otautil/ |
D | rangeset.h | 153 void Insert(size_t start, size_t len); 157 bool Overlaps(size_t start, size_t len) const;
|
/bootable/recovery/etc/ |
D | init.rc | 7 start ueventd 54 # Mount filesystems and start core system services. 98 # Always start adbd on userdebug and eng builds 130 start adbd 133 start fastbootd
|
/bootable/recovery/ |
D | recovery_main.cpp | 261 auto start = std::chrono::steady_clock::now(); in redirect_stdio() local 282 std::chrono::duration_cast<std::chrono::duration<double>>(now - start).count(); in redirect_stdio() 327 time_t start = time(nullptr); in main() local 435 LOG(INFO) << "Starting recovery (pid " << getpid() << ") on " << ctime(&start); in main()
|
D | README.md | 75 start log as below. 91 # Always start adbd on userdebug and eng builds 94 start adbd
|
/bootable/recovery/install/include/install/ |
D | verifier.h | 73 virtual bool UpdateHashAtOffset(const std::vector<HasherUpdateCallback>& hashers, uint64_t start,
|
/bootable/recovery/updater/ |
D | commands.cpp | 322 size_t start = locs.blocks(); in MoveRange() local 326 start -= blocks; in MoveRange() 327 memmove(to + (it->first * block_size), from + (start * block_size), blocks * block_size); in MoveRange()
|
D | blockimg.cpp | 962 size_t start = locs.blocks(); in MoveRange() local 966 start -= blocks; in MoveRange() 967 memmove(to + (it->first * BLOCKSIZE), from + (start * BLOCKSIZE), blocks * BLOCKSIZE); in MoveRange()
|
/bootable/recovery/tools/image_generator/ |
D | ImageGenerator.java | 411 int start = lineBoundary.first(); in wrapText() local 414 start = end, end = lineBoundary.next()) { in wrapText() 415 String token = text.substring(start, end); in wrapText()
|
/bootable/recovery/applypatch/include/applypatch/ |
D | imgdiff_image.h | 41 ImageChunk(int type, size_t start, const std::vector<uint8_t>* file_content, size_t raw_data_len,
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 530 auto start = std::chrono::system_clock::now(); in uncrypt_wrapper() local 532 std::chrono::duration<double> duration = std::chrono::system_clock::now() - start; in uncrypt_wrapper()
|
/bootable/recovery/tests/component/ |
D | imgdiff_test.cpp | 732 size_t start = 0; in ConstructImageChunks() local 735 chunks.emplace_back(CHUNK_NORMAL, start, &content, length, std::get<0>(t)); in ConstructImageChunks() 736 start += length; in ConstructImageChunks()
|
/bootable/recovery/recovery_ui/ |
D | screen_ui.cpp | 764 double start = now(); in ProgressThreadLoop() local 803 double delay = interval - (end - start); in ProgressThreadLoop()
|