/third_party/alsa-utils/axfer/ |
H A D | mapper.c | 3 // mapper.c - an interface of muxer/demuxer between buffer with data frames and 10 #include "mapper.h" 25 int mapper_context_init(struct mapper_context *mapper, in mapper_context_init() argument 31 assert(mapper); in mapper_context_init() 35 assert(mapper->private_data == NULL); in mapper_context_init() 37 memset(mapper, 0, sizeof(*mapper)); in mapper_context_init() 42 mapper->target = MAPPER_TARGET_SINGLE; in mapper_context_init() 45 mapper->target = MAPPER_TARGET_MULTIPLE; in mapper_context_init() 50 mapper in mapper_context_init() 71 mapper_context_pre_process(struct mapper_context *mapper, snd_pcm_access_t access, unsigned int bytes_per_sample, unsigned int samples_per_frame, unsigned int frames_per_buffer, struct container_context *cntrs) mapper_context_pre_process() argument 120 mapper_context_process_frames(struct mapper_context *mapper, void *frame_buffer, unsigned int *frame_count, struct container_context *cntrs) mapper_context_process_frames() argument 135 mapper_context_post_process(struct mapper_context *mapper) mapper_context_post_process() argument 143 mapper_context_destroy(struct mapper_context *mapper) mapper_context_destroy() argument [all...] |
H A D | mapper-single.c | 3 // mapper-single.c - a muxer/demuxer for single containers. 9 #include "mapper.h" 63 static int single_pre_process(struct mapper_context *mapper, in single_pre_process() argument 67 struct single_state *state = mapper->private_data; in single_pre_process() 70 if (cntrs->bytes_per_sample != mapper->bytes_per_sample || in single_pre_process() 71 cntrs->samples_per_frame != mapper->samples_per_frame) in single_pre_process() 75 if (mapper->type == MAPPER_TYPE_DEMUXER) { in single_pre_process() 76 if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED || in single_pre_process() 77 mapper->access == SND_PCM_ACCESS_MMAP_NONINTERLEAVED) in single_pre_process() 79 else if (mapper in single_pre_process() 109 single_muxer_process_frames(struct mapper_context *mapper, void *frame_buf, unsigned int *frame_count, struct container_context *cntrs, unsigned int cntr_count ATTRIBUTE_UNUSED) single_muxer_process_frames() argument 140 single_demuxer_process_frames(struct mapper_context *mapper, void *frame_buf, unsigned int *frame_count, struct container_context *cntrs, unsigned int cntr_count ATTRIBUTE_UNUSED) single_demuxer_process_frames() argument 164 single_post_process(struct mapper_context *mapper) single_post_process() argument [all...] |
H A D | mapper-multiple.c | 3 // mapper-multiple.c - a muxer/demuxer for multiple containers. 9 #include "mapper.h" 74 static int multiple_pre_process(struct mapper_context *mapper, in multiple_pre_process() argument 78 struct multiple_state *state = mapper->private_data; in multiple_pre_process() 86 if (mapper->bytes_per_sample != cntr->bytes_per_sample) in multiple_pre_process() 92 if (mapper->type == MAPPER_TYPE_DEMUXER) { in multiple_pre_process() 93 if (mapper->access == SND_PCM_ACCESS_RW_INTERLEAVED || in multiple_pre_process() 94 mapper->access == SND_PCM_ACCESS_MMAP_INTERLEAVED) in multiple_pre_process() 96 else if (mapper->access == SND_PCM_ACCESS_RW_NONINTERLEAVED || in multiple_pre_process() 97 mapper in multiple_pre_process() 170 multiple_muxer_process_frames(struct mapper_context *mapper, void *frame_buf, unsigned int *frame_count, struct container_context *cntrs, unsigned int cntr_count) multiple_muxer_process_frames() argument 202 multiple_demuxer_process_frames(struct mapper_context *mapper, void *frame_buf, unsigned int *frame_count, struct container_context *cntrs, unsigned int cntr_count) multiple_demuxer_process_frames() argument 226 multiple_post_process(struct mapper_context *mapper) multiple_post_process() argument [all...] |
H A D | mapper.h | 3 // mapper.h - an interface of muxer/demuxer between buffer with data frames and 47 int mapper_context_init(struct mapper_context *mapper, 50 int mapper_context_pre_process(struct mapper_context *mapper, 56 int mapper_context_process_frames(struct mapper_context *mapper, 60 void mapper_context_post_process(struct mapper_context *mapper); 61 void mapper_context_destroy(struct mapper_context *mapper); 63 // For internal use in 'mapper' module. 66 int (*pre_process)(struct mapper_context *mapper, 69 int (*process_frames)(struct mapper_context *mapper, 73 void (*post_process)(struct mapper_context *mapper); [all...] |
H A D | xfer-libasound-irq-rw.c | 17 struct mapper_context *mapper, 58 unsigned int avail_count, struct mapper_context *mapper, in read_frames() 95 err = mapper_context_process_frames(mapper, closure->cache.buf, in read_frames() 110 struct mapper_context *mapper, in r_process_frames_blocking() 145 err = read_frames(state, frame_count, avail_count, mapper, cntrs); in r_process_frames_blocking() 158 struct mapper_context *mapper, in r_process_frames_nonblocking() 191 err = read_frames(state, frame_count, avail_count, mapper, cntrs); in r_process_frames_nonblocking() 203 struct mapper_context *mapper, in write_frames() 220 err = mapper_context_process_frames(mapper, in write_frames() 254 struct mapper_context *mapper, in w_process_frames_blocking() 57 read_frames(struct libasound_state *state, unsigned int *frame_count, unsigned int avail_count, struct mapper_context *mapper, struct container_context *cntrs) read_frames() argument 107 r_process_frames_blocking(struct libasound_state *state, snd_pcm_state_t status, unsigned int *frame_count, struct mapper_context *mapper, struct container_context *cntrs) r_process_frames_blocking() argument 155 r_process_frames_nonblocking(struct libasound_state *state, snd_pcm_state_t status, unsigned int *frame_count, struct mapper_context *mapper, struct container_context *cntrs) r_process_frames_nonblocking() argument 201 write_frames(struct libasound_state *state, unsigned int *frame_count, unsigned int avail_count, struct mapper_context *mapper, struct container_context *cntrs) write_frames() argument 251 w_process_frames_blocking(struct libasound_state *state, snd_pcm_state_t status, unsigned int *frame_count, struct mapper_context *mapper, struct container_context *cntrs) w_process_frames_blocking() argument 315 w_process_frames_nonblocking(struct libasound_state *state, snd_pcm_state_t pcm_state ATTRIBUTE_UNUSED, unsigned int *frame_count, struct mapper_context *mapper, struct container_context *cntrs) w_process_frames_nonblocking() argument 409 irq_rw_process_frames(struct libasound_state *state, unsigned int *frame_count, struct mapper_context *mapper, struct container_context *cntrs) irq_rw_process_frames() argument [all...] |
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/mapper/ |
H A D | AbstractPathValueMapperTest.java | 3 package org.unicode.icu.tool.cldrtoicu.mapper; 29 FakeMapper mapper = new FakeMapper(); in testUngroupedConcatenation() 30 mapper.addUngroupedResult("foo/bar", "one", "two"); in testUngroupedConcatenation() 31 mapper.addUngroupedResult("foo/baz", "other", "path"); in testUngroupedConcatenation() 32 mapper.addUngroupedResult("foo/bar", "three", "four"); in testUngroupedConcatenation() 33 IcuData icuData = mapper.addIcuData("foo"); in testUngroupedConcatenation() 42 FakeMapper mapper = new FakeMapper(); in testGrouping() 43 mapper.addGroupedResult("foo/bar", "one", "two"); in testGrouping() 44 mapper.addGroupedResult("foo/baz", "other", "path"); in testGrouping() 45 mapper in testGrouping() [all...] |
H A D | PluralRangesMapperTest.java | 3 package org.unicode.icu.tool.cldrtoicu.mapper; 5 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralRangesMapperTest.PluralCount.FEW; 6 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralRangesMapperTest.PluralCount.MANY; 7 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralRangesMapperTest.PluralCount.ONE; 8 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralRangesMapperTest.PluralCount.OTHER; 9 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralRangesMapperTest.PluralCount.TWO; 10 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralRangesMapperTest.PluralCount.ZERO;
|
H A D | PluralsMapperTest.java | 3 package org.unicode.icu.tool.cldrtoicu.mapper; 5 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralsMapperTest.PluralCount.FEW; 6 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralsMapperTest.PluralCount.MANY; 7 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralsMapperTest.PluralCount.ONE; 8 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralsMapperTest.PluralCount.OTHER; 9 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralsMapperTest.PluralCount.TWO; 10 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralsMapperTest.PluralCount.ZERO; 11 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralsMapperTest.PluralType.CARDINAL; 12 import static org.unicode.icu.tool.cldrtoicu.mapper.PluralsMapperTest.PluralType.ORDINAL;
|
/third_party/ltp/testscripts/ |
H A D | ltpdmmapper.sh | 22 Note: In order to run this test, you must turn on "device mapper" 25 files (libdevmapper and dmsetup). They are in the device-mapper 67 echo "0 10240 linear " $part1 "0" > ltp-dev-mapper-table1 68 echo "0 100000 linear " $part1 "0" > ltp-dev-mapper-table2 69 echo "0 100000 linear " $part2 "0" > ltp-dev-mapper-table3 70 echo "0 200000 striped 2 16 " $part1 "0" $part2 "0" > ltp-dev-mapper-table4 74 dmsetup create dm-test-1 ltp-dev-mapper-table1 75 dmsetup create dm-test-2 ltp-dev-mapper-table2 76 dmsetup create dm-test-3 ltp-dev-mapper-table3 77 dmsetup create dm-test-4 ltp-dev-mapper [all...] |
/third_party/mesa3d/src/egl/drivers/dri2/ |
H A D | platform_android_mapper.cpp | 43 using android::hardware::graphics::mapper::V4_0::Error; 44 using android::hardware::graphics::mapper::V4_0::IMapper; 48 android::hardware::graphics::mapper::V4_0::IMapper::MetadataType; 51 GetMetadata(android::sp<IMapper> mapper, const native_handle_t *buffer, in GetMetadata() argument 58 auto ret = mapper->get(native_handle, type, in GetMetadata() 71 android::sp<IMapper> mapper, const native_handle_t *buffer) in GetPlaneLayouts() 75 Error error = GetMetadata(mapper, buffer, in GetPlaneLayouts() 99 static android::sp<IMapper> mapper = IMapper::getService(); in mapper_metadata_get_buffer_info() local 101 if (mapper == nullptr) in mapper_metadata_get_buffer_info() 111 auto err = GetMetadata(mapper, bu in mapper_metadata_get_buffer_info() 70 GetPlaneLayouts( android::sp<IMapper> mapper, const native_handle_t *buffer) GetPlaneLayouts() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkBitmapProcState_matrixProcs.cpp | 82 const SkBitmapProcStateAutoMapper mapper(s, x, y); in nofilter_scale() 83 *xy++ = tiley(mapper.fixedY(), s.fPixmap.height() - 1); in nofilter_scale() 84 fx = mapper.fractionalIntX(); in nofilter_scale() 125 const SkBitmapProcStateAutoMapper mapper(s, x, y); in nofilter_affine() 127 SkFractionalInt fx = mapper.fractionalIntX(), in nofilter_affine() 128 fy = mapper.fractionalIntY(), in nofilter_affine() 174 const SkBitmapProcStateAutoMapper mapper(s, x, y); in filter_scale() 177 *xy++ = pack<tiley, extract_low_bits>(mapper.fixedY(), maxY, s.fFilterOneY); in filter_scale() 179 fx = mapper.fractionalIntX(); in filter_scale() 207 const SkBitmapProcStateAutoMapper mapper( in filter_affine() [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | trace_functions.c | 292 struct ftrace_func_mapper *mapper = data; in update_traceon_count() local 325 count = (long *)ftrace_func_mapper_find_ip(mapper, ip); in update_traceon_count() 432 struct ftrace_func_mapper *mapper = data; in ftrace_stacktrace_count() local 441 if (!mapper) { in ftrace_stacktrace_count() 446 count = (long *)ftrace_func_mapper_find_ip(mapper, ip); in ftrace_stacktrace_count() 472 struct ftrace_func_mapper *mapper = data; in update_count() local 475 if (mapper) in update_count() 476 count = (long *)ftrace_func_mapper_find_ip(mapper, ip); in update_count() 511 struct ftrace_func_mapper *mapper = data; in ftrace_probe_print() local 516 if (mapper) in ftrace_probe_print() 568 struct ftrace_func_mapper *mapper = *data; ftrace_count_init() local 584 struct ftrace_func_mapper *mapper = data; ftrace_count_free() local [all...] |
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_functions.c | 448 struct ftrace_func_mapper *mapper = data; in update_traceon_count() local 481 count = (long *)ftrace_func_mapper_find_ip(mapper, ip); in update_traceon_count() 586 struct ftrace_func_mapper *mapper = data; in ftrace_stacktrace_count() local 595 if (!mapper) { in ftrace_stacktrace_count() 600 count = (long *)ftrace_func_mapper_find_ip(mapper, ip); in ftrace_stacktrace_count() 626 struct ftrace_func_mapper *mapper = data; in update_count() local 629 if (mapper) in update_count() 630 count = (long *)ftrace_func_mapper_find_ip(mapper, ip); in update_count() 665 struct ftrace_func_mapper *mapper = data; in ftrace_probe_print() local 670 if (mapper) in ftrace_probe_print() 722 struct ftrace_func_mapper *mapper = *data; ftrace_count_init() local 738 struct ftrace_func_mapper *mapper = data; ftrace_count_free() local [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/src/model/ |
H A D | cloud_config.cpp | 20 SetValue(node[GET_NAME(mapper)], mapper); in Marshal() 26 GetValue(node, GET_NAME(mapper), mapper); in Unmarshal()
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_texture_mapper.cpp | 24 UITextureMapper* mapper = static_cast<UITextureMapper*>(view); in Callback() local 25 mapper->Callback(); in Callback() 30 UITextureMapper& mapper = static_cast<UITextureMapper&>(view); in OnStop() local 31 if (mapper.listener_ != nullptr) { in OnStop() 32 mapper.listener_->OnAnimatorStop(view); in OnStop()
|
/third_party/alsa-utils/axfer/test/ |
H A D | mapper-test.c | 3 // mapper-io.c - a unit test for muxer/demuxer for PCM frames on buffer. 14 #include "../mapper.h" 35 struct mapper_context mapper; member 39 static void test_demuxer(struct mapper_context *mapper, snd_pcm_access_t access, in test_demuxer() argument 50 err = mapper_context_init(mapper, MAPPER_TYPE_DEMUXER, cntr_count, in test_demuxer() 54 err = mapper_context_pre_process(mapper, access, bytes_per_sample, in test_demuxer() 60 err = mapper_context_process_frames(mapper, frame_buffer, in test_demuxer() 65 mapper_context_post_process(mapper); in test_demuxer() 66 mapper_context_destroy(mapper); in test_demuxer() 115 test_demuxer(&trial->mapper, acces in test_demux() 130 test_muxer(struct mapper_context *mapper, snd_pcm_access_t access, unsigned int bytes_per_sample, unsigned int samples_per_frame, unsigned int frames_per_buffer, void *frame_buffer, unsigned int frame_count, struct container_context *cntrs, unsigned int cntr_count, bool verbose) test_muxer() argument [all...] |
/third_party/icu/icu4c/source/test/perf/leperf/ |
H A D | SimpleFontInstance.cpp | 97 LEGlyphID SimpleFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper, le_bool filterZeroWidth) const in mapCharToGlyph() argument 99 return LEFontInstance::mapCharToGlyph(ch, mapper, filterZeroWidth); in mapCharToGlyph() 104 LEGlyphID SimpleFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper) const in mapCharToGlyph() 106 return LEFontInstance::mapCharToGlyph(ch, mapper); in mapCharToGlyph()
|
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
H A D | GrallocAndroid.hpp | 22 # include <android/hardware/graphics/mapper/3.0/IMapper.h> 26 # include <android/hardware/graphics/mapper/4.0/IMapper.h> 53 android::sp<android::hardware::graphics::mapper::V3_0::IMapper> m_gralloc3_mapper; 56 android::sp<android::hardware::graphics::mapper::V4_0::IMapper> m_gralloc4_mapper;
|
/third_party/skia/third_party/externals/swiftshader/src/System/ |
H A D | GrallocAndroid.hpp | 22 # include <android/hardware/graphics/mapper/3.0/IMapper.h> 26 # include <android/hardware/graphics/mapper/4.0/IMapper.h> 53 android::sp<android::hardware::graphics::mapper::V3_0::IMapper> m_gralloc3_mapper; 56 android::sp<android::hardware::graphics::mapper::V4_0::IMapper> m_gralloc4_mapper;
|
/third_party/skia/third_party/externals/spirv-tools/test/ |
H A D | name_mapper_test.cpp | 30 auto mapper = GetTrivialNameMapper(); in TEST() local 31 EXPECT_EQ(mapper(1), "1"); in TEST() 32 EXPECT_EQ(mapper(1999), "1999"); in TEST() 33 EXPECT_EQ(mapper(1024), "1024"); in TEST() 51 NameMapper mapper = friendly_mapper.GetNameMapper(); in TEST_P() local 52 EXPECT_THAT(mapper(GetParam().id), Eq(GetParam().expected_name)) in TEST_P()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
H A D | name_mapper_test.cpp | 30 auto mapper = GetTrivialNameMapper(); in TEST() local 31 EXPECT_EQ(mapper(1), "1"); in TEST() 32 EXPECT_EQ(mapper(1999), "1999"); in TEST() 33 EXPECT_EQ(mapper(1024), "1024"); in TEST() 51 NameMapper mapper = friendly_mapper.GetNameMapper(); in TEST_P() local 52 EXPECT_THAT(mapper(GetParam().id), Eq(GetParam().expected_name)) in TEST_P()
|
/third_party/spirv-tools/test/ |
H A D | name_mapper_test.cpp | 30 auto mapper = GetTrivialNameMapper(); in TEST() local 31 EXPECT_EQ(mapper(1), "1"); in TEST() 32 EXPECT_EQ(mapper(1999), "1999"); in TEST() 33 EXPECT_EQ(mapper(1024), "1024"); in TEST() 51 NameMapper mapper = friendly_mapper.GetNameMapper(); in TEST_P() local 52 EXPECT_THAT(mapper(GetParam().id), Eq(GetParam().expected_name)) in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/ |
H A D | MapFunctionsToDefinitions.cpp | 31 Mapper mapper; in MapFunctionsToDefinitions() local 32 root.traverse(&mapper); in MapFunctionsToDefinitions() 33 return std::move(mapper.mFuncToDef); in MapFunctionsToDefinitions()
|
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/mapper/ |
H A D | RbnfMapper.java | 3 package org.unicode.icu.tool.cldrtoicu.mapper; 23 * A mapper to collect plural data from {@link CldrDataType#LDML LDML} data via the paths: 62 RbnfMapper mapper = new RbnfMapper(icuData); in process() 63 icuSpecialData.ifPresent(s -> RBNF_PROCESSOR.process(s, mapper, DTD)); in process() 64 RBNF_PROCESSOR.process(cldrData, mapper, DTD); in process() 65 return mapper.icuData; in process()
|
/third_party/icu/icu4c/source/test/letest/ |
H A D | SimpleFontInstance.cpp | 99 LEGlyphID SimpleFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper, le_bool filterZeroWidth) const in mapCharToGlyph() argument 101 return LEFontInstance::mapCharToGlyph(ch, mapper, filterZeroWidth); in mapCharToGlyph() 106 LEGlyphID SimpleFontInstance::mapCharToGlyph(LEUnicode32 ch, const LECharMapper *mapper) const in mapCharToGlyph() 108 return LEFontInstance::mapCharToGlyph(ch, mapper); in mapCharToGlyph()
|