/foundation/graphic/graphic_surface/surface/src/ |
H A D | buffer_utils.cpp | 183 for (uint32_t index = 0; index < size; index++) { in ReadVerifyAllocInfo() 220 for (uint32_t index = 0; index < size; index++) { in ReadHDRMetaData() 254 for (uint32_t index = 0; index < size; index++) { in ReadHDRMetaDataSet() 296 for (uint32_t index in ReadExtDataHandle() [all...] |
/foundation/multimedia/av_codec/test/fuzztest/hwdecoder_fuzzer/ |
H A D | videodec_sample.cpp | 101 void VdecInputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, void *userData) in VdecInputDataReady() argument 105 signal->inIdxQueue_.push(index); in VdecInputDataReady() 110 void VdecOutputDataReady(OH_AVCodec *codec, uint32_t index, OH_AVMemory *data, OH_AVCodecBufferAttr *attr, in VdecOutputDataReady() argument 114 OH_VideoDecoder_RenderOutputData(codec, index); in VdecOutputDataReady() 116 OH_VideoDecoder_FreeOutputData(codec, index); in VdecOutputDataReady() 316 int32_t VDecFuzzSample::ReadData(uint32_t index, OH_AVMemory *buffer) in ReadData() argument 321 SetEOS(index); in ReadData() 327 return SendData(bufferSize, index, buffer); in ReadData() 330 uint32_t VDecFuzzSample::SendData(uint32_t bufferSize, uint32_t index, OH_AVMemory *buffer) in SendData() argument 349 int32_t ret = OH_VideoDecoder_PushInputData(vdec_, index, att in SendData() 379 uint32_t index = signal_->inIdxQueue_.front(); InputFuncAVCC() local 395 uint32_t index; InputFuncFUZZ() local 426 SetEOS(uint32_t index) SetEOS() argument [all...] |
/foundation/multimedia/camera_framework/services/camera_service/src/avcodec/ |
H A D | avcodec_task_manager.cpp | 218 for (size_t index = 0; index < choosedBuffer.size(); index++) { in DoMuxerVideo() 219 MEDIA_DEBUG_LOG("write sample index %{public}zu", index); in DoMuxerVideo() 221 OH_AVBuffer *buffer = choosedBuffer[index]->encodedBuffer; in DoMuxerVideo() 224 attr.pts = NanosecToMicrosec(choosedBuffer[index]->GetTimeStamp() - videoStartTime); in DoMuxerVideo() 228 sptr<SurfaceBuffer> metaSurfaceBuffer = frameRecords[index]->GetMetaBuffer(); in DoMuxerVideo() 258 for (size_t index = 0; index < frameRecord in ChooseVideoBuffer() [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/ |
H A D | InnerParamCheckTest.cpp | 298 * @tc.name : InnerQueueInputBuffer - index check 322 uint32_t index = decoderDemo->NativeGetInputIndex(); in HWTEST_F() local 331 ret = decoderDemo->InnerQueueInputBuffer(index, info, flag); in HWTEST_F() 334 index = -1; in HWTEST_F() 335 ret = decoderDemo->InnerQueueInputBuffer(index, info, flag); in HWTEST_F() 367 uint32_t index = decoderDemo->NativeGetInputIndex(); in HWTEST_F() local 379 ret = decoderDemo->InnerQueueInputBuffer(index, info, flag); in HWTEST_F() 382 index = decoderDemo->NativeGetInputIndex(); in HWTEST_F() 384 ret = decoderDemo->InnerQueueInputBuffer(index, info, flag); in HWTEST_F() 416 uint32_t index in HWTEST_F() local 466 uint32_t index = decoderDemo->NativeGetInputIndex(); HWTEST_F() local [all...] |
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | netfirewall_parcel.cpp | 43 for (int32_t index = 0; index < IPV6_ARRAY_SIZE; index++) {
in Marshalling() 44 parcel.WriteUint8(ipv6.startIp.s6_addr[index]);
in Marshalling() 46 parcel.WriteUint8(ipv6.endIp.s6_addr[index]);
in Marshalling() 72 for (int32_t index = 0; index < IPV6_ARRAY_SIZE; index++) {
in Unmarshalling() 73 parcel.ReadUint8(ptr->ipv6.startIp.s6_addr[index]);
in Unmarshalling() 75 parcel.ReadUint8(ptr->ipv6.endIp.s6_addr[index]);
in Unmarshalling() 96 size_t index = src.find(sub); erase() local [all...] |
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-grgpio.c | 52 * Structure for an irq of a gpio line handed out by this driver. The index is 56 s8 index; /* Index into struct grgpio_priv's uirqs, or -1 */ member 83 * obtains from this driver. An index value of -1 for a certain gpio 84 * line indicates that the line has no irq. Otherwise the index connects 109 if (priv->lirqs[offset].index < 0) in grgpio_to_irq() 211 if (priv->imask & BIT(i) && lirq->index >= 0 && in grgpio_irq_handler() 212 priv->uirqs[lirq->index].uirq == irq) { in grgpio_irq_handler() 244 if (lirq->index < 0) in grgpio_irq_map() 254 uirq = &priv->uirqs[lirq->index]; in grgpio_irq_map() 283 int index; in grgpio_irq_unmap() local [all...] |
/kernel/linux/linux-5.10/drivers/base/ |
H A D | cacheinfo.c | 162 unsigned int index = 0; in cache_setup_of_node() local 179 while (index < cache_leaves(cpu)) { in cache_setup_of_node() 180 this_leaf = this_cpu_ci->info_list + index; in cache_setup_of_node() 189 index++; in cache_setup_of_node() 192 if (index != cache_leaves(cpu)) /* not all OF nodes populated */ in cache_setup_of_node() 222 unsigned int index; in cache_shared_cpu_map_setup() local 236 for (index = 0; index < cache_leaves(cpu); index++) { in cache_shared_cpu_map_setup() 239 this_leaf = this_cpu_ci->info_list + index; in cache_shared_cpu_map_setup() 268 unsigned int sibling, index; cache_shared_cpu_map_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/net/dsa/microchip/ |
H A D | ksz_common.c | 269 int index; in ksz_port_mdb_add() local 273 for (index = 0; index < dev->num_statics; index++) { in ksz_port_mdb_add() 274 if (!dev->dev_ops->r_sta_mac_table(dev, index, &alu)) { in ksz_port_mdb_add() 281 empty = index + 1; in ksz_port_mdb_add() 286 if (index == dev->num_statics && !empty) in ksz_port_mdb_add() 290 if (index == dev->num_statics) { in ksz_port_mdb_add() 291 index = empty - 1; in ksz_port_mdb_add() 303 dev->dev_ops->w_sta_mac_table(dev, index, in ksz_port_mdb_add() 312 int index; ksz_port_mdb_del() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
H A D | ie.c | 23 /* This function checks if current IE index is used by any on other interface. 24 * Return: -1: yes, current IE index is used by someone else. 25 * 0: no, current IE index is NOT used by other interface. 45 /* Get unused IE index. This index will be used for setting new IE */ 48 struct mwifiex_ie *ie, u16 *index) in mwifiex_ie_get_autoidx() 63 *index = i; in mwifiex_ie_get_autoidx() 71 *index = i; in mwifiex_ie_get_autoidx() 84 u16 travel_len, index, mask; in mwifiex_update_autoindex_ies() local 101 index in mwifiex_update_autoindex_ies() 47 mwifiex_ie_get_autoidx(struct mwifiex_private *priv, u16 subtype_mask, struct mwifiex_ie *ie, u16 *index) mwifiex_ie_get_autoidx() argument [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | uptodate.c | 191 /* Returns the index in the cache array, -1 if not found. 232 int index = -1; in ocfs2_buffer_cached() local 243 index = ocfs2_search_cache_array(ci, bh->b_blocknr); in ocfs2_buffer_cached() 249 trace_ocfs2_buffer_cached_end(index, item); in ocfs2_buffer_cached() 251 return (index != -1) || (item != NULL); in ocfs2_buffer_cached() 522 int index) in ocfs2_remove_metadata_array() 527 BUG_ON(index < 0 || index >= OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_remove_metadata_array() 528 BUG_ON(index >= ci->ci_num_cached); in ocfs2_remove_metadata_array() 533 index, c in ocfs2_remove_metadata_array() 521 ocfs2_remove_metadata_array(struct ocfs2_caching_info *ci, int index) ocfs2_remove_metadata_array() argument 560 int index; ocfs2_remove_block_from_cache() local [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | uptodate.c | 189 /* Returns the index in the cache array, -1 if not found. 230 int index = -1; in ocfs2_buffer_cached() local 241 index = ocfs2_search_cache_array(ci, bh->b_blocknr); in ocfs2_buffer_cached() 247 trace_ocfs2_buffer_cached_end(index, item); in ocfs2_buffer_cached() 249 return (index != -1) || (item != NULL); in ocfs2_buffer_cached() 520 int index) in ocfs2_remove_metadata_array() 525 BUG_ON(index < 0 || index >= OCFS2_CACHE_INFO_MAX_ARRAY); in ocfs2_remove_metadata_array() 526 BUG_ON(index >= ci->ci_num_cached); in ocfs2_remove_metadata_array() 531 index, c in ocfs2_remove_metadata_array() 519 ocfs2_remove_metadata_array(struct ocfs2_caching_info *ci, int index) ocfs2_remove_metadata_array() argument 558 int index; ocfs2_remove_block_from_cache() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/rtl8723bs/core/ |
H A D | rtw_sta_mgt.c | 148 int index; in _rtw_free_sta_priv() local 153 for (index = 0; index < NUM_STA; index++) { in _rtw_free_sta_priv() 154 phead = &(pstapriv->sta_hash[index]); in _rtw_free_sta_priv() 180 s32 index; in rtw_alloc_stainfo() local 209 index = wifi_mac_hash(hwaddr); in rtw_alloc_stainfo() 211 if (index >= NUM_STA) { in rtw_alloc_stainfo() 216 phash_list = &(pstapriv->sta_hash[index]); in rtw_alloc_stainfo() 433 s32 index; in rtw_free_all_stainfo() local 467 u32 index; rtw_get_stainfo() local [all...] |
/kernel/linux/linux-6.6/drivers/ptp/ |
H A D | ptp_sysfs.c | 58 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); in extts_enable_store() 61 if (req.extts.index >= ops->n_ext_ts) in extts_enable_store() 102 event.index, event.t.sec, event.t.nsec); in extts_fifo_show() 118 cnt = sscanf(buf, "%u %lld %u %lld %u", &req.perout.index, in period_store() 123 if (req.perout.index >= ops->n_per_out) in period_store() 173 vclock->clock->index); in unregister_vclock() 229 vclock->clock->index; in n_vclocks_store() 232 vclock->clock->index); in n_vclocks_store() 395 int index; in ptp_pin_show() local 397 index in ptp_pin_show() 417 int cnt, err, index; ptp_pin_store() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-grgpio.c | 52 * Structure for an irq of a gpio line handed out by this driver. The index is 56 s8 index; /* Index into struct grgpio_priv's uirqs, or -1 */ member 83 * obtains from this driver. An index value of -1 for a certain gpio 84 * line indicates that the line has no irq. Otherwise the index connects 109 if (priv->lirqs[offset].index < 0) in grgpio_to_irq() 211 if (priv->imask & BIT(i) && lirq->index >= 0 && in grgpio_irq_handler() 212 priv->uirqs[lirq->index].uirq == irq) { in grgpio_irq_handler() 244 if (lirq->index < 0) in grgpio_irq_map() 254 uirq = &priv->uirqs[lirq->index]; in grgpio_irq_map() 283 int index; in grgpio_irq_unmap() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/ |
H A D | ie.c | 11 /* This function checks if current IE index is used by any on other interface. 12 * Return: -1: yes, current IE index is used by someone else. 13 * 0: no, current IE index is NOT used by other interface. 33 /* Get unused IE index. This index will be used for setting new IE */ 36 struct mwifiex_ie *ie, u16 *index) in mwifiex_ie_get_autoidx() 51 *index = i; in mwifiex_ie_get_autoidx() 59 *index = i; in mwifiex_ie_get_autoidx() 72 u16 travel_len, index, mask; in mwifiex_update_autoindex_ies() local 89 index in mwifiex_update_autoindex_ies() 35 mwifiex_ie_get_autoidx(struct mwifiex_private *priv, u16 subtype_mask, struct mwifiex_ie *ie, u16 *index) mwifiex_ie_get_autoidx() argument [all...] |
/kernel/linux/linux-6.6/drivers/irqchip/ |
H A D | irq-qcom-mpm.c | 90 unsigned int index) in qcom_mpm_read() 92 unsigned int offset = (reg * priv->reg_stride + index + 2) * 4; in qcom_mpm_read() 98 unsigned int index, u32 val) in qcom_mpm_write() 100 unsigned int offset = (reg * priv->reg_stride + index + 2) * 4; in qcom_mpm_write() 112 unsigned int index = pin / 32; in qcom_mpm_enable_irq() local 118 val = qcom_mpm_read(priv, MPM_REG_ENABLE, index); in qcom_mpm_enable_irq() 120 qcom_mpm_write(priv, MPM_REG_ENABLE, index, val); in qcom_mpm_enable_irq() 142 unsigned int index, unsigned int shift) in mpm_set_type() 148 val = qcom_mpm_read(priv, reg, index); in mpm_set_type() 150 qcom_mpm_write(priv, reg, index, va in mpm_set_type() 89 qcom_mpm_read(struct qcom_mpm_priv *priv, unsigned int reg, unsigned int index) qcom_mpm_read() argument 97 qcom_mpm_write(struct qcom_mpm_priv *priv, unsigned int reg, unsigned int index, u32 val) qcom_mpm_write() argument 141 mpm_set_type(struct qcom_mpm_priv *priv, bool set, unsigned int reg, unsigned int index, unsigned int shift) mpm_set_type() argument 159 unsigned int index = pin / 32; qcom_mpm_set_type() local [all...] |
/test/testfwk/arkxtest/uitest/core/ |
H A D | widget_operator.cpp | 31 size_t index = 0; in IsScrolledToBorder() local 32 for (; index < allWidgets.size(); ++index) { in IsScrolledToBorder() 33 if (allWidgets.at(index)->GetAttr(UiAttr::ACCESSIBILITY_ID) == in IsScrolledToBorder() 35 return std::abs(allWidgets.at(index)->GetBounds().top_ - anchorLeafWidget->GetBounds().top_) < in IsScrolledToBorder() 58 int index = -1; in CalcFirstLeafWithInScroll() local 65 ++index; in CalcFirstLeafWithInScroll() 67 return index; in CalcFirstLeafWithInScroll() 126 int index = CalcFirstLeafWithInScroll(widgetsInScroll); in ScrollToEnd() local 127 if (index < in ScrollToEnd() 237 int index = CalcFirstLeafWithInScroll(widgetsInScroll); ScrollFindWidget() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/ |
H A D | data_panel_paint_property.h | 87 auto index = std::to_string(i); variable 89 jsonDashArray->Put(index.c_str(), value); 136 for (size_t index = 0; index < gradientItem.GetColors().size(); ++index) { in ToJsonValueColors() 137 auto gradientColor = gradientItem.GetColors()[index]; in ToJsonValueColors() 141 gradientItemJsonArray->Put(std::to_string(index).c_str(), gradientColorJosn); in ToJsonValueColors() 196 for (size_t index = 0; index < gradientItem.GetColors().size(); ++index) { in ToJsonTrackShadow() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | observer_handler.h | 49 int32_t index; member 60 int32_t index, napi_value param, std::string navDesId) in NavDestinationInfo() 62 index(index), param(param), navDestinationId(std::move(navDesId)) in NavDestinationInfo() 98 int32_t index; member 104 RouterPageInfoNG(napi_value context, int32_t index, std::string name, std::string path, RouterPageState state, in RouterPageInfoNG() 106 : context(context), index(index), name(std::move(name)), path(std::move(path)), state(state), in RouterPageInfoNG() 131 int32_t index = 0; member 135 TabContentInfo(std::string tabContentId, int32_t tabContentUniqueId, TabContentState state, int32_t index, in TabContentInfo() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_theme.h | 143 const std::string& GetLocationDescriptions(int32_t index) in GetLocationDescriptions() argument 145 if (index < 0 || index >= static_cast<int32_t>(locationDescriptions_.size())) { in GetLocationDescriptions() 148 return locationDescriptions_[index]; in GetLocationDescriptions() 151 const std::string& GetPasteDescriptions(int32_t index) in GetPasteDescriptions() argument 153 if (index < 0 || index >= static_cast<int32_t>(pasteDescriptions_.size())) { in GetPasteDescriptions() 156 return pasteDescriptions_[index]; in GetPasteDescriptions() 159 const std::string& GetSaveDescriptions(int32_t index) in GetSaveDescriptions() argument 161 if (index < in GetSaveDescriptions() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_font_mgr.cpp | 93 char* OH_Drawing_FontMgrGetFamilyName(OH_Drawing_FontMgr* drawingFontMgr, int index)
in OH_Drawing_FontMgrGetFamilyName() argument 96 if (fontMgr == nullptr || index < 0) {
in OH_Drawing_FontMgrGetFamilyName() 100 fontMgr->GetFamilyName(index, strFamilyName);
in OH_Drawing_FontMgrGetFamilyName() 117 OH_Drawing_FontStyleSet* OH_Drawing_FontMgrCreateFontStyleSet(OH_Drawing_FontMgr* drawingFontMgr, int index)
in OH_Drawing_FontMgrCreateFontStyleSet() argument 120 if (fontMgr == nullptr || index < 0) {
in OH_Drawing_FontMgrCreateFontStyleSet() 123 FontStyleSet* fontStyleSet = fontMgr->CreateStyleSet(index);
in OH_Drawing_FontMgrCreateFontStyleSet() 202 OH_Drawing_Typeface* OH_Drawing_FontStyleSetCreateTypeface(OH_Drawing_FontStyleSet* fontStyleSet, int index)
in OH_Drawing_FontStyleSetCreateTypeface() argument 204 if (fontStyleSet == nullptr || index < 0) {
in OH_Drawing_FontStyleSetCreateTypeface() 208 auto drawingTypeface = converFontStyleSet->CreateTypeface(index);
in OH_Drawing_FontStyleSetCreateTypeface() 218 OH_Drawing_FontStyleSet* fontStyleSet, int32_t index, cha in OH_Drawing_FontStyleSetGetStyle() 217 OH_Drawing_FontStyleSetGetStyle( OH_Drawing_FontStyleSet* fontStyleSet, int32_t index, char** styleName) OH_Drawing_FontStyleSetGetStyle() argument [all...] |
/foundation/multimedia/media_foundation/services/media_monitor/common/src/ |
H A D | event_bean.cpp | 85 for (int32_t index = 0; index < intMapSize; index++) { in ReadFromParcel() 94 for (int32_t index = 0; index < stringMapSize; index++) { in ReadFromParcel() 103 for (int32_t index = 0; index < uint64MapSize; index++) { in ReadFromParcel() 112 for (int32_t index in ReadFromParcel() [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Common/include/ |
H A D | AudioEncoderDemoCommon.h | 48 extern void OnInputBufferAvailable(OH_AVCodec* codec, uint32_t index, OH_AVMemory* data, void* userData); 49 extern void OnOutputBufferAvailable(OH_AVCodec* codec, uint32_t index, 95 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) override; 96 void OnOutputBufferAvailable(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, 120 OH_AVErrCode NativePushInputData(OH_AVCodec* codec, uint32_t index, OH_AVCodecBufferAttr attr); 121 OH_AVErrCode NativeFreeOutputData(OH_AVCodec* codec, uint32_t index); 133 void HandleEOS(const uint32_t& index); 135 void NativePushInput(uint32_t index); 137 void NativeWriteOutput(std::ofstream& outputFile, uint32_t index, 171 int32_t InnerQueueInputBuffer(uint32_t index, AVCodecBufferInf [all...] |
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/ |
H A D | avcodec_audio_encoder_inner_demo.cpp | 160 uint32_t index = signal_->inQueue_.front(); in InputFunc() local 164 std::cout << "buffer is null:" << index << "\n"; in InputFunc() local 173 (void)audioEn_->QueueInputBuffer(index, attr, flag); in InputFunc() 179 auto result = audioEn_->QueueInputBuffer(index, attr, flag); in InputFunc() 201 uint32_t index = signal_->outQueue_.front(); in OutputFunc() local 211 if (audioEn_->ReleaseOutputBuffer(index) != AVCS_ERR_OK) { in OutputFunc() 235 void AEnDemoCallback::OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) in OnInputBufferAvailable() argument 237 cout << "OnInputBufferAvailable received, index:" << index << endl; in OnInputBufferAvailable() 239 signal_->inQueue_.push(index); in OnInputBufferAvailable() 244 OnOutputBufferAvailable(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, std::shared_ptr<AVSharedMemory> buffer) OnOutputBufferAvailable() argument [all...] |
/foundation/multimedia/media_lite/services/player_lite/impl/player_control/source/ |
H A D | player_demux.cpp | 209 int index = 0; in GetFileInfo() local 214 if (programInfo->track[j].trackType == TRACK_TYPE_VIDEO && index < HI_DEMUXER_RESOLUTION_CNT) { in GetFileInfo() 215 fileInfo.stSteamResolution[index].s32VideoStreamIndex = programInfo->track[j].trackId; in GetFileInfo() 216 fileInfo.stSteamResolution[index].u32Width = programInfo->track[j].vidTrack.width; in GetFileInfo() 217 fileInfo.stSteamResolution[index].u32Height = programInfo->track[j].vidTrack.height; in GetFileInfo() 218 fileInfo.stSteamResolution[index].enVideoType = programInfo->track[j].vidTrack.format; in GetFileInfo() 219 index++; in GetFileInfo() 223 for (; index < HI_DEMUXER_RESOLUTION_CNT; index++) { in GetFileInfo() 224 fileInfo.stSteamResolution[index] in GetFileInfo() [all...] |