diff options
-rw-r--r-- | include/input/OWNERS | 1 | ||||
-rw-r--r-- | libs/binder/IServiceManager.cpp | 7 | ||||
-rw-r--r-- | libs/binder/ndk/Android.bp | 3 | ||||
-rw-r--r-- | libs/binder/tests/binderRecordReplayTest.cpp | 10 | ||||
-rw-r--r-- | libs/binder/tests/parcel_fuzzer/random_parcel_seeds.cpp | 2 | ||||
-rw-r--r-- | opengl/Android.bp | 12 | ||||
-rw-r--r-- | services/surfaceflinger/DisplayHardware/HidlComposerHal.cpp | 2 | ||||
-rw-r--r-- | services/surfaceflinger/Tracing/TransactionProtoParser.cpp | 4 | ||||
-rw-r--r-- | services/surfaceflinger/Tracing/TransactionTracing.cpp | 4 | ||||
-rw-r--r-- | services/surfaceflinger/tests/unittests/TransactionTracingTest.cpp | 8 |
10 files changed, 20 insertions, 33 deletions
diff --git a/include/input/OWNERS b/include/input/OWNERS index c88bfe97ca..21d208f577 100644 --- a/include/input/OWNERS +++ b/include/input/OWNERS @@ -1 +1,2 @@ +# Bug component: 136048 include platform/frameworks/base:/INPUT_OWNERS diff --git a/libs/binder/IServiceManager.cpp b/libs/binder/IServiceManager.cpp index 8b80aed630..333f956556 100644 --- a/libs/binder/IServiceManager.cpp +++ b/libs/binder/IServiceManager.cpp @@ -253,8 +253,11 @@ bool checkPermission(const String16& permission, pid_t pid, uid_t uid, bool logP } } +#endif //__ANDROID_VNDK__ + void* openDeclaredPassthroughHal(const String16& interface, const String16& instance, int flag) { -#if defined(__ANDROID__) && !defined(__ANDROID_RECOVERY__) && !defined(__ANDROID_NATIVE_BRIDGE__) +#if defined(__ANDROID__) && !defined(__ANDROID_VENDOR__) && !defined(__ANDROID_RECOVERY__) && \ + !defined(__ANDROID_NATIVE_BRIDGE__) sp<IServiceManager> sm = defaultServiceManager(); String16 name = interface + String16("/") + instance; if (!sm->isDeclared(name)) { @@ -274,8 +277,6 @@ void* openDeclaredPassthroughHal(const String16& interface, const String16& inst #endif } -#endif //__ANDROID_VNDK__ - // ---------------------------------------------------------------------- ServiceManagerShim::ServiceManagerShim(const sp<AidlServiceManager>& impl) { diff --git a/libs/binder/ndk/Android.bp b/libs/binder/ndk/Android.bp index 4e02aceb86..26c228d9a4 100644 --- a/libs/binder/ndk/Android.bp +++ b/libs/binder/ndk/Android.bp @@ -255,9 +255,6 @@ ndk_headers { "include_cpp/android/*.h", ], license: "NOTICE", - // These are intentionally not C. It's a mistake that they're in the NDK. - // See the bug above. - skip_verification: true, } ndk_library { diff --git a/libs/binder/tests/binderRecordReplayTest.cpp b/libs/binder/tests/binderRecordReplayTest.cpp index b975fad2c9..f867b42b1c 100644 --- a/libs/binder/tests/binderRecordReplayTest.cpp +++ b/libs/binder/tests/binderRecordReplayTest.cpp @@ -99,12 +99,12 @@ public: GENERATE_GETTER_SETTER(SingleDataParcelableArray, std::vector<SingleDataParcelable>); Status setFileDescriptor(unique_fd input) { - mFd = std::move(unique_fd(dup(input))); + mFd = unique_fd(dup(input)); return Status::ok(); } Status getFileDescriptor(unique_fd* output) { - *output = std::move(unique_fd(dup(mFd))); + *output = unique_fd(dup(mFd)); return Status::ok(); } unique_fd mFd; @@ -117,7 +117,7 @@ std::vector<uint8_t> retrieveData(borrowed_fd fd) { std::vector<uint8_t> buffer(fdStat.st_size); auto readResult = android::base::ReadFully(fd, buffer.data(), fdStat.st_size); EXPECT_TRUE(readResult != 0); - return std::move(buffer); + return buffer; } void replayFuzzService(const sp<BpBinder>& binder, const RecordedTransaction& transaction) { @@ -387,8 +387,8 @@ TEST_F(BinderRecordReplayTest, ReplayFd) { // When fds are replayed, it will be replaced by /dev/null..reading from it should yield // null data - recordReplay(&IBinderRecordReplayTest::setFileDescriptor, std::move(unique_fd(dup(saved))), - &IBinderRecordReplayTest::getFileDescriptor, std::move(unique_fd(dup(changed)))); + recordReplay(&IBinderRecordReplayTest::setFileDescriptor, unique_fd(dup(saved)), + &IBinderRecordReplayTest::getFileDescriptor, unique_fd(dup(changed))); } int main(int argc, char** argv) { diff --git a/libs/binder/tests/parcel_fuzzer/random_parcel_seeds.cpp b/libs/binder/tests/parcel_fuzzer/random_parcel_seeds.cpp index fd9777a916..0ed8a554ac 100644 --- a/libs/binder/tests/parcel_fuzzer/random_parcel_seeds.cpp +++ b/libs/binder/tests/parcel_fuzzer/random_parcel_seeds.cpp @@ -55,7 +55,7 @@ std::vector<uint8_t> reverseBytes(T min, T max, T val) { offset += CHAR_BIT; } - return std::move(reverseData); + return reverseData; } template <typename T> diff --git a/opengl/Android.bp b/opengl/Android.bp index 37dc9314e2..4454f36b67 100644 --- a/opengl/Android.bp +++ b/opengl/Android.bp @@ -30,10 +30,6 @@ ndk_headers { to: "", srcs: ["include/EGL/**/*.h"], license: "include/EGL/NOTICE", - // eglext.h is not self-contained. Safe to skip C-compat verification - // though since upstream also cares about C compatibility, and the header is - // auto-generated anyway. - skip_verification: true, } ndk_headers { @@ -42,10 +38,6 @@ ndk_headers { to: "", srcs: ["include/GLES/**/*.h"], license: "include/GLES/NOTICE", - // glext.h is not self-contained. Safe to skip C-compat verification - // though since upstream also cares about C compatibility, and the header is - // auto-generated anyway. - skip_verification: true, } ndk_headers { @@ -54,10 +46,6 @@ ndk_headers { to: "", srcs: ["include/GLES2/**/*.h"], license: "include/GLES2/NOTICE", - // gl2ext.h is not self-contained. Safe to skip C-compat verification - // though since upstream also cares about C compatibility, and the header is - // auto-generated anyway. - skip_verification: true, } ndk_headers { diff --git a/services/surfaceflinger/DisplayHardware/HidlComposerHal.cpp b/services/surfaceflinger/DisplayHardware/HidlComposerHal.cpp index 12ab2c284a..be95913b89 100644 --- a/services/surfaceflinger/DisplayHardware/HidlComposerHal.cpp +++ b/services/surfaceflinger/DisplayHardware/HidlComposerHal.cpp @@ -209,7 +209,7 @@ sp<GraphicBuffer> allocateClearSlotBuffer() { if (!buffer || buffer->initCheck() != ::android::OK) { return nullptr; } - return std::move(buffer); + return buffer; } } // anonymous namespace diff --git a/services/surfaceflinger/Tracing/TransactionProtoParser.cpp b/services/surfaceflinger/Tracing/TransactionProtoParser.cpp index 2dc89b55ba..3752d5e0a5 100644 --- a/services/surfaceflinger/Tracing/TransactionProtoParser.cpp +++ b/services/surfaceflinger/Tracing/TransactionProtoParser.cpp @@ -62,12 +62,12 @@ perfetto::protos::TransactionState TransactionProtoParser::toProto(const Transac proto.mutable_layer_changes()->Reserve(static_cast<int32_t>(t.states.size())); for (auto& layerState : t.states) { - proto.mutable_layer_changes()->Add(std::move(toProto(layerState))); + proto.mutable_layer_changes()->Add(toProto(layerState)); } proto.mutable_display_changes()->Reserve(static_cast<int32_t>(t.displays.size())); for (auto& displayState : t.displays) { - proto.mutable_display_changes()->Add(std::move(toProto(displayState))); + proto.mutable_display_changes()->Add(toProto(displayState)); } proto.mutable_merged_transaction_ids()->Reserve( diff --git a/services/surfaceflinger/Tracing/TransactionTracing.cpp b/services/surfaceflinger/Tracing/TransactionTracing.cpp index 696f3489bf..bc9f8094f2 100644 --- a/services/surfaceflinger/Tracing/TransactionTracing.cpp +++ b/services/surfaceflinger/Tracing/TransactionTracing.cpp @@ -244,7 +244,7 @@ void TransactionTracing::addEntry(const std::vector<CommittedUpdates>& committed static_cast<int32_t>(update.createdLayers.size())); for (const auto& args : update.createdLayers) { - entryProto.mutable_added_layers()->Add(std::move(mProtoParser.toProto(args))); + entryProto.mutable_added_layers()->Add(mProtoParser.toProto(args)); } entryProto.mutable_destroyed_layers()->Reserve( @@ -276,7 +276,7 @@ void TransactionTracing::addEntry(const std::vector<CommittedUpdates>& committed static_cast<int32_t>(update.displayInfos.size())); for (auto& [layerStack, displayInfo] : update.displayInfos) { entryProto.mutable_displays()->Add( - std::move(mProtoParser.toProto(displayInfo, layerStack.id))); + mProtoParser.toProto(displayInfo, layerStack.id)); } } diff --git a/services/surfaceflinger/tests/unittests/TransactionTracingTest.cpp b/services/surfaceflinger/tests/unittests/TransactionTracingTest.cpp index fb4ef70450..7bf167498b 100644 --- a/services/surfaceflinger/tests/unittests/TransactionTracingTest.cpp +++ b/services/surfaceflinger/tests/unittests/TransactionTracingTest.cpp @@ -131,14 +131,14 @@ protected: // add layers and add some layer transaction { frontend::Update update; - update.layerCreationArgs.emplace_back(std::move( + update.layerCreationArgs.emplace_back( getLayerCreationArgs(mParentLayerId, /*parentId=*/UNASSIGNED_LAYER_ID, /*layerIdToMirror=*/UNASSIGNED_LAYER_ID, /*flags=*/123, - /*addToRoot=*/true))); - update.layerCreationArgs.emplace_back(std::move( + /*addToRoot=*/true)); + update.layerCreationArgs.emplace_back( getLayerCreationArgs(mChildLayerId, mParentLayerId, /*layerIdToMirror=*/UNASSIGNED_LAYER_ID, /*flags=*/456, - /*addToRoot=*/true))); + /*addToRoot=*/true)); TransactionState transaction; transaction.id = 50; ResolvedComposerState layerState; |