Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eadfc812 authored by Krzysztof Kosiński's avatar Krzysztof Kosiński Committed by Gerrit Code Review
Browse files

Revert "sensorservice: use new convert functions"

Revert "sensors: adding a common convert lib"

Revert submission 2313818-sensors_shared_convert

Reason for revert: Breaks wembley_2GB-userdebug
Reverted Changes:
Icf64c8809:sensorservice: use new convert functions
Ibc6ed5566:libandroid_sensor_headers: make host_supported and...
Ib80130fc0:sensors: adding a common convert lib

Change-Id: I97972670832188d53d97a4b6918323a3e4581677
parent cca5818a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ ndk::ScopedAStatus convertResult(status_t src) {
::aidl::android::hardware::sensors::Event convertEvent(const ::ASensorEvent& src) {
    ::aidl::android::hardware::sensors::Event dst;
    ::android::hardware::sensors::implementation::
            convertFromASensorEvent(src, &dst);
            convertFromSensorEvent(reinterpret_cast<const sensors_event_t&>(src), &dst);
    return dst;
}

+2 −2
Original line number Diff line number Diff line
@@ -76,8 +76,8 @@ Result convertResult(status_t status) {

::android::hardware::sensors::V1_0::Event convertEvent(const ::ASensorEvent& src) {
    ::android::hardware::sensors::V1_0::Event dst;
    ::android::hardware::sensors::V1_0::implementation::convertFromASensorEvent(
            src, &dst);
    ::android::hardware::sensors::V1_0::implementation::convertFromSensorEvent(
            reinterpret_cast<const sensors_event_t&>(src), &dst);
    return dst;
}