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

Commit 080daf19 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge changes I718f1da5,Iac53cbe0,I30a8f6c4 am: 07c60da5

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1456458

Change-Id: I2e15c5edbc8462872e9d771a93de806c5bff0a16
parents 888e5ea1 07c60da5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ cc_fuzz {
        "binder_ndk.cpp",
        "hwbinder.cpp",
        "main.cpp",
        "random_fd.cpp",
        "random_parcel.cpp",
        "util.cpp",
    ],
    static_libs: [
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#pragma once

#include <binder/Parcel.h>
#include <vector>
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#pragma once

#include <android/binder_auto_utils.h>
#include <vector>
@@ -31,6 +32,9 @@ public:
    const AParcel* aParcel() const { return mParcel.get(); }
    AParcel* aParcel() { return mParcel.get(); }

    android::Parcel* parcel() { return aParcel()->get(); }

    const uint8_t* data() const { return aParcel()->get()->data(); }
    size_t dataSize() const { return aParcel()->get()->dataSize(); }
    size_t dataAvail() const { return aParcel()->get()->dataAvail(); }
    size_t dataPosition() const { return aParcel()->get()->dataPosition(); }
Loading