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

Commit 054234b7 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 10052121 from 3b666b0b to udc-release

Change-Id: I5f9aadbddf32ccbdbb234c4841a335e00a6d74ef
parents 5fbab32c 3b666b0b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -54,6 +54,12 @@ typedef struct ASurfaceControl ASurfaceControl;
 * The caller takes ownership of the ASurfaceControl returned and must release it
 * using ASurfaceControl_release below.
 *
 * By default the \a ASurfaceControl will be visible and display any buffer submitted. In
 * addition, the default buffer submission control may release and not display all buffers
 * that are submitted before receiving a callback for the previous buffer. See
 * \a ASurfaceTransaction_setVisibility and \a ASurfaceTransaction_setEnableBackPressure to
 * change the default behaviors after creation.
 *
 * Available since API level 29.
 */
ASurfaceControl* ASurfaceControl_createFromWindow(ANativeWindow* parent, const char* debug_name)
+4 −2
Original line number Diff line number Diff line
@@ -67,9 +67,10 @@ public:
        remote()->transact(ON_UID_STATE_CHANGED_TRANSACTION, data, &reply, IBinder::FLAG_ONEWAY);
    }

    virtual void onUidProcAdjChanged(uid_t uid) {
    virtual void onUidProcAdjChanged(uid_t uid, int32_t adj) {
        Parcel data, reply;
        data.writeInt32((int32_t)uid);
        data.writeInt32((int32_t)adj);
        remote()->transact(ON_UID_PROC_ADJ_CHANGED_TRANSACTION, data, &reply, IBinder::FLAG_ONEWAY);
    }
};
@@ -121,7 +122,8 @@ status_t BnUidObserver::onTransact(
        case ON_UID_PROC_ADJ_CHANGED_TRANSACTION: {
            CHECK_INTERFACE(IUidObserver, data, reply);
            uid_t uid = data.readInt32();
            onUidProcAdjChanged(uid);
            int32_t adj = data.readInt32();
            onUidProcAdjChanged(uid, adj);
            return NO_ERROR;
        } break;

+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ public:
    virtual void onUidIdle(uid_t uid, bool disabled) = 0;
    virtual void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq,
                                   int32_t capability) = 0;
    virtual void onUidProcAdjChanged(uid_t uid) = 0;
    virtual void onUidProcAdjChanged(uid_t uid, int32_t adj) = 0;

    enum {
        ON_UID_GONE_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION,
+4 −3
Original line number Diff line number Diff line
@@ -233,9 +233,10 @@ struct layer_state_t {

    // Geometry updates.
    static constexpr uint64_t GEOMETRY_CHANGES = layer_state_t::eBufferCropChanged |
            layer_state_t::eBufferTransformChanged | layer_state_t::eCropChanged |
            layer_state_t::eDestinationFrameChanged | layer_state_t::eMatrixChanged |
            layer_state_t::ePositionChanged | layer_state_t::eTransformToDisplayInverseChanged |
            layer_state_t::eBufferTransformChanged | layer_state_t::eCornerRadiusChanged |
            layer_state_t::eCropChanged | layer_state_t::eDestinationFrameChanged |
            layer_state_t::eMatrixChanged | layer_state_t::ePositionChanged |
            layer_state_t::eTransformToDisplayInverseChanged |
            layer_state_t::eTransparentRegionChanged;

    // Buffer and related updates.
+1 −1
Original line number Diff line number Diff line
@@ -288,7 +288,7 @@ private:
            void onUidStateChanged(uid_t uid __unused, int32_t procState __unused,
                                   int64_t procStateSeq __unused,
                                   int32_t capability __unused) override {}
            void onUidProcAdjChanged(uid_t uid __unused) override {}
            void onUidProcAdjChanged(uid_t uid __unused, int32_t adj __unused) override {}

            void addOverrideUid(uid_t uid, bool active);
            void removeOverrideUid(uid_t uid);
Loading