Searched refs:conv (Results 1 – 4 of 4) sorted by relevance
/frameworks/av/media/libaudiofoundation/tests/ |
D | audiofoundation_parcelable_test.cpp | 80 auto conv = legacy2aidl_AudioProfile(profile, false /*isInput*/); in TEST() local 81 ASSERT_TRUE(conv.ok()); in TEST() 82 auto convBack = aidl2legacy_AudioProfile(conv.value(), false /*isInput*/); in TEST() 89 auto conv = legacy2aidl_AudioProfileVector(profiles, false /*isInput*/); in TEST() local 90 ASSERT_TRUE(conv.ok()); in TEST() 91 auto convBack = aidl2legacy_AudioProfileVector(conv.value(), false /*isInput*/); in TEST() 98 auto conv = legacy2aidl_AudioGain(audioGain); in TEST() local 99 ASSERT_TRUE(conv.ok()); in TEST() 100 auto convBack = aidl2legacy_AudioGain(conv.value()); in TEST() 107 auto conv = legacy2aidl_AudioGains(audioGains); in TEST() local [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | audio_aidl_legacy_conversion_tests.cpp | 204 auto conv = aidl2legacy_AudioChannelLayout_audio_channel_mask_t(initial, isInput); in TEST_P() local 205 ASSERT_TRUE(conv.ok()); in TEST_P() 206 auto convBack = legacy2aidl_audio_channel_mask_t_AudioChannelLayout(conv.value(), isInput); in TEST_P() 229 auto conv = legacy2aidl_audio_channel_mask_t_AudioChannelLayout(legacy, isInput); in TEST_P() local 230 EXPECT_EQ(isValid, conv.ok()); in TEST_P() 264 auto conv = aidl2legacy_AudioDeviceDescription_audio_devices_t(initial); in TEST_P() local 265 ASSERT_TRUE(conv.ok()); in TEST_P() 266 auto convBack = legacy2aidl_audio_devices_t_AudioDeviceDescription(conv.value()); in TEST_P() 279 auto conv = aidl2legacy_AudioFormatDescription_audio_format_t(initial); in TEST_P() local 280 ASSERT_TRUE(conv.ok()); in TEST_P() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_audio_common_AidlConversion.cpp | 66 int aidl2legacy(JNIEnv* env, AidlType aidl, const ConvFunc& conv, LegacyType fallbackValue) { in aidl2legacy() argument 67 const auto result = conv(aidl); in aidl2legacy() 79 int legacy2aidl(JNIEnv* env, LegacyType legacy, const ConvFunc& conv, AidlType fallbackValue) { in legacy2aidl() argument 80 const auto result = conv(legacy); in legacy2aidl() 91 int aidlParcel2legacy(JNIEnv* env, jobject jParcel, const ConvFunc& conv, int fallbackValue) { in aidlParcel2legacy() argument 95 auto legacy = conv(aidl); in aidlParcel2legacy() 112 jobject legacy2aidlParcel(JNIEnv* env, LegacyType legacy, const ConvFunc& conv) { in legacy2aidlParcel() argument 113 auto aidl = conv(legacy); in legacy2aidlParcel()
|
/frameworks/av/media/libmedia/ |
D | CharacterEncodingDetector.cpp | 248 UConverter *conv = ucnv_open(enc, &status); in detectAndConvert() local 253 conv = ucnv_open("ISO-8859-1", &status); in detectAndConvert() 269 ucnv_convertEx(mUtf8Conv, conv, &target, target + targetLength, in detectAndConvert() 293 ucnv_close(conv); in detectAndConvert() 381 UConverter *conv = ucnv_open(encname, &status); in getPreferred() local 400 UChar32 c = ucnv_getNextUChar(conv, &source, sourceLimit, &status); in getPreferred() 444 ucnv_close(conv); in getPreferred()
|