Home
last modified time | relevance | path

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

12345678910>>...37

/external/ceres-solver/internal/ceres/
Dpolynomial_test.cc315 FunctionSample sample; in TEST() local
316 sample.x = 1.0; in TEST()
317 sample.value = 1.0; in TEST()
318 sample.value_is_valid = true; in TEST()
319 samples.push_back(sample); in TEST()
331 FunctionSample sample; in TEST() local
332 sample.x = 1.0; in TEST()
333 sample.value = 1.0; in TEST()
334 sample.value_is_valid = true; in TEST()
335 sample.gradient = 2.0; in TEST()
[all …]
/external/chromium_org/base/metrics/
Dhistogram.h168 #define HISTOGRAM_TIMES(name, sample) HISTOGRAM_CUSTOM_TIMES( \ argument
169 name, sample, base::TimeDelta::FromMilliseconds(1), \
174 #define HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument
175 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddTime(sample), \
179 #define HISTOGRAM_COUNTS(name, sample) HISTOGRAM_CUSTOM_COUNTS( \ argument
180 name, sample, 1, 1000000, 50)
182 #define HISTOGRAM_COUNTS_100(name, sample) HISTOGRAM_CUSTOM_COUNTS( \ argument
183 name, sample, 1, 100, 50)
185 #define HISTOGRAM_COUNTS_10000(name, sample) HISTOGRAM_CUSTOM_COUNTS( \ argument
186 name, sample, 1, 10000, 50)
[all …]
/external/chromium_org/chrome/browser/chromeos/
Dexternal_metrics.cc162 void ExternalMetrics::RecordHistogram(const metrics::MetricSample& sample) { in RecordHistogram() argument
163 CHECK_EQ(metrics::MetricSample::HISTOGRAM, sample.type()); in RecordHistogram()
165 sample.name(), sample.min(), sample.max(), sample.bucket_count())) { in RecordHistogram()
166 DLOG(ERROR) << "Invalid histogram: " << sample.name(); in RecordHistogram()
171 base::Histogram::FactoryGet(sample.name(), in RecordHistogram()
172 sample.min(), in RecordHistogram()
173 sample.max(), in RecordHistogram()
174 sample.bucket_count(), in RecordHistogram()
176 counter->Add(sample.sample()); in RecordHistogram()
180 const metrics::MetricSample& sample) { in RecordLinearHistogram() argument
[all …]
/external/chromium_org/third_party/libyuv/source/
Dconvert_to_argb.cc33 int ConvertToARGB(const uint8* sample, size_t sample_size, in ConvertToARGB() argument
54 crop_argb == sample; in ConvertToARGB()
60 if (crop_argb == NULL || sample == NULL || in ConvertToARGB()
82 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToARGB()
88 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToARGB()
94 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()
118 src = sample + (src_width * crop_y + crop_x) * 4; in ConvertToARGB()
[all …]
Dconvert_to_i420.cc29 int ConvertToI420(const uint8* sample, in ConvertToI420() argument
48 format != FOURCC_YU12 && format != FOURCC_YV12) || y == sample; in ConvertToI420()
58 if (!y || !u || !v || !sample || in ConvertToI420()
89 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToI420()
97 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToI420()
105 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
113 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
121 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
129 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
137 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
[all …]
/external/chromium_org/net/disk_cache/blockfile/
Dhistogram_macros.h21 #define CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \ argument
26 counter->Add(sample); \
29 #define CACHE_HISTOGRAM_COUNTS(name, sample) CACHE_HISTOGRAM_CUSTOM_COUNTS( \ argument
30 name, sample, 1, 1000000, 50)
32 #define CACHE_HISTOGRAM_COUNTS_10000(name, sample) \ argument
33 CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 10000, 50)
35 #define CACHE_HISTOGRAM_COUNTS_50000(name, sample) \ argument
36 CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 50000000, 50)
38 #define CACHE_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument
43 counter->AddTime(sample); \
[all …]
Dhistogram_macros_v3.h20 #define CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \ argument
27 counter->Add(sample); \
30 #define CACHE_HISTOGRAM_COUNTS(name, sample) CACHE_HISTOGRAM_CUSTOM_COUNTS( \ argument
31 name, sample, 1, 1000000, 50)
33 #define CACHE_HISTOGRAM_COUNTS_10000(name, sample) \ argument
34 CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 10000, 50)
36 #define CACHE_HISTOGRAM_COUNTS_50000(name, sample) \ argument
37 CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 50000000, 50)
39 #define CACHE_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument
46 counter->AddTime(sample); \
[all …]
/external/qemu/distrib/sdl-1.2.15/src/audio/sun/
DSDL_sunaudio.c57 static Uint8 snd2au(int sample);
400 static Uint8 snd2au(int sample) in snd2au() argument
405 if (sample < 0) { in snd2au()
406 sample = -sample; in snd2au()
412 if (sample < 32) { in snd2au()
413 sample = 0xF0 | (15 - sample / 2); in snd2au()
414 } else if (sample < 96) { in snd2au()
415 sample = 0xE0 | (15 - (sample - 32) / 4); in snd2au()
416 } else if (sample < 224) { in snd2au()
417 sample = 0xD0 | (15 - (sample - 96) / 8); in snd2au()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DThrowablesTest.java39 Sample sample = new Sample() { in testPropagateIfPossible_NoneDeclared_NoneThrown() local
51 sample.noneDeclared(); in testPropagateIfPossible_NoneDeclared_NoneThrown()
55 Sample sample = new Sample() { in testPropagateIfPossible_NoneDeclared_UncheckedThrown() local
68 sample.noneDeclared(); in testPropagateIfPossible_NoneDeclared_UncheckedThrown()
75 Sample sample = new Sample() { in testPropagateIfPossible_NoneDeclared_UndeclaredThrown() local
88 sample.noneDeclared(); in testPropagateIfPossible_NoneDeclared_UndeclaredThrown()
96 Sample sample = new Sample() { in testPropagateIfPossible_OneDeclared_NoneThrown() local
110 sample.oneDeclared(); in testPropagateIfPossible_OneDeclared_NoneThrown()
115 Sample sample = new Sample() { in testPropagateIfPossible_OneDeclared_UncheckedThrown() local
128 sample.oneDeclared(); in testPropagateIfPossible_OneDeclared_UncheckedThrown()
[all …]
/external/flac/libFLAC/ia32/
Dlpc_asm.nasm54 ; unsigned sample, coeff;
62 ; for(sample = 0; sample <= limit; sample++) {
63 ; d = data[sample];
65 ; autoc[coeff] += d * data[sample+coeff];
67 ; for(; sample < data_len; sample++) {
68 ; d = data[sample];
69 ; for(coeff = 0; coeff < data_len - sample; coeff++)
70 ; autoc[coeff] += d * data[sample+coeff];
106 ; for(sample = 0; sample <= limit; sample++) {
107 ; d = data[sample];
[all …]
/external/chromium_org/components/nacl/renderer/
Dhistogram.cc12 int32_t sample, in HistogramCustomCounts() argument
26 counter->Add(sample); in HistogramCustomCounts()
30 int32_t sample, in HistogramEnumerate() argument
39 counter->Add(sample); in HistogramEnumerate()
90 void HistogramTimeSmall(const std::string& name, int64_t sample) { in HistogramTimeSmall() argument
91 if (sample < 0) in HistogramTimeSmall()
92 sample = 0; in HistogramTimeSmall()
100 counter->AddTime(base::TimeDelta::FromMilliseconds(sample)); in HistogramTimeSmall()
106 void HistogramTimeMedium(const std::string& name, int64_t sample) { in HistogramTimeMedium() argument
107 if (sample < 0) in HistogramTimeMedium()
[all …]
/external/flac/libFLAC/
Dmd5.c279 unsigned channel, sample; in format_input_() local
288 for(sample = 0; sample < samples; sample++, buf1_+=2) in format_input_()
289 *buf1_ = (FLAC__int16)signal[1][sample]; in format_input_()
293 for(sample = 0; sample < samples; sample++) in format_input_()
294 *buf1_++ = (FLAC__int16)signal[0][sample]; in format_input_()
300 for(sample = 0; sample < samples; sample++) { in format_input_()
301 a_word = signal[0][sample]; in format_input_()
304 a_word = signal[1][sample]; in format_input_()
310 for(sample = 0; sample < samples; sample++) { in format_input_()
311 a_word = signal[0][sample]; in format_input_()
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/
Dbuiltin-timechart.c235 struct cpu_sample *sample; in pid_put_sample() local
247 sample = zalloc(sizeof(*sample)); in pid_put_sample()
248 assert(sample != NULL); in pid_put_sample()
249 sample->start_time = start; in pid_put_sample()
250 sample->end_time = end; in pid_put_sample()
251 sample->type = type; in pid_put_sample()
252 sample->next = c->samples; in pid_put_sample()
253 sample->cpu = cpu; in pid_put_sample()
254 c->samples = sample; in pid_put_sample()
256 if (sample->type == TYPE_RUNNING && end > start && start > 0) { in pid_put_sample()
[all …]
Dbuiltin-inject.c85 struct perf_sample *sample __maybe_unused, in perf_event__repipe()
93 struct perf_sample *sample,
99 struct perf_sample *sample, in perf_event__repipe_sample() argument
105 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
108 build_id__mark_dso_hit(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
115 struct perf_sample *sample, in perf_event__repipe_mmap() argument
120 err = perf_event__process_mmap(tool, event, sample, machine); in perf_event__repipe_mmap()
121 perf_event__repipe(tool, event, sample, machine); in perf_event__repipe_mmap()
128 struct perf_sample *sample, in perf_event__repipe_mmap2() argument
133 err = perf_event__process_mmap2(tool, event, sample, machine); in perf_event__repipe_mmap2()
[all …]
/external/llvm/test/Transforms/SampleProfile/
Dsyntax.ll1 ; RUN: not opt < %s -sample-profile -sample-profile-file=%S/Inputs/syntax.prof 2>&1 | FileCheck -ch…
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
/external/javassist/sample/vector/
DTest.j2 A sample program using sample.vector.VectorAssistant
3 and the sample.preproc package.
10 % java sample.preproc.Compiler sample/vector/Test.j
11 % javac sample/vector/Test.java
12 % java sample.vector.Test
14 The first line produces one source file (sample/Test.java) and
15 two class files (sample/vector/intVector.class and
16 sample/vector/StringVector.class).
19 package sample.vector;
21 import java.util.Vector by sample.vector.VectorAssistant(java.lang.String);
[all …]
/external/chromium_org/components/metrics/chromeos/
Dmetric_sample.cc19 int sample, in MetricSample() argument
25 sample_(sample), in MetricSample()
77 const int MetricSample::sample() const { in sample() function in metrics::MetricSample
110 int sample, in HistogramSample() argument
115 HISTOGRAM, histogram_name, sample, min, max, bucket_count)); in HistogramSample()
126 int sample, min, max, bucket_count; in ParseHistogram() local
127 if (parts[0].empty() || !base::StringToInt(parts[1], &sample) || in ParseHistogram()
134 return HistogramSample(parts[0], sample, min, max, bucket_count); in ParseHistogram()
140 int sample) { in SparseHistogramSample() argument
142 new MetricSample(SPARSE_HISTOGRAM, histogram_name, sample, 0, 0, 0)); in SparseHistogramSample()
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
Dsession.c223 struct perf_sample *sample __maybe_unused, in process_event_sample_stub()
233 struct perf_sample *sample __maybe_unused, in process_event_stub()
255 if (tool->sample == NULL) in perf_tool__fill_defaults()
256 tool->sample = process_event_sample_stub; in perf_tool__fill_defaults()
515 struct perf_sample *sample,
525 struct perf_sample sample; in flush_sample_queue() local
542 ret = perf_evlist__parse_sample(s->evlist, iter->event, &sample); in flush_sample_queue()
546 ret = perf_session_deliver_event(s, iter->event, &sample, tool, in flush_sample_queue()
628 struct sample_queue *sample = os->last_sample; in __queue_event() local
635 if (!sample) { in __queue_event()
[all …]
/external/chromium_org/mojo/apps/js/bindings/
Dsample_service_unittests.js12 ], function(console, hexdump, expect, sample, imported, imported2) { argument
20 var bar = new sample.Bar();
24 bar.type = sample.Bar.Type.TYPE_VERTICAL;
30 sample.Bar.Type.TYPE_VERTICAL : sample.Bar.Type.TYPE_HORIZONTAL;
31 extra_bars[i] = new sample.Bar();
45 var foo = new sample.Foo();
70 expect(foo.bar.type).toBe(sample.Bar.Type.TYPE_VERTICAL);
76 sample.Bar.Type.TYPE_VERTICAL : sample.Bar.Type.TYPE_HORIZONTAL;
92 var bar = new sample.Bar();
94 expect(bar.type).toBe(sample.Bar.Type.TYPE_VERTICAL);
[all …]
/external/oprofile/daemon/liblegacy/
Dopd_proc.c165 struct op_sample const * sample) in opd_lookup_maps() argument
174 if (opd_is_in_map(map, sample->eip)) { in opd_lookup_maps()
175 unsigned long offset = opd_map_offset(map, sample->eip); in opd_lookup_maps()
178 opd_put_image_sample(map->image, offset, sample->counter); in opd_lookup_maps()
190 void opd_put_sample(struct op_sample const * sample) in opd_put_sample() argument
193 int in_kernel_eip = opd_eip_is_kernel(sample->eip); in opd_put_sample()
198 sample->counter, sample->eip, sample->tgid, sample->pid); in opd_put_sample()
201 opd_handle_kernel_sample(sample->eip, sample->counter); in opd_put_sample()
205 if (!(proc = opd_get_proc(sample->pid, sample->tgid))) { in opd_put_sample()
213 opd_handle_kernel_sample(sample->eip, sample->counter); in opd_put_sample()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dvideoframe.cc240 const uint8 *sample, size_t sample_size) { in Validate() argument
305 if (sample == NULL) { in Validate()
321 << " sample[0..3]: " << static_cast<int>(sample[0]) in Validate()
322 << ", " << static_cast<int>(sample[1]) in Validate()
323 << ", " << static_cast<int>(sample[2]) in Validate()
324 << ", " << static_cast<int>(sample[3]); in Validate()
334 << " sample[0..3]: " << static_cast<int>(sample[0]) in Validate()
335 << ", " << static_cast<int>(sample[1]) in Validate()
336 << ", " << static_cast<int>(sample[2]) in Validate()
337 << ", " << static_cast<int>(sample[3]); in Validate()
[all …]
/external/chromium_org/chrome/browser/
Dmemory_details.cc377 int sample = static_cast<int>(browser.processes[index].working_set.priv); in UpdateHistograms() local
378 aggregate_memory += sample; in UpdateHistograms()
381 UMA_HISTOGRAM_MEMORY_KB("Memory.Browser", sample); in UpdateHistograms()
388 UMA_HISTOGRAM_MEMORY_KB("Memory.Extension", sample); in UpdateHistograms()
392 UMA_HISTOGRAM_MEMORY_KB("Memory.Chrome", sample); in UpdateHistograms()
401 UMA_HISTOGRAM_MEMORY_KB("Memory.Renderer", sample); in UpdateHistograms()
407 UMA_HISTOGRAM_MEMORY_KB("Memory.Plugin", sample); in UpdateHistograms()
411 UMA_HISTOGRAM_MEMORY_KB("Memory.Worker", sample); in UpdateHistograms()
415 UMA_HISTOGRAM_MEMORY_KB("Memory.Utility", sample); in UpdateHistograms()
419 UMA_HISTOGRAM_MEMORY_KB("Memory.Zygote", sample); in UpdateHistograms()
[all …]
/external/chromium_org/chrome/browser/chromeos/power/
Dpower_data_collector.cc53 PowerSupplySample sample; in PowerChanged() local
54 sample.time = base::Time::Now(); in PowerChanged()
55 sample.external_power = (prop.external_power() != in PowerChanged()
57 sample.battery_percent = prop.battery_percent(); in PowerChanged()
58 sample.battery_discharge_rate = prop.battery_discharge_rate(); in PowerChanged()
59 AddSample(&power_supply_data_, sample); in PowerChanged()
63 SystemResumedSample sample; in SuspendDone() local
64 sample.time = base::Time::Now(); in SuspendDone()
65 sample.sleep_duration = sleep_duration; in SuspendDone()
66 AddSample(&system_resumed_data_, sample); in SuspendDone()
/external/chromium_org/mojo/public/cpp/bindings/tests/
Dhandle_passing_unittest.cc29 class SampleObjectImpl : public InterfaceImpl<sample::Object> {
48 class SampleFactoryImpl : public InterfaceImpl<sample::Factory> {
54 virtual void DoStuff(sample::RequestPtr request, in DoStuff()
74 sample::ResponsePtr response(sample::Response::New()); in DoStuff()
98 virtual void CreateObject(InterfaceRequest<sample::Object> object_request) in CreateObject()
120 class SampleFactoryClientImpl : public sample::FactoryClient {
133 virtual void DidStuff(sample::ResponsePtr response, in DidStuff()
183 sample::FactoryPtr factory; in TEST_F()
197 sample::RequestPtr request(sample::Request::New()); in TEST_F()
210 sample::FactoryPtr factory; in TEST_F()
[all …]
Drequest_response_unittest.cc16 class ProviderImpl : public InterfaceImpl<sample::Provider> {
44 virtual void EchoEnum(sample::Enum a, in EchoEnum()
45 const Callback<void(sample::Enum)>& callback) in EchoEnum()
67 explicit EnumRecorder(sample::Enum* value) : value_(value) { in EnumRecorder()
69 void Run(sample::Enum a) const { in Run()
73 sample::Enum* value_;
103 sample::ProviderPtr provider; in TEST_F()
115 sample::ProviderPtr provider; in TEST_F()
128 sample::ProviderPtr provider; in TEST_F()
144 sample::ProviderPtr provider; in TEST_F()
[all …]

12345678910>>...37