Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 135) sorted by relevance

123456

/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/common/src/
Dhash.cpp22 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); // 4 is offset in Hash32Func()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/
Dsys_util.c38 …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()
/foundation/ace/ace_engine_lite/frameworks/examples/calculator/src/main/js/default/common/
Dcalculator.js50 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 !== "") {
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/gavdp/a2dp_codec/sbclib/src/
Dsbc_decoder.cpp171 for (auto idx = 0, i = 0; i < INDEX_4; i++, idx += VALUE_5) { in Synthesize4() local
174 PROTO_4_40M0[idx + INDEX_0], in Synthesize4()
176 … PROTO_4_40M1[idx + INDEX_0], in Synthesize4()
178 … PROTO_4_40M0[idx + INDEX_1], in Synthesize4()
180 … PROTO_4_40M1[idx + INDEX_1], in Synthesize4()
182 … PROTO_4_40M0[idx + INDEX_2], in Synthesize4()
184 … PROTO_4_40M1[idx + INDEX_2], in Synthesize4()
186 … PROTO_4_40M0[idx + INDEX_3], in Synthesize4()
188 … PROTO_4_40M1[idx + INDEX_3], in Synthesize4()
190 … PROTO_4_40M0[idx + INDEX_4], in Synthesize4()
[all …]
/foundation/aafwk/standard/services/test/moduletest/mission_dump_test/
Dmission_dump_test.cpp104 std::string::size_type idx; variable
109 idx = result.find("Current");
110 EXPECT_TRUE(idx != string::npos);
163 std::string::size_type idx; variable
168 idx = result.find("launcher");
169 EXPECT_TRUE(idx != string::npos);
171 idx = result.find("lockedState");
172 EXPECT_TRUE(idx != string::npos);
174 idx = result.find("AbilityRecord");
175 EXPECT_TRUE(idx != string::npos);
[all …]
/foundation/ace/ace_engine/frameworks/core/animation/test/unittest/spring_chain/
Dspring_chain_test.cpp119 for (int32_t idx = 0; idx < chainItemCount; idx++) { in InitSpringChain() local
120 RefPtr<SpringChainItem> item = AceType::MakeRefPtr<SpringChainItem>(idx); in InitSpringChain()
121 nodes_[idx] = item; in InitSpringChain()
123 … AceType::MakeRefPtr<SimpleSpringNode>(context_, idx, idx * CHAIN_ITEM_DISTANCE_DEFAULT); in InitSpringChain()
124 node->AddUpdateListener([idx, item](double value, double velocity) { in InitSpringChain()
125 …OGI("Spring Node Update. index: %{public}d, value: %{public}lf, velocity: %{public}lf", idx, value, in InitSpringChain()
130 node->SetValue(idx * CHAIN_ITEM_DISTANCE_DEFAULT); in InitSpringChain()
159 for (int32_t idx = 0; idx < CHAIN_ITEM_COUNT; idx++) { variable
160 auto node = adapter_->GetNode(idx);
161 EXPECT_EQ(idx, node->GetIndex());
[all …]
/foundation/ace/ace_engine/frameworks/bridge/test/unittest/jsfrontend/codec/
Dgroup_message_codec_test.cpp280 for (size_t idx = 0; idx < encodeBuf.size(); idx++) { variable
281 ASSERT_EQ(encodeBuf.at(idx), INT8_ARRAY_ENCODE_RESULT.at(idx));
295 for (size_t idx = 0; idx < data.size(); idx++) { variable
296 ASSERT_EQ(data.at(idx), FUNCTION_PARA_INT8_ARRAY[idx]);
327 for (size_t idx = 0; idx < encodeBuf.size(); idx++) { variable
328 ASSERT_EQ(encodeBuf.at(idx), INT16_ARRAY_ENCODE_RESULT.at(idx));
342 for (size_t idx = 0; idx < data.size(); idx++) { variable
343 ASSERT_EQ(data.at(idx), FUNCTION_PARA_INT16_ARRAY.at(idx));
372 for (size_t idx = 0; idx < encodeBuf.size(); idx++) { variable
373 ASSERT_EQ(encodeBuf.at(idx), INT32_ARRAY_ENCODE_RESULT.at(idx));
[all …]
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
Dsys_util.c37 …for (uint32_t idx = 0; idx < sizeof(g_illegalPathHeadString) / sizeof(g_illegalPathHeadString[0]);… in IsFileNameLegal() local
38 …if (g_illegalPathHeadString[idx] == NULL || strlen(fileName) < strlen(g_illegalPathHeadString[idx]… in IsFileNameLegal()
41 … if (memcmp(fileName, g_illegalPathHeadString[idx], strlen(g_illegalPathHeadString[idx])) == 0) { in IsFileNameLegal()
47 …for (uint32_t idx = 0; idx < sizeof(g_illegalPathString) / sizeof(g_illegalPathString[0]); idx++) { in IsFileNameLegal() local
48 … if (g_illegalPathString[idx] == NULL || strlen(fileName) < strlen(g_illegalPathString[idx])) { in IsFileNameLegal()
51 if (strstr(fileName, g_illegalPathString[idx]) != NULL) { in IsFileNameLegal()
/foundation/ace/ace_engine/frameworks/bridge/common/utils/
Dpage_id_pool.h33 for (int32_t idx = 0; idx < MAX_PAGE_ID_SIZE; ++idx) { in GenerateNextPageId() local
34 uint64_t bitMask = (1ULL << idx); in GenerateNextPageId()
36 return idx; in GenerateNextPageId()
/foundation/ace/ace_engine/frameworks/bridge/codec/
Dbyte_buffer_operator.cpp32 for (int32_t idx = 0; idx < size; ++idx) { in ReadData() local
53 for (int32_t idx = 0; idx < size; ++idx) { in ReadData() local
/foundation/distributedhardware/devicemanager/utils/src/
Ddm_random.cpp101 uint32_t idx = ((uint32_t)szOut[i] % tmpNum); in MbedtlsGenRandomStr() local
103 if (idx < NUMBER_COUNT) { in MbedtlsGenRandomStr()
105 } else if (idx >= NUMBER_COUNT && idx < (NUMBER_COUNT + ALPHA_COUNT)) { in MbedtlsGenRandomStr()
107 idx -= NUMBER_COUNT; in MbedtlsGenRandomStr()
110 idx -= (NUMBER_COUNT + ALPHA_COUNT); in MbedtlsGenRandomStr()
112 szOut[i] = base + idx; in MbedtlsGenRandomStr()
/foundation/ace/ace_engine/frameworks/core/animation/
Dsimple_spring_chain.cpp103 for (int32_t idx = 0; idx < springAdapter_->GetSize(); idx++) { in Cancel() local
108 …de size mismatch. size: %{public}d, current size: %{public}d", springAdapter_->GetSize(), idx + 1); in Cancel()
116 for (int32_t idx = 0; idx < springAdapter_->GetSize(); idx++) { in TransferParamsInternal() local
117 auto currentNode = springAdapter_->GetNode(idx); in TransferParamsInternal()
/foundation/ace/ace_engine/frameworks/core/components_v2/foreach/
Dlazy_foreach_component.cpp52 for (size_t idx = 0; idx < totalCount; ++idx) { in ExpandChildren() local
53 children_.emplace_back(OnGetChildByIndex(idx)); in ExpandChildren()
/foundation/multimedia/media_lite/services/player_lite/impl/buffersource/src/
Dbuffer_source.cpp80 buffer_[i].idx = i; in Init()
83 buffer.idx = i; in Init()
109 int BufferSource::GetBufferInfo(int idx, BufferInfo* info) in GetBufferInfo() argument
112 if (idx < 0 || idx >= QUEUE_SIZE) { in GetBufferInfo()
115 *info = buffer_[idx]; in GetBufferInfo()
192 int BufferSource::GetFilledBuffer(size_t idx, QueBuffer* buffer) in GetFilledBuffer() argument
198 if (queSize <= idx) { in GetFilledBuffer()
201 *buffer = filledBuffer_[idx]; in GetFilledBuffer()
/foundation/multimedia/media_lite/services/player_lite/impl/buffersource/include/
Dbuffer_source.h45 int idx; member
49 int idx; member
74 int GetBufferInfo(int idx, BufferInfo* info);
82 int GetFilledBuffer(size_t idx, QueBuffer* buffer);
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
Dnstackx_database.c108 void *DatabaseGetNextRecord(void *dbptr, int64_t *idx) in DatabaseGetNextRecord() argument
114 if (dbptr == NULL || idx == NULL || *idx >= UINT32_MAX) { in DatabaseGetNextRecord()
117 if (*idx >= 0) { in DatabaseGetNextRecord()
118 *idx = *idx + 1; in DatabaseGetNextRecord()
120 *idx = 0; in DatabaseGetNextRecord()
123 for (i = (uint32_t)(*idx); i < db->maxCount; i++) { in DatabaseGetNextRecord()
126 *idx = (int64_t)i; in DatabaseGetNextRecord()
/foundation/communication/dsoftbus/components/nstackx_mini/nstackx_ctrl/core/
Dnstackx_database.c107 void *DatabaseGetNextRecord(void *dbptr, int64_t *idx) in DatabaseGetNextRecord() argument
113 if (dbptr == NULL || idx == NULL || *idx >= UINT32_MAX) { in DatabaseGetNextRecord()
116 if (*idx >= 0) { in DatabaseGetNextRecord()
117 *idx = *idx + 1; in DatabaseGetNextRecord()
119 *idx = 0; in DatabaseGetNextRecord()
122 for (i = (uint32_t)(*idx); i < db->maxCount; i++) { in DatabaseGetNextRecord()
125 *idx = (int64_t)i; in DatabaseGetNextRecord()
/foundation/distributedhardware/devicemanager/ext/mini/utils/src/cipher/
Dencrypt_utils.cpp140 uint32_t idx = ((uint32_t)szOut[i] % M); in MbedtlsGenRandomStr() local
142 if (idx < NUMBER_COUNT) { in MbedtlsGenRandomStr()
144 } else if (idx >= NUMBER_COUNT && idx < (NUMBER_COUNT + ALPHA_COUNT)) { in MbedtlsGenRandomStr()
146 idx -= NUMBER_COUNT; in MbedtlsGenRandomStr()
149 idx -= (NUMBER_COUNT + ALPHA_COUNT); in MbedtlsGenRandomStr()
151 szOut[i] = base + idx; in MbedtlsGenRandomStr()
/foundation/communication/dsoftbus/core/bus_center/utils/src/
Dlnn_map.c55 uint32_t idx = MapHashIdx(map, node->hash); in MapAddNode() local
56 node->next = map->nodes[idx]; in MapAddNode()
57 map->nodes[idx] = node; in MapAddNode()
140 uint32_t idx = MapHashIdx(map, hash); in LnnMapSet() local
141 node = map->nodes[idx]; in LnnMapSet()
193 uint32_t idx = MapHashIdx(map, hash); in LnnMapGet() local
194 MapNode *node = map->nodes[idx]; in LnnMapGet()
220 uint32_t idx = MapHashIdx(map, hash); in LnnMapErase() local
221 MapNode *node = map->nodes[idx]; in LnnMapErase()
226 if (map->nodes[idx] == node) { in LnnMapErase()
[all …]
/foundation/ace/ace_engine/frameworks/core/components_v2/list/
Dlist_element.cpp81 for (size_t idx = begin; idx > end; --idx) { in FindPreviousStickyListItem() local
82 auto component = GetComponentByIndex(idx - 1); in FindPreviousStickyListItem()
89 return idx - 1; in FindPreviousStickyListItem()
/foundation/aafwk/standard/frameworks/kits/ability/ability_runtime/test/unittest/
Dlocal_call_container_ut_test.cpp225 string::size_type idx; variable
226 idx = resultReceiver.find("REQUESTEND");
227 EXPECT_TRUE(idx != string::npos);
249 std::string::size_type idx; variable
250 idx = resultReceiver.find("REQUESTING");
251 EXPECT_FALSE(idx != string::npos);
257 idx = resultReceiver.find("REQUESTING");
258 EXPECT_TRUE(idx != string::npos);
279 std::string::size_type idx; variable
280 idx = resultReceiver.find("REQUESTEND");
[all …]
/foundation/aafwk/standard/frameworks/kits/base/cpp/src/ohos/aafwk/base/
Dint_wrapper.cpp57 std::size_t idx; in Parse() local
58 int value = std::stoi(str, &idx); in Parse()
59 if (idx != 0) { in Parse()
Dlong_wrapper.cpp57 std::size_t idx; in Parse() local
58 long value = std::stol(str, &idx); in Parse()
59 if (idx != 0) { in Parse()
Dfloat_wrapper.cpp57 std::size_t idx; in Parse() local
58 float value = std::stof(str, &idx); in Parse()
59 if (idx != 0) { in Parse()
Ddouble_wrapper.cpp57 std::size_t idx; in Parse() local
58 double value = std::stod(str, &idx); in Parse()
59 if (idx != 0) { in Parse()

123456