/ohos5.0/drivers/interface/location/lpfence/wififence/v1_0/ |
H A D | WififenceTypes.idl | 20 * @brief Provides Wi-Fi fence APIs for the low-power fence service. 32 * @brief Defines the data types used by the Wi-Fi fence feature. 39 * @brief Declares the path of the Wi-Fi fence module interface package. 46 * @brief Enumerates the Wi-Fi fence status events. 51 /** The device is within the Wi-Fi fence. */ 53 /** The device is out of the Wi-Fi fence. */ 58 * @brief Enumerates the Wi-Fi fence algorithms. 63 …scanned MAC address overlaps the MAC addresses in a Wi-Fi fence, the device is within the fence. */ 65 …nned and the MAC address and RSSI in the Wi-Fi fence reaches the threshold, the device is within t… 70 * @brief Defines the struct for a Wi-Fi fence to add. [all …]
|
H A D | IWififenceCallback.idl | 20 * @brief Provides Wi-Fi fence APIs for the low-power fence service. 32 * @brief Declares the callbacks for the Wi-Fi fence module. 39 * @brief Declares the path of the Wi-Fi fence module interface package. 46 * @brief Imports data types of the Wi-Fi fence module. 53 * @brief Defines the callback for the Wi-Fi fence module. 55 …ng the Wi-Fi fence feature, you need to register this callback to report the Wi-Fi fence status wh… 62 * @brief Called when the Wi-Fi fence status changes. 64 …lback will be invoked to report the Wi-Fi fence status when the relationship between a device and … 66 * @param wififenceId Indicates the ID of the Wi-Fi fence. 80 * @brief Called to return the Wi-Fi fence information. [all …]
|
H A D | IWififenceInterface.idl | 20 * @brief Provides Wi-Fi fence APIs for the low-power fence service. 22 …ve Wi-Fi fences, obtain Wi-Fi fence information of a device, and obtain the relationship between a… 32 * @brief Declares the callbacks for the Wi-Fi fence module. 39 * @brief Declares the path of the Wi-Fi fence module interface package. 46 * @brief Imports data types of the Wi-Fi fence module. 53 * @brief Imports callbacks of the Wi-Fi fence module. 60 * @brief Provides APIs for basic Wi-Fi fence operations. 68 …* Before enabling the Wi-Fi fence feature, you need to register a callback to report the Wi-Fi fen… 126 * @brief Obtains the relationship between a Wi-Fi fence and this device. 130 * @param wififenceId Indicates the ID of the Wi-Fi fence. [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_lpfence_wififence_v1_0/foo/location/lpfence/wififence/v1_0/ |
H A D | WififenceTypes.idl | 20 * @brief Provides Wi-Fi fence APIs for the low-power fence service. 32 * @brief Defines the data types used by the Wi-Fi fence feature. 39 * @brief Declares the path of the Wi-Fi fence module interface package. 46 * @brief Enumerates the Wi-Fi fence status events. 51 /** The device is within the Wi-Fi fence. */ 53 /** The device is out of the Wi-Fi fence. */ 58 * @brief Enumerates the Wi-Fi fence algorithms. 63 …scanned MAC address overlaps the MAC addresses in a Wi-Fi fence, the device is within the fence. */ 65 …nned and the MAC address and RSSI in the Wi-Fi fence reaches the threshold, the device is within t… 70 * @brief Defines the struct for a Wi-Fi fence to add. [all …]
|
H A D | IWififenceCallback.idl | 20 * @brief Provides Wi-Fi fence APIs for the low-power fence service. 32 * @brief Declares the callbacks for the Wi-Fi fence module. 39 * @brief Declares the path of the Wi-Fi fence module interface package. 46 * @brief Imports data types of the Wi-Fi fence module. 53 * @brief Defines the callback for the Wi-Fi fence module. 55 …ng the Wi-Fi fence feature, you need to register this callback to report the Wi-Fi fence status wh… 62 * @brief Called when the Wi-Fi fence status changes. 64 …lback will be invoked to report the Wi-Fi fence status when the relationship between a device and … 66 * @param wififenceId Indicates the ID of the Wi-Fi fence. 80 * @brief Called to return the Wi-Fi fence information. [all …]
|
H A D | IWififenceInterface.idl | 20 * @brief Provides Wi-Fi fence APIs for the low-power fence service. 22 …ve Wi-Fi fences, obtain Wi-Fi fence information of a device, and obtain the relationship between a… 32 * @brief Declares the callbacks for the Wi-Fi fence module. 39 * @brief Declares the path of the Wi-Fi fence module interface package. 46 * @brief Imports data types of the Wi-Fi fence module. 53 * @brief Imports callbacks of the Wi-Fi fence module. 60 * @brief Provides APIs for basic Wi-Fi fence operations. 68 …* Before enabling the Wi-Fi fence feature, you need to register a callback to report the Wi-Fi fen… 126 * @brief Obtains the relationship between a Wi-Fi fence and this device. 130 * @param wififenceId Indicates the ID of the Wi-Fi fence. [all …]
|
/ohos5.0/drivers/interface/location/lpfence/cellfence/v1_0/ |
H A D | CellfenceTypes.idl | 20 * @brief Provides cell fence APIs for low-power fence services. 32 * @brief Defines the data types used by the cell fence module. 39 * @brief Declares the path of the cell fence module interface package. 51 /** The device is within the cell fence. */ 53 /** The device is out of the cell fence. */ 58 * @brief Defines the struct of the cell fence information. 70 * @brief Defines the struct for a cell fence to add. 75 /** ID of the cell fence to add. A cell fence with the same ID cannot be added repeatedly. */ 77 /** Cell fence information. For details, see {@Link CellfenceInfo}. */ 87 /** Cell fence ID. */ [all …]
|
H A D | ICellfenceCallback.idl | 20 * @brief Provides cell fence APIs for low-power fence services. 22 * You can use the APIs to add or remove cell fences and obtain cell fence information of a device. 32 * @brief Defines the callbacks of the cell fence module. 39 * @brief Declares the path of the cell fence module interface package. 46 * @brief Imports data types of the cell fence module. 53 * @brief Defines the callback of the cell fence module. 55 …need to register the callback to report the cell fence status when the relationship between a cell… 62 * @brief Called to report the cell fence status changes. 64 …llback will be invoked to report the cell fence status when the relationship between a device and … 76 * @brief Called to report the cell fence information of a device. [all …]
|
H A D | ICellfenceInterface.idl | 20 * @brief Provides cell fence APIs for low-power fence services. 22 * You can use the APIs to add or remove cell fences and obtain cell fence information of a device. 32 * @brief Declares the APIs provided by the cell fence module. 33 * You can use the APIs to add or remove cell fences and obtain cell fence information of a device. 39 * @brief Declares the path of the cell fence module interface package. 46 * @brief Imports the data types of the cell fence module. 53 * @brief Imports the callback definitions of the cell fence module. 60 * @brief Defines APIs for basic cell fence operations. 68 …need to register the callback to report the cell fence status when the relationship between a cell… 115 * @param cellfenceId Indicates the cell fence ID. For details, see {@link CellfenceRequest}. [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/location_lpfence_cellfence_v1_0/foo/location/lpfence/cellfence/v1_0/ |
H A D | CellfenceTypes.idl | 20 * @brief Provides cell fence APIs for low-power fence services. 32 * @brief Defines the data types used by the cell fence module. 39 * @brief Declares the path of the cell fence module interface package. 51 /** The device is within the cell fence. */ 53 /** The device is out of the cell fence. */ 58 * @brief Defines the struct of the cell fence information. 70 * @brief Defines the struct for a cell fence to add. 75 /** ID of the cell fence to add. A cell fence with the same ID cannot be added repeatedly. */ 77 /** Cell fence information. For details, see {@Link CellfenceInfo}. */ 87 /** Cell fence ID. */ [all …]
|
H A D | ICellfenceCallback.idl | 20 * @brief Provides cell fence APIs for low-power fence services. 22 * You can use the APIs to add or remove cell fences and obtain cell fence information of a device. 32 * @brief Defines the callbacks of the cell fence module. 39 * @brief Declares the path of the cell fence module interface package. 46 * @brief Imports data types of the cell fence module. 53 * @brief Defines the callback of the cell fence module. 55 …need to register the callback to report the cell fence status when the relationship between a cell… 62 * @brief Called to report the cell fence status changes. 64 …llback will be invoked to report the cell fence status when the relationship between a device and … 76 * @brief Called to report the cell fence information of a device. [all …]
|
H A D | ICellfenceInterface.idl | 20 * @brief Provides cell fence APIs for low-power fence services. 22 * You can use the APIs to add or remove cell fences and obtain cell fence information of a device. 32 * @brief Declares the APIs provided by the cell fence module. 33 * You can use the APIs to add or remove cell fences and obtain cell fence information of a device. 39 * @brief Declares the path of the cell fence module interface package. 46 * @brief Imports the data types of the cell fence module. 53 * @brief Imports the callback definitions of the cell fence module. 60 * @brief Defines APIs for basic cell fence operations. 68 …need to register the callback to report the cell fence status when the relationship between a cell… 115 * @param cellfenceId Indicates the cell fence ID. For details, see {@link CellfenceRequest}. [all …]
|
/ohos5.0/foundation/graphic/graphic_surface/sync_fence/test/unittest/ |
H A D | sync_fence_tracker_test.cpp | 49 sptr<SyncFence> fence = new SyncFence(0); variable 50 tracker->TrackFence(fence, true); 52 tracker->TrackFence(fence, true); 53 tracker->TrackFence(fence, false); 55 tracker->TrackFence(fence, true); 56 tracker->TrackFence(fence, false); 132 sptr<SyncFence> fence = new SyncFence(0); variable 135 tracker->WaitFence(fence); 138 tracker->WaitFence(fence); 141 tracker->WaitFence(fence); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ |
H A D | render_frame_sync_vk.cpp | 47 &ref.fence)); // pFence 56 if (ref.fence) { in ~RenderFrameSyncVk() 58 ref.fence, // fence in ~RenderFrameSyncVk() 74 VkFence fence = frameFences_[bufferingIndex_].fence; in WaitForFrameFence() local 75 if (fence) { in WaitForFrameFence() 78 &fence, // pFences in WaitForFrameFence() 84 &fence)); // pFences in WaitForFrameFence() 98 return { frameFences_[bufferingIndex_].fence }; in GetFrameFence()
|
/ohos5.0/foundation/graphic/graphic_surface/interfaces/inner_api/surface/ |
H A D | surface.h | 40 int32_t &fence, BufferRequestConfig &config) = 0; 48 int32_t fence, BufferFlushConfig &config) = 0; 50 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, int32_t &fence, 52 virtual GSError ReleaseBuffer(sptr<SurfaceBuffer>& buffer, int32_t fence) = 0; 55 sptr<SyncFence>& fence, BufferRequestConfig &config) = 0; 58 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, 124 virtual GSError FlushBuffer(sptr<SurfaceBuffer>& buffer, const sptr<SyncFence>& fence, 131 sptr<SyncFence>& fence, float matrix[16], bool isUseNewMatrix = false) = 0; 162 (void)fence; in AcquireLastFlushedBuffer() 180 (void)fence; in RequestAndDetachBuffer() [all …]
|
H A D | iconsumer_surface.h | 33 sptr<SyncFence> fence; member 45 int32_t &fence, BufferRequestConfig &config) = 0; 50 int32_t fence, BufferFlushConfig &config) = 0; 52 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, int32_t &fence, 54 virtual GSError ReleaseBuffer(sptr<SurfaceBuffer>& buffer, int32_t fence) = 0; 57 sptr<SyncFence>& fence, BufferRequestConfig &config) = 0; 60 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, 126 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, 136 virtual GSError FlushBuffer(sptr<SurfaceBuffer>& buffer, const sptr<SyncFence>& fence, 140 sptr<SyncFence>& fence, float matrix[16], bool isUseNewMatrix) = 0; [all …]
|
/ohos5.0/foundation/graphic/graphic_surface/sync_fence/src/ |
H A D | sync_fence.cpp | 108 newFenceFd = syncMergeData.fence; in SyncMerge() 257 int32_t fence = parcel.ReadInt32(); in ReadFromMessageParcel() local 258 if (fence < 0) { in ReadFromMessageParcel() 262 fence = parcel.ReadFileDescriptor(); in ReadFromMessageParcel() 264 return sptr<SyncFence>(new SyncFence(fence)); in ReadFromMessageParcel() 274 int32_t fence = fenceFd_; in WriteToMessageParcel() local 275 if (fence >= 0 && fcntl(fence, F_GETFL) == -1 && errno == EBADF) { in WriteToMessageParcel() 276 fence = -1; in WriteToMessageParcel() 279 parcel.WriteInt32(fence); in WriteToMessageParcel() 281 if (fence < 0) { in WriteToMessageParcel() [all …]
|
H A D | sync_fence_tracker.cpp | 133 void SyncFenceTracker::TrackFence(const sptr<SyncFence>& fence, bool traceTag) in TrackFence() argument 135 if (fence == nullptr) { in TrackFence() 144 if (fence->SyncFileReadTimestamp() != SyncFence::FENCE_PENDING_TIMESTAMP) { in TrackFence() 153 handler_->PostTask([this, fence, traceTag]() { in TrackFence() 158 Loop(fence, traceTag); in TrackFence() 222 void SyncFenceTracker::Loop(const sptr<SyncFence>& fence, bool traceTag) in Loop() argument 234 result = WaitFence(fence); in Loop() 244 result = WaitFence(fence); in Loop() 254 int32_t SyncFenceTracker::WaitFence(const sptr<SyncFence>& fence) in WaitFence() argument 259 int32_t result = fence->Wait(SYNC_TIME_OUT); in WaitFence()
|
/ohos5.0/foundation/graphic/graphic_surface/surface/include/ |
H A D | buffer_producer_listener.h | 52 …OnBufferReleasedWithFence(const sptr<SurfaceBuffer>& buffer, const sptr<SyncFence>& fence) override in OnBufferReleasedWithFence() argument 62 arguments.WriteBool(fence != nullptr); in OnBufferReleasedWithFence() 63 if (fence != nullptr) { in OnBufferReleasedWithFence() 64 fence->WriteToMessageParcel(arguments); in OnBufferReleasedWithFence() 116 sptr<SyncFence> fence = SyncFence::InvalidFence(); in OnBufferReleasedWithFenceRemote() local 121 return OnBufferReleasedWithFence(buffer, fence); in OnBufferReleasedWithFenceRemote() 124 fence = SyncFence::ReadFromMessageParcel(arguments); in OnBufferReleasedWithFenceRemote() 126 ret = OnBufferReleasedWithFence(buffer, fence); in OnBufferReleasedWithFenceRemote() 151 …OnBufferReleasedWithFence(const sptr<SurfaceBuffer>& buffer, const sptr<SyncFence>& fence) override in OnBufferReleasedWithFence() argument 161 return funcWithFence(buffer, fence); in OnBufferReleasedWithFence()
|
H A D | producer_surface.h | 45 int32_t &fence, BufferRequestConfig &config) override; 53 int32_t fence, BufferFlushConfig &config) override; 58 GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, int32_t &fence, 60 GSError ReleaseBuffer(sptr<SurfaceBuffer>& buffer, int32_t fence) override; 63 sptr<SyncFence>& fence, BufferRequestConfig &config) override; 65 const sptr<SyncFence>& fence, BufferFlushConfig &config) override; 67 sptr<SyncFence>& fence, float matrix[16], bool isUseNewMatrix = false) override; 68 GSError FlushBuffer(sptr<SurfaceBuffer>& buffer, const sptr<SyncFence>& fence, 70 GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, 161 GSError AcquireLastFlushedBuffer(sptr<SurfaceBuffer> &buffer, sptr<SyncFence> &fence, [all …]
|
H A D | consumer_surface.h | 41 int32_t &fence, BufferRequestConfig &config) override; 49 int32_t fence, BufferFlushConfig &config) override; 51 GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, int32_t &fence, 54 GSError ReleaseBuffer(sptr<SurfaceBuffer>& buffer, int32_t fence) override; 57 sptr<SyncFence>& fence, BufferRequestConfig &config) override; 59 const sptr<SyncFence>& fence, BufferFlushConfig &config) override; 60 GSError FlushBuffer(sptr<SurfaceBuffer>& buffer, const sptr<SyncFence>& fence, 67 sptr<SyncFence>& fence, float matrix[16], bool isUseNewMatrix = false) override; 68 GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, 70 GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | render_frame_sync_gles.cpp | 36 GLsync fence = (GLsync)ref.aFence; in ~RenderFrameSyncGLES() local 37 if (fence) { in ~RenderFrameSyncGLES() 38 glDeleteSync(fence); in ~RenderFrameSyncGLES() 52 GLsync fence = (GLsync)(frameFences_[bufferingIndex_].aFence); in WaitForFrameFence() local 53 const GLenum result = glClientWaitSync(fence, GL_SYNC_FLUSH_COMMANDS_BIT, UINT64_MAX); in WaitForFrameFence() 57 glDeleteSync(fence); in WaitForFrameFence()
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_producer_surface_adapter_wrapper.cpp | 32 int32_t& fence, std::shared_ptr<OHOS::NWeb::BufferRequestConfigAdapter> config) in RequestBuffer() argument 36 surface = ctocpp_->RequestBuffer(fence, nullptr); in RequestBuffer() 38 surface = ctocpp_->RequestBuffer(fence, new ArkBufferRequestConfigAdapterImpl(config)); in RequestBuffer() 49 int32_t fence, std::shared_ptr<OHOS::NWeb::BufferFlushConfigAdapter> config) in FlushBuffer() argument 54 return ctocpp_->FlushBuffer(bufferWrapper->ctocpp_, fence, nullptr); in FlushBuffer() 57 …return ctocpp_->FlushBuffer(bufferWrapper->ctocpp_, fence, new ArkBufferFlushConfigAdapterImpl(con… in FlushBuffer()
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_producer_surface_adapter_impl.cpp | 31 int32_t& fence, ArkWebRefPtr<ArkBufferRequestConfigAdapter> config) in RequestBuffer() argument 35 buffer = real_->RequestBuffer(fence, nullptr); in RequestBuffer() 37 …buffer = real_->RequestBuffer(fence, std::make_shared<ArkBufferRequestConfigAdapterWrapper>(config… in RequestBuffer() 48 …ArkWebRefPtr<ArkSurfaceBufferAdapter> buffer, int32_t fence, ArkWebRefPtr<ArkBufferFlushConfigAdap… in FlushBuffer() argument 52 return real_->FlushBuffer(std::move(imp->real_), fence, nullptr); in FlushBuffer() 56 … std::move(imp->real_), fence, std::make_shared<ArkBufferFlushConfigAdapterWrapper>(flushConfig)); in FlushBuffer()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/unittest/ |
H A D | hdiframebuffersurface_test.cpp | 56 sptr<SyncFence> fence = new SyncFence(10); variable 57 ASSERT_EQ(hdiFramebufferSurface_->ReleaseFramebuffer(buffer, fence), 0); 59 ASSERT_NE(hdiFramebufferSurface_->ReleaseFramebuffer(buffer, fence), 0); 107 sptr<SyncFence> fence = new SyncFence(10); variable 108 ASSERT_EQ(fbSurface->ReleaseFramebuffer(buffer, fence), 0); 112 ASSERT_EQ(fbSurface->ReleaseFramebuffer(buffer, fence), 0);
|