Skip to content

Commit 28e09ed

Browse files
committed
Rename sparse_image_utils to sparse_image
Bug: b/434763749
1 parent 303ce88 commit 28e09ed

File tree

7 files changed

+13
-16
lines changed

7 files changed

+13
-16
lines changed

base/cvd/cuttlefish/host/commands/cvd/fetch/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ cf_cc_library(
4747
hdrs = ["de_android_sparse.h"],
4848
deps = [
4949
"//cuttlefish/common/libs/utils:result",
50-
"//cuttlefish/host/libs/image_aggregator:sparse_image_utils",
50+
"//cuttlefish/host/libs/image_aggregator:sparse_image",
5151
"//libbase",
5252
"//libsparse",
5353
],
@@ -134,7 +134,7 @@ cf_cc_library(
134134
"//cuttlefish/host/commands/cvd/fetch:substitute",
135135
"//cuttlefish/host/commands/cvd/fetch:target_directories",
136136
"//cuttlefish/host/libs/config:fetcher_config",
137-
"//cuttlefish/host/libs/image_aggregator:sparse_image_utils",
137+
"//cuttlefish/host/libs/image_aggregator:sparse_image",
138138
"//cuttlefish/host/libs/web:android_build",
139139
"//cuttlefish/host/libs/web:android_build_api",
140140
"//cuttlefish/host/libs/web:android_build_string",

base/cvd/cuttlefish/host/commands/cvd/fetch/de_android_sparse.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <sparse/sparse.h>
2626

2727
#include "cuttlefish/common/libs/utils/result.h"
28-
#include "cuttlefish/host/libs/image_aggregator/sparse_image_utils.h"
28+
#include "cuttlefish/host/libs/image_aggregator/sparse_image.h"
2929

3030
namespace cuttlefish {
3131
namespace {

base/cvd/cuttlefish/host/commands/cvd/fetch/fetch_cvd.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#include "cuttlefish/host/commands/cvd/fetch/host_tools_target.h"
4545
#include "cuttlefish/host/commands/cvd/fetch/target_directories.h"
4646
#include "cuttlefish/host/libs/config/fetcher_config.h"
47-
#include "cuttlefish/host/libs/image_aggregator/sparse_image_utils.h"
47+
#include "cuttlefish/host/libs/image_aggregator/sparse_image.h"
4848
#include "cuttlefish/host/libs/web/android_build.h"
4949
#include "cuttlefish/host/libs/web/android_build_api.h"
5050
#include "cuttlefish/host/libs/web/android_build_string.h"

base/cvd/cuttlefish/host/libs/image_aggregator/BUILD.bazel

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cf_cc_library(
3838
"//cuttlefish/host/libs/config:mbr",
3939
"//cuttlefish/host/libs/image_aggregator:cdisk_spec_cc_proto",
4040
"//cuttlefish/host/libs/image_aggregator:qcow2",
41-
"//cuttlefish/host/libs/image_aggregator:sparse_image_utils",
41+
"//cuttlefish/host/libs/image_aggregator:sparse_image",
4242
"//libbase",
4343
"//libsparse",
4444
"@protobuf",
@@ -47,15 +47,13 @@ cf_cc_library(
4747
)
4848

4949
cf_cc_library(
50-
name = "sparse_image_utils",
51-
srcs = ["sparse_image_utils.cc"],
52-
hdrs = ["sparse_image_utils.h"],
50+
name = "sparse_image",
51+
srcs = ["sparse_image.cc"],
52+
hdrs = ["sparse_image.h"],
5353
deps = [
5454
"//cuttlefish/common/libs/fs",
5555
"//cuttlefish/common/libs/utils:result",
5656
"//cuttlefish/common/libs/utils:subprocess",
57-
"//cuttlefish/host/libs/config:config_utils",
58-
"//cuttlefish/host/libs/config:cuttlefish_config",
5957
"//cuttlefish/host/libs/config:known_paths",
6058
"//libbase",
6159
],

base/cvd/cuttlefish/host/libs/image_aggregator/image_aggregator.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#include <fcntl.h>
2626
#include <stdio.h>
2727

28+
#include <sparse/sparse.h>
29+
#include <zlib.h>
30+
2831
#include <fstream>
2932
#include <random>
3033
#include <string>
@@ -34,8 +37,6 @@
3437
#include <android-base/logging.h>
3538
#include <android-base/strings.h>
3639
#include <google/protobuf/text_format.h>
37-
#include <sparse/sparse.h>
38-
#include <zlib.h>
3940

4041
#include "cuttlefish/common/libs/fs/shared_buf.h"
4142
#include "cuttlefish/common/libs/fs/shared_fd.h"
@@ -44,7 +45,7 @@
4445
#include "cuttlefish/host/libs/config/mbr.h"
4546
#include "cuttlefish/host/libs/image_aggregator/cdisk_spec.pb.h"
4647
#include "cuttlefish/host/libs/image_aggregator/qcow2.h"
47-
#include "cuttlefish/host/libs/image_aggregator/sparse_image_utils.h"
48+
#include "cuttlefish/host/libs/image_aggregator/sparse_image.h"
4849

4950
namespace cuttlefish {
5051
namespace {

base/cvd/cuttlefish/host/libs/image_aggregator/sparse_image_utils.cc renamed to base/cvd/cuttlefish/host/libs/image_aggregator/sparse_image.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "cuttlefish/host/libs/image_aggregator/sparse_image_utils.h"
17+
#include "cuttlefish/host/libs/image_aggregator/sparse_image.h"
1818

1919
#include <android-base/file.h>
2020
#include <android-base/logging.h>
@@ -28,8 +28,6 @@
2828
#include "cuttlefish/common/libs/fs/shared_fd.h"
2929
#include "cuttlefish/common/libs/utils/result.h"
3030
#include "cuttlefish/common/libs/utils/subprocess.h"
31-
#include "cuttlefish/host/libs/config/config_utils.h"
32-
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
3331
#include "cuttlefish/host/libs/config/known_paths.h"
3432

3533
namespace cuttlefish {

base/cvd/cuttlefish/host/libs/image_aggregator/sparse_image_utils.h renamed to base/cvd/cuttlefish/host/libs/image_aggregator/sparse_image.h

File renamed without changes.

0 commit comments

Comments
 (0)