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

Commit 424d3bfc authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9867821 from 2f1a74e5 to udc-release

Change-Id: I464c08f0999ada62a59ece6cfa5ff20a82f614a4
parents 3e35bf6b 2f1a74e5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -32,4 +32,8 @@ MODULE_LIBRARY_DEPS += \
	trusty/user/base/lib/googletest \
	trusty/user/base/lib/libstdc++-trusty \

# TEST_P tests from binderRpcUniversalTests.cpp don't get linked in
# unless we pass in --whole-archive to the linker (b/275620340).
MODULE_USE_WHOLE_ARCHIVE := true

include make/trusted_app.mk
+4 −1
Original line number Diff line number Diff line
@@ -125,6 +125,7 @@ status_t WindowInfo::writeToParcel(android::Parcel* parcel) const {
        parcel->writeBool(replaceTouchableRegionWithCrop) ?:
        parcel->writeStrongBinder(touchableRegionCropHandle.promote()) ?:
        parcel->writeStrongBinder(windowToken);
        parcel->writeStrongBinder(focusTransferTarget);
    // clang-format on
    return status;
}
@@ -175,7 +176,9 @@ status_t WindowInfo::readFromParcel(const android::Parcel* parcel) {
        parcel->read(touchableRegion) ?:
        parcel->readBool(&replaceTouchableRegionWithCrop) ?:
        parcel->readNullableStrongBinder(&touchableRegionCropHandleSp) ?:
        parcel->readNullableStrongBinder(&windowToken);
        parcel->readNullableStrongBinder(&windowToken) ?:
        parcel->readNullableStrongBinder(&focusTransferTarget);

    // clang-format on

    if (status != OK) {
+0 −9
Original line number Diff line number Diff line
@@ -23,15 +23,6 @@ parcelable FocusRequest {
     */
    @nullable IBinder token;
    @utf8InCpp String windowName;
    /**
     * The token that the caller expects currently to be focused. If the
     * specified token does not match the currently focused window, this request will be dropped.
     * If the specified focused token matches the currently focused window, the call will succeed.
     * Set this to "null" if this call should succeed no matter what the currently focused token
     * is.
     */
    @nullable IBinder focusedToken;
    @utf8InCpp String focusedWindowName;
    /**
     * SYSTEM_TIME_MONOTONIC timestamp in nanos set by the client (wm) when requesting the focus
     * change. This determines which request gets precedence if there is a focus change request
+5 −0
Original line number Diff line number Diff line
@@ -236,6 +236,11 @@ struct WindowInfo : public Parcelable {
    Type layoutParamsType = Type::UNKNOWN;
    ftl::Flags<Flag> layoutParamsFlags;

    // The input token for the window to which focus should be transferred when this input window
    // can be successfully focused. If null, this input window will not transfer its focus to
    // any other window.
    sp<IBinder> focusTransferTarget;

    void setInputConfig(ftl::Flags<InputConfig> config, bool value);

    void addTouchableRegion(const Rect& region);
+0 −2
Original line number Diff line number Diff line
@@ -272,8 +272,6 @@ public:
        FocusRequest request;
        request.token = mInputInfo.token;
        request.windowName = mInputInfo.name;
        request.focusedToken = nullptr;
        request.focusedWindowName = "";
        request.timestamp = systemTime(SYSTEM_TIME_MONOTONIC);
        request.displayId = displayId;
        t.setFocusedWindow(request);
Loading