/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | array_wrapper.cpp | 43 ErrCode Array::Get(long index, /* [in] */ in Get() argument 46 if (index < 0 || index >= size_) { in Get() 50 value = values_[index]; in Get() 71 ErrCode Array::Set(long index, /* [in] */ in Set() argument 74 if (index < 0 || index >= size_) { in Set() 77 values_[index] = value; in Set()
|
/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | rosen_render_arc_track.cpp | 263 for (int32_t index = static_cast<int32_t>(colors_.size()) - 1; index >= 0; --index) { in Paint() 264 data.color = colors_[index]; in Paint() 266 currentStart += weights_[index]; in Paint() 267 if (ShouldHighLight(totalWeight - currentStart, weights_[index], ratio * totalWeight)) { in Paint() 268 highLightIndex = static_cast<size_t>(index); in Paint() 272 data.sweepDegree = (weights_[index] / totalWeight) * paintData_.sweepDegree; in Paint()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/ |
H A D | cj_page_router.cpp | 166 void CJPageRouter::GetState(int32_t& index, std::string& name, std::string& path) in GetState() argument 172 index = static_cast<int32_t>(pageRouterStack_.size()); in GetState() 307 void CJPageRouter::PopPageToIndex(int32_t index, const std::string& params, bool needShowNext, bool needTransition) in PopPageToIndex() argument 309 LOGD("PopPageToIndex to index: %{public}d", index); in PopPageToIndex() 313 for (int32_t current = 0; current <= index; ++current) { in PopPageToIndex() 318 if (!OnPopPageToIndex(index, needShowNext, needTransition)) { in PopPageToIndex() 319 LOGE("fail to pop page to index"); in PopPageToIndex() 325 if (OnPopPageToIndex(index, needShowNext, needTransition)) { in PopPageToIndex() 328 LOGE("fail to pop page to index"); in PopPageToIndex() 364 OnPopPageToIndex(int32_t index, bool needShowNext, bool needTransition) OnPopPageToIndex() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/action_sheet/ |
H A D | js_action_sheet.cpp | 358 for (size_t index = 0; index < sheetsArr->Length(); ++index) { in Show() 359 sheetsInfo.emplace_back(ParseSheetInfo(execContext, sheetsArr->GetValueAt(index))); in Show() 396 for (size_t index = 0; index < sheetsArr->Length(); ++index) { in Show() 397 sheetsInfo.emplace_back(ParseSheetInfo(execContext, sheetsArr->GetValueAt(index))); in Show()
|
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | native_node_napi.cpp | 251 ArkUI_NodeHandle node, int32_t index, char* buffer, int32_t bufferSize, int32_t* writeLength) in OH_ArkUI_GetNavDestinationNameByIndex() 261 navigationAPI->getNavDesNameByIndex(node->uiNodeHandle, index, buffer, bufferSize, writeLength); in OH_ArkUI_GetNavDestinationNameByIndex() 297 ArkUI_ErrorCode OH_ArkUI_GetNavDestinationIndex(ArkUI_NodeHandle node, int32_t* index) in OH_ArkUI_GetNavDestinationIndex() argument 300 CHECK_NULL_RETURN(index, ARKUI_ERROR_CODE_PARAM_INVALID); in OH_ArkUI_GetNavDestinationIndex() 310 *index = retIndex; in OH_ArkUI_GetNavDestinationIndex() 324 ArkUI_ErrorCode OH_ArkUI_GetRouterPageIndex(ArkUI_NodeHandle node, int32_t* index) in OH_ArkUI_GetRouterPageIndex() argument 327 CHECK_NULL_RETURN(index, ARKUI_ERROR_CODE_PARAM_INVALID); in OH_ArkUI_GetRouterPageIndex() 337 *index = retIndex; in OH_ArkUI_GetRouterPageIndex() 250 OH_ArkUI_GetNavDestinationNameByIndex( ArkUI_NodeHandle node, int32_t index, char* buffer, int32_t bufferSize, int32_t* writeLength) OH_ArkUI_GetNavDestinationNameByIndex() argument
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_drag_modifier.cpp | 72 int32_t index = 0; in SetDragEventProperty() local 77 keepStr[index] = it->first; in SetDragEventProperty() 78 strList.push_back(keepStr[index].c_str()); in SetDragEventProperty() 79 ++index; in SetDragEventProperty() 258 int32_t index = 0; in SetOnDragEnd() 265 keepStr[index] = it->first; in SetOnDragEnd() 266 strList.push_back(keepStr[index].c_str()); in SetOnDragEnd() 267 ++index; in SetOnDragEnd()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | render_list.h | 316 RefPtr<RenderListItem> RequestAndLayoutNewItem(size_t index, double currMainPos, bool forward = true); 318 RefPtr<RenderListItem> RequestListItem(size_t index); 319 void RecycleListItem(size_t index); 320 size_t FindItemStartIndex(size_t index); 321 size_t GetItemRelativeIndex(size_t index); 323 size_t FindPreviousStickyListItem(size_t index); 335 void ApplyPreviousStickyListItem(size_t index, bool forceLayout = false); 352 double GetChainDelta(int32_t index) const;
|
/foundation/arkui/ace_engine/interfaces/napi/kits/font/ |
H A D | js_font.cpp | 124 int32_t index = 0; in JSgetSystemFontList() local 128 napi_set_element(env, arrayResult, index++, result); in JSgetSystemFontList() 194 int32_t index = 0; in GetUIFontGenericInfo() local 231 napi_set_element(env, genericSetResult, index++, genericResult); in GetUIFontGenericInfo() 240 int32_t index = 0; in GetUIFontFallbackInfo() local 264 napi_set_element(env, fallbackGroupSetResult, index++, fallbackGroupResult); in GetUIFontFallbackInfo() 281 int32_t index = 0; in JsGetUIFontConfig() local 285 napi_set_element(env, fontDirSetResult, index++, fontDirResult); in JsGetUIFontConfig()
|
/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | drawing_prop_convertor_test_ng.cpp | 246 for (int32_t index = 0; index <= 15; index++) { in HWTEST_F() 247 auto testFontWeight = static_cast<FontWeight>(index); in HWTEST_F() 318 for (int32_t index = 0; index <= 4; index++) { in HWTEST_F() 319 auto testTextDecoration = static_cast<TextDecoration>(index); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/ |
H A D | tabs_common_test_ng.cpp | 197 for (int32_t index = 0; index < TABCONTENT_NUMBER; index++) { in HWTEST_F() 198 auto child = AceType::DynamicCast<FrameNode>(tabBarNode_->GetChildAtIndex(index)); in HWTEST_F() 225 * @tc.desc: Test the index properties of tabbar. 244 * @tc.desc: Test the index properties of tabbar. 262 * @tc.steps: step2. swipe to item(index:1) in HWTEST_F() 285 for (int32_t index = 0; index < TABCONTENT_NUMBER; index in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/ipc/src/ |
H A D | bluetooth_hfp_hf_stub.cpp | 360 int index = data.ReadInt32(); in HandleMultiCallInner() local 361 int result = HandleMultiCall(*device, flag, index); in HandleMultiCallInner() 391 int index = data.ReadInt32(); in DialMemoryInner() local 392 HILOGE("BluetoothHfpHfStub: reply writing failed. index = %{publilc}d", index); in DialMemoryInner() 393 int result = DialMemory(*device, index); in DialMemoryInner() 407 int index = data.ReadInt32(); in SendVoiceTagInner() local 408 HILOGE("BluetoothHfpHfStub: reply writing failed in: %{public}s. index = %{publilc}d", __func__, index); in SendVoiceTagInner() 409 int result = SendVoiceTag(*device, index); in SendVoiceTagInner() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_hfp_hf_server.cpp | 373 bool BluetoothHfpHfServer::DialMemory(const BluetoothRawAddress &device, int index) in DialMemory() argument 375 HILOGI("addr: %{public}s, index: %{public}d", in DialMemory() 376 GetEncryptAddr((device).GetAddress()).c_str(), index); in DialMemory() 379 return pimpl->HfpHfService_->DialMemory(addr, index); in DialMemory() 384 bool BluetoothHfpHfServer::HandleMultiCall(const BluetoothRawAddress &device, int flag, int index) in HandleMultiCall() argument 386 HILOGI("addr: %{public}s, flag: %{public}d, index: %{public}d", in HandleMultiCall() 387 GetEncryptAddr((device).GetAddress()).c_str(), flag, index); in HandleMultiCall() 390 return pimpl->HfpHfService_->HandleMultiCall(addr, flag, index); in HandleMultiCall() 395 bool BluetoothHfpHfServer::SendVoiceTag(const BluetoothRawAddress &device, int index) in SendVoiceTag() argument 400 return pimpl->HfpHfService_->SendVoiceTag(addr, index); in SendVoiceTag() [all...] |
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | transform.cpp | 203 perspectiveMatrix[2][2] = 0; // 2 : index in GetOrigPoint() 205 perspectiveMatrix[2][3] = -1.0f / cameraDistance_; // 2 3 : index in GetOrigPoint() 272 perspectiveMatrix[2][2] = 0; // 2 : index in UpdateMap() 274 perspectiveMatrix[2][3] = -1.0f / cameraDistance_; // 2 3 : index in UpdateMap() 318 /* 0 1 2 3 : index of matrix */ in SetMatrix() 327 uint8_t index = 0; in AddOp() local 328 for (; index < TRANS_NUM; index++) { in AddOp() 329 if (opOrder_[index] == op) { in AddOp() 333 for (; index < TRANSLAT in AddOp() [all...] |
/foundation/multimedia/av_codec/services/media_engine/filters/ |
H A D | video_resize_filter.cpp | 97 void OnOutputBufferAvailable(uint32_t index, DetailEnhBufferFlag flag) override
100 videoResizeFilter->OnOutputBufferAvailable(index, static_cast<uint32_t>(flag));
482 void VideoResizeFilter::OnOutputBufferAvailable(uint32_t index, uint32_t flag)
in OnOutputBufferAvailable() argument 484 MEDIA_LOG_D("OnOutputBufferAvailable enter. index: %{public}u", index);
in OnOutputBufferAvailable() 487 indexs_.push_back(std::make_pair(index, flag));
in OnOutputBufferAvailable() 507 for (auto &index : indexs) {
in ReleaseBuffer() 508 bool isRender = (index.second != static_cast<uint32_t>(DETAIL_ENH_BUFFER_FLAG_EOS));
in ReleaseBuffer() 509 videoEnhancer_->ReleaseOutputBuffer(index.first, isRender);
in ReleaseBuffer()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_text_line.cpp | 115 OH_Drawing_TextLine* OH_Drawing_GetTextLineByIndex(OH_Drawing_Array* lines, size_t index) in OH_Drawing_GetTextLineByIndex() argument 123 arrayLines->type == TEXT_LINE && index < arrayLines->num) { in OH_Drawing_GetTextLineByIndex() 125 return reinterpret_cast<OH_Drawing_TextLine*>(&lineObjectArr[index]); in OH_Drawing_GetTextLineByIndex() 221 OH_Drawing_Run* OH_Drawing_GetRunByIndex(OH_Drawing_Array* runs, size_t index) in OH_Drawing_GetRunByIndex() argument 229 arrayRuns->type == TEXT_RUN && index < arrayRuns->num) { in OH_Drawing_GetRunByIndex() 231 return reinterpret_cast<OH_Drawing_Run*>(&run[index]); in OH_Drawing_GetRunByIndex() 350 double OH_Drawing_TextLineGetOffsetForStringIndex(OH_Drawing_TextLine* line, int32_t index) in OH_Drawing_TextLineGetOffsetForStringIndex() argument 361 return lineImpl->GetOffsetForStringIndex(index); in OH_Drawing_TextLineGetOffsetForStringIndex()
|
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/ |
H A D | hgm_multi_app_strategy.cpp | 333 auto index = param.find(":"); in AnalyzePkgParam() local 334 if (index == std::string::npos) { in AnalyzePkgParam() 338 // split by : index in AnalyzePkgParam() 339 pkgName = param.substr(0, index); in AnalyzePkgParam() 340 auto pidAppType = param.substr(index + 1, param.size()); in AnalyzePkgParam() 341 index = pidAppType.find(":"); in AnalyzePkgParam() 342 if (index == std::string::npos) { in AnalyzePkgParam() 349 // split by : index in AnalyzePkgParam() 350 auto pidStr = pidAppType.substr(0, index); in AnalyzePkgParam() 355 auto appTypeStr = pidAppType.substr(index in AnalyzePkgParam() [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/ |
H A D | InnerFuzzTest.cpp | 78 int index = signal_->inQueue_.front(); in inputFunc() local 88 cout << "index is: " << index << endl; in inputFunc() 90 int32_t ret = encoderDemo->InnerQueueInputBuffer(index, info, flag); in inputFunc() 101 int index = signal_->outQueue_.front(); in outputFunc() local 102 int32_t ret = encoderDemo->InnerReleaseOutputBuffer(index); in outputFunc() 272 int index = 0; in HWTEST_F() local 296 index = getIntRand(); in HWTEST_F() 310 ret = encoderDemo->InnerQueueInputBuffer(index, info, flag); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/ |
H A D | InnerFuzzTest.cpp | 81 int index = signal_->inQueue_.front(); in InputFunc() local 89 cout << "index is: " << index << endl; in InputFunc() 91 int32_t ret = decoderDemo->InnerQueueInputBuffer(index, info, flag); in InputFunc() 102 int index = signal_->outQueue_.front(); in OutputFunc() local 103 int32_t ret = decoderDemo->InnerReleaseOutputBuffer(index); in OutputFunc() 271 int index = 0; in HWTEST_F() local 295 index = getIntRand(); in HWTEST_F() 308 ret = decoderDemo->InnerQueueInputBuffer(index, info, flag); in HWTEST_F()
|
/foundation/multimedia/player_framework/frameworks/native/soundpool/ |
H A D | sound_parser.cpp | 242 void SoundDecoderCallback::OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) in OnInputBufferAvailable() argument 255 DealBufferRawFile(bufferFlag, sampleInfo, index, buffer); in OnInputBufferAvailable() 269 audioDec_->QueueInputBuffer(index, sampleInfo, bufferFlag); in OnInputBufferAvailable() 275 MediaAVCodec::AVCodecBufferInfo sampleInfo, uint32_t index, std::shared_ptr<AVSharedMemory> buffer) in DealBufferRawFile() 303 audioDec_->QueueInputBuffer(index, sampleInfo, bufferFlag); in DealBufferRawFile() 307 void SoundDecoderCallback::OnOutputBufferAvailable(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, in OnOutputBufferAvailable() argument 318 audioDec_->ReleaseOutputBuffer(index); in OnOutputBufferAvailable() 348 audioDec_->ReleaseOutputBuffer(index); in OnOutputBufferAvailable() 274 DealBufferRawFile(MediaAVCodec::AVCodecBufferFlag bufferFlag, MediaAVCodec::AVCodecBufferInfo sampleInfo, uint32_t index, std::shared_ptr<AVSharedMemory> buffer) DealBufferRawFile() argument
|
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/ |
H A D | netpolicy_exec.cpp | 264 uint32_t index = 0; in GetUidsByPolicyCallback() local 267 NapiUtils::SetArrayElement(context->GetEnv(), uids, index++, element); in GetUidsByPolicyCallback() 285 uint32_t index = 0; in GetNetQuotaPoliciesCallback() local 288 NapiUtils::SetArrayElement(context->GetEnv(), callbackValue, index++, element); in GetNetQuotaPoliciesCallback() 346 uint32_t index = 0; in GetDeviceIdleTrustlistCallback() local 349 NapiUtils::SetArrayElement(context->GetEnv(), list, index++, element); in GetDeviceIdleTrustlistCallback() 362 uint32_t index = 0; in GetPowerSaveTrustlistCallback() local 365 NapiUtils::SetArrayElement(context->GetEnv(), list, index++, element); in GetPowerSaveTrustlistCallback()
|
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifiap_fuzzer/ |
H A D | wifiap_fuzzer.cpp | 131 int index = 0; in BlockListAndStationFuzzTest() local 134 staInfo.bssidType = static_cast<int>(data[index++]); in BlockListAndStationFuzzTest() 213 int index = 0; in AddBlockListFuzzTest() local 216 stationInfo.bssidType = static_cast<int>(data[index++]); in AddBlockListFuzzTest() 225 int index = 0; in DelBlockListFuzzTest() local 228 stationInfo.bssidType = static_cast<int>(data[index++]); in DelBlockListFuzzTest() 237 int index = 0; in DisconnetStationFuzzTest() local 240 stationInfo.bssidType = static_cast<int>(data[index++]); in DisconnetStationFuzzTest()
|
/foundation/distributedhardware/distributed_camera/services/data_process/test/unittest/common/pipeline_node/ |
H A D | encode_data_process_test.cpp | 384 uint32_t index = 0; in HWTEST_F() local 388 rc = testEncodeDataProcess_->GetEncoderOutputBuffer(index, info, flag, buffer); in HWTEST_F() 407 uint32_t index = time; in HWTEST_F() local 411 int32_t rc = testEncodeDataProcess_->GetEncoderOutputBuffer(index, info, flag, buffer); in HWTEST_F() 463 uint32_t index = 0; in HWTEST_F() local 467 testEncodeDataProcess_->OnOutputBufferAvailable(index, info, flag, buffer); in HWTEST_F() 469 testEncodeDataProcess_->OnInputBufferAvailable(index, buffer); in HWTEST_F() 472 testEncodeDataProcess_->OnOutputBufferAvailable(index, info, flag, buffer); in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/edac/ |
H A D | e7xxx_edac.c | 358 int index, j; in e7xxx_init_csrows() local 377 for (index = 0; index < mci->nr_csrows; index++) { in e7xxx_init_csrows() 379 mem_dev = (dra >> (index * 4 + 3)) & 0x1; in e7xxx_init_csrows() 380 csrow = mci->csrows[index]; in e7xxx_init_csrows() 382 pci_read_config_byte(pdev, E7XXX_DRB + index, &value); in e7xxx_init_csrows() 385 edac_dbg(3, "(%d) cumul_size 0x%x\n", index, cumul_size); in e7xxx_init_csrows()
|
/kernel/linux/linux-5.10/drivers/fpga/ |
H A D | fpga-mgr.c | 255 int index; in fpga_mgr_buf_load() local 277 for (index = 0; index < nr_pages; index++) { in fpga_mgr_buf_load() 279 pages[index] = vmalloc_to_page(p); in fpga_mgr_buf_load() 281 pages[index] = kmap_to_page((void *)p); in fpga_mgr_buf_load() 282 if (!pages[index]) { in fpga_mgr_buf_load() 293 rc = sg_alloc_table_from_pages(&sgt, pages, index, offset_in_page(buf), in fpga_mgr_buf_load()
|
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/ |
H A D | spu_task_sync.c | 44 * head. Head is the index to store the next value. in spu_buff_add() 163 "%s, line %d: Invalid index %d into spu info cache\n", in get_cached_info() 257 int index, end; in release_cached_info() local 261 index = 0; in release_cached_info() 266 "Invalid index %d into spu info cache\n", in release_cached_info() 271 index = spu_index; in release_cached_info() 273 for (; index < end; index++) { in release_cached_info() 274 if (spu_info[index]) { in release_cached_info() 275 kref_put(&spu_info[index] in release_cached_info() [all...] |