Home
last modified time | relevance | path

Searched refs:index (Results 701 - 725 of 11953) sorted by relevance

1...<<21222324252627282930>>...479

/foundation/arkui/ace_engine_lite/frameworks/src/core/context/
H A Djs_timer_list.cpp31 uint8_t index = GetIndex(); in AddTimer() local
32 timer->index = index; in AddTimer()
35 arg->index = index; in AddTimer()
39 return jerry_create_number(index); in AddTimer()
46 if (current->index == id) { in GetTimer()
61 while ((timer != current->index) && (current->next != nullptr)) { in DeleteTimer()
65 if (timer == current->index) { in DeleteTimer()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dpatch_parser.cpp66 for (size_t index = 0; index < filePaths.size(); ++index) { in ParsePatchInfo()
68 ErrCode result = ParsePatchInfo(filePaths[index], appQuickFix); in ParsePatchInfo()
73 appQuickFixes.emplace(filePaths[index], appQuickFix); in ParsePatchInfo()
97 for (size_t index = 0; index < filePaths.size(); ++index) { in HasResourceFile()
98 if (HasResourceFile(filePaths[index])) { in HasResourceFile()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_program.cpp77 bool WebGLProgram::AttachShader(uint32_t index, uint32_t shaderId) in AttachShader() argument
82 if (index >= (sizeof(attachedShader_) / sizeof(attachedShader_[0]))) { in AttachShader()
85 if (attachedShader_[index]) { in AttachShader()
88 attachedShader_[index] = shaderId; in AttachShader()
92 bool WebGLProgram::DetachShader(uint32_t index, uint32_t shaderId) in DetachShader() argument
97 if (index >= (sizeof(attachedShader_) / sizeof(attachedShader_[0]))) { in DetachShader()
100 if (attachedShader_[index] && attachedShader_[index] == shaderId) { in DetachShader()
101 attachedShader_[index] = 0; in DetachShader()
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/swiper/
H A Dswiper_index_test.cpp23 int32_t index = 2; in TestSwiperIndex001() local
24 ArkUI_NumberValue value[] = {{.i32 = index}}; in TestSwiperIndex001()
28 ASSERT_EQ(nodeAPI->getAttribute(swiper, NODE_SWIPER_INDEX)->value[PARAM_0].i32, index); in TestSwiperIndex001()
35 int32_t index = 10000; in TestSwiperIndex002() local
36 ArkUI_NumberValue value[] = {{.i32 = index}}; in TestSwiperIndex002()
40 ASSERT_EQ(nodeAPI->getAttribute(swiper, NODE_SWIPER_INDEX)->value[PARAM_0].i32, index); in TestSwiperIndex002()
47 int32_t index = -1; in TestSwiperIndex003() local
48 ArkUI_NumberValue value[] = {{.i32 = index}}; in TestSwiperIndex003()
53 ASSERT_NE(nodeAPI->getAttribute(swiper, NODE_SWIPER_INDEX)->value[PARAM_0].i32, index); in TestSwiperIndex003()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCalendarCache.java50 int index = findIndex(key); in put()
52 keys[index] = key; in put()
53 values[index] = value; in put()
58 int index = hash(key); in findIndex()
61 while (values[index] != EMPTY && keys[index] != key) in findIndex()
66 index = (index + delta) % arraySize; in findIndex()
68 return index; in findIndex()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DCalendarCache.java52 int index = findIndex(key); in put()
54 keys[index] = key; in put()
55 values[index] = value; in put()
60 int index = hash(key); in findIndex()
63 while (values[index] != EMPTY && keys[index] != key) in findIndex()
68 index = (index + delta) % arraySize; in findIndex()
70 return index; in findIndex()
/third_party/jerryscript/tests/jerry/
H A Darray-prototype-indexof.js18 var index = array.indexOf("foo"); variable
19 assert(index === 0);
20 assert(array[index] === "foo");
25 var index = array.indexOf("baz"); variable
26 assert(index === 6);
27 assert(array[index] === "baz");
31 var index = array.indexOf(obj); variable
32 assert(index === 3);
33 assert(array[index] === obj);
45 // Checking behavior when start index >
[all...]
H A Darray-prototype-lastindexof.js20 var index = array.lastIndexOf("foo"); variable
21 assert(index === 4);
22 assert(array[index] === "foo");
27 var index = array.lastIndexOf("baz"); variable
28 assert(index === 6);
29 assert(array[index] === "baz");
33 var index = array.lastIndexOf(obj); variable
34 assert(index === 3);
35 assert(array[index] === obj);
/third_party/node/test/parallel/
H A Dtest-net-server-max-connections.js48 function makeConnection(index) {
53 if (index + 1 < N) {
54 makeConnection(index + 1);
58 console.error(`closed ${index}`);
63 server.maxConnections <= index,
64 `${index} should not have been one of the first closed connections`
77 if (index < server.maxConnections) {
79 `${index} didn't get data, but should have`);
82 `${index} got data, but shouldn't have`);
100 console.error(`error ${index}
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dtransformfeedback.h56 GLuint index, struct gl_buffer_object *bufObj,
62 GLuint index,
92 struct gl_transform_feedback_object *tfObj, GLuint index, in _mesa_set_transform_feedback_binding()
96 _mesa_reference_buffer_object(ctx, &tfObj->Buffers[index], bufObj); in _mesa_set_transform_feedback_binding()
98 tfObj->BufferNames[index] = bufObj ? bufObj->Name : 0; in _mesa_set_transform_feedback_binding()
99 tfObj->Offset[index] = offset; in _mesa_set_transform_feedback_binding()
100 tfObj->RequestedSize[index] = size; in _mesa_set_transform_feedback_binding()
109 GLuint index, struct gl_buffer_object *bufObj, in _mesa_bind_buffer_range_xfb()
123 _mesa_set_transform_feedback_binding(ctx, obj, index, bufObj, offset, size); in _mesa_bind_buffer_range_xfb()
91 _mesa_set_transform_feedback_binding(struct gl_context *ctx, struct gl_transform_feedback_object *tfObj, GLuint index, struct gl_buffer_object *bufObj, GLintptr offset, GLsizeiptr size) _mesa_set_transform_feedback_binding() argument
107 _mesa_bind_buffer_range_xfb(struct gl_context *ctx, struct gl_transform_feedback_object *obj, GLuint index, struct gl_buffer_object *bufObj, GLintptr offset, GLsizeiptr size) _mesa_bind_buffer_range_xfb() argument
/third_party/mesa3d/src/panfrost/shared/
H A Dpan_minmax_cache.c28 * slices (start, start + count) of the index buffer at drawtime. As this can
38 * by index.
73 unsigned index = 0; in panfrost_minmax_cache_add() local
79 index = cache->index++; in panfrost_minmax_cache_add()
80 cache->index = cache->index % PANFROST_MINMAX_SIZE; in panfrost_minmax_cache_add()
82 index = cache->size++; in panfrost_minmax_cache_add()
85 cache->keys[index] = ht_key; in panfrost_minmax_cache_add()
86 cache->values[index] in panfrost_minmax_cache_add()
[all...]
/third_party/skia/tests/
H A DPathOpsDRectTest.cpp45 size_t index; in DEF_TEST() local
47 for (index = 0; index < quadTests_count; ++index) { in DEF_TEST()
48 const QuadPts& q = quadTests[index]; in DEF_TEST()
61 for (index = 0; index < cubicTests_count; ++index) { in DEF_TEST()
62 const CubicPts& c = cubicTests[index]; in DEF_TEST()
H A DPathOpsConicLineIntersectionTest.cpp75 for (size_t index = 0; index < oneOffs_count; ++index) { in testOneOffs()
76 const ConicPts& c = oneOffs[index].conic; in testOneOffs()
80 const SkDLine& line = oneOffs[index].line; in testOneOffs()
102 for (size_t index = 0; index < lineConicTests_count; ++index) { in DEF_TEST()
103 int iIndex = static_cast<int>(index); in DEF_TEST()
104 const ConicPts& c = lineConicTests[index] in DEF_TEST()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Dtab_content_element.cpp32 tabContent->RegisterCallback([weakTabContentElement = AceType::WeakClaim(this)](int32_t index) { in CreateRenderNode()
35 tabContent->ChangeByContent(index); in CreateRenderNode()
38 tabContent->RegisterRequireCallback([weakTabContentElement = AceType::WeakClaim(this)](int32_t index) { in CreateRenderNode()
41 tabContent->PrepareContent(index); in CreateRenderNode()
78 void TabContentElement::ChangeByContent(int32_t index) in ChangeByContent() argument
81 controller_->SetIndexByScrollContent(index); in ChangeByContent()
83 lastIndex_ = index; in ChangeByContent()
87 void TabContentElement::ChangeByBar(int32_t index, bool isFromController) in ChangeByBar() argument
89 newBarIndex_ = index; in ChangeByBar()
94 void TabContentElement::ChangeDispatch(int32_t index) in ChangeDispatch() argument
102 PrepareContent(int32_t index) PrepareContent() argument
[all...]
/foundation/arkui/ui_lite/frameworks/components/
H A Dtext_adapter.cpp60 UIView* TextAdapter::GetView(UIView* inView, int16_t index) in GetView() argument
62 UILabel* newView = GetTextView(inView, index); in GetView()
74 newView->SetViewIndex(index); in GetView()
84 UILabel* TextAdapter::GetTextView(UIView* inView, int16_t index) in GetTextView() argument
88 return GetDynamicText(inView, index); in GetTextView()
90 return GetIntegerText(inView, index); in GetTextView()
96 UILabel* TextAdapter::GetDynamicText(UIView* inView, int16_t index) in GetDynamicText() argument
98 if (dynamicText_.IsEmpty() || (index > dynamicText_.Size() - 1) || (index < 0)) { in GetDynamicText()
103 for (int16_t i = 0; i < index; in GetDynamicText()
119 GetIntegerText(UIView* inView, int16_t index) GetIntegerText() argument
[all...]
/test/testfwk/arkxtest/uitest/core/
H A Ddump_handler.cpp29 static string_view GetMiddleStr(string_view str, size_t &index, string_view startStr, string_view endStr) in GetMiddleStr() argument
31 size_t ori = index; in GetMiddleStr()
32 auto begin = str.find(startStr, index); in GetMiddleStr()
34 index = begin + startStr.size(); in GetMiddleStr()
35 auto end = str.find(endStr, index); in GetMiddleStr()
37 string_view result = str.substr(index, end - index); in GetMiddleStr()
38 index = end; in GetMiddleStr()
42 index = ori; in GetMiddleStr()
56 static void DFSMarshalWidget(std::vector<Widget> &allWidget, int index, nlohman argument
91 AddExtraAttrs(nlohmann::json &root, const map<int32_t, string_view> &elementTrees, size_t index) AddExtraAttrs() argument
[all...]
/test/xts/acts/telephony/telephone/telephonyNDKTest/entry/src/main/cpp/
H A Dtelephony_ndk_test.cpp51 static int32_t TestCaseOHTelephonyGetNetworkStateForSlotParam(uint32_t index) in TestCaseOHTelephonyGetNetworkStateForSlotParam() argument
56 if (index == CASE_INDEX_1) { in TestCaseOHTelephonyGetNetworkStateForSlotParam()
58 } else if (index == CASE_INDEX_2) { in TestCaseOHTelephonyGetNetworkStateForSlotParam()
60 } else if (index == CASE_INDEX_3) { in TestCaseOHTelephonyGetNetworkStateForSlotParam()
62 } else if (index == CASE_INDEX_4) { in TestCaseOHTelephonyGetNetworkStateForSlotParam()
64 } else if (index == CASE_INDEX_5) { in TestCaseOHTelephonyGetNetworkStateForSlotParam()
77 int32_t index; in OHTelephonyGetNetworkStateForSlotParam() local
78 napi_get_value_int32(env, args[0], &index); in OHTelephonyGetNetworkStateForSlotParam()
81 ret = TestCaseOHTelephonyGetNetworkStateForSlotParam(index); in OHTelephonyGetNetworkStateForSlotParam()
87 static int32_t TestCaseOHTelephonyGetNetworkStateParam(uint32_t index) in TestCaseOHTelephonyGetNetworkStateParam() argument
107 int32_t index; OHTelephonyGetNetworkStateParam() local
[all...]
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hdr/
H A Dhdr_helper.cpp655 static void ParseISOExtendInfoMain(uint8_t* data, uint32_t& offset, ExtendInfoMain& info, uint8_t index) in ParseISOExtendInfoMain() argument
657 if (index > INDEX_TWO) { in ParseISOExtendInfoMain()
671 info.gainMapMin[index] = EMPTY_SIZE; in ParseISOExtendInfoMain()
673 info.gainMapMin[index] = (float)minGainmapNumerator / (float)minGainmapDenominator; in ParseISOExtendInfoMain()
677 info.gainMapMax[index] = EMPTY_SIZE; in ParseISOExtendInfoMain()
679 info.gainMapMax[index] = (float)maxGainmapNumerator / (float)maxGainmapDenominator; in ParseISOExtendInfoMain()
683 info.gamma[index] = EMPTY_SIZE; in ParseISOExtendInfoMain()
685 info.gamma[index] = (float)gammaNumerator / (float)gammaDenominator; in ParseISOExtendInfoMain()
689 info.baseSdrImageOffset[index] = EMPTY_SIZE; in ParseISOExtendInfoMain()
691 info.baseSdrImageOffset[index] in ParseISOExtendInfoMain()
942 uint32_t index = 0; PackBaseVividMarker() local
975 uint32_t index = 0; PackBaseISOMarker() local
1066 PackExtendMetadata(vector<uint8_t>& bytes, uint32_t& index, HDRVividExtendMetadata& metadata) PackExtendMetadata() argument
1078 PackVividStaticMetadata(vector<uint8_t>& bytes, uint32_t& index, vector<uint8_t>& staticVec) PackVividStaticMetadata() argument
1105 PackVividMetadata(vector<uint8_t>& bytes, uint32_t& index, HdrMetadata& metadata) PackVividMetadata() argument
1138 uint32_t index = 0; PackVividMetadataMarker() local
1211 uint32_t index = 0; PackISOMetadataMarker() local
1248 WriteJpegPreApp(sk_sp<SkData>& imageData, SkWStream& outputStream, uint32_t& index, uint32_t& jfifSize) WriteJpegPreApp() argument
1327 uint32_t index = 0; PackIT35Info() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/epoll/
H A Depoll-ltp.c402 int index = 0; /* multi-use index. First uses are to initialize in test_epoll_ctl() local
405 unsigned int epfd_index; /* index into fd list for the epfd parameter */ in test_epoll_ctl()
406 unsigned int event_index; /* index into event list for the events field of the in test_epoll_ctl()
408 unsigned int fd_index; /* index into fd list for the fd parameter */ in test_epoll_ctl()
409 unsigned int op_index; /* index into the list of operations for the op in test_epoll_ctl()
417 for (index = 0; index < 64; index++) { in test_epoll_ctl()
418 epoll_events[index] in test_epoll_ctl()
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dnode-properties.h63 static Node* GetValueInput(Node* node, int index) { in GetValueInput() argument
64 CHECK_LE(0, index); in GetValueInput()
65 CHECK_LT(index, node->op()->ValueInputCount()); in GetValueInput()
66 return node->InputAt(FirstValueIndex(node) + index); in GetValueInput()
69 static const Node* GetValueInput(const Node* node, int index) { in GetValueInput() argument
70 CHECK_LE(0, index); in GetValueInput()
71 CHECK_LT(index, node->op()->ValueInputCount()); in GetValueInput()
72 return node->InputAt(FirstValueIndex(node) + index); in GetValueInput()
85 static Node* GetEffectInput(Node* node, int index = 0) { in GetEffectInput()
86 CHECK_LE(0, index); in GetEffectInput()
[all...]
/third_party/skia/src/ports/
H A DSkFontMgr_custom.cpp28 bool sysFont, const SkString familyName, int index) in SkTypeface_Custom()
30 , fIsSysFont(sysFont), fFamilyName(familyName), fIndex(index) in SkTypeface_Custom()
91 const SkString familyName, const char path[], int index) in SkTypeface_File()
92 : INHERITED(style, isFixedPitch, sysFont, familyName, index) in SkTypeface_File()
118 int index; in onMakeFontData() local
119 std::unique_ptr<SkStreamAsset> stream(this->onOpenStream(&index)); in onMakeFontData()
123 return std::make_unique<SkFontData>(std::move(stream), index, nullptr, 0); in onMakeFontData()
138 void SkFontStyleSet_Custom::getStyle(int index, SkFontStyle* style, SkString* name) { in getStyle() argument
139 SkASSERT(index < fStyles.count()); in getStyle()
141 *style = fStyles[index] in getStyle()
27 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch, bool sysFont, const SkString familyName, int index) SkTypeface_Custom() argument
90 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont, const SkString familyName, const char path[], int index) SkTypeface_File() argument
[all...]
/foundation/multimedia/av_codec/services/services/codec/client/
H A Dcodec_client.cpp296 int32_t CodecClient::QueueInputBuffer(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag) in QueueInputBuffer() argument
302 int32_t ret = codecProxy_->QueueInputBuffer(index, info, flag); in QueueInputBuffer()
303 EXPECT_AND_LOGD(ret == AVCS_ERR_OK, "Succeed. index:%{public}u", index); in QueueInputBuffer()
307 int32_t CodecClient::QueueInputBuffer(uint32_t index) in QueueInputBuffer() argument
314 int32_t ret = codecProxy_->QueueInputBuffer(index); in QueueInputBuffer()
315 EXPECT_AND_LOGD(ret == AVCS_ERR_OK, "Succeed. index:%{public}u", index); in QueueInputBuffer()
319 int32_t CodecClient::QueueInputParameter(uint32_t index) in QueueInputParameter() argument
326 int32_t ret = codecProxy_->QueueInputParameter(index); in QueueInputParameter()
360 ReleaseOutputBuffer(uint32_t index, bool render) ReleaseOutputBuffer() argument
371 RenderOutputBufferAtTime(uint32_t index, int64_t renderTimestampNs) RenderOutputBufferAtTime() argument
540 OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) OnInputBufferAvailable() argument
546 OnOutputBufferAvailable(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, std::shared_ptr<AVSharedMemory> buffer) OnOutputBufferAvailable() argument
553 OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnInputBufferAvailable() argument
559 OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnOutputBufferAvailable() argument
565 OnInputParameterAvailable(uint32_t index, std::shared_ptr<Format> parameter) OnInputParameterAvailable() argument
571 OnInputParameterWithAttrAvailable(uint32_t index, std::shared_ptr<Format> attribute, std::shared_ptr<Format> parameter) OnInputParameterWithAttrAvailable() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_qir.c169 c->input_slots[inst->src[i].index].slot == 0xff) { in qir_has_side_effect_reads()
419 fprintf(stderr, "0x%08x (%f)", reg.index, uif(reg.index)); in qir_print_reg()
423 if ((int)reg.index >= -16 && (int)reg.index <= 15) in qir_print_reg()
424 fprintf(stderr, "%d", reg.index); in qir_print_reg()
426 fprintf(stderr, "%f", uif(reg.index)); in qir_print_reg()
434 reg.index / 4, reg.index % 4); in qir_print_reg()
451 char *desc = qir_describe_uniform(c->uniform_contents[reg.index], in qir_print_reg()
[all...]
/third_party/skia/src/pathops/
H A DSkOpAngle.cpp222 for (int index = 1; index <= iMax; ++index) { in lineOnOneSide()
223 double xy1 = line.fX * (testCurve[index].fY - origin.fY); in lineOnOneSide()
224 double xy2 = line.fY * (testCurve[index].fX - origin.fX); in lineOnOneSide()
225 crosses[index - 1] = AlmostBequalUlps(xy1, xy2) ? 0 : xy1 - xy2; in lineOnOneSide()
271 for (int index = 0; index < 2; ++index) { in linesOnOriginalSide()
272 SkDVector testLine = testCurve[index] in linesOnOriginalSide()
1021 int index; setSpans() local
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/pages/timer/setInterval02/
H A Dindex.js17 var index = 0; variable
21 index:0},
24 if(index >5) {
28 index ++;
29 this.index = index;
32 goPrevious:routePage("/pages/timer/setTimeout01/index").changePage,
34 goNext:routePage("/pages/timer/setTimeout03/index").changePage

Completed in 13 milliseconds

1...<<21222324252627282930>>...479