Home
last modified time | relevance | path

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

/bootable/recovery/edify/
Dyydefs.h22 int start, end; member
28 (Current).start = YYRHSLOC(Rhs, 1).start; \
31 (Current).start = YYRHSLOC(Rhs, 0).start; \
Dparser.yy47 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);
Dexpr.cpp131 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()
Dlexer.ll31 #define ADVANCE do {yylloc.start=gPos; yylloc.end=gPos+yyleng; \
48 yylloc.start = gPos;
DREADME.md40 - Comments start with "#" and run to the end of the line.
/bootable/recovery/otautil/
Dsysutil.cpp83 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()
157 for (const auto& [start, end] : block_map_data.block_ranges()) { in MapBlockFile()
158 size_t range_size = (end - start) * blksize; in MapBlockFile()
160 static_cast<off_t>(start) * blksize); in MapBlockFile()
162 PLOG(ERROR) << "failed to map range " << start << ": " << end; in MapBlockFile()
Drangeset.cpp276 void SortedRangeSet::Insert(size_t start, size_t len) { in Insert() argument
277 Range to_insert{ start / kBlockSize, (start + len - 1) / kBlockSize + 1 }; in Insert()
281 bool SortedRangeSet::Overlaps(size_t start, size_t len) const { in Overlaps() argument
282 RangeSet rs({ { start / kBlockSize, (start + len - 1) / kBlockSize + 1 } }); in Overlaps()
299 for (const auto& [start, end] : ranges_) { in GetOffsetInRangeSet()
302 new_block_start += (end - start); in GetOffsetInRangeSet()
303 } else if (old_block_start >= start) { in GetOffsetInRangeSet()
304 new_block_start += (old_block_start - start); in GetOffsetInRangeSet()
/bootable/recovery/install/
Dpackage.cpp61 bool UpdateHashAtOffset(const std::vector<HasherUpdateCallback>& hashers, uint64_t start,
109 bool UpdateHashAtOffset(const std::vector<HasherUpdateCallback>& hashers, uint64_t start,
187 uint64_t start, uint64_t length) { in UpdateHashAtOffset() argument
188 if (length > package_size_ || start > package_size_ - length) { in UpdateHashAtOffset()
189 LOG(ERROR) << "Out of bound read, offset: " << start << ", size: " << length in UpdateHashAtOffset()
195 hasher(addr_ + start, length); in UpdateHashAtOffset()
243 uint64_t start, uint64_t length) { in UpdateHashAtOffset() argument
244 if (length > package_size_ || start > package_size_ - length) { in UpdateHashAtOffset()
245 LOG(ERROR) << "Out of bound read, offset: " << start << ", size: " << length in UpdateHashAtOffset()
254 if (!ReadFullyAtOffset(buffer.data(), read_size, start + so_far)) { in UpdateHashAtOffset()
Dinstall.cpp566 auto start = std::chrono::system_clock::now(); in InstallPackage() local
592 std::chrono::duration<double> duration = std::chrono::system_clock::now() - start; in InstallPackage()
/bootable/recovery/edify/include/edify/
Dexpr.h78 int start, end; member
80 Expr(Function fn, const std::string& name, int start, int end) : in Expr()
83 start(start), in Expr()
133 std::vector<std::string>* args, size_t start, size_t len);
140 std::vector<std::unique_ptr<Value>>* args, size_t start, size_t len);
/bootable/recovery/applypatch/
Dapplypatch.cpp139 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()
Dimgdiff.cpp197 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/
Drangeset.h160 void Insert(size_t start, size_t len);
164 bool Overlaps(size_t start, size_t len) const;
/bootable/recovery/minadbd/
DREADME.md11 - The start / stop of `adbd` is managed via system property `sys.usb.config`, when setting to `adb`
17 - When requested to start `minadbd`, `recovery` stops `adbd` first, if it's running; it then forks
/bootable/recovery/
Drecovery_main.cpp267 auto start = std::chrono::steady_clock::now(); in redirect_stdio() local
288 std::chrono::duration_cast<std::chrono::duration<double>>(now - start).count(); in redirect_stdio()
333 time_t start = time(nullptr); in main() local
454 LOG(INFO) << "Starting recovery (pid " << getpid() << ") on " << ctime(&start); in main()
DREADME.md87 start log as below.
103 # Always start adbd on userdebug and eng builds
106 start adbd
/bootable/recovery/etc/
Dinit.rc11 start ueventd
51 # Mount filesystems and start core system services.
118 start adbd
121 start fastbootd
/bootable/recovery/install/include/install/
Dverifier.h73 virtual bool UpdateHashAtOffset(const std::vector<HasherUpdateCallback>& hashers, uint64_t start,
/bootable/recovery/updater/
Dcommands.cpp321 size_t start = locs.blocks(); in MoveRange() local
325 start -= blocks; in MoveRange()
326 memmove(to + (it->first * block_size), from + (start * block_size), blocks * block_size); in MoveRange()
Dblockimg.cpp967 size_t start = locs.blocks(); in MoveRange() local
971 start -= blocks; in MoveRange()
972 memmove(to + (it->first * BLOCKSIZE), from + (start * BLOCKSIZE), blocks * BLOCKSIZE); in MoveRange()
/bootable/recovery/tools/image_generator/
DImageGenerator.java411 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/
Dimgdiff_image.h41 ImageChunk(int type, size_t start, const std::vector<uint8_t>* file_content, size_t raw_data_len,
/bootable/recovery/uncrypt/
Duncrypt.cpp530 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/unit/host/
Dimgdiff_test.cpp731 size_t start = 0; in ConstructImageChunks() local
734 chunks.emplace_back(CHUNK_NORMAL, start, &content, length, std::get<0>(t)); in ConstructImageChunks()
735 start += length; in ConstructImageChunks()
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp771 double start = now(); in ProgressThreadLoop() local
810 double delay = interval - (end - start); in ProgressThreadLoop()