/third_party/skia/tests/ |
H A D | PathOpsCubicQuadIntersectionTest.cpp | 54 static void cubicQuadIntersection(skiatest::Reporter* reporter, int index) { in cubicQuadIntersection() argument 55 int iIndex = static_cast<int>(index); in cubicQuadIntersection() 56 const CubicPts& c = quadCubicTests[index].cubic; in cubicQuadIntersection() 60 const QuadPts& q = quadCubicTests[index].quad; in cubicQuadIntersection() 93 for (int index = 0; index < quadCubicTests_count; ++index) { in DEF_TEST() 94 cubicQuadIntersection(reporter, index); in DEF_TEST()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/data/ |
H A D | memory_byte_array.cc | 51 void MemoryByteArray::InternalPut(int32_t index, uint8_t b) { in InternalPut() argument 53 b_[index] = b; in InternalPut() 56 int32_t MemoryByteArray::InternalPut(int32_t index, in InternalPut() argument 62 memcpy(b_ + index, b + offset, length); in InternalPut() 66 uint8_t MemoryByteArray::InternalGet(int32_t index) { in InternalGet() argument 68 return b_[index]; in InternalGet() 71 int32_t MemoryByteArray::InternalGet(int32_t index, in InternalGet() argument 77 memcpy(b + offset, b_ + index, length); in InternalGet()
|
/third_party/skia/tools/ |
H A D | embed_resources.py | 51 index = 0 variable 54 .format(index, args.align)) 66 .format(index, bytes_written)) 67 index += 1 72 index = 0 variable 74 out(' {{ resource{0:d}, resource{0:d}_size }},\n'.format(index)) 75 index += 1 77 out('static const int header_count = {0:d};\n'.format(index))
|
H A D | random_parse_path.cpp | 39 int index = rand->nextRangeU(0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1); in add_white() local 40 if (gWhiteSpace[index]) { in add_white() 41 atom->append(&gWhiteSpace[index], 1); in add_white() 77 for (int index = 0; index < legal.fScalars; ++index) { in MakeRandomParsePathPiece() 81 if (rep < reps - 1 && index < legal.fScalars - 1) { in MakeRandomParsePathPiece() 86 if ('A' == legal.fSymbol && 1 == index) { in MakeRandomParsePathPiece()
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuFactoryRegistry.hpp | 57 AbstractFactory* getFactoryByIndex (size_t index); 58 const AbstractFactory* getFactoryByIndex (size_t index) const; 97 Factory* getFactoryByIndex (size_t index); 98 const Factory* getFactoryByIndex (size_t index) const; 120 inline Factory* FactoryRegistry<Factory>::getFactoryByIndex (size_t index) in getFactoryByIndex() argument 122 return static_cast<Factory*>(m_registry.getFactoryByIndex(index)); in getFactoryByIndex() 126 inline const Factory* FactoryRegistry<Factory>::getFactoryByIndex (size_t index) const in getFactoryByIndex() 128 return static_cast<const Factory*>(m_registry.getFactoryByIndex(index)); in getFactoryByIndex()
|
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-zydacron.c | 115 unsigned short index; in zc_raw_event() local 120 for (index = 0; index < 4; index++) { in zc_raw_event() 121 key = zc->last_key[index]; in zc_raw_event() 124 zc->last_key[index] = 0; in zc_raw_event() 135 index = 0; in zc_raw_event() 139 index = 1; in zc_raw_event() 143 index = 2; in zc_raw_event() 147 index in zc_raw_event() [all...] |
/kernel/linux/linux-5.10/tools/perf/ui/browsers/ |
H A D | scripts.c | 29 int index; member 52 c->names[c->index] = name; in add_script_option() 53 if (asprintf(&c->paths[c->index], in add_script_option() 58 c->index++; in add_script_option() 68 if (c->index >= SCRIPT_MAX_NO) in scripts_config() 70 c->names[c->index] = strdup(var + 7); in scripts_config() 71 if (!c->names[c->index]) in scripts_config() 73 if (asprintf(&c->paths[c->index], "%s %s", value, in scripts_config() 76 c->index++; in scripts_config() 115 custom_perf = scriptc.index; in list_scripts() [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-zydacron.c | 115 unsigned short index; in zc_raw_event() local 120 for (index = 0; index < 4; index++) { in zc_raw_event() 121 key = zc->last_key[index]; in zc_raw_event() 124 zc->last_key[index] = 0; in zc_raw_event() 135 index = 0; in zc_raw_event() 139 index = 1; in zc_raw_event() 143 index = 2; in zc_raw_event() 147 index in zc_raw_event() [all...] |
/kernel/linux/linux-6.6/tools/perf/ui/browsers/ |
H A D | scripts.c | 29 int index; member 52 c->names[c->index] = name; in add_script_option() 53 if (asprintf(&c->paths[c->index], in add_script_option() 58 c->index++; in add_script_option() 68 if (c->index >= SCRIPT_MAX_NO) in scripts_config() 70 c->names[c->index] = strdup(var + 7); in scripts_config() 71 if (!c->names[c->index]) in scripts_config() 73 if (asprintf(&c->paths[c->index], "%s %s", value, in scripts_config() 76 c->index++; in scripts_config() 115 custom_perf = scriptc.index; in list_scripts() [all...] |
/third_party/mesa3d/src/broadcom/compiler/ |
H A D | vir_opt_copy_propagate.c | 71 switch (inst->src[0].index) { in is_copy_mov() 82 switch (inst->src[0].index) { in is_copy_mov() 136 struct qinst *mov = movs[inst->src[i].index]; in try_copy_prop() 138 if (!is_copy_mov(c->defs[inst->src[i].index])) in try_copy_prop() 140 mov = c->defs[inst->src[i].index]; in try_copy_prop() 143 !c->defs[mov->src[0].index]) in try_copy_prop() 217 (movs[i]->dst.index == inst->dst.index || in apply_kills() 219 movs[i]->src[0].index == inst->dst.index))) { in apply_kills() [all...] |
/third_party/icu/icu4c/source/samples/layout/ |
H A D | cmaps.cpp | 136 le_uint16 index = 0; in unicodeToGlyph() local 141 index = fRangeShift; in unicodeToGlyph() 147 if (SWAPU16(fStartCodes[index + probe]) <= unicode) { in unicodeToGlyph() 148 index += probe; in unicodeToGlyph() 152 if (unicode >= SWAPU16(fStartCodes[index]) && unicode <= SWAPU16(fEndCodes[index])) { in unicodeToGlyph() 153 if (fIdRangeOffset[index] == 0) { in unicodeToGlyph() 156 le_uint16 offset = unicode - SWAPU16(fStartCodes[index]); in unicodeToGlyph() 157 le_uint16 rangeOffset = SWAPW(fIdRangeOffset[index]); in unicodeToGlyph() 158 le_uint16 *glyphIndexTable = (le_uint16 *) ((char *) &fIdRangeOffset[index] in unicodeToGlyph() [all...] |
/third_party/skia/src/core/ |
H A D | SkPictureData.h | 72 int index = reader->readInt(); in read_index_base_1_or_null() local 73 return reader->validate(index > 0 && index <= array.count()) ? array[index - 1].get() : nullptr; in read_index_base_1_or_null() 101 const int index = reader->readInt(); in getImage() local 102 return reader->validateIndex(index, fImages.count()) ? fImages[index].get() : nullptr; in getImage() 106 int index = reader->readInt(); in getPath() local 107 return reader->validate(index > 0 && index < in getPath() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | available_instructions.cpp | 123 uint32_t index) const { in operator []() 124 assert(index < size() && "Index out of bounds."); in operator []() 128 auto cached_result = index_cache.find(index); in operator []() 133 // Next check whether the index falls into the global region. in operator []() 134 if (index < available_instructions_.available_globals_.size()) { in operator []() 135 auto result = available_instructions_.available_globals_[index]; in operator []() 136 index_cache.insert({index, result}); in operator []() 143 // Next check whether the index falls into the available instructions that in operator []() 145 if (index < in operator []() 149 function)[index in operator []() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | available_instructions.cpp | 123 uint32_t index) const { in operator []() 124 assert(index < size() && "Index out of bounds."); in operator []() 128 auto cached_result = index_cache.find(index); in operator []() 133 // Next check whether the index falls into the global region. in operator []() 134 if (index < available_instructions_.available_globals_.size()) { in operator []() 135 auto result = available_instructions_.available_globals_[index]; in operator []() 136 index_cache.insert({index, result}); in operator []() 143 // Next check whether the index falls into the available instructions that in operator []() 145 if (index < in operator []() 149 function)[index in operator []() [all...] |
/third_party/skia/third_party/externals/icu/source/samples/layout/ |
H A D | cmaps.cpp | 136 le_uint16 index = 0; in unicodeToGlyph() local 141 index = fRangeShift; in unicodeToGlyph() 147 if (SWAPU16(fStartCodes[index + probe]) <= unicode) { in unicodeToGlyph() 148 index += probe; in unicodeToGlyph() 152 if (unicode >= SWAPU16(fStartCodes[index]) && unicode <= SWAPU16(fEndCodes[index])) { in unicodeToGlyph() 153 if (fIdRangeOffset[index] == 0) { in unicodeToGlyph() 156 le_uint16 offset = unicode - SWAPU16(fStartCodes[index]); in unicodeToGlyph() 157 le_uint16 rangeOffset = SWAPW(fIdRangeOffset[index]); in unicodeToGlyph() 158 le_uint16 *glyphIndexTable = (le_uint16 *) ((char *) &fIdRangeOffset[index] in unicodeToGlyph() [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
H A D | byte_array_test.cc | 37 int32_t index = 0; in ReadByteArrayWithBuffer() local 38 while (index < ba->Length()) { in ReadByteArrayWithBuffer() 39 int32_t bytes_read = ba->Get(index, buffer); in ReadByteArrayWithBuffer() 41 b->begin() + index); in ReadByteArrayWithBuffer() 42 index += bytes_read; in ReadByteArrayWithBuffer() 49 int32_t index = 0; in ReadByteArrayWithSlidingWindow() local 51 while (index < ba->Length()) { in ReadByteArrayWithSlidingWindow() 53 std::min<int32_t>(actual_window_size, b->size() - index); in ReadByteArrayWithSlidingWindow() 54 int32_t bytes_read = ba->Get(index, &((*b)[0]), index, actual_window_siz in ReadByteArrayWithSlidingWindow() [all...] |
/third_party/spirv-tools/source/fuzz/ |
H A D | available_instructions.cpp | 123 uint32_t index) const { in operator []() 124 assert(index < size() && "Index out of bounds."); in operator []() 128 auto cached_result = index_cache.find(index); in operator []() 133 // Next check whether the index falls into the global region. in operator []() 134 if (index < available_instructions_.available_globals_.size()) { in operator []() 135 auto result = available_instructions_.available_globals_[index]; in operator []() 136 index_cache.insert({index, result}); in operator []() 143 // Next check whether the index falls into the available instructions that in operator []() 145 if (index < in operator []() 149 function)[index in operator []() [all...] |
/third_party/spirv-tools/test/ |
H A D | text_advance_test.cpp | 30 ASSERT_EQ(2u, data.position().index); in TEST() 39 ASSERT_EQ(4u, data.position().index); in TEST() 48 ASSERT_EQ(3u, data.position().index); in TEST() 57 ASSERT_EQ(5u, data.position().index); in TEST() 66 ASSERT_EQ(14u, data.position().index); in TEST() 86 EXPECT_EQ(9u, data.position().index); in TEST() 110 EXPECT_EQ(1u, pos.index); in TEST() 117 EXPECT_EQ(3u, pos.index); in TEST() 124 EXPECT_EQ(2u, pos.index); in TEST() 131 EXPECT_EQ(4u, pos.index); in TEST() [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | get.c | 1564 * We hash the enum value to get an index into the 'table' array, 1565 * which holds the index in the 'values' array of struct value_desc. 1594 /* We index into the table_set[] list of per-API hash tables using the API's in find_value() 1613 /* If the enum isn't valid, the hash walk ends with index 0, in find_value() 1644 unsigned index = ctx->Texture.CurrentUnit; in find_value() local 1645 *p = ((char *)&ctx->Texture.FixedFuncUnit[index] + d->offset); in find_value() 2455 * into the corresponding Mesa texture target index. 2501 find_value_indexed(const char *func, GLenum pname, GLuint index, union value *v) in find_value_indexed() argument 2509 if (index >= ctx->Const.MaxDrawBuffers) in find_value_indexed() 2513 v->value_int = (ctx->Color.BlendEnabled >> index) in find_value_indexed() 2987 _mesa_GetBooleani_v( GLenum pname, GLuint index, GLboolean *params ) _mesa_GetBooleani_v() argument 3014 _mesa_GetIntegeri_v( GLenum pname, GLuint index, GLint *params ) _mesa_GetIntegeri_v() argument 3072 _mesa_GetInteger64i_v( GLenum pname, GLuint index, GLint64 *params ) _mesa_GetInteger64i_v() argument 3106 _mesa_GetFloati_v(GLenum pname, GLuint index, GLfloat *params) _mesa_GetFloati_v() argument 3207 _mesa_GetDoublei_v(GLenum pname, GLuint index, GLdouble *params) _mesa_GetDoublei_v() argument 3308 _mesa_GetUnsignedBytei_vEXT(GLenum target, GLuint index, GLubyte *data) _mesa_GetUnsignedBytei_vEXT() argument [all...] |
/test/xts/acts/multimedia/av_codec/audio_encoder/src/ |
H A D | status_check_test.cpp | 97 uint32_t index; in HWTEST_F() local 100 index = audioBufferAacEncDemo->GetInputIndex(); in HWTEST_F() 101 result0 = audioBufferAacEncDemo->PushInputData(codec, index); in HWTEST_F() 116 uint32_t index; in HWTEST_F() local 119 index = audioBufferAacEncDemo->GetInputIndex(); in HWTEST_F() 120 result0 = audioBufferAacEncDemo->PushInputDataEOS(codec, index); in HWTEST_F() 268 uint32_t index; in HWTEST_F() local 276 index = audioBufferAacEncDemo->GetInputIndex(); in HWTEST_F() 277 result0 = audioBufferAacEncDemo->PushInputData(codec, index); in HWTEST_F() 299 uint32_t index; in HWTEST_F() local 509 uint32_t index; HWTEST_F() local 542 uint32_t index; HWTEST_F() local 698 uint32_t index; HWTEST_F() local 734 uint32_t index; HWTEST_F() local 769 uint32_t index; HWTEST_F() local 805 uint32_t index; HWTEST_F() local 842 uint32_t index; HWTEST_F() local 877 uint32_t index; HWTEST_F() local 912 uint32_t index; HWTEST_F() local 947 uint32_t index; HWTEST_F() local 981 uint32_t index; HWTEST_F() local 1017 uint32_t index; HWTEST_F() local 1052 uint32_t index; HWTEST_F() local 1088 uint32_t index; HWTEST_F() local 1125 uint32_t index; HWTEST_F() local 1160 uint32_t index; HWTEST_F() local 1195 uint32_t index; HWTEST_F() local 1230 uint32_t index; HWTEST_F() local 1332 uint32_t index; HWTEST_F() local 1367 uint32_t index; HWTEST_F() local 1601 uint32_t index; HWTEST_F() local 1636 uint32_t index; HWTEST_F() local 1842 uint32_t index; HWTEST_F() local 1863 uint32_t index; HWTEST_F() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_atomfirmware.c | 49 int index; in amdgpu_atomfirmware_query_firmware_capability() local 55 index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1, in amdgpu_atomfirmware_query_firmware_capability() 59 index, &size, &frev, &crev, &data_offset)) { in amdgpu_atomfirmware_query_firmware_capability() 89 int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1, in amdgpu_atomfirmware_scratch_regs_init() local 93 if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context, index, NULL, in amdgpu_atomfirmware_scratch_regs_init() 175 int index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1, in amdgpu_atomfirmware_allocate_fb_scratch() local 183 if (amdgpu_atom_parse_data_header(ctx, index, NULL, &frev, &crev, &data_offset)) { in amdgpu_atomfirmware_allocate_fb_scratch() 298 int index, i = 0; in amdgpu_atomfirmware_get_vram_info() local 311 index = get_index_into_master_table(atom_master_list_of_data_tables_v2_1, in amdgpu_atomfirmware_get_vram_info() 314 index in amdgpu_atomfirmware_get_vram_info() 499 int index; amdgpu_atomfirmware_mem_ecc_supported() local 602 int index; amdgpu_atomfirmware_ras_rom_addr() local 663 int ret = -EINVAL, index; amdgpu_atomfirmware_get_clock_info() local 763 int index; amdgpu_atomfirmware_get_gfx_info() local 852 int index; amdgpu_atomfirmware_get_fw_reserved_fb_size() local 899 int index; amdgpu_atomfirmware_asic_init() local [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | DrawBuffersTest.cpp | 87 for (unsigned int index = 0; index < 8; index++) in setupMRTProgramESSL3() 89 if (bufferEnabled[index]) in setupMRTProgramESSL3() 91 strstr << "layout(location = " << index in setupMRTProgramESSL3() 94 << index << ";\n"; in setupMRTProgramESSL3() local 101 for (unsigned int index = 0; index < 8; index++) in setupMRTProgramESSL3() 103 if (bufferEnabled[index]) in setupMRTProgramESSL3() 179 getColorForIndex(unsigned int index) getColorForIndex() argument 187 verifyAttachment2DColor(unsigned int index, GLuint textureName, GLenum target, GLint level, GLColor color) verifyAttachment2DColor() argument 196 << "index " << index; verifyAttachment2DColor() local 199 verifyAttachment2DUnwritten(unsigned int index, GLuint texture, GLenum target, GLint level) verifyAttachment2DUnwritten() argument 204 verifyAttachment2D(unsigned int index, GLuint texture, GLenum target, GLint level) verifyAttachment2D() argument 209 verifyAttachment3DOES(unsigned int index, GLuint texture, GLint level, GLint layer) verifyAttachment3DOES() argument 218 verifyAttachmentLayer(unsigned int index, GLuint texture, GLint level, GLint layer) verifyAttachmentLayer() argument [all...] |
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | arraymap.c | 178 u32 index = *(u32 *)key; in array_map_lookup_elem() local 180 if (unlikely(index >= array->map.max_entries)) in array_map_lookup_elem() 183 return array->value + array->elem_size * (index & array->index_mask); in array_map_lookup_elem() 224 const int index = BPF_REG_2; in array_map_gen_lookup() local 230 *insn++ = BPF_LDX_MEM(BPF_W, ret, index, 0); in array_map_gen_lookup() 253 u32 index = *(u32 *)key; in percpu_array_map_lookup_elem() local 255 if (unlikely(index >= array->map.max_entries)) in percpu_array_map_lookup_elem() 258 return this_cpu_ptr(array->pptrs[index & array->index_mask]); in percpu_array_map_lookup_elem() 264 u32 index = *(u32 *)key; in bpf_percpu_array_copy() local 269 if (unlikely(index > in bpf_percpu_array_copy() 291 u32 index = key ? *(u32 *)key : U32_MAX; array_map_get_next_key() local 311 u32 index = *(u32 *)key; array_map_update_elem() local 348 u32 index = *(u32 *)key; bpf_percpu_array_update() local 432 u32 index = *(u32 *)key; percpu_array_map_seq_show_elem() local 511 u32 index; global() member 519 u32 index; bpf_array_map_seq_start() local 538 u32 index; bpf_array_map_seq_next() local 744 u32 index = *(u32 *)key, ufd; bpf_fd_array_map_update_elem() local 775 u32 index = *(u32 *)key; fd_array_map_delete_elem() local 1276 const int index = BPF_REG_2; array_of_map_gen_lookup() local [all...] |
/third_party/mesa3d/src/imagination/csbgen/ |
H A D | gen_pack_header.py | 585 idx = types.index(self.type) 704 index = (start + field.start) // 32 705 if index not in dwords: 706 dwords[index] = self.DWord() 711 dwords[index].fields.append(clone) 714 # assert dwords[index].address == None 715 dwords[index].addresses.append(clone) 721 while index < (start + field.end) // 32: 722 if index + 1 in dwords and not dwords[index] [all...] |
/kernel/linux/linux-5.10/kernel/cgroup/ |
H A D | rdma.c | 83 int index, int new_max) in set_resource_limit() 86 if (rpool->resources[index].max != S32_MAX) in set_resource_limit() 89 if (rpool->resources[index].max == S32_MAX) in set_resource_limit() 92 rpool->resources[index].max = new_max; in set_resource_limit() 155 * @index: index of the resource to uncharge in cg (resource pool) 164 enum rdmacg_resource_type index) in uncharge_cg_locked() 180 rpool->resources[index].usage--; in uncharge_cg_locked() 186 WARN_ON_ONCE(rpool->resources[index].usage < 0); in uncharge_cg_locked() 203 * @index 82 set_resource_limit(struct rdmacg_resource_pool *rpool, int index, int new_max) set_resource_limit() argument 162 uncharge_cg_locked(struct rdma_cgroup *cg, struct rdmacg_device *device, enum rdmacg_resource_type index) uncharge_cg_locked() argument 205 rdmacg_uncharge_hierarchy(struct rdma_cgroup *cg, struct rdmacg_device *device, struct rdma_cgroup *stop_cg, enum rdmacg_resource_type index) rdmacg_uncharge_hierarchy() argument 227 rdmacg_uncharge(struct rdma_cgroup *cg, struct rdmacg_device *device, enum rdmacg_resource_type index) rdmacg_uncharge() argument 259 rdmacg_try_charge(struct rdma_cgroup **rdmacg, struct rdmacg_device *device, enum rdmacg_resource_type index) rdmacg_try_charge() argument 397 int index, intval; rdmacg_parse_limits() local [all...] |