Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 744056a2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Address Alex's comments in the previous CL"

parents 5f817dbd 7d70bc53
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ void AssetManager2::DumpToLog() const {

  auto op = StartOperation();
  std::string list;
  for (size_t i = 0; i < apk_assets_.size(); ++i) {
  for (size_t i = 0, s = apk_assets_.size(); i < s; ++i) {
    const auto& assets = GetApkAssets(i);
    base::StringAppendF(&list, "%s,", assets ? assets->GetDebugName().c_str() : "nullptr");
  }
@@ -353,7 +353,7 @@ bool AssetManager2::GetOverlayablesToString(android::StringPiece package_name,
                                            std::string* out) const {
  auto op = StartOperation();
  uint8_t package_id = 0U;
  for (size_t i = 0; i != apk_assets_.size(); ++i) {
  for (size_t i = 0, s = apk_assets_.size(); i != s; ++i) {
    const auto& assets = GetApkAssets(i);
    if (!assets) {
      continue;
@@ -412,7 +412,7 @@ bool AssetManager2::GetOverlayablesToString(android::StringPiece package_name,

bool AssetManager2::ContainsAllocatedTable() const {
  auto op = StartOperation();
  for (size_t i = 0; i != apk_assets_.size(); ++i) {
  for (size_t i = 0, s = apk_assets_.size(); i != s; ++i) {
    const auto& assets = GetApkAssets(i);
    if (assets && assets->IsTableAllocated()) {
      return true;