Home
last modified time | relevance | path

Searched refs:legacy (Results 1 – 25 of 270) sorted by relevance

1234567891011

/frameworks/av/media/libaudioclient/
DAidlConversion.cpp83 audio_port_role_t legacy) { in legacy2aidl_audio_port_role_t_AudioPortRole() argument
84 switch (legacy) { in legacy2aidl_audio_port_role_t_AudioPortRole()
111 audio_port_type_t legacy) { in legacy2aidl_audio_port_type_t_AudioPortType() argument
112 switch (legacy) { in legacy2aidl_audio_port_type_t_AudioPortType()
160 audio_io_config_event_t legacy) { in legacy2aidl_audio_io_config_event_t_AudioIoConfigEvent() argument
161 switch (legacy) { in legacy2aidl_audio_io_config_event_t_AudioIoConfigEvent()
187 audio_port_config_mix_ext_usecase legacy; in aidl2legacy_AudioPortMixExtUseCase() local
190 return legacy; in aidl2legacy_AudioPortMixExtUseCase()
203 const audio_port_config_mix_ext_usecase& legacy, audio_port_role_t role) { in legacy2aidl_AudioPortMixExtUseCase() argument
212 legacy, false /*isInput*/); in legacy2aidl_AudioPortMixExtUseCase()
[all …]
DPolicyAidlConversion.cpp42 legacy2aidl_uint32_t_AudioMixType(uint32_t legacy) { in legacy2aidl_uint32_t_AudioMixType() argument
43 switch (legacy) { in legacy2aidl_uint32_t_AudioMixType()
62 legacy2aidl_uint32_t_AudioMixCallbackFlag(uint32_t legacy) { in legacy2aidl_uint32_t_AudioMixCallbackFlag() argument
63 switch (legacy) { in legacy2aidl_uint32_t_AudioMixCallbackFlag()
80 legacy2aidl_uint32_t_AudioMixCallbackFlag_mask(uint32_t legacy) { in legacy2aidl_uint32_t_AudioMixCallbackFlag_mask() argument
82 legacy, in legacy2aidl_uint32_t_AudioMixCallbackFlag_mask()
100 legacy2aidl_uint32_t_AudioMixRouteFlag(uint32_t legacy) { in legacy2aidl_uint32_t_AudioMixRouteFlag() argument
101 switch (legacy) { in legacy2aidl_uint32_t_AudioMixRouteFlag()
120 legacy2aidl_uint32_t_AudioMixRouteFlag_mask(uint32_t legacy) { in legacy2aidl_uint32_t_AudioMixRouteFlag_mask() argument
122 legacy, in legacy2aidl_uint32_t_AudioMixRouteFlag_mask()
[all …]
DAudioVolumeGroup.cpp47 legacy2aidl_AudioVolumeGroup(const AudioVolumeGroup& legacy) { in legacy2aidl_AudioVolumeGroup() argument
49 aidl.groupId = VALUE_OR_RETURN(legacy2aidl_volume_group_t_int32_t(legacy.getId())); in legacy2aidl_AudioVolumeGroup()
50 aidl.name = legacy.getName(); in legacy2aidl_AudioVolumeGroup()
53 legacy.getAudioAttributes(), in legacy2aidl_AudioVolumeGroup()
56 convertContainer<std::vector<AudioStreamType>>(legacy.getStreamTypes(), in legacy2aidl_AudioVolumeGroup()
DIAudioFlinger.cpp79 IAudioFlinger::CreateTrackInput legacy; in fromAidl() local
80 legacy.attr = VALUE_OR_RETURN(aidl2legacy_AudioAttributes_audio_attributes_t(aidl.attr)); in fromAidl()
82 legacy.config = VALUE_OR_RETURN( in fromAidl()
84 legacy.clientInfo = VALUE_OR_RETURN(aidl2legacy_AudioClient_AudioClient(aidl.clientInfo)); in fromAidl()
85legacy.sharedBuffer = VALUE_OR_RETURN(aidl2legacy_NullableSharedFileRegion_IMemory(aidl.sharedBuff… in fromAidl()
86 legacy.notificationsPerBuffer = VALUE_OR_RETURN( in fromAidl()
88 legacy.speed = aidl.speed; in fromAidl()
89 legacy.audioTrackCallback = aidl.audioTrackCallback; in fromAidl()
90 legacy.flags = VALUE_OR_RETURN(aidl2legacy_int32_t_audio_output_flags_t_mask(aidl.flags)); in fromAidl()
91 legacy.frameCount = VALUE_OR_RETURN(convertIntegral<size_t>(aidl.frameCount)); in fromAidl()
[all …]
DVolumeGroupAttributes.cpp48 legacy2aidl_VolumeGroupAttributes_AudioAttributesEx(const VolumeGroupAttributes& legacy) { in legacy2aidl_VolumeGroupAttributes_AudioAttributesEx() argument
51 legacy2aidl_audio_attributes_t_AudioAttributes(legacy.getAttributes())); in legacy2aidl_VolumeGroupAttributes_AudioAttributesEx()
53 legacy2aidl_audio_stream_type_t_AudioStreamType(legacy.getStreamType())); in legacy2aidl_VolumeGroupAttributes_AudioAttributesEx()
54 aidl.groupId = VALUE_OR_RETURN(legacy2aidl_volume_group_t_int32_t(legacy.getGroupId())); in legacy2aidl_VolumeGroupAttributes_AudioAttributesEx()
DAudioProductStrategy.cpp40 legacy2aidl_AudioProductStrategy(const AudioProductStrategy& legacy) { in legacy2aidl_AudioProductStrategy() argument
42 aidl.name = legacy.getName(); in legacy2aidl_AudioProductStrategy()
45 legacy.getVolumeGroupAttributes(), in legacy2aidl_AudioProductStrategy()
47 aidl.id = VALUE_OR_RETURN(legacy2aidl_product_strategy_t_int32_t(legacy.getId())); in legacy2aidl_AudioProductStrategy()
/frameworks/av/media/audioaidlconversion/
DAidlConversionNdk.cpp84 buffer_config_t legacy; in aidl2legacy_AudioConfig_buffer_config_t() local
86 legacy.samplingRate = VALUE_OR_RETURN(convertIntegral<uint32_t>(aidl.base.sampleRate)); in aidl2legacy_AudioConfig_buffer_config_t()
87 legacy.mask |= EFFECT_CONFIG_SMP_RATE; in aidl2legacy_AudioConfig_buffer_config_t()
89 legacy.channels = VALUE_OR_RETURN( in aidl2legacy_AudioConfig_buffer_config_t()
91 legacy.mask |= EFFECT_CONFIG_CHANNELS; in aidl2legacy_AudioConfig_buffer_config_t()
93 legacy.format = in aidl2legacy_AudioConfig_buffer_config_t()
95 legacy.mask |= EFFECT_CONFIG_FORMAT; in aidl2legacy_AudioConfig_buffer_config_t()
96 legacy.buffer.frameCount = aidl.frameCount; in aidl2legacy_AudioConfig_buffer_config_t()
99 return legacy; in aidl2legacy_AudioConfig_buffer_config_t()
103 legacy2aidl_buffer_config_t_AudioConfig(const buffer_config_t& legacy, bool isInput) { in legacy2aidl_buffer_config_t_AudioConfig() argument
[all …]
DAidlConversionCppNdk.cpp124 ConversionResult<std::string> legacy2aidl_string(const char* legacy, size_t maxSize) { in legacy2aidl_string() argument
125 if (legacy == nullptr) { in legacy2aidl_string()
128 if (strnlen(legacy, maxSize) == maxSize) { in legacy2aidl_string()
132 return std::string(legacy); in legacy2aidl_string()
139 ConversionResult<int32_t> legacy2aidl_audio_module_handle_t_int32_t(audio_module_handle_t legacy) { in legacy2aidl_audio_module_handle_t_int32_t() argument
140 return convertReinterpret<int32_t>(legacy); in legacy2aidl_audio_module_handle_t_int32_t()
147 ConversionResult<int32_t> legacy2aidl_audio_io_handle_t_int32_t(audio_io_handle_t legacy) { in legacy2aidl_audio_io_handle_t_int32_t() argument
148 return convertReinterpret<int32_t>(legacy); in legacy2aidl_audio_io_handle_t_int32_t()
155 ConversionResult<int32_t> legacy2aidl_audio_port_handle_t_int32_t(audio_port_handle_t legacy) { in legacy2aidl_audio_port_handle_t_int32_t() argument
156 return convertReinterpret<int32_t>(legacy); in legacy2aidl_audio_port_handle_t_int32_t()
[all …]
DAidlConversionEffect.cpp77 ConversionResult<Flags::Type> legacy2aidl_uint32_Flags_Type(uint32_t legacy) { in legacy2aidl_uint32_Flags_Type() argument
78 switch (legacy & EFFECT_FLAG_TYPE_MASK) { in legacy2aidl_uint32_Flags_Type()
107 ConversionResult<Flags::Insert> legacy2aidl_uint32_Flags_Insert(uint32_t legacy) { in legacy2aidl_uint32_Flags_Insert() argument
108 switch (legacy & EFFECT_FLAG_INSERT_MASK) { in legacy2aidl_uint32_Flags_Insert()
135 ConversionResult<Flags::Volume> legacy2aidl_uint32_Flags_Volume(uint32_t legacy) { in legacy2aidl_uint32_Flags_Volume() argument
136 switch (legacy & EFFECT_FLAG_VOLUME_MASK) { in legacy2aidl_uint32_Flags_Volume()
150 uint32_t legacy = 0; in aidl2legacy_Flags_uint32() local
151 legacy |= VALUE_OR_RETURN(aidl2legacy_Flags_Type_uint32(aidl.type)); in aidl2legacy_Flags_uint32()
152 legacy |= VALUE_OR_RETURN(aidl2legacy_Flags_Insert_uint32(aidl.insert)); in aidl2legacy_Flags_uint32()
153 legacy |= VALUE_OR_RETURN(aidl2legacy_Flags_Volume_uint32(aidl.volume)); in aidl2legacy_Flags_uint32()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAidlConversion.h52 audio_io_config_event_t legacy);
57 audio_port_role_t legacy);
62 audio_port_type_t legacy);
69 const audio_port_config_device_ext& legacy,
77 const audio_port_config_mix_ext& legacy, audio_port_role_t role,
83 const audio_port_config_session_ext& legacy);
89 const audio_port_config& legacy, int32_t portId = 0);
94 const struct audio_patch& legacy);
99 const sp<AudioIoDescriptor>& legacy);
104 const AudioClient& legacy);
[all …]
DPolicyAidlConversion.h45 legacy2aidl_product_strategy_t_int32_t(product_strategy_t legacy);
50 legacy2aidl_uint32_t_AudioMixType(uint32_t legacy);
55 legacy2aidl_uint32_t_AudioMixCallbackFlag(uint32_t legacy);
60 legacy2aidl_uint32_t_AudioMixCallbackFlag_mask(uint32_t legacy);
65 legacy2aidl_uint32_t_AudioMixRouteFlag(uint32_t legacy);
70 legacy2aidl_uint32_t_AudioMixRouteFlag_mask(uint32_t legacy);
75 legacy2aidl_AudioMixMatchCriterion(const AudioMixMatchCriterion& legacy);
80 legacy2aidl_AudioMix(const AudioMix& legacy);
85 legacy2aidl_audio_policy_dev_state_t_AudioPolicyDeviceState(audio_policy_dev_state_t legacy);
90 legacy2aidl_audio_policy_force_use_t_AudioPolicyForceUse(audio_policy_force_use_t legacy);
[all …]
/frameworks/av/media/audioaidlconversion/include/media/
DAidlConversionCppNdk-impl.h89 ConversionResult<std::string> legacy2aidl_string(const char* legacy, size_t maxSize);
92 ConversionResult<int32_t> legacy2aidl_audio_module_handle_t_int32_t(audio_module_handle_t legacy);
95 ConversionResult<int32_t> legacy2aidl_audio_io_handle_t_int32_t(audio_io_handle_t legacy);
98 ConversionResult<int32_t> legacy2aidl_audio_port_handle_t_int32_t(audio_port_handle_t legacy);
101 ConversionResult<int32_t> legacy2aidl_audio_patch_handle_t_int32_t(audio_patch_handle_t legacy);
104 ConversionResult<int32_t> legacy2aidl_audio_unique_id_t_int32_t(audio_unique_id_t legacy);
107 ConversionResult<int32_t> legacy2aidl_audio_hw_sync_t_int32_t(audio_hw_sync_t legacy);
110 ConversionResult<int32_t> legacy2aidl_config_mask_int32_t(unsigned int legacy);
113 ConversionResult<int32_t> legacy2aidl_pid_t_int32_t(pid_t legacy);
116 ConversionResult<int32_t> legacy2aidl_uid_t_int32_t(uid_t legacy);
[all …]
DAidlConversionNdk.h40 const buffer_config_t& legacy, bool isInput);
43 const std::vector<std::string>& aidl, char* legacy);
44 ConversionResult<std::vector<std::string>> legacy2aidl_AudioAttributesTags(const char* legacy);
51 const playback_track_metadata_v7& legacy);
57 legacy2aidl_record_track_metadata_v7_RecordTrackMetadata(const record_track_metadata_v7& legacy);
DAidlConversionEffect.h94 legacy2aidl_uint32_Flags_Type(uint32_t legacy);
96 legacy2aidl_uint32_Flags_Insert(uint32_t legacy);
98 legacy2aidl_uint32_Flags_Volume(uint32_t legacy);
100 legacy2aidl_uint32_Flags_HardwareAccelerator(uint32_t legacy);
112 legacy2aidl_uint32_echoDelay_Parameter_aec(uint32_t legacy);
117 legacy2aidl_uint32_mobileMode_Parameter_aec(uint32_t legacy);
122 legacy2aidl_uint32_fixedDigitalGain_Parameter_agc(uint32_t legacy);
127 legacy2aidl_uint32_levelEstimator_Parameter_agc(uint32_t legacy);
132 legacy2aidl_uint32_saturationMargin_Parameter_agc(uint32_t legacy);
137 legacy2aidl_uint16_strengthPm_Parameter_BassBoost(uint16_t legacy);
[all …]
/frameworks/base/core/jni/
Dandroid_media_audio_common_AidlConversion.cpp79 int legacy2aidl(JNIEnv* env, LegacyType legacy, const ConvFunc& conv, AidlType fallbackValue) { in legacy2aidl() argument
80 const auto result = conv(legacy); in legacy2aidl()
85 msg << "Failed to convert legacy " << type_info<LegacyType>::name << " value " << legacy; in legacy2aidl()
95 auto legacy = conv(aidl); in aidlParcel2legacy() local
96 if (legacy.ok()) { in aidlParcel2legacy()
97 return legacy.value(); in aidlParcel2legacy()
112 jobject legacy2aidlParcel(JNIEnv* env, LegacyType legacy, const ConvFunc& conv) { in legacy2aidlParcel() argument
113 auto aidl = conv(legacy); in legacy2aidlParcel()
116 msg << "Failed to convert legacy " << type_info<LegacyType>::name << " value " << legacy; in legacy2aidlParcel()
150 JNIEnv* env, jobject, int /*audio_channel_mask_t*/ legacy, jboolean isInput) { in legacy2aidl_audio_channel_mask_t_AudioChannelLayout_Parcel()
[all …]
/frameworks/base/media/tests/aidltests/src/com/android/media/
DAidlConversionUnitTests.java234 final int legacy = 0; /*AUDIO_CHANNEL_NONE*/ in testAudioChannelConversionLegacyDefault() local
237 legacy, false /*isInput*/); in testAudioChannelConversionLegacyDefault()
240 legacy, true /*isInput*/); in testAudioChannelConversionLegacyDefault()
249 assertEquals(legacy, legacyBack); in testAudioChannelConversionLegacyDefault()
250 assertEquals(legacy, legacyBackInput); in testAudioChannelConversionLegacyDefault()
255 final int legacy = 1; /*AUDIO_CHANNEL_OUT_MONO*/ in testAudioChannelConversionLegacyOutput() local
258 legacy, false /*isInput*/); in testAudioChannelConversionLegacyOutput()
264 assertEquals(legacy, legacyBack); in testAudioChannelConversionLegacyOutput()
269 final int legacy = 0x10; /*AUDIO_CHANNEL_IN_MONO*/ in testAudioChannelConversionLegacyInput() local
272 legacy, true /*isInput*/); in testAudioChannelConversionLegacyInput()
[all …]
/frameworks/compile/libbcc/include/bcc/
DCompiler.h27 namespace legacy {
84 bool addInternalizeSymbolsPass(Script &pScript, llvm::legacy::PassManager &pPM);
85 void addExpandKernelPass(llvm::legacy::PassManager &pPM);
86 void addDebugInfoPass(Script &pScript, llvm::legacy::PassManager &pPM);
87 void addGlobalInfoPass(Script &pScript, llvm::legacy::PassManager &pPM);
88 void addInvariantPass(llvm::legacy::PassManager &pPM);
89 void addInvokeHelperPass(llvm::legacy::PassManager &pPM);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyConfig.cpp50 auto legacy = sp<AudioRoute>::make(aidl.isExclusive ? AUDIO_ROUTE_MUX : AUDIO_ROUTE_MIX); in aidl2legacy_AudioRoute() local
52 legacy->setSink(legacySink); in aidl2legacy_AudioRoute()
59 legacy->setSources(legacySources); in aidl2legacy_AudioRoute()
60 legacySink->addRoute(legacy); in aidl2legacy_AudioRoute()
62 legacySource->addRoute(legacy); in aidl2legacy_AudioRoute()
64 return legacy; in aidl2legacy_AudioRoute()
68 sp<HwModule>* legacy, in aidl2legacy_AudioHwModule_HwModule() argument
71 *legacy = sp<HwModule>::make(aidl.name.c_str(), AUDIO_DEVICE_API_VERSION_CURRENT); in aidl2legacy_AudioHwModule_HwModule()
74 (*legacy)->setHandle(legacyHandle); in aidl2legacy_AudioHwModule_HwModule()
130 (*legacy)->setProfiles(mixPorts); in aidl2legacy_AudioHwModule_HwModule()
[all …]
/frameworks/av/media/libaudiofoundation/
DAudioProfile.cpp168 sp<AudioProfile> legacy = VALUE_OR_RETURN(fromCommonParcelable(aidl.first, isInput)); in fromParcelable() local
170 legacy->mIsDynamicFormat = parcelableSys.isDynamicFormat; in fromParcelable()
171 legacy->mIsDynamicChannels = parcelableSys.isDynamicChannels; in fromParcelable()
172 legacy->mIsDynamicRate = parcelableSys.isDynamicRate; in fromParcelable()
173 return legacy; in fromParcelable()
202 sp<AudioProfile> legacy = new AudioProfile(); in fromCommonParcelable() local
203 legacy->mName = aidl.name; in fromCommonParcelable()
204 legacy->mFormat = VALUE_OR_RETURN( in fromCommonParcelable()
206 legacy->mChannelMasks = VALUE_OR_RETURN( in fromCommonParcelable()
211 legacy->mSamplingRates = VALUE_OR_RETURN( in fromCommonParcelable()
[all …]
DAudioGain.cpp136 sp<AudioGain> legacy = sp<AudioGain>::make(index, sys.isInput); in fromParcelable() local
137 legacy->mGain = VALUE_OR_RETURN(aidl2legacy_AudioGain_audio_gain(hal, sys.isInput)); in fromParcelable()
138 legacy->mUseForVolume = hal.useForVolume; in fromParcelable()
139 return legacy; in fromParcelable()
156 legacy2aidl_AudioGain(const sp<AudioGain>& legacy) { in legacy2aidl_AudioGain() argument
157 return legacy->toParcelable(); in legacy2aidl_AudioGain()
170 legacy2aidl_AudioGains(const AudioGains& legacy) { in legacy2aidl_AudioGains() argument
173 std::vector<media::AudioGainSys>>(legacy, legacy2aidl_AudioGain); in legacy2aidl_AudioGains()
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp56 AttributesGroup legacy; in aidl2legacy_AudioHalAttributeGroup_AttributesGroup() local
57 legacy.stream = VALUE_OR_RETURN( in aidl2legacy_AudioHalAttributeGroup_AttributesGroup()
59 legacy.volumeGroup = aidl.volumeGroupName; in aidl2legacy_AudioHalAttributeGroup_AttributesGroup()
60 legacy.attributesVect = VALUE_OR_RETURN(convertContainer<AttributesVector>( in aidl2legacy_AudioHalAttributeGroup_AttributesGroup()
62 return legacy; in aidl2legacy_AudioHalAttributeGroup_AttributesGroup()
67 ProductStrategy legacy; in aidl2legacy_AudioHalProductStrategy_ProductStrategy() local
68 legacy.name = "strategy_" + std::to_string(aidl.id); in aidl2legacy_AudioHalProductStrategy_ProductStrategy()
69 legacy.attributesGroups = VALUE_OR_RETURN(convertContainer<AttributesGroups>( in aidl2legacy_AudioHalProductStrategy_ProductStrategy()
72 return legacy; in aidl2legacy_AudioHalProductStrategy_ProductStrategy()
75 ConversionResult<std::string> legacy_device_category_to_string(device_category legacy) { in legacy_device_category_to_string() argument
[all …]
/frameworks/compile/libbcc/lib/
DCompiler.cpp224 llvm::legacy::PassManager transformPasses; in runPasses()
287 llvm::legacy::PassManager codeGenPasses; in runPasses()
368 bool Compiler::addInternalizeSymbolsPass(Script &script, llvm::legacy::PassManager &pPM) { in addInternalizeSymbolsPass()
458 void Compiler::addInvokeHelperPass(llvm::legacy::PassManager &pPM) { in addInvokeHelperPass()
465 void Compiler::addDebugInfoPass(Script &script, llvm::legacy::PassManager &pPM) { in addDebugInfoPass()
470 void Compiler::addExpandKernelPass(llvm::legacy::PassManager &pPM) { in addExpandKernelPass()
476 void Compiler::addGlobalInfoPass(Script &script, llvm::legacy::PassManager &pPM) { in addGlobalInfoPass()
483 void Compiler::addInvariantPass(llvm::legacy::PassManager &pPM) { in addInvariantPass()
505 llvm::legacy::PassManager pPM; in screenGlobalFunctions()
514 llvm::legacy::PassManager pPM; in translateGEPs()
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/close/
DCloseAppHomeButtonTest.kt22 import android.tools.device.flicker.legacy.FlickerBuilder
23 import android.tools.device.flicker.legacy.LegacyFlickerTest
24 import android.tools.device.flicker.legacy.LegacyFlickerTestFactory
DCloseAppBackButtonTest.kt22 import android.tools.device.flicker.legacy.FlickerBuilder
23 import android.tools.device.flicker.legacy.LegacyFlickerTest
24 import android.tools.device.flicker.legacy.LegacyFlickerTestFactory
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/launch/
DOpenAppFromIntentColdAfterCameraTest.kt21 import android.tools.device.flicker.legacy.FlickerBuilder
22 import android.tools.device.flicker.legacy.LegacyFlickerTest
23 import android.tools.device.flicker.legacy.LegacyFlickerTestFactory

1234567891011