Searched defs:supported (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/libs/androidfw/tests/
H A DConfigLocale_test.cpp283 ResTable_config supported, requested; local
285 fillIn(NULL, NULL, NULL, NULL, &supported);
288 EXPECT_TRUE(supported.match(requested));
290 fillIn("en", "CA", NULL, NULL, &supported);
293 EXPECT_FALSE(supported.match(requested));
295 fillIn("qaa", "FR", NULL, NULL, &supported);
298 EXPECT_FALSE(supported.match(requested));
300 fillIn("qaa", "FR", "Latn", NULL, &supported);
303 EXPECT_FALSE(supported.match(requested));
305 fillIn("qaa", "FR", NULL, NULL, &supported);
375 ResTable_config supported, requested; local
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioProfile.cpp73 // Search for the closest supported sampling rate that is above (preferred)
112 audio_channel_mask_t supported = mChannelMasks[i]; local
113 if (supported == channelMask) {
120 if (isRecordThread && supported != AUDIO_CHANNEL_NONE) {
122 // The match score measures how well the supported channel mask matches the
136 const bool isSupportedIndex = (audio_channel_mask_get_representation(supported)
143 & audio_channel_mask_get_bits(supported));
146 (1 << audio_channel_count_from_in_mask(supported)) - 1 ;
153 equivalentBits & audio_channel_mask_get_bits(supported));
158 & audio_channel_mask_get_bits(supported));
[all...]
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DLocaleUtils.java46 * @param supported The locale supported by IME subtype.
51 private static byte calculateMatchingSubScore(@NonNull final ULocale supported, argument
53 // Assuming supported/desired is fully expanded.
54 if (supported.equals(desired)) {
60 final String supportedScript = supported.getScript();
66 final String supportedCountry = supported.getCountry();
78 * <p>The supported locale gets a matching score of 3 if all language, script and country of the
79 * supported locale matches with the desired locale. The supported local
92 calculateMatchingScore(@onNull final ULocale supported, @NonNull final LocaleList desired, @NonNull byte[] out) argument
[all...]
/frameworks/base/core/java/android/os/
H A DLocaleList.java303 private static int matchScore(Locale supported, Locale desired) { argument
304 if (supported.equals(desired)) {
307 if (!supported.getLanguage().equals(desired.getLanguage())) {
310 if (isPseudoLocale(supported) || isPseudoLocale(desired)) {
315 final String supportedScr = getLikelyScript(supported);
320 final String supportedRegion = supported.getCountry();
388 * Returns the first match in the locale list given an unordered array of supported locales
397 false /* assume English is not supported */);
405 false /* assume English is not supported */);
409 * Same as getFirstMatch(), but with English assumed to be supported, eve
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_PerfMeasurement.cpp244 bool supported = PerfMeasurementContext::isMeasurementSupported(); local
246 return static_cast<jboolean>(supported);
/frameworks/base/libs/androidfw/
H A DLocaleData.cpp96 size_t findDistance(uint32_t supported, argument
103 supported, script,
107 // of 'supported' to the lowest common ancestor (number of ancestors
108 // written for 'supported' minus 1) plus the distance of 'request' to the
/frameworks/av/media/libstagefright/mpeg2ts/
H A DMPEG2PSExtractor.cpp596 bool supported = true; local
621 supported = false;
625 if (supported) {
/frameworks/native/vulkan/libvulkan/
H A Dswapchain.cpp270 VkBool32* supported) {
271 *supported = VK_TRUE;
347 // TODO(jessehall): Fill out the set of supported formats. Longer term, add
349 // supported, and check that for each gralloc format that corresponds to a
413 "swapchain imageArrayLayers=%u not supported",
416 "swapchain imageColorSpace=%u not supported",
419 "swapchain preTransform=%#x not supported",
423 "swapchain presentMode=%u not supported",
267 GetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice , uint32_t , VkSurfaceKHR , VkBool32* supported) argument

Completed in 376 milliseconds