Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 25 of 1681) sorted by relevance

12345678910>>...68

/external/flac/libFLAC/
Dmd5.c280 unsigned channel, sample; in format_input_() local
290 for (sample = 0; sample < samples; sample++) in format_input_()
291 *buf_++ = signal[0][sample]; in format_input_()
295 for (sample = 0; sample < samples; sample++) { in format_input_()
296 *buf_++ = signal[0][sample]; in format_input_()
297 *buf_++ = signal[1][sample]; in format_input_()
302 for (sample = 0; sample < samples; sample++) { in format_input_()
303 *buf_++ = signal[0][sample]; in format_input_()
304 *buf_++ = signal[1][sample]; in format_input_()
305 *buf_++ = signal[2][sample]; in format_input_()
[all …]
/external/libchrome/base/metrics/
Dhistogram_macros.h44 #define UMA_HISTOGRAM_ENUMERATION(name, sample, enum_max) \ argument
46 name, sample, enum_max, base::HistogramBase::kUmaTargetedHistogramFlag)
52 #define UMA_HISTOGRAM_BOOLEAN(name, sample) \ argument
53 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddBoolean(sample), \
69 #define UMA_HISTOGRAM_EXACT_LINEAR(name, sample, value_max) \ argument
71 name, sample, value_max, base::HistogramBase::kUmaTargetedHistogramFlag)
100 #define UMA_HISTOGRAM_COUNTS_100(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \ argument
101 name, sample, 1, 100, 50)
103 #define UMA_HISTOGRAM_COUNTS_1000(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \ argument
104 name, sample, 1, 1000, 50)
[all …]
Dhistogram_macros_local.h21 #define LOCAL_HISTOGRAM_ENUMERATION(name, sample, enum_max) \ argument
23 name, sample, enum_max, \
26 #define LOCAL_HISTOGRAM_BOOLEAN(name, sample) \ argument
27 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddBoolean(sample), \
43 #define LOCAL_HISTOGRAM_COUNTS_100(name, sample) \ argument
44 LOCAL_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 100, 50)
46 #define LOCAL_HISTOGRAM_COUNTS_10000(name, sample) \ argument
47 LOCAL_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 10000, 50)
49 #define LOCAL_HISTOGRAM_COUNTS_1000000(name, sample) \ argument
50 LOCAL_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 1000000, 50)
[all …]
/external/perf_data_converter/src/quipper/
Dperf_serializer.cc348 const event_t& event, PerfDataProto_SampleEvent* sample) const { in SerializeSampleEvent()
354 if (sample_type & PERF_SAMPLE_IP) sample->set_ip(sample_info.ip); in SerializeSampleEvent()
356 sample->set_pid(sample_info.pid); in SerializeSampleEvent()
357 sample->set_tid(sample_info.tid); in SerializeSampleEvent()
360 sample->set_sample_time_ns(sample_info.time); in SerializeSampleEvent()
361 if (sample_type & PERF_SAMPLE_ADDR) sample->set_addr(sample_info.addr); in SerializeSampleEvent()
363 sample->set_id(sample_info.id); in SerializeSampleEvent()
365 sample->set_stream_id(sample_info.stream_id); in SerializeSampleEvent()
366 if (sample_type & PERF_SAMPLE_CPU) sample->set_cpu(sample_info.cpu); in SerializeSampleEvent()
367 if (sample_type & PERF_SAMPLE_PERIOD) sample->set_period(sample_info.period); in SerializeSampleEvent()
[all …]
Dsample_info_reader.cc44 struct perf_sample* sample) { in ReadReadInfo() argument
45 reader->ReadUint64(&sample->read.one.value); in ReadReadInfo()
47 reader->ReadUint64(&sample->read.time_enabled); in ReadReadInfo()
49 reader->ReadUint64(&sample->read.time_running); in ReadReadInfo()
50 if (read_format & PERF_FORMAT_ID) reader->ReadUint64(&sample->read.one.id); in ReadReadInfo()
56 struct perf_sample* sample) { in ReadGroupReadInfo() argument
60 reader->ReadUint64(&sample->read.time_enabled); in ReadGroupReadInfo()
62 reader->ReadUint64(&sample->read.time_running); in ReadGroupReadInfo()
66 CHECK_EQ(static_cast<void*>(NULL), sample->read.group.values); in ReadGroupReadInfo()
72 sample->read.group.nr = num; in ReadGroupReadInfo()
[all …]
Dsample_info_reader_test.cc67 perf_sample sample; in TEST() local
68 ASSERT_TRUE(reader.ReadPerfSampleInfo(event, &sample)); in TEST()
70 EXPECT_EQ(0xffffffff01234567, sample.ip); in TEST()
71 EXPECT_EQ(0x68d, sample.pid); in TEST()
72 EXPECT_EQ(0x68e, sample.tid); in TEST()
73 EXPECT_EQ(1415837014 * 1000000000ULL, sample.time); in TEST()
74 EXPECT_EQ(0x00007f999c38d15a, sample.addr); in TEST()
75 EXPECT_EQ(2, sample.id); in TEST()
76 EXPECT_EQ(1, sample.stream_id); in TEST()
77 EXPECT_EQ(8, sample.cpu); in TEST()
[all …]
Dperf_serializer.h76 PerfDataProto_SampleEvent* sample) const;
77 bool DeserializeSampleEvent(const PerfDataProto_SampleEvent& sample,
81 PerfDataProto_MMapEvent* sample) const;
82 bool DeserializeMMapEvent(const PerfDataProto_MMapEvent& sample,
86 PerfDataProto_MMapEvent* sample) const;
87 bool DeserializeMMap2Event(const PerfDataProto_MMapEvent& sample,
91 PerfDataProto_CommEvent* sample) const;
92 bool DeserializeCommEvent(const PerfDataProto_CommEvent& sample,
98 PerfDataProto_ForkEvent* sample) const;
99 bool DeserializeForkExitEvent(const PerfDataProto_ForkEvent& sample,
[all …]
/external/webrtc/webrtc/system_wrappers/include/
Dmetrics.h65 #define RTC_HISTOGRAM_COUNTS_100(name, sample) \ argument
66 RTC_HISTOGRAM_COUNTS(name, sample, 1, 100, 50)
68 #define RTC_HISTOGRAM_COUNTS_200(name, sample) \ argument
69 RTC_HISTOGRAM_COUNTS(name, sample, 1, 200, 50)
71 #define RTC_HISTOGRAM_COUNTS_1000(name, sample) \ argument
72 RTC_HISTOGRAM_COUNTS(name, sample, 1, 1000, 50)
74 #define RTC_HISTOGRAM_COUNTS_10000(name, sample) \ argument
75 RTC_HISTOGRAM_COUNTS(name, sample, 1, 10000, 50)
77 #define RTC_HISTOGRAM_COUNTS_100000(name, sample) \ argument
78 RTC_HISTOGRAM_COUNTS(name, sample, 1, 100000, 50)
[all …]
/external/perf_data_converter/src/
Dperf_data_converter.cc59 ExecutionMode PerfExecMode(const PerfDataHandler::SampleContext& sample) { in PerfExecMode() argument
60 if (sample.header.has_misc()) { in PerfExecMode()
61 switch (sample.header.misc() & PERF_RECORD_MISC_CPUMODE_MASK) { in PerfExecMode()
210 void Sample(const PerfDataHandler::SampleContext& sample) override;
255 SampleKey MakeSampleKey(const PerfDataHandler::SampleContext& sample,
259 const PerfDataHandler::SampleContext& sample);
289 const PerfDataHandler::SampleContext& sample, ProfileBuilder* builder) { in MakeSampleKey() argument
291 sample_key.pid = sample.sample.has_pid() ? sample.sample.pid() : 0; in MakeSampleKey()
293 (IncludeTidLabels() && sample.sample.has_tid()) ? sample.sample.tid() : 0; in MakeSampleKey()
295 (IncludeTimestampNsLabels() && sample.sample.has_sample_time_ns()) in MakeSampleKey()
[all …]
/external/flatbuffers/samples/
Dsample_binary.go22 sample "MyGame/Sample" packageName
36 sample.WeaponStart(builder)
37 sample.WeaponAddName(builder, weaponOne)
38 sample.WeaponAddDamage(builder, 3)
39 sword := sample.WeaponEnd(builder)
41 sample.WeaponStart(builder)
42 sample.WeaponAddName(builder, weaponTwo)
43 sample.WeaponAddDamage(builder, 5)
44 axe := sample.WeaponEnd(builder)
49 sample.MonsterStartInventoryVector(builder, 10)
[all …]
/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_to_argb.cc32 int ConvertToARGB(const uint8* sample, size_t sample_size, in ConvertToARGB() argument
53 crop_argb == sample; in ConvertToARGB()
59 if (crop_argb == NULL || sample == NULL || in ConvertToARGB()
81 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToARGB()
87 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToARGB()
93 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToARGB()
99 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToARGB()
105 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
111 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
117 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
[all …]
Dconvert_to_i420.cc28 int ConvertToI420(const uint8* sample, in ConvertToI420() argument
48 format != FOURCC_YV12) || y == sample; in ConvertToI420()
59 if (!y || !u || !v || !sample || in ConvertToI420()
87 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToI420()
95 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToI420()
103 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
111 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
119 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
127 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
135 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
[all …]
/external/libevent/sample/
Dinclude.am1 # sample/include.am for libevent
8 sample/dns-example \
9 sample/event-read-fifo \
10 sample/hello-world \
11 sample/http-server \
12 sample/http-connect \
13 sample/signal-test \
14 sample/time-test
17 SAMPLES += sample/le-proxy
18 sample_le_proxy_SOURCES = sample/le-proxy.c
[all …]
/external/llvm/test/Transforms/SampleProfile/
Dsyntax.ll1 ; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/syntax.prof 2>&1 | FileCheck -check-…
2 ; RUN: not opt < %s -sample-profile -sample-profile-file=missing.prof 2>&1 | FileCheck -check-prefi…
3 ; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/bad_fn_header.prof 2>&1 | FileCh…
4 ; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/bad_sample_line.prof 2>&1 | File…
5 ; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/bad_line_values.prof 2>&1 | File…
6 ; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/bad_discriminator_value.prof 2>&…
7 ; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/bad_samples.prof 2>&1 | FileChec…
8 ; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/bad_mangle.prof 2>&1 >/dev/null
10 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/syntax.prof 2>&1 | FileCheck …
11 ; RUN: not opt < %s -passes=sample-profile -sample-profile-file=missing.prof 2>&1 | FileCheck -chec…
[all …]
/external/libyuv/files/source/
Dconvert_to_argb.cc32 int ConvertToARGB(const uint8* sample, in ConvertToARGB() argument
58 (rotation && format != FOURCC_ARGB) || crop_argb == sample; in ConvertToARGB()
64 if (crop_argb == NULL || sample == NULL || src_width <= 0 || in ConvertToARGB()
85 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToARGB()
90 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToARGB()
95 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToARGB()
100 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToARGB()
106 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
112 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
117 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
[all …]
Dconvert_to_i420.cc28 int ConvertToI420(const uint8* sample, in ConvertToI420() argument
55 y == sample; in ConvertToI420()
66 if (!y || !u || !v || !sample || src_width <= 0 || crop_width <= 0 || in ConvertToI420()
93 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToI420()
98 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToI420()
103 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
108 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
113 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
118 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
123 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
[all …]
/external/aac/libPCMutils/src/
Dpcm_utils.cpp112 for (UINT sample = 0; sample < length; sample++) { in FDK_interleave() local
113 const FIXP_DBL *In = &pIn[sample]; in FDK_interleave()
124 for (UINT sample = 0; sample < length; sample++) { in FDK_interleave() local
125 const FIXP_DBL *In = &pIn[sample]; in FDK_interleave()
136 for (UINT sample = 0; sample < length; sample++) { in FDK_interleave() local
137 const FIXP_SGL *In = &pIn[sample]; in FDK_interleave()
151 for (UINT sample = 0; sample < frameSize; sample++) { in FDK_deinterleave() local
164 for (UINT sample = 0; sample < frameSize; sample++) { in FDK_deinterleave() local
177 for (UINT sample = 0; sample < frameSize; sample++) { in FDK_deinterleave() local
190 for (UINT sample = 0; sample < frameSize; sample++) { in FDK_deinterleave() local
/external/guava/guava-tests/test/com/google/common/base/
DThrowablesTest.java38 Sample sample = new Sample() { in testPropagateIfPossible_NoneDeclared_NoneThrown() local
50 sample.noneDeclared(); in testPropagateIfPossible_NoneDeclared_NoneThrown()
54 Sample sample = new Sample() { in testPropagateIfPossible_NoneDeclared_UncheckedThrown() local
67 sample.noneDeclared(); in testPropagateIfPossible_NoneDeclared_UncheckedThrown()
74 Sample sample = new Sample() { in testPropagateIfPossible_NoneDeclared_UndeclaredThrown() local
87 sample.noneDeclared(); in testPropagateIfPossible_NoneDeclared_UndeclaredThrown()
95 Sample sample = new Sample() { in testPropagateIfPossible_OneDeclared_NoneThrown() local
109 sample.oneDeclared(); in testPropagateIfPossible_OneDeclared_NoneThrown()
114 Sample sample = new Sample() { in testPropagateIfPossible_OneDeclared_UncheckedThrown() local
127 sample.oneDeclared(); in testPropagateIfPossible_OneDeclared_UncheckedThrown()
[all …]
/external/libmojo/mojo/public/cpp/bindings/tests/
Dbinding_unittest.cc37 class ServiceImpl : public sample::Service {
48 void Frobinate(sample::FooPtr foo, in Frobinate()
50 sample::PortPtr port, in Frobinate()
54 void GetPort(InterfaceRequest<sample::Port> port) override {} in GetPort()
82 sample::ServicePtr ptr; in TEST_F()
88 Binding<sample::Service> binding(&impl, std::move(request)); in TEST_F()
100 sample::ServicePtr ptr; in TEST_F()
108 Binding<sample::Service> binding(&impl, std::move(request)); in TEST_F()
109 ptr->Frobinate(nullptr, sample::Service::BazOptions::REGULAR, nullptr, in TEST_F()
123 ptr->Frobinate(nullptr, sample::Service::BazOptions::REGULAR, nullptr, in TEST_F()
[all …]
/external/libmojo/base/android/java/src/org/chromium/base/metrics/
DRecordHistogram.java63 public static void recordBooleanHistogram(String name, boolean sample) { in recordBooleanHistogram() argument
66 long result = nativeRecordBooleanHistogram(name, key, sample); in recordBooleanHistogram()
79 public static void recordEnumeratedHistogram(String name, int sample, int boundary) { in recordEnumeratedHistogram() argument
82 long result = nativeRecordEnumeratedHistogram(name, key, sample, boundary); in recordEnumeratedHistogram()
92 public static void recordCountHistogram(String name, int sample) { in recordCountHistogram() argument
93 recordCustomCountHistogram(name, sample, 1, 1000000, 50); in recordCountHistogram()
102 public static void recordCount100Histogram(String name, int sample) { in recordCount100Histogram() argument
103 recordCustomCountHistogram(name, sample, 1, 100, 50); in recordCount100Histogram()
112 public static void recordCount1000Histogram(String name, int sample) { in recordCount1000Histogram() argument
113 recordCustomCountHistogram(name, sample, 1, 1000, 50); in recordCount1000Histogram()
[all …]
/external/llvm/test/tools/llvm-profdata/
Dweight-sample.test1 Tests for weighted merge of sample profiles.
4 … llvm-profdata merge -sample -text -weighted-input=1,%p/Inputs/weight-sample-bar.proftext -weighte…
5 RUN: llvm-profdata merge -sample -text -weighted-input=1,%p/Inputs/weight-sample-bar.proftext %p/In…
24 … llvm-profdata merge -sample -text -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighte…
43 …not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-i…
44 …t llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-inp…
45 …ot llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-in…
46 …not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-i…
47 … not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-…
51 RUN: not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/does-not-exist.proftext -weighted-…
[all …]
Dsample-profile-basic.test1 Basic tests for sample profiles.
4 RUN: llvm-profdata show --sample %p/Inputs/sample-profile.proftext | FileCheck %s --check-prefix=SH…
12 RUN: llvm-profdata show --sample --function=_Z3bari %p/Inputs/sample-profile.proftext | FileCheck %…
20 RUN: llvm-profdata merge --sample %p/Inputs/sample-profile.proftext --binary -o - | llvm-profdata s…
21 RUN: llvm-profdata show --sample %p/Inputs/sample-profile.proftext -o %t-text
26 RUN: llvm-profdata merge --sample %p/Inputs/sample-profile.proftext -o %t-binprof
27 RUN: llvm-profdata merge --sample --text %p/Inputs/sample-profile.proftext %t-binprof -o - | FileCh…
33 RUN: not llvm-profdata show --sample %p/Inputs/foo3bar3-1.proftext 2>&1 | FileCheck %s --check-pref…
34 BADTEXT: error: {{.+}}: Unrecognized sample profile encoding format
/external/strace/tests-m32/
Dswap.c13 static const char sample[] = "swap.sample"; in main() local
16 rc = syscall(__NR_swapon, sample, 0); in main()
18 sample, "0", rc, errno2name()); in main()
20 rc = syscall(__NR_swapon, sample, 42); in main()
22 sample, "42", rc, errno2name()); in main()
24 rc = syscall(__NR_swapon, sample, SWAP_FLAG_PREFER); in main()
26 sample, "SWAP_FLAG_PREFER|0", rc, errno2name()); in main()
28 rc = syscall(__NR_swapon, sample, SWAP_FLAG_PREFER | 42); in main()
30 sample, "SWAP_FLAG_PREFER|42", rc, errno2name()); in main()
32 rc = syscall(__NR_swapon, sample, -1L); in main()
[all …]
/external/strace/tests-mx32/
Dswap.c13 static const char sample[] = "swap.sample"; in main() local
16 rc = syscall(__NR_swapon, sample, 0); in main()
18 sample, "0", rc, errno2name()); in main()
20 rc = syscall(__NR_swapon, sample, 42); in main()
22 sample, "42", rc, errno2name()); in main()
24 rc = syscall(__NR_swapon, sample, SWAP_FLAG_PREFER); in main()
26 sample, "SWAP_FLAG_PREFER|0", rc, errno2name()); in main()
28 rc = syscall(__NR_swapon, sample, SWAP_FLAG_PREFER | 42); in main()
30 sample, "SWAP_FLAG_PREFER|42", rc, errno2name()); in main()
32 rc = syscall(__NR_swapon, sample, -1L); in main()
[all …]
/external/strace/tests/
Dswap.c13 static const char sample[] = "swap.sample"; in main() local
16 rc = syscall(__NR_swapon, sample, 0); in main()
18 sample, "0", rc, errno2name()); in main()
20 rc = syscall(__NR_swapon, sample, 42); in main()
22 sample, "42", rc, errno2name()); in main()
24 rc = syscall(__NR_swapon, sample, SWAP_FLAG_PREFER); in main()
26 sample, "SWAP_FLAG_PREFER|0", rc, errno2name()); in main()
28 rc = syscall(__NR_swapon, sample, SWAP_FLAG_PREFER | 42); in main()
30 sample, "SWAP_FLAG_PREFER|42", rc, errno2name()); in main()
32 rc = syscall(__NR_swapon, sample, -1L); in main()
[all …]

12345678910>>...68