Home
last modified time | relevance | path

Searched refs:desired (Results 1 – 25 of 1119) sorted by relevance

12345678910>>...45

/third_party/flutter/glfw/src/
Dcontext.c157 const _GLFWfbconfig* _glfwChooseFBConfig(const _GLFWfbconfig* desired, in _glfwChooseFBConfig() argument
172 if (desired->stereo > 0 && current->stereo == 0) in _glfwChooseFBConfig()
178 if (desired->doublebuffer != current->doublebuffer) in _glfwChooseFBConfig()
188 if (desired->alphaBits > 0 && current->alphaBits == 0) in _glfwChooseFBConfig()
191 if (desired->depthBits > 0 && current->depthBits == 0) in _glfwChooseFBConfig()
194 if (desired->stencilBits > 0 && current->stencilBits == 0) in _glfwChooseFBConfig()
197 if (desired->auxBuffers > 0 && in _glfwChooseFBConfig()
198 current->auxBuffers < desired->auxBuffers) in _glfwChooseFBConfig()
200 missing += desired->auxBuffers - current->auxBuffers; in _glfwChooseFBConfig()
203 if (desired->samples > 0 && current->samples == 0) in _glfwChooseFBConfig()
[all …]
Dmonitor.c226 const GLFWvidmode* desired) in _glfwChooseVideoMode() argument
244 if (desired->redBits != GLFW_DONT_CARE) in _glfwChooseVideoMode()
245 colorDiff += abs(current->redBits - desired->redBits); in _glfwChooseVideoMode()
246 if (desired->greenBits != GLFW_DONT_CARE) in _glfwChooseVideoMode()
247 colorDiff += abs(current->greenBits - desired->greenBits); in _glfwChooseVideoMode()
248 if (desired->blueBits != GLFW_DONT_CARE) in _glfwChooseVideoMode()
249 colorDiff += abs(current->blueBits - desired->blueBits); in _glfwChooseVideoMode()
251 sizeDiff = abs((current->width - desired->width) * in _glfwChooseVideoMode()
252 (current->width - desired->width) + in _glfwChooseVideoMode()
253 (current->height - desired->height) * in _glfwChooseVideoMode()
[all …]
/third_party/elfutils/lib/
Dstdatomic-fbsd.h266 desired, success, failure) \ argument
267 __c11_atomic_compare_exchange_strong(object, expected, desired, \
270 desired, success, failure) \ argument
271 __c11_atomic_compare_exchange_weak(object, expected, desired, \
273 #define atomic_exchange_explicit(object, desired, order) \ argument
274 __c11_atomic_exchange(object, desired, order)
287 #define atomic_store_explicit(object, desired, order) \ argument
288 __c11_atomic_store(object, desired, order)
291 desired, success, failure) \ argument
293 desired, 0, success, failure)
[all …]
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_audio.c144 SDL_AudioSpec desired; in audio_initOpenCloseQuitAudio() local
169 SDL_memset(&desired, 0, sizeof(desired)); in audio_initOpenCloseQuitAudio()
173 desired.freq = 22050; in audio_initOpenCloseQuitAudio()
174 desired.format = AUDIO_S16SYS; in audio_initOpenCloseQuitAudio()
175 desired.channels = 2; in audio_initOpenCloseQuitAudio()
176 desired.samples = 4096; in audio_initOpenCloseQuitAudio()
177 desired.callback = _audio_testCallback; in audio_initOpenCloseQuitAudio()
178 desired.userdata = NULL; in audio_initOpenCloseQuitAudio()
182 desired.freq = 48000; in audio_initOpenCloseQuitAudio()
183 desired.format = AUDIO_F32SYS; in audio_initOpenCloseQuitAudio()
[all …]
Dtesttimer.c43 int i, desired; in main() local
57 desired = 0; in main()
59 desired = atoi(argv[1]); in main()
61 if (desired == 0) { in main()
62 desired = DEFAULT_RESOLUTION; in main()
64 t1 = SDL_AddTimer(desired, ticktock, NULL); in main()
76 desired, (double) (10 * 1000) / ticks); in main()
/third_party/ffmpeg/compat/atomics/gcc/
Dstdatomic.h86 #define atomic_store(object, desired) \ argument
88 *(object) = (desired); \
92 #define atomic_store_explicit(object, desired, order) \ argument
93 atomic_store(object, desired)
101 #define atomic_exchange(object, desired) \ argument
107 while (!__sync_bool_compare_and_swap(_obj, _old, (desired))); \
111 #define atomic_exchange_explicit(object, desired, order) \ argument
112 atomic_exchange(object, desired)
114 #define atomic_compare_exchange_strong(object, expected, desired) \ argument
118 *_exp = __sync_val_compare_and_swap((object), _old, (desired)); \
[all …]
/third_party/ffmpeg/compat/atomics/dummy/
Dstdatomic.h85 #define atomic_store(object, desired) \ argument
87 *(object) = (desired); \
90 #define atomic_store_explicit(object, desired, order) \ argument
91 atomic_store(object, desired)
99 static inline intptr_t atomic_exchange(intptr_t *object, intptr_t desired) in atomic_exchange() argument
102 *object = desired; in atomic_exchange()
106 #define atomic_exchange_explicit(object, desired, order) \ argument
107 atomic_exchange(object, desired)
110 intptr_t desired) in atomic_compare_exchange_strong() argument
114 *object = desired; in atomic_compare_exchange_strong()
[all …]
/third_party/ffmpeg/compat/atomics/pthread/
Dstdatomic.h91 static inline void atomic_store(intptr_t *object, intptr_t desired) in atomic_store() argument
94 *object = desired; in atomic_store()
98 #define atomic_store_explicit(object, desired, order) \ argument
99 atomic_store(object, desired)
113 static inline intptr_t atomic_exchange(intptr_t *object, intptr_t desired) in atomic_exchange() argument
118 *object = desired; in atomic_exchange()
123 #define atomic_exchange_explicit(object, desired, order) \ argument
124 atomic_exchange(object, desired)
127 intptr_t desired) in atomic_compare_exchange_strong() argument
133 *object = desired; in atomic_compare_exchange_strong()
[all …]
/third_party/ffmpeg/compat/atomics/suncc/
Dstdatomic.h83 static inline void atomic_store(intptr_t *object, intptr_t desired) in atomic_store() argument
85 *object = desired; in atomic_store()
89 #define atomic_store_explicit(object, desired, order) \ argument
90 atomic_store(object, desired)
101 #define atomic_exchange(object, desired) \ argument
102 atomic_swap_ptr(object, desired)
104 #define atomic_exchange_explicit(object, desired, order) \ argument
105 atomic_exchange(object, desired)
108 intptr_t desired) in atomic_compare_exchange_strong() argument
111 *expected = (intptr_t)atomic_cas_ptr(object, (void *)old, (void *)desired); in atomic_compare_exchange_strong()
[all …]
/third_party/ffmpeg/compat/atomics/win32/
Dstdatomic.h83 #define atomic_store(object, desired) \ argument
85 *(object) = (desired); \
89 #define atomic_store_explicit(object, desired, order) \ argument
90 atomic_store(object, desired)
98 #define atomic_exchange(object, desired) \ argument
99 InterlockedExchangePointer(object, desired);
101 #define atomic_exchange_explicit(object, desired, order) \ argument
102 atomic_exchange(object, desired)
105 intptr_t desired) in atomic_compare_exchange_strong() argument
109 (PVOID *)object, (PVOID)desired, (PVOID)old); in atomic_compare_exchange_strong()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dlocdistance.cpp110 const LSR &desired, in getBestIndexAndDistance() argument
118 int32_t desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
144 if (uprv_strcmp(desired.language, supported.language) == 0) { in getBestIndexAndDistance()
174 if (uprv_strcmp(desired.script, supported.script) == 0) { in getBestIndexAndDistance()
181 desired.script, supported.script); in getBestIndexAndDistance()
190 if (uprv_strcmp(desired.region, supported.region) == 0) { in getBestIndexAndDistance()
207 partitionsForRegion(desired), in getBestIndexAndDistance()
215 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
/third_party/icu/icu4c/source/common/
Dlocdistance.cpp110 const LSR &desired, in getBestIndexAndDistance() argument
118 int32_t desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
144 if (uprv_strcmp(desired.language, supported.language) == 0) { in getBestIndexAndDistance()
174 if (uprv_strcmp(desired.script, supported.script) == 0) { in getBestIndexAndDistance()
181 desired.script, supported.script); in getBestIndexAndDistance()
190 if (uprv_strcmp(desired.region, supported.region) == 0) { in getBestIndexAndDistance()
207 partitionsForRegion(desired), in getBestIndexAndDistance()
215 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
/third_party/node/deps/icu-small/source/common/
Dlocdistance.cpp110 const LSR &desired, in getBestIndexAndDistance() argument
118 int32_t desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
144 if (uprv_strcmp(desired.language, supported.language) == 0) { in getBestIndexAndDistance()
174 if (uprv_strcmp(desired.script, supported.script) == 0) { in getBestIndexAndDistance()
181 desired.script, supported.script); in getBestIndexAndDistance()
190 if (uprv_strcmp(desired.region, supported.region) == 0) { in getBestIndexAndDistance()
207 partitionsForRegion(desired), in getBestIndexAndDistance()
215 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
219 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
232 isMatch(supported, desired, shiftedThreshold, favorSubtag)) { in getBestIndexAndDistance()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DLocaleMatcherTest.java157 Locale desired = new Locale("en", "US"); // distinct object from Locale.US in testBasics() local
158 result = matcher.getBestLocaleResult(desired); in testBasics()
160 assertTrue("exactly desired en-US object", desired == result.getDesiredLocale()); in testBasics()
337 ULocale desired = new ULocale("ar-SA-u-nu-latn"); in testResolvedLocale() local
338 LocaleMatcher.Result result = matcher.getBestMatchResult(desired); in testResolvedLocale()
491 private void showDistance(LocaleMatcher matcher, String desired, String supported) { in showDistance() argument
492 ULocale desired2 = new ULocale(desired); in showDistance()
495 logln(desired + " to " + supported + " :\t" + distance); in showDistance()
632 LocalePriorityList desired = LocalePriorityList.add("fr-CH, de-CH, it").build(); in testDemotion() local
636 assertEquals("no demotion", new ULocale("de-CH"), noDemotion.getBestMatch(desired)); in testDemotion()
[all …]
DLocaleDistanceTest.java41 final ULocale desired; field in LocaleDistanceTest.Arguments
47 …this.desired = new ULocale.Builder().setLanguageTag(args.get(0)).build(); // use more complicated … in Arguments()
85 final ULocale desired = test.desired; in testTiming() local
91 final ULocale desiredMax = ULocale.addLikelySubtags(desired); in testTiming()
106 … int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming()
107 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming()
150 String desiredTag = args.desired.toLanguageTag(); in handle()
153 …edToDesiredActual = localeDistance.testOnlyDistance(args.supported, args.desired, threshold, favor… in handle()
156 …int desiredToSupportedActual = localeDistance.testOnlyDistance(args.desired, args.supported, thres… in handle()
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/locale/
DLocaleDistanceBuilder.java111 final List<String> desired; field in LocaleDistanceBuilder.Rule
116 Rule(List<String> desired, List<String> supported, int distance, boolean oneway) { in Rule() argument
117 this.desired = desired; in Rule()
202 private int getDistance(String desired, String supported, in getDistance() argument
205 Map<String, DistanceTable> sub2 = subtables.get(desired); in getDistance()
225 int result = starEquals && star && desired.equals(supported) ? 0 : value.nodeDistance; in getDistance()
242 DistanceTable addSubtable(String desired, String supported, int distance) { in addSubtable() argument
243 Map<String, DistanceTable> sub2 = subtables.get(desired); in addSubtable()
245 subtables.put(desired, sub2 = new TreeMap<>()); in addSubtable()
260 private DistanceTable getNode(String desired, String supported) { in getNode() argument
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/tool/locale/
DLocaleDistanceBuilder.java111 final List<String> desired; field in LocaleDistanceBuilder.Rule
116 Rule(List<String> desired, List<String> supported, int distance, boolean oneway) { in Rule() argument
117 this.desired = desired; in Rule()
202 private int getDistance(String desired, String supported, in getDistance() argument
205 Map<String, DistanceTable> sub2 = subtables.get(desired); in getDistance()
225 int result = starEquals && star && desired.equals(supported) ? 0 : value.nodeDistance; in getDistance()
242 DistanceTable addSubtable(String desired, String supported, int distance) { in addSubtable() argument
243 Map<String, DistanceTable> sub2 = subtables.get(desired); in addSubtable()
245 subtables.put(desired, sub2 = new TreeMap<>()); in addSubtable()
260 private DistanceTable getNode(String desired, String supported) { in getNode() argument
[all …]
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DLocaleDistanceMapper.java231 private final LsrSpec desired; field in LocaleDistanceMapper.LanguageMatchRule
236 public LanguageMatchRule(LsrSpec desired, LsrSpec supported, int distance, boolean oneway) { in LanguageMatchRule() argument
237 this.desired = checkNotNull(desired); in LanguageMatchRule()
244 checkArgument(desired.size() == supported.size(), in LanguageMatchRule()
245 "mismatched rule specifications in: %s, %s", desired, supported); in LanguageMatchRule() local
246 checkArgument(isAny(desired.language) == isAny(supported.language), in LanguageMatchRule()
247 "wildcard mismatch for languages in: %s, %s", desired, supported); in LanguageMatchRule() local
248 checkArgument(isAny(desired.script) == isAny(supported.script), in LanguageMatchRule()
249 "wildcard mismatch for scripts in: %s, %s", desired, supported); in LanguageMatchRule() local
250 checkArgument(isAny(desired.regionVariable) == isAny(supported.regionVariable), in LanguageMatchRule()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java154 Locale desired = new Locale("en", "US"); // distinct object from Locale.US in testBasics() local
155 result = matcher.getBestLocaleResult(desired); in testBasics()
157 assertTrue("exactly desired en-US object", desired == result.getDesiredLocale()); in testBasics()
358 ULocale desired = new ULocale("ar-SA-u-nu-latn"); in testResolvedLocale() local
359 LocaleMatcher.Result result = matcher.getBestMatchResult(desired); in testResolvedLocale()
510 private void showDistance(LocaleMatcher matcher, String desired, String supported) { in showDistance() argument
511 ULocale desired2 = new ULocale(desired); in showDistance()
514 logln(desired + " to " + supported + " :\t" + distance); in showDistance()
651 LocalePriorityList desired = LocalePriorityList.add("fr-CH, de-CH, it").build(); in testDemotion() local
655 assertEquals("no demotion", new ULocale("de-CH"), noDemotion.getBestMatch(desired)); in testDemotion()
[all …]
DLocaleDistanceTest.java38 final ULocale desired; field in LocaleDistanceTest.Arguments
44 …this.desired = new ULocale.Builder().setLanguageTag(args.get(0)).build(); // use more complicated … in Arguments()
82 final ULocale desired = test.desired; in testTiming() local
88 final ULocale desiredMax = ULocale.addLikelySubtags(desired); in testTiming()
103 … int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming()
104 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming()
147 String desiredTag = args.desired.toLanguageTag(); in handle()
150 …edToDesiredActual = localeDistance.testOnlyDistance(args.supported, args.desired, threshold, favor… in handle()
153 …int desiredToSupportedActual = localeDistance.testOnlyDistance(args.desired, args.supported, thres… in handle()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
DLocaleDistance.java233 public int testOnlyDistance(ULocale desired, ULocale supported, in testOnlyDistance() argument
236 LSR desiredLSR = XLikelySubtags.INSTANCE.makeMaximizedLsrFrom(desired); in testOnlyDistance()
250 public int getBestIndexAndDistance(LSR desired, LSR[] supportedLSRs, int supportedLSRsLength, in getBestIndexAndDistance() argument
256 int desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
282 if (desired.language.equals(supported.language)) { in getBestIndexAndDistance()
312 if (desired.script.equals(supported.script)) { in getBestIndexAndDistance()
319 desired.script, supported.script); in getBestIndexAndDistance()
328 if (desired.region.equals(supported.region)) { in getBestIndexAndDistance()
345 partitionsForRegion(desired), in getBestIndexAndDistance()
353 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleDistance.java228 public int testOnlyDistance(ULocale desired, ULocale supported, in testOnlyDistance() argument
231 LSR desiredLSR = XLikelySubtags.INSTANCE.makeMaximizedLsrFrom(desired); in testOnlyDistance()
245 public int getBestIndexAndDistance(LSR desired, LSR[] supportedLSRs, int supportedLSRsLength, in getBestIndexAndDistance() argument
251 int desLangDistance = trieNext(iter, desired.language, false); in getBestIndexAndDistance()
277 if (desired.language.equals(supported.language)) { in getBestIndexAndDistance()
307 if (desired.script.equals(supported.script)) { in getBestIndexAndDistance()
314 desired.script, supported.script); in getBestIndexAndDistance()
323 if (desired.region.equals(supported.region)) { in getBestIndexAndDistance()
340 partitionsForRegion(desired), in getBestIndexAndDistance()
348 shiftedDistance |= (desired.flags ^ supported.flags); in getBestIndexAndDistance()
[all …]
/third_party/mbedtls/library/
Dmps_reader.c234 mbedtls_mps_size_t desired, in mbedtls_mps_reader_get() argument
242 "* Bytes requested: %u", (unsigned) desired ); in mbedtls_mps_reader_get()
320 if( frag_offset - end < desired ) in mbedtls_mps_reader_get()
324 if( acc_available - end != desired ) in mbedtls_mps_reader_get()
346 *buflen = desired; in mbedtls_mps_reader_get()
348 end += desired; in mbedtls_mps_reader_get()
366 if( frag_remaining < desired ) in mbedtls_mps_reader_get()
377 rd->pending = desired - frag_remaining; in mbedtls_mps_reader_get()
385 desired = frag_remaining; in mbedtls_mps_reader_get()
396 *buflen = desired; in mbedtls_mps_reader_get()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dlocalematchertest.cpp35 CharString desired; member
230 Locale desired("en_GB"); // distinct object from Locale.UK in testBasics() local
231 LocaleMatcher::Result result = matcher.getBestMatchResult(desired, errorCode); in testBasics()
233 &desired == result.getDesiredLocale()); in testBasics()
246 desired = Locale("en", "US"); // distinct object from Locale.US in testBasics()
247 result = matcher.getBestMatchResult(desired, errorCode); in testBasics()
249 &desired == result.getDesiredLocale()); in testBasics()
335 Locale desired[] = { "fr-CH", "de-CH", "it" }; in testDemotion() local
340 Locale::RangeIterator<Locale *> desiredIter(ARRAY_RANGE(desired)); in testDemotion()
349 Locale::RangeIterator<Locale *> desiredIter(ARRAY_RANGE(desired)); in testDemotion()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dunits_data.cpp232 const UnitPreferenceMetadata &desired, bool *foundCategory, bool *foundUsage, in binarySearch() argument
242 int32_t cmp = (*metadata)[mid]->compareTo(desired, foundCategory, foundUsage, foundRegion); in binarySearch()
280 UnitPreferenceMetadata desired(category, usage, region, -1, -1, status); in getPreferenceMetadataIndex() local
281 … int32_t idx = binarySearch(metadata, desired, &foundCategory, &foundUsage, &foundRegion, status); in getPreferenceMetadataIndex()
294 int32_t lastDashIdx = desired.usage.lastIndexOf('-'); in getPreferenceMetadataIndex()
296 desired.usage.truncate(lastDashIdx); in getPreferenceMetadataIndex()
297 } else if (uprv_strcmp(desired.usage.data(), "default") != 0) { in getPreferenceMetadataIndex()
298 desired.usage.truncate(0).append("default", status); in getPreferenceMetadataIndex()
304 idx = binarySearch(metadata, desired, &foundCategory, &foundUsage, &foundRegion, status); in getPreferenceMetadataIndex()
310 if (uprv_strcmp(desired.region.data(), "001") != 0) { in getPreferenceMetadataIndex()
[all …]

12345678910>>...45