Home
last modified time | relevance | path

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

12345678910>>...40

/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/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.h93 #define LOCAL_HISTOGRAM_TIMES(name, sample) LOCAL_HISTOGRAM_CUSTOM_TIMES( \ argument
94 name, sample, base::TimeDelta::FromMilliseconds(1), \
99 #define LOCAL_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \ argument
100 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddTime(sample), \
104 #define LOCAL_HISTOGRAM_COUNTS(name, sample) LOCAL_HISTOGRAM_CUSTOM_COUNTS( \ argument
105 name, sample, 1, 1000000, 50)
107 #define LOCAL_HISTOGRAM_COUNTS_100(name, sample) \ argument
108 LOCAL_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 100, 50)
110 #define LOCAL_HISTOGRAM_COUNTS_10000(name, sample) \ argument
111 LOCAL_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 10000, 50)
[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/autotest/client/bin/
Dkernelexpand_unittest.py21 sample = decompose_kernel('2.6.23')
22 self.assertEqual(sample, correct)
28 sample = decompose_kernel('1.0.0.0.0')
44 sample = decompose_kernel('2.6.23-rc1')
45 self.assertEqual(sample, correct)
53 sample = decompose_kernel('2.6.23-mm1')
54 self.assertEqual(sample, correct)
63 sample = decompose_kernel('2.6.23-git1')
64 self.assertEqual(sample, correct)
73 sample = decompose_kernel('2.6.23-rc1-mm1')
[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
47 format != FOURCC_YU12 && format != FOURCC_YV12) || y == sample; in ConvertToI420()
57 if (!y || !u || !v || !sample || in ConvertToI420()
88 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToI420()
96 src = sample + (aligned_src_width * crop_y + crop_x) * 2; in ConvertToI420()
104 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
112 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
120 src = sample + (src_width * crop_y + crop_x) * 2; in ConvertToI420()
128 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
136 src = sample + (src_width * crop_y + crop_x) * 3; in ConvertToI420()
[all …]
Dmjpeg_validate.cc49 static LIBYUV_BOOL ScanEOI(const uint8* sample, size_t sample_size) { in ScanEOI() argument
50 const uint8* end = sample + sample_size - 1; in ScanEOI()
51 const uint8* it = sample; in ScanEOI()
71 LIBYUV_BOOL ValidateJpeg(const uint8* sample, size_t sample_size) { in ValidateJpeg() argument
77 if (sample[0] != 0xff || sample[1] != 0xd8) { // Start Of Image in ValidateJpeg()
82 sample += 2; in ValidateJpeg()
87 if (ScanEOI(sample + sample_size - kBackSearchSize, kBackSearchSize)) { in ValidateJpeg()
93 return ScanEOI(sample, sample_size); in ValidateJpeg()
/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/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
Dgcc-gcov-sample-profile.test6 Tests for sample profiles encoded in GCC's gcov format.
10 RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov | FileCheck %s --check-prefix=SH…
19 RUN: llvm-profdata merge --sample %p/Inputs/gcc-sample-profile.gcov --text -o - | llvm-profdata sho…
20 RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov -o %t-gcov
25 RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov -o %t-gcov
26 RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov %t-gcov -o - | FileCheck…
/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
16 ; BAD-FN-HEADER: error: {{.*}}bad_fn_header.prof: Could not open profile: Unrecognized sample profi…
/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-trace/catapult/telemetry/telemetry/internal/platform/power_monitor/
Dcros_power_monitor.py38 sample = self._platform.RunCommand(['dump_power_status;', 'date', '+%s'])
40 sample)
50 sample = self._platform.RunCommand(['dump_power_status;', 'date', '+%s'])
51 final_power, end_time = CrosPowerMonitor.SplitSample(sample)
62 def SplitSample(sample): argument
72 sample = sample.strip()
73 index = sample.rfind('\n')
74 power = sample[:index]
75 time = sample[index + 1:]
109 def ParsePowerStatus(sample): argument
[all …]
/external/v8/test/cctest/
Dtest-log-stack-tracer.cc152 TickSample sample; in TEST() local
153 i::TraceExtension::InitTraceEnv(&sample); in TEST()
177 CHECK(sample.has_external_callback); in TEST()
178 CHECK_EQ(FUNCTION_ADDR(i::TraceExtension::Trace), sample.external_callback); in TEST()
182 CHECK_GT(sample.frames_count, base + 1); in TEST()
185 context, "JSFuncDoTrace", sample.stack[base + 0])); in TEST()
186 CHECK(IsAddressWithinFuncCode(context, "JSTrace", sample.stack[base + 1])); in TEST()
201 TickSample sample; in TEST() local
202 i::TraceExtension::InitTraceEnv(&sample); in TEST()
231 CHECK(sample.has_external_callback); in TEST()
[all …]
/external/chromium-trace/catapult/dashboard/dashboard/
Dfind_change_points_test.py71 sample = [1, 1, 5, 5, 5, 9, 9]
72 self.assertFalse(self._PassesThresholds(sample, 2, min_segment_size=3))
73 self.assertFalse(self._PassesThresholds(sample, 5, min_segment_size=3))
74 self.assertTrue(self._PassesThresholds(sample, 2, min_segment_size=2))
75 self.assertTrue(self._PassesThresholds(sample, 5, min_segment_size=2))
78 sample = [2, 2, 2, 4, 4, 4, 4, 8, 8, 8]
79 self.assertTrue(self._PassesThresholds(sample, 7))
80 self.assertTrue(self._PassesThresholds(sample, 7, min_absolute_change=4))
81 self.assertFalse(self._PassesThresholds(sample, 3, min_absolute_change=4))
84 sample = [2, 2, 2, 6, 6, 6, 6, 10, 10, 10]
[all …]
/external/webrtc/webrtc/modules/audio_processing/intelligibility/
Dintelligibility_utils.cc108 complex<float> sample = data[i]; in InfiniteStep() local
110 sample = zerofudge(sample); in InfiniteStep()
113 running_mean_[i] = sample; in InfiniteStep()
119 old_mean + (sample - old_mean) / static_cast<float>(count_); in InfiniteStep()
121 (old_sum + std::conj(sample - old_mean) * (sample - running_mean_[i])) in InfiniteStep()
136 complex<float> sample = data[i]; in DecayStep() local
137 sample = zerofudge(sample); in DecayStep()
140 running_mean_[i] = sample; in DecayStep()
141 running_mean_sq_[i] = sample * std::conj(sample); in DecayStep()
146 running_mean_[i] = decay_ * prev + (1.0f - decay_) * sample; in DecayStep()
[all …]
/external/fec/
Dsim.c34 int sample; in addnoise() local
36 sample = offset + gain*normal_rand(sym?amp:-amp,1.0); in addnoise()
38 if(sample < 0) in addnoise()
39 sample = 0; in addnoise()
40 else if(sample > clip) in addnoise()
41 sample = clip; in addnoise()
42 return sample; in addnoise()
/external/strace/tests/
Dumount2.c44 static const char sample[] = "umount2.sample"; in main() local
45 if (mkdir(sample, 0700)) { in main()
46 perror(sample); in main()
49 (void) syscall(__NR_umount2, sample, 31); in main()
51 " = -1 EINVAL (%m)\n", TEST_SYSCALL_STR, sample); in main()
52 (void) rmdir(sample); in main()
Dumount.c48 static const char sample[] = "umount.sample"; in main() local
49 if (mkdir(sample, 0700)) { in main()
50 perror(sample); in main()
53 (void) syscall(__NR_oldumount, sample); in main()
54 printf("%s(\"%s\") = -1 ", TEST_SYSCALL_STR, sample); in main()
65 (void) rmdir(sample); in main()
/external/webrtc/webrtc/base/
Drandom_unittest.cc48 T sample; in UniformBucketTest() local
54 sample = prng->Rand<T>(); in UniformBucketTest()
55 } while (sample > upper_limit); in UniformBucketTest()
56 buckets[fdiv_remainder(sample, bucket_count)]++; in UniformBucketTest()
134 int32_t sample = prng->Rand(low, high); in BucketTestSignedInterval() local
135 EXPECT_LE(low, sample); in BucketTestSignedInterval()
136 EXPECT_GE(high, sample); in BucketTestSignedInterval()
137 buckets[static_cast<uint32_t>(sample - low) / numbers_per_bucket]++; in BucketTestSignedInterval()
174 uint32_t sample = prng->Rand(low, high); in BucketTestUnsignedInterval() local
175 EXPECT_LE(low, sample); in BucketTestUnsignedInterval()
[all …]
Drollingaccumulator.h54 void AddSample(T sample) { in AddSample() argument
71 samples_[next_index_] = sample; in AddSample()
72 sum_ += sample; in AddSample()
73 sum_2_ += sample * sample; in AddSample()
74 if (count_ == 1 || sample >= max_) { in AddSample()
75 max_ = sample; in AddSample()
78 if (count_ == 1 || sample <= min_) { in AddSample()
79 min_ = sample; in AddSample()
/external/sfntly/cpp/
DCMakeLists.txt20 ${CMAKE_CURRENT_SOURCE_DIR}/src/sample ${CMAKE_CURRENT_SOURCE_DIR}/src/sample/subtly)
68 file(GLOB_RECURSE SIMPLE_SUBSETTER src/sample/subsetter/*.h src/sample/subsetter/*.cc
80 src/sample/chromium/subsetter_impl.h
81 src/sample/chromium/subsetter_impl.cc
82 src/sample/chromium/font_subsetter.cc
83 src/sample/chromium/font_subsetter.h)
93 file(GLOB SUBTLY_FILES src/sample/subtly/*.h src/sample/subtly/*.cc)
94 file(GLOB SUBTLY_MAINS src/sample/subtly/*main.cc)
99 src/sample/subtly/subsetter_main.cc)
105 src/sample/subtly/merger_main.cc)
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_triangle.c273 GLchan sample[4]; /* the filtered texture sample */ in affine_span() local
283 sample[RCOMP] = tex00[2]; \ in affine_span()
284 sample[GCOMP] = tex00[1]; \ in affine_span()
285 sample[BCOMP] = tex00[0]; \ in affine_span()
286 sample[ACOMP] = CHAN_MAX; in affine_span()
289 sample[RCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\ in affine_span()
290 sample[GCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\ in affine_span()
291 sample[BCOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);\ in affine_span()
292 sample[ACOMP] = CHAN_MAX; in affine_span()
295 sample[RCOMP] = tex00[3]; \ in affine_span()
[all …]

12345678910>>...40