Loading libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl +7 −0 Original line number Diff line number Diff line Loading @@ -101,4 +101,11 @@ interface IPackageManagerNative { * This does nothing if this observer was not already registered. */ void unregisterPackageChangeObserver(in IPackageChangeObserver observer); /** * Returns true if the package has the SHA 256 version of the signing certificate. * @see PackageManager#hasSigningCertificate(String, byte[], int), where type * has been set to {@link PackageManager#CERT_INPUT_SHA256}. */ boolean hasSha256SigningCertificate(in @utf8InCpp String packageName, in byte[] certificate); } libs/gui/LayerState.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -167,6 +167,9 @@ status_t layer_state_t::write(Parcel& output) const SAFE_PARCEL(output.writeInt32, region.right); SAFE_PARCEL(output.writeInt32, region.bottom); } SAFE_PARCEL(output.write, stretchEffect); return NO_ERROR; } Loading Loading @@ -290,6 +293,9 @@ status_t layer_state_t::read(const Parcel& input) SAFE_PARCEL(input.readInt32, ®ion.bottom); blurRegions.push_back(region); } SAFE_PARCEL(input.read, stretchEffect); return NO_ERROR; } Loading libs/gui/SurfaceComposerClient.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -1569,6 +1569,23 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setApply return *this; } SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setStretchEffect( const sp<SurfaceControl>& sc, float left, float top, float right, float bottom, float vecX, float vecY, float maxAmount) { layer_state_t* s = getLayerState(sc); if (!s) { mStatus = BAD_INDEX; return *this; } s->what |= layer_state_t::eStretchChanged; s->stretchEffect = StretchEffect{.area = {left, top, right, bottom}, .vectorX = vecX, .vectorY = vecY, .maxAmount = maxAmount}; return *this; } // --------------------------------------------------------------------------- DisplayState& SurfaceComposerClient::Transaction::getDisplayState(const sp<IBinder>& token) { Loading libs/gui/include/gui/LayerState.h +5 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ #include <ui/Rect.h> #include <ui/Region.h> #include <ui/Rotation.h> #include <ui/StretchEffect.h> #include <ui/Transform.h> #include <utils/Errors.h> Loading Loading @@ -135,6 +136,7 @@ struct layer_state_t { eFrameTimelineInfoChanged = 0x800'00000000, eBlurRegionsChanged = 0x1000'00000000, eAutoRefreshChanged = 0x2000'00000000, eStretchChanged = 0x4000'00000000, }; layer_state_t(); Loading Loading @@ -244,6 +246,9 @@ struct layer_state_t { // can and not wait for a frame to become available. This is only relevant // in shared buffer mode. bool autoRefresh; // Stretch effect to be applied to this layer StretchEffect stretchEffect; }; struct ComposerState { Loading libs/gui/include/gui/SurfaceComposerClient.h +4 −0 Original line number Diff line number Diff line Loading @@ -550,6 +550,10 @@ public: // transactions from blocking each other. Transaction& setApplyToken(const sp<IBinder>& token); Transaction& setStretchEffect(const sp<SurfaceControl>& sc, float left, float top, float right, float bottom, float vecX, float vecY, float maxAmount); status_t setDisplaySurface(const sp<IBinder>& token, const sp<IGraphicBufferProducer>& bufferProducer); Loading Loading
libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl +7 −0 Original line number Diff line number Diff line Loading @@ -101,4 +101,11 @@ interface IPackageManagerNative { * This does nothing if this observer was not already registered. */ void unregisterPackageChangeObserver(in IPackageChangeObserver observer); /** * Returns true if the package has the SHA 256 version of the signing certificate. * @see PackageManager#hasSigningCertificate(String, byte[], int), where type * has been set to {@link PackageManager#CERT_INPUT_SHA256}. */ boolean hasSha256SigningCertificate(in @utf8InCpp String packageName, in byte[] certificate); }
libs/gui/LayerState.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -167,6 +167,9 @@ status_t layer_state_t::write(Parcel& output) const SAFE_PARCEL(output.writeInt32, region.right); SAFE_PARCEL(output.writeInt32, region.bottom); } SAFE_PARCEL(output.write, stretchEffect); return NO_ERROR; } Loading Loading @@ -290,6 +293,9 @@ status_t layer_state_t::read(const Parcel& input) SAFE_PARCEL(input.readInt32, ®ion.bottom); blurRegions.push_back(region); } SAFE_PARCEL(input.read, stretchEffect); return NO_ERROR; } Loading
libs/gui/SurfaceComposerClient.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -1569,6 +1569,23 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setApply return *this; } SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setStretchEffect( const sp<SurfaceControl>& sc, float left, float top, float right, float bottom, float vecX, float vecY, float maxAmount) { layer_state_t* s = getLayerState(sc); if (!s) { mStatus = BAD_INDEX; return *this; } s->what |= layer_state_t::eStretchChanged; s->stretchEffect = StretchEffect{.area = {left, top, right, bottom}, .vectorX = vecX, .vectorY = vecY, .maxAmount = maxAmount}; return *this; } // --------------------------------------------------------------------------- DisplayState& SurfaceComposerClient::Transaction::getDisplayState(const sp<IBinder>& token) { Loading
libs/gui/include/gui/LayerState.h +5 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ #include <ui/Rect.h> #include <ui/Region.h> #include <ui/Rotation.h> #include <ui/StretchEffect.h> #include <ui/Transform.h> #include <utils/Errors.h> Loading Loading @@ -135,6 +136,7 @@ struct layer_state_t { eFrameTimelineInfoChanged = 0x800'00000000, eBlurRegionsChanged = 0x1000'00000000, eAutoRefreshChanged = 0x2000'00000000, eStretchChanged = 0x4000'00000000, }; layer_state_t(); Loading Loading @@ -244,6 +246,9 @@ struct layer_state_t { // can and not wait for a frame to become available. This is only relevant // in shared buffer mode. bool autoRefresh; // Stretch effect to be applied to this layer StretchEffect stretchEffect; }; struct ComposerState { Loading
libs/gui/include/gui/SurfaceComposerClient.h +4 −0 Original line number Diff line number Diff line Loading @@ -550,6 +550,10 @@ public: // transactions from blocking each other. Transaction& setApplyToken(const sp<IBinder>& token); Transaction& setStretchEffect(const sp<SurfaceControl>& sc, float left, float top, float right, float bottom, float vecX, float vecY, float maxAmount); status_t setDisplaySurface(const sp<IBinder>& token, const sp<IGraphicBufferProducer>& bufferProducer); Loading