/ohos5.0/foundation/multimedia/av_codec/test/unittest/demuxer_test/ |
H A D | demuxer_hevc_unit_test.cpp | 149 ASSERT_EQ(frames_[idx], infoMap["hdrVivid"]["frames"][idx]); 168 ASSERT_EQ(frames_[idx], infoMap["hdrVivid"]["frames"][idx]); 187 ASSERT_EQ(frames_[idx], infoMap["mp4Hevc"]["frames"][idx]); 206 ASSERT_EQ(frames_[idx], infoMap["mp4Hevc"]["frames"][idx]); 225 ASSERT_EQ(frames_[idx], infoMap["mkvHevcAcc"]["frames"][idx]); 257 ASSERT_EQ(frames_[idx], infoMap["mkvAvcMp3"]["frames"][idx]); 308 ASSERT_EQ(frames_[idx], infoMap["mkvAvcMp3"]["frames"][idx]); 327 ASSERT_EQ(frames_[idx], infoMap["movHevc"]["frames"][idx]); 346 ASSERT_EQ(frames_[idx], infoMap["movHevc"]["frames"][idx]); 423 ASSERT_EQ(frames_[idx], infoMap["fmp4Hevc"]["frames"][idx]); [all …]
|
H A D | demuxer_video_mpg_unit_test.cpp | 74 CountFrames(idx); 103 CountFrames(idx); 132 CountFrames(idx); 161 CountFrames(idx); 190 CountFrames(idx); 219 CountFrames(idx); 248 CountFrames(idx); 277 CountFrames(idx); 299 for (auto idx : selectedTrackIds_) { variable 336 for (auto idx : selectedTrackIds_) { variable [all …]
|
H A D | demuxer_func_unit_test.cpp | 88 CountFrames(idx); 117 CountFrames(idx); 146 CountFrames(idx); 175 CountFrames(idx); 204 CountFrames(idx); 233 CountFrames(idx); 262 CountFrames(idx); 291 CountFrames(idx); 320 CountFrames(idx); 349 CountFrames(idx); [all …]
|
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 196 (void)idx; in AddStorageExtParams() 279 uint32_t idx = 0; in ConstructCheckParamSet() local 341 uint32_t idx = 0; in ConstructDeleteParamSet() local 406 uint32_t idx = 0; in ConstructHmacParamSet() local 489 uint32_t idx = 0; in ConstructDeriveParamSet() local 517 uint32_t idx = 0; in ConstructFinishParamSet() local 634 uint32_t idx = 0; in ConstructHkdfParamSet() local 726 uint32_t idx = 0; in ConstructPseudonymParamSet() local 897 uint32_t idx = 0; in ConstructGetKeyExtInfoParamSet() local 997 uint32_t idx = 0; in ConstructAesGcmEncryptParamSet() local [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/ |
H A D | render_blur_common.h | 57 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurRGBA() local 74 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurRGB() local 91 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurRG() local 108 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurR() local 125 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurA() local 142 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurRGBALayer() local 161 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurRGBLayer() local 182 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurRGLayer() local 203 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurRLayer() local 222 for (int idx = 1; idx < CORE_BLUR_FILTER_SIZE; ++idx) { in GaussianBlurALayer() local [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/benchmarks/base/ |
H A D | base.cpp | 36 static inline void GenerateIndexes(std::mt19937_64& rnd, uint64_t(idx)[3]) in GenerateIndexes() 42 idx[i] = rnd() % sz; in GenerateIndexes() 44 if (idx[z] == idx[i]) { in GenerateIndexes() 65 uint64_t idx[3] = {}; in BenchmarkNative() local 66 GenerateIndexes(rnd, idx); in BenchmarkNative() 69 arr[idx[2]] = func(arr[idx[0]], arr[idx[1]]); in BenchmarkNative() 94 uint64_t idx[3] = {}; in BenchmarkFFRT() local 95 GenerateIndexes(rnd, idx); in BenchmarkFFRT() 98 …ffrt::submit([idx, &arr]() { arr[idx[2]] = func(arr[idx[0]], arr[idx[1]]); }, {&arr[idx[0]], &arr[… in BenchmarkFFRT() 99 {&arr[idx[2]]}); in BenchmarkFFRT()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | render_node_graph_share_manager.cpp | 95 for (size_t idx = 0; idx < inOut_.inputView.size(); ++idx) { in BeginFrame() local 96 inOut_.inputView[idx] = inputs[idx].handle; in BeginFrame() 97 inOut_.namedInputView[idx] = inputs[idx]; in BeginFrame() 99 for (size_t idx = 0; idx < inOut_.outputView.size(); ++idx) { in BeginFrame() local 102 inOut_.outputView[idx] = outputs[idx].handle; in BeginFrame() 103 inOut_.namedOutputView[idx] = outputs[idx]; in BeginFrame() 171 for (uint32_t idx = 0; idx < outputCount; ++idx) { in RegisterAsRenderNodeGraphOutput() local 179 for (uint32_t idx = 0; idx < outputCount; ++idx) { in RegisterAsRenderNodeGraphOutput() local 197 for (uint32_t idx = 0; idx < maxCount; ++idx) { in RegisterRenderNodeName() local 238 for (uint32_t idx = 0; idx < static_cast<uint32_t>(renderNodeResources_.size()); ++idx) { in GetRenderNodeIndex() local [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | rd_utils.h | 42 static int RdSqlBindInt(GRD_SqlStmt *stmt, uint32_t idx, int32_t val); 45 static int RdSqlBindNull(GRD_SqlStmt *stmt, uint32_t idx); 51 static ColumnType RdSqlColType(GRD_SqlStmt *stmt, uint32_t idx); 52 static int RdSqlColBytes(GRD_SqlStmt *stmt, uint32_t idx); 53 static char *RdSqlColName(GRD_SqlStmt *stmt, uint32_t idx); 54 static GRD_DbValueT RdSqlColValue(GRD_SqlStmt *stmt, uint32_t idx); 56 static uint8_t *RdSqlColBlob(GRD_SqlStmt *stmt, uint32_t idx); 57 static char *RdSqlColText(GRD_SqlStmt *stmt, uint32_t idx); 58 static int RdSqlColInt(GRD_SqlStmt *stmt, uint32_t idx); 59 static uint64_t RdSqlColInt64(GRD_SqlStmt *stmt, uint32_t idx); [all …]
|
H A D | grd_api_manager.h | 34 typedef int (*DBSqlBindInt)(GRD_SqlStmt *stmt, uint32_t idx, int32_t val); 37 typedef int (*DBSqlBindNull)(GRD_SqlStmt *stmt, uint32_t idx); 43 typedef GRD_DbDataTypeE (*DBSqlColType)(GRD_SqlStmt *stmt, uint32_t idx); 44 typedef int (*DBSqlColBytes)(GRD_SqlStmt *stmt, uint32_t idx); 45 typedef char *(*DBSqlColName)(GRD_SqlStmt *stmt, uint32_t idx); 46 typedef GRD_DbValueT (*DBSqlColValue)(GRD_SqlStmt *stmt, uint32_t idx); 47 typedef uint8_t *(*DBSqlColBlob)(GRD_SqlStmt *stmt, uint32_t idx); 48 typedef char *(*DBSqlColText)(GRD_SqlStmt *stmt, uint32_t idx); 49 typedef int (*DBSqlColInt)(GRD_SqlStmt *stmt, uint32_t idx); 50 typedef uint64_t (*DBSqlColInt64)(GRD_SqlStmt *stmt, uint32_t idx); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/ |
H A D | water_flow_layout_sw.cpp | 91 for (size_t idx = 0; idx < info_->lanes_.size(); ++idx) { in Layout() local 328 idx = std::max(idx, 0); in FillBack() 333 if (idx > maxChildIdx) { in FillBack() 369 idx = std::min(itemCnt_ - 1, idx); in FillFront() 374 if (idx < minChildIdx) { in FillFront() 453 while (!lanes.empty() && idx <= maxChildIdx && info_->idxToLane_.count(idx)) { in RecoverBack() 478 while (!lanes.empty() && idx >= minChildIdx && info_->idxToLane_.count(idx)) { in RecoverFront() 710 crossPos -= itemsCrossSize_[idx][i] + crossGaps_[idx]; in LayoutSection() 716 (item.idx < info_->startIndex_ || item.idx > info_->endIndex_); in LayoutSection() 740 crossPos += itemsCrossSize_[idx][i] + crossGaps_[idx]; in LayoutSection() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | shader_pipeline_binder.cpp | 167 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in CreatePipelineDescriptorSetBinder() local 169 … descriptorSetLayoutBindings[idx] = { pipelineLayout.descriptorSetLayouts[idx].bindings }; in CreatePipelineDescriptorSetBinder() 220 for (size_t idx = 0; idx < descSetBindingRes.bindings.size(); ++idx) { in ShaderPipelineBinder() local 377 … if ((idx < setResources.bindings.size()) && (setResources.bindings[idx].type == type)) { in BindBuffer() 408 … if ((idx < setResources.bindings.size()) && (setResources.bindings[idx].type == type)) { in BindBuffers() 419 for (size_t idx = 0; idx < resources.size(); ++idx) { in BindBuffers() local 440 … if ((idx < setResources.bindings.size()) && (setResources.bindings[idx].type == type)) { in BindImage() 473 … if ((idx < setResources.bindings.size()) && (setResources.bindings[idx].type == type)) { in BindImages() 484 for (size_t idx = 0; idx < resources.size(); ++idx) { in BindImages() local 546 for (size_t idx = 0; idx < resources.size(); ++idx) { in BindSamplers() local [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_create_gpu_buffers.cpp | 80 for (size_t idx = 0; idx < resourceHandles_.size(); ++idx) { in InitNode() local 82 … rngShareMgr.RegisterRenderNodeOutput(names_[idx].shareName, resourceHandles_[idx].GetHandle()); in InitNode() 89 for (size_t idx = 0; idx < resourceHandles_.size(); ++idx) { in PreExecuteFrame() local 90 const RenderHandle dependencyHandle = dependencyHandles_[idx]; in PreExecuteFrame() 93 GpuBufferDesc& descRef = descs_[idx]; in PreExecuteFrame() 98 resourceHandles_[idx] = gpuResourceMgr.Create(resourceHandles_[idx], descRef); in PreExecuteFrame() 104 for (size_t idx = 0; idx < resourceHandles_.size(); ++idx) { in PreExecuteFrame() local 106 … rngShareMgr.RegisterRenderNodeOutput(names_[idx].shareName, resourceHandles_[idx].GetHandle()); in PreExecuteFrame()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime_macros/src/ |
H A D | select.rs | 49 *idx += 1; in parse_ident() 54 *idx += 1; in parse_ident() 59 *idx += 1; in parse_ident() 69 idx: &mut usize, in parse_group() 78 *idx += 1; in parse_group() 84 *idx += 1; in parse_group() 91 match &buf[*idx] { in parse_token() 93 if !parse_ident(ident, idx, flags) { in parse_token() 114 *idx += 1; in parse_token() 122 let mut idx = 0; in tuple_parser() localVariable [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rd_utils.cpp | 243 int RdUtils::RdSqlBindNull(GRD_SqlStmt *stmt, uint32_t idx) in RdSqlBindNull() argument 321 int RdUtils::RdSqlColBytes(GRD_SqlStmt *stmt, uint32_t idx) in RdSqlColBytes() argument 332 char *RdUtils::RdSqlColName(GRD_SqlStmt *stmt, uint32_t idx) in RdSqlColName() argument 340 return GRD_KVApiInfo.DBSqlColName(stmt, idx); in RdSqlColName() 351 return GRD_KVApiInfo.DBSqlColValue(stmt, idx); in RdSqlColValue() 362 return GRD_KVApiInfo.DBSqlColBlob(stmt, idx); in RdSqlColBlob() 373 return GRD_KVApiInfo.DBSqlColText(stmt, idx); in RdSqlColText() 376 int RdUtils::RdSqlColInt(GRD_SqlStmt *stmt, uint32_t idx) in RdSqlColInt() argument 384 return GRD_KVApiInfo.DBSqlColInt(stmt, idx); in RdSqlColInt() 395 return GRD_KVApiInfo.DBSqlColInt64(stmt, idx); in RdSqlColInt64() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | hash.cpp | 22 size_t idx = 0; in HashFunc() local 24 for (idx = 0; idx < input.size(); idx++) { in HashFunc() 25 hash = (hash * PRIME_SEED) + input.at(idx); in HashFunc() 34 size_t idx = 0; in Hash32Func() local 36 for (idx = 0; idx < input.size(); idx++) { in Hash32Func() 37 hash = (hash << 4) + input.at(idx); // left shift the lowest 4 bits for 4 bits. in Hash32Func()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_create_default_camera_gpu_images.cpp | 61 for (size_t idx = 0; idx < resourceHandles_.size(); ++idx) { in InitNode() local 63 … rngShareMgr.RegisterRenderNodeOutput(descs_[idx].shareName, resourceHandles_[idx].GetHandle()); in InitNode() 77 for (size_t idx = 0; idx < descs_.size(); ++idx) { in PreExecuteFrame() local 87 auto& currDesc = descs_[idx]; in PreExecuteFrame() 101 resourceHandles_[idx] = gpuResourceMgr.Create(resourceHandles_[idx], desc); in PreExecuteFrame() 108 for (size_t idx = 0; idx < resourceHandles_.size(); ++idx) { in PreExecuteFrame() local 110 … rngShareMgr.RegisterRenderNodeOutput(descs_[idx].shareName, resourceHandles_[idx].GetHandle()); in PreExecuteFrame()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbclib/src/ |
H A D | sbc_decoder.cpp | 172 for (auto idx = 0, i = 0; i < INDEX_4; i++, idx += VALUE_5) { in Synthesize4() local 175 PROTO_4_40M0[idx + INDEX_0], in Synthesize4() 177 … PROTO_4_40M1[idx + INDEX_0], in Synthesize4() 179 … PROTO_4_40M0[idx + INDEX_1], in Synthesize4() 181 … PROTO_4_40M1[idx + INDEX_1], in Synthesize4() 183 … PROTO_4_40M0[idx + INDEX_2], in Synthesize4() 185 … PROTO_4_40M1[idx + INDEX_2], in Synthesize4() 187 … PROTO_4_40M0[idx + INDEX_3], in Synthesize4() 200 int idx = 0; in Synthesize8() local 219 for (idx = 0, i = 0; i < INDEX_8; i++, idx += VALUE_5) { in Synthesize8() [all …]
|
/ohos5.0/base/security/device_auth/frameworks/src/lite/ |
H A D | ipc_dev_auth_stub.c | 134 if (ipcData->idx >= 0) { in WithObject() 274 int32_t idx = -1; in SetRemoteObject() local 280 idx = i; in SetRemoteObject() 285 if (idx == -1) { in SetRemoteObject() 289 g_cbStub[idx].cbStub = *object; in SetRemoteObject() 290 g_cbStub[idx].cbDieId = 0; in SetRemoteObject() 291 g_cbStub[idx].inUse = true; in SetRemoteObject() 294 return idx; in SetRemoteObject() 329 if ((idx >= 0) && (idx < MAX_CBSTUB_SIZE)) { in ResetRemoteObject() 336 RemoveDeathRecipient(g_cbStub[idx].cbStub, g_cbStub[idx].cbDieId); in ResetRemoteObject() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/mission_dump_test/ |
H A D | mission_dump_test.cpp | 103 std::string::size_type idx; variable 108 idx = result.find("Current"); 161 std::string::size_type idx; variable 166 idx = result.find("launcher"); 217 std::string::size_type idx; variable 222 idx = result.find("stand"); 273 std::string::size_type idx; variable 278 idx = result.find("single"); 330 std::string::size_type idx; variable 381 std::string::size_type idx; variable [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | text_blob_test.cpp | 59 for (int idx = 0; idx < count; idx++) { in OnTestPerformance() local 60 buffer->glyphs[idx] = glyphs[idx]; in OnTestPerformance() 61 buffer->pos[idx * 2] = posX[idx]; // 2 用于位置计算 in OnTestPerformance() 62 buffer->pos[idx * 2 + 1] = posY[idx]; // 2,1 用于位置计算 in OnTestPerformance() 158 for (int idx = 0; idx < count; idx++) { in OnTestPerformance() local 159 buffer->glyphs[idx] = glyphs[idx]; in OnTestPerformance() 160 buffer->pos[idx * 2] = posX[idx]; // 2 设置字形位置 in OnTestPerformance() 161 buffer->pos[idx * 2 + 1] = posY[idx]; // 2 1 设置字形位置 in OnTestPerformance()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/ |
H A D | sys_util.c | 38 …for (uint32_t idx = 0; idx < sizeof(g_illegalPathHeadString) / sizeof(g_illegalPathHeadString[0]);… in IsFileNameLegal() local 39 …if (g_illegalPathHeadString[idx] == NULL || strlen(fileName) < strlen(g_illegalPathHeadString[idx]… in IsFileNameLegal() 42 … if (memcmp(fileName, g_illegalPathHeadString[idx], strlen(g_illegalPathHeadString[idx])) == 0) { in IsFileNameLegal() 48 …for (uint32_t idx = 0; idx < sizeof(g_illegalPathString) / sizeof(g_illegalPathString[0]); idx++) { in IsFileNameLegal() local 49 … if (g_illegalPathString[idx] == NULL || strlen(fileName) < strlen(g_illegalPathString[idx])) { in IsFileNameLegal() 52 if (strstr(fileName, g_illegalPathString[idx]) != NULL) { in IsFileNameLegal()
|
/ohos5.0/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
H A D | net_stats_database_helper.cpp | 117 int32_t idx = 1; in InsertData() local 120 ++idx; in InsertData() 151 int32_t idx = 1; in SelectData() local 176 int32_t idx = 1; in SelectData() local 182 ret = BindInt64(idx, start, end); in SelectData() 200 int32_t idx = 1; in SelectData() local 224 int32_t idx = 1; in SelectData() local 253 int32_t idx = 1; in QueryData() local 277 int32_t idx = 1; in QueryData() local 310 int32_t idx = 1; in DeleteData() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/ |
H A D | grid_irregular_filler.cpp | 45 if (!FindNextItem(++idx)) { in Fill() 46 FillOne(idx); in Fill() 64 return { len, posY_, idx }; in Fill() 66 return { len, lastRow, idx }; in Fill() 75 while (idx < targetIdx) { in FillToTarget() 76 if (!FindNextItem(++idx)) { in FillToTarget() 77 FillOne(idx); in FillToTarget() 250 while (idx < targetIdx) { in FillMatrixOnly() 252 FillOne(idx); in FillMatrixOnly() 263 FillOne(idx); in FillMatrixByLine() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/ |
H A D | js_drawing_utils.cpp | 96 for (size_t idx = 0; idx < size; idx++) { in ConvertFromJsColor() local 97 int32_t* curChannel = argb + idx; in ConvertFromJsColor() 98 napi_get_named_property(env, jsValue, g_argbString[idx], &tempValue); in ConvertFromJsColor() 110 for (size_t idx = 0; idx < size; idx++) { in ConvertFromJsRect() local 111 double* curEdge = ltrb + idx; in ConvertFromJsRect() 112 napi_get_named_property(env, jsValue, g_ltrbString[idx], &tempValue); in ConvertFromJsRect() 123 for (size_t idx = 0; idx < size; idx++) { in ConvertFromJsIRect() local 124 int32_t* curEdge = ltrb + idx; in ConvertFromJsIRect() 125 napi_get_named_property(env, jsValue, g_ltrbString[idx], &tempValue); in ConvertFromJsIRect() 174 for (size_t idx = 0; idx < size; idx++) { in ConvertFromJsPoint() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/examples/calculator/src/main/js/default/common/ |
H A D | calculator.js | 50 for (let idx = 0, size = expression.length; idx < size; idx++) { 51 const element = expression[idx]; 91 for (let idx = 0; idx < size; idx++) { 92 const element = content[idx]; 100 if (isSymbol(element) && (idx === 0 || content[idx - 1] === '(')) { 108 if (idx !== lastIdx) { 116 if (idx === lastIdx && number !== '') {
|