From 33dce90e7f1d1d15a4af1b8542f192cd28673f0c Mon Sep 17 00:00:00 2001 From: Jiakai Zhang Date: Mon, 4 Jul 2022 14:49:08 +0100 Subject: Update ClassLoaderContext to support artd use cases. - Change `FlattenDexPaths` to returning `std::vector` so that artd can use it in a more flexible way. Bug: 229268202 Test: Presubmit Change-Id: Iab0d018d4f52eea6b60f7f2d88cc56f23db6bd5c Merged-In: Iab0d018d4f52eea6b60f7f2d88cc56f23db6bd5c (cherry picked from commit 55e733f0f582f3edafa2b3bfd1168ade01813a54) --- runtime/class_loader_context.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runtime/class_loader_context.h') diff --git a/runtime/class_loader_context.h b/runtime/class_loader_context.h index eceea00177..ccc5c731de 100644 --- a/runtime/class_loader_context.h +++ b/runtime/class_loader_context.h @@ -155,9 +155,8 @@ class ClassLoaderContext { // Should only be called if OpenDexFiles() returned true. std::vector FlattenOpenedDexFiles() const; - // Return a colon-separated list of dex file locations from this class loader - // context after flattening. - std::string FlattenDexPaths() const; + // Return a list of dex file locations from this class loader context after flattening. + std::vector FlattenDexPaths() const; // Verifies that the current context is identical to the context encoded as `context_spec`. // Identical means: -- cgit v1.2.3-59-g8ed1b