summaryrefslogtreecommitdiff
path: root/libs/androidfw/tests/BenchmarkHelpers.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2017-01-23 12:58:11 -0800
committerAdam Lesinski <adamlesinski@google.com>2018-01-24 15:19:04 -0800
commitdcb3c6559b09ec89771858ec27a787027da9af50 (patch)
tree83aeb141e483ec7d059b7089e00b761ace122662 /libs/androidfw/tests/BenchmarkHelpers.cpp
parent262cdf0f2724aaeade73a6c9e7b7466e0adf1007 (diff)
Replace AssetManager with AssetManager2 implementation
Test: atest CtsContentTestCases:android.content.res.cts Test: make libandroidfw_tests Change-Id: I572eb13c6a4372c7f656f5912821cececd5bf3d4
Diffstat (limited to 'libs/androidfw/tests/BenchmarkHelpers.cpp')
-rw-r--r--libs/androidfw/tests/BenchmarkHelpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/androidfw/tests/BenchmarkHelpers.cpp b/libs/androidfw/tests/BenchmarkHelpers.cpp
index 7149beef797f..a8abcb5df86c 100644
--- a/libs/androidfw/tests/BenchmarkHelpers.cpp
+++ b/libs/androidfw/tests/BenchmarkHelpers.cpp
@@ -33,12 +33,12 @@ void GetResourceBenchmarkOld(const std::vector<std::string>& paths, const ResTab
}
}
+ // Make sure to force creation of the ResTable first, or else the configuration doesn't get set.
+ const ResTable& table = assetmanager.getResources(true);
if (config != nullptr) {
assetmanager.setConfiguration(*config);
}
- const ResTable& table = assetmanager.getResources(true);
-
Res_value value;
ResTable_config selected_config;
uint32_t flags;