Searched defs:desired (Results 1 - 25 of 50) sorted by relevance

12

/external/libcxx/test/support/
H A Dcmpxchg_loop.h13 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired) { argument
15 if (atomic.compare_exchange_weak(expected, desired) == true) {
24 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired, argument
28 if (atomic.compare_exchange_weak(expected, desired, success,
38 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired) { argument
40 if (std::atomic_compare_exchange_weak(atomic, expected, desired) == true) {
49 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired, argument
53 if (std::atomic_compare_exchange_weak_explicit(atomic, expected, desired,
/external/webrtc/webrtc/base/
H A Dratelimiter.cc15 bool RateLimiter::CanUse(size_t desired, double time) { argument
16 return ((time > period_end_ && desired <= max_per_period_) ||
17 (used_in_period_ + desired) <= max_per_period_);
/external/dng_sdk/source/
H A Ddng_jpeg_memory_source.cpp49 boolean ResyncToRestart(j_decompress_ptr cinfo, int desired) { argument
/external/webrtc/talk/app/webrtc/
H A Dremotevideocapturer.cc76 const cricket::VideoFormat& desired, cricket::VideoFormat* best_format) {
82 // Use the desired format as the best format.
83 best_format->width = desired.width;
84 best_format->height = desired.height;
86 best_format->interval = desired.interval;
75 GetBestCaptureFormat( const cricket::VideoFormat& desired, cricket::VideoFormat* best_format) argument
H A Dremotevideocapturer_unittest.cc114 VideoFormat desired = VideoFormat(kTestFormat); local
115 EXPECT_FALSE(capturer_.GetBestCaptureFormat(desired, NULL));
120 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best_format));
H A Dandroidvideocapturer.cc243 const cricket::VideoFormat& desired,
246 *best_format = desired;
242 GetBestCaptureFormat( const cricket::VideoFormat& desired, cricket::VideoFormat* best_format) argument
H A Dvideosource_unittest.cc97 virtual bool GetBestCaptureFormat(const cricket::VideoFormat& desired, argument
100 *best_format = desired;
103 return FakeVideoCapturer::GetBestCaptureFormat(desired,
/external/clang/test/Analysis/
H A Datomics.c76 uint32_t desired = 3; local
77 _Bool result = __c11_atomic_compare_exchange_strong((volatile _Atomic(uint32_t) *)&s->refCount, &expected, desired, memory_order_relaxed, memory_order_relaxed);
88 uint32_t desired = 3; local
89 _Bool result = __c11_atomic_compare_exchange_weak((volatile _Atomic(uint32_t) *)&s->refCount, &expected, desired, memory_order_relaxed, memory_order_relaxed);
/external/compiler-rt/test/BlocksRuntime/
H A Dfail.c82 char desired[512]; local
84 bool gotErrorFile = readfile(desired, errorfile);
92 char *where = strstr(got, desired);
/external/webrtc/talk/media/devices/
H A Dfilevideocapturer_unittest.cc111 // desired format with large resolution.
112 cricket::VideoFormat desired(
114 EXPECT_TRUE(capturer_->GetBestCaptureFormat(desired, &capture_format_));
119 desired.width = 0;
120 desired.height = 0;
121 EXPECT_TRUE(capturer_->GetBestCaptureFormat(desired, &capture_format_));
128 // desired format same as the capture format supported by the file
129 cricket::VideoFormat desired = capturer_->GetSupportedFormats()->at(0); local
130 EXPECT_TRUE(capturer_->GetBestCaptureFormat(desired, &capture_format_));
131 EXPECT_TRUE(desired
[all...]
/external/compiler-rt/lib/builtins/
H A Datomic.c189 /// to the value at *expected, then this copies value at *desired to *ptr. If
194 void *desired, int success, int failure) {
197 *(type*)desired, success, failure)
203 memcpy(ptr, desired, size);
283 int __atomic_compare_exchange_##n(type *ptr, type *expected, type desired,\
286 return __c11_atomic_compare_exchange_strong((_Atomic(type)*)ptr, expected, desired,\
291 *ptr = desired;\
193 __atomic_compare_exchange_c(int size, void *ptr, void *expected, void *desired, int success, int failure) argument
/external/skia/include/private/
H A DSkAtomics.h39 bool sk_atomic_compare_exchange(T*, T* expected, T desired,
83 bool compare_exchange(T* expected, const T& desired, argument
86 return sk_atomic_compare_exchange(&fVal, expected, desired, success, failure);
128 bool sk_atomic_compare_exchange(T* ptr, T* expected, T desired, argument
138 return std::atomic_compare_exchange_strong_explicit(ap, expected, desired,
/external/clang/test/CodeGen/
H A Dbig-atomic-ops.c103 int desired = 1; local
104 return __atomic_compare_exchange(i, &cmp, &desired, 0, memory_order_acquire, memory_order_acquire);
H A Datomic-ops.c136 int desired = 1; local
137 return __atomic_compare_exchange(i, &cmp, &desired, 0, memory_order_acquire, memory_order_acquire);
/external/libchrome/base/timer/
H A Dtimer.h121 void set_desired_run_time(TimeTicks desired) { desired_run_time_ = desired; } argument
175 // The desired run time of user_task_. The user may update this at any time,
/external/webrtc/talk/media/webrtc/
H A Dwebrtcvideocapturer.cc167 // Find the desired camera, by name.
244 bool WebRtcVideoCapturer::GetBestCaptureFormat(const VideoFormat& desired, argument
250 if (!VideoCapturer::GetBestCaptureFormat(desired, best_format)) {
252 // Use the desired format as the best format.
253 best_format->width = desired.width;
254 best_format->height = desired.height;
256 best_format->interval = desired.interval;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
H A DLocaleMatcherTest.java435 private void showDistance(LocaleMatcher matcher, String desired, String supported) { argument
436 ULocale desired2 = new ULocale(desired);
439 logln(desired + " to " + supported + " :\t" + distance);
598 final String desired = "sv, en";
600 final LocaleMatcher matcherShort = newLocaleMatcher(desired);
606 assertEquals(expected, matcherShort.getBestMatch(desired));
607 assertEquals(expected, matcherLong.getBestMatch(desired));
608 assertEquals(expected, matcherVeryLong.getBestMatch(desired));
614 long timeShort = timeLocaleMatcher("Duration (few supported):\t", desired, matcherShort, showMessage, iterations, 0);
616 long timeMedium = timeLocaleMatcher("Duration (med. supported):\t", desired, matcherLon
622 timeLocaleMatcher(String title, String desired, LocaleMatcher matcher, boolean showmessage, int iterations, long comparisonTime) argument
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DLocaleMatcherTest.java434 private void showDistance(LocaleMatcher matcher, String desired, String supported) { argument
435 ULocale desired2 = new ULocale(desired);
438 logln(desired + " to " + supported + " :\t" + distance);
597 final String desired = "sv, en";
599 final LocaleMatcher matcherShort = newLocaleMatcher(desired);
605 assertEquals(expected, matcherShort.getBestMatch(desired));
606 assertEquals(expected, matcherLong.getBestMatch(desired));
607 assertEquals(expected, matcherVeryLong.getBestMatch(desired));
613 long timeShort = timeLocaleMatcher("Duration (few supported):\t", desired, matcherShort, showMessage, iterations, 0);
615 long timeMedium = timeLocaleMatcher("Duration (med. supported):\t", desired, matcherLon
621 timeLocaleMatcher(String title, String desired, LocaleMatcher matcher, boolean showmessage, int iterations, long comparisonTime) argument
[all...]
/external/libvorbis/vq/
H A Dvqgen.c59 /* default metric; squared 'distance' from desired value. */
161 than the preceeding value. Thus the desired quantibits apply to
337 long desired; local
369 desired=fdesired;
370 desired2=desired*2;
436 if(k<desired){
439 if(k==desired){
441 qsort(nearbiasptr,desired,sizeof(float),directdsort);
444 }else if(thismetric>nearbiasptr[desired-1]){
450 k=desired;
[all...]
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c247 unsigned long desired)
251 __atomic_compare_exchange_n(p, &exp, desired, 0,
246 cmpxchg(unsigned long *p, unsigned long expected, unsigned long desired) argument
/external/bison/src/
H A Dtables.c141 | the desired size is at least DESIRED + 1. |
145 table_grow (int desired) argument
149 while (table_size <= desired)
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DLocaleMatcher.java141 * @param desired Desired locale
147 public double match(ULocale desired, ULocale desiredMax, ULocale supported, ULocale supportedMax) { argument
148 return matcherData.match(desired, desiredMax, supported, supportedMax);
305 * We preprocess the data to get just the possible matches for each desired base language.
309 String desired = desiredToMatchingLanguages.getKey();
315 addFiltered(desired, localeToMaxAndWeight);
327 private void addFiltered(String desired, R3<ULocale, ULocale, Double> localeToMaxAndWeight) { argument
328 Set<R3<ULocale, ULocale, Double>> map = desiredLanguageToPossibleLocalesToMaxLocaleToData.get(desired);
330 desiredLanguageToPossibleLocalesToMaxLocaleToData.put(desired, map = new LinkedHashSet<R3<ULocale, ULocale, Double>>());
334 System.out.println(desired
507 addDataToScores(String desired, String supported, R3<LocalePatternMatcher,LocalePatternMatcher,Double> data) argument
672 addDistance(String desired, String supported, int percent, String comment) argument
680 addDistance(String desired, String supported, int percent, boolean oneway) argument
684 addDistance(String desired, String supported, int percent, boolean oneway, String comment) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DLocaleMatcher.java142 * @param desired Desired locale
149 public double match(ULocale desired, ULocale desiredMax, ULocale supported, ULocale supportedMax) { argument
150 return matcherData.match(desired, desiredMax, supported, supportedMax);
312 * We preprocess the data to get just the possible matches for each desired base language.
316 String desired = desiredToMatchingLanguages.getKey();
322 addFiltered(desired, localeToMaxAndWeight);
334 private void addFiltered(String desired, R3<ULocale, ULocale, Double> localeToMaxAndWeight) { argument
335 Set<R3<ULocale, ULocale, Double>> map = desiredLanguageToPossibleLocalesToMaxLocaleToData.get(desired);
337 desiredLanguageToPossibleLocalesToMaxLocaleToData.put(desired, map = new LinkedHashSet<R3<ULocale, ULocale, Double>>());
341 System.out.println(desired
514 addDataToScores(String desired, String supported, R3<LocalePatternMatcher,LocalePatternMatcher,Double> data) argument
679 addDistance(String desired, String supported, int percent, String comment) argument
687 addDistance(String desired, String supported, int percent, boolean oneway) argument
691 addDistance(String desired, String supported, int percent, boolean oneway, String comment) argument
[all...]
/external/pdfium/core/fxcodec/codec/
H A Dfx_codec_jpeg.cpp64 static boolean _src_resync(j_decompress_ptr cinfo, int desired) { argument
/external/webrtc/talk/media/base/
H A Dvideocapturer.cc573 // Get the distance between the supported and desired formats.
578 // 4) Compression. If desired format has a specific fourcc, we need exact match;
580 int64_t VideoCapturer::GetFormatDistance(const VideoFormat& desired, argument
587 if (FOURCC_ANY == desired.fourcc) {
588 // Any fourcc is OK for the desired. Use preference to find best fourcc.
608 } else if (supported_fourcc == CanonicalFourCC(desired.fourcc)) {
618 int desired_width = desired.width;
619 int desired_height = desired.height;
623 supported_fps - VideoFormat::IntervalToFpsFloat(desired.interval);
631 // Set high penalty if the supported format is lower than the desired forma
[all...]

Completed in 1642 milliseconds

12