diff options
author | Chih-hung Hsieh <chh@google.com> | 2018-12-17 14:09:52 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-12-17 14:09:52 -0800 |
commit | df66e3cb29b998008bb646309dbbbfb284a6bcb5 (patch) | |
tree | 46865c58f7dce01ee04f0601e0ee97b883dfe249 /contexthub | |
parent | d5ddc60e0a54a359ba56cd2bb7f20a441f287ca4 (diff) | |
parent | 86fefab5e9885878c7836f051e04d028df65fdcb (diff) | |
download | android_hardware_interfaces-df66e3cb29b998008bb646309dbbbfb284a6bcb5.tar.gz android_hardware_interfaces-df66e3cb29b998008bb646309dbbbfb284a6bcb5.tar.bz2 android_hardware_interfaces-df66e3cb29b998008bb646309dbbbfb284a6bcb5.zip |
Merge "Fix performance-for-range-copy warnings" am: d01f7050ac am: 51e835ce22
am: 86fefab5e9
Change-Id: Ib139d710d47a7a51e24ba8ba582b252f5ff6e244
Diffstat (limited to 'contexthub')
-rw-r--r-- | contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp b/contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp index 749215209..629477aa9 100644 --- a/contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp +++ b/contexthub/1.0/vts/functional/VtsHalContexthubV1_0TargetTest.cpp @@ -83,7 +83,7 @@ std::vector<uint32_t> getHubIds() { sp<IContexthub> hubApi = ::testing::VtsHalHidlTargetTestBase::getService<IContexthub>(); if (hubApi != nullptr) { - for (ContextHub hub : getHubsSync(hubApi)) { + for (const ContextHub& hub : getHubsSync(hubApi)) { hubIds.push_back(hub.hubId); } } @@ -206,7 +206,7 @@ TEST_F(ContexthubHidlTestBase, TestGetHubs) { hidl_vec<ContextHub> hubs = getHubsSync(hubApi); ALOGD("System reports %zu hubs", hubs.size()); - for (ContextHub hub : hubs) { + for (const ContextHub& hub : hubs) { ALOGD("Checking hub ID %" PRIu32, hub.hubId); EXPECT_FALSE(hub.name.empty()); |