Home
last modified time | relevance | path

Searched refs:streamType (Results 1 – 25 of 151) sorted by relevance

1234567

/aosp12/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
H A DAudioProductStrategyTest.java52 int streamType = aps.getLegacyStreamTypeForAudioAttributes(aa); in testGetProductStrategies() local
53 if (streamType == AudioSystem.STREAM_DEFAULT) { in testGetProductStrategies()
57 final int volumeGroupFromStream = aps.getVolumeGroupIdForLegacyStreamType(streamType); in testGetProductStrategies()
74 for (final int streamType : PUBLIC_STREAM_TYPES) { in testAudioAttributesFromStreamTypes()
77 streamType); in testAudioAttributesFromStreamTypes()
93 assertEquals("stream " + AudioSystem.streamToString(streamType) + "(" in testAudioAttributesFromStreamTypes()
94 + streamType + ") expected to match attributes " in testAudioAttributesFromStreamTypes()
98 streamType, streamTypeFromAttributes); in testAudioAttributesFromStreamTypes()
105 aps.getAudioAttributesForLegacyStreamType(streamType); in testAudioAttributesFromStreamTypes()
121 assertEquals(streamType, in testAudioAttributesFromStreamTypes()
[all …]
H A DAudioVolumesTestBase.java117 for (int streamType : PUBLIC_STREAM_TYPES) { in setUp()
118 mOriginalStreamVolumes.put(streamType, mAudioManager.getStreamVolume(streamType)); in setUp()
/aosp12/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioProductStrategy.java123 int streamType) { in getAudioAttributesForStrategyWithLegacyStreamType() argument
150 if (streamType == AudioSystem.STREAM_DEFAULT) { in getLegacyStreamTypeForStrategyWithAudioAttributes()
156 if (streamType < AudioSystem.getNumStreamTypes()) { in getLegacyStreamTypeForStrategyWithAudioAttributes()
157 return streamType; in getLegacyStreamTypeForStrategyWithAudioAttributes()
230 if (aag.supportsStreamType(streamType)) { in getAudioAttributesForLegacyStreamType()
278 if (aag.supportsStreamType(streamType)) { in getVolumeGroupIdForLegacyStreamType()
390 AudioAttributesGroup(int volumeGroupId, int streamType, in AudioAttributesGroup() argument
393 mLegacyStreamType = streamType; in AudioAttributesGroup()
438 public boolean supportsStreamType(int streamType) { in supportsStreamType() argument
439 return mLegacyStreamType == streamType; in supportsStreamType()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioService.java898 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in AudioService()
1465 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in onReinitVolumes()
1616 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllAliasStreamVolumes()
1700 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in onUpdateVolumeStatesForAudioDevice()
1746 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllFixedVolumeDevices()
3822 streamType = mStreamVolumeAlias[streamType]; in sendVolumeUpdate()
4420 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in muteRingerModeStreams()
5098 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in readAudioSettings()
7034 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in setIndex()
7409 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in setDeviceVolume()
[all …]
/aosp12/frameworks/base/core/java/android/preference/
H A DSeekBarVolumizer.java148 this(context, streamType, defaultUri, callback, true /* playSample */); in SeekBarVolumizer()
153 int streamType, in SeekBarVolumizer() argument
167 mStreamType = streamType; in SeekBarVolumizer()
206 private int getVolumeGroupIdForLegacyStreamType(int streamType) { in getVolumeGroupIdForLegacyStreamType() argument
582 updateVolumeSlider(streamType, streamValue); in onReceive()
594 int streamVolume = mAudioManager.getStreamVolume(streamType); in onReceive()
595 updateVolumeSlider(streamType, streamVolume); in onReceive()
600 int streamVolume = mAudioManager.getStreamVolume(streamType); in onReceive()
602 updateVolumeSlider(streamType, streamVolume); in onReceive()
621 private void updateVolumeSlider(int streamType, int streamValue) { in updateVolumeSlider() argument
[all …]
/aosp12/frameworks/base/media/java/android/media/
H A DIAudioService.aidl97 boolean isStreamMute(int streamType); in isStreamMute() argument
106 int getStreamVolume(int streamType); in getStreamVolume() argument
108 int getStreamMinVolume(int streamType); in getStreamMinVolume() argument
111 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument
123 int getLastAudibleStreamVolume(int streamType); in getLastAudibleStreamVolume() argument
208 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument
228 boolean isStreamAffectedByRingerMode(int streamType); in isStreamAffectedByRingerMode() argument
230 boolean isStreamAffectedByMute(int streamType); in isStreamAffectedByMute() argument
347 oneway void adjustStreamVolumeForUid(int streamType, int direction, int flags, in adjustStreamVolumeForUid() argument
355 oneway void setStreamVolumeForUid(int streamType, int direction, int flags, in setStreamVolumeForUid() argument
[all …]
H A DAudioManager.java1046 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument
1064 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument
1065 if (!isPublicStreamType(streamType)) { in getStreamMinVolume()
1068 return getStreamMinVolumeInt(streamType); in getStreamMinVolume()
1095 public int getStreamVolume(int streamType) { in getStreamVolume() argument
1136 if (!isPublicStreamType(streamType)) { in getStreamVolumeDb()
1139 if (index > getStreamMaxVolume(streamType) || index < getStreamMinVolume(streamType)) { in getStreamVolumeDb()
1155 switch (streamType) { in isPublicStreamType()
1445 public boolean isStreamMute(int streamType) { in isStreamMute() argument
5551 switch (streamType) { in getDevicesForStream()
[all …]
H A DToneGenerator.java750 public ToneGenerator(int streamType, int volume) { in ToneGenerator() argument
751 native_setup(streamType, volume, getCurrentOpPackageName()); in ToneGenerator()
886 int streamType, int volume, @NonNull String opPackageName); in native_setup() argument
H A DAudioAttributes.java1060 public Builder setLegacyStreamType(int streamType) { in setLegacyStreamType() argument
1061 if (streamType == AudioManager.STREAM_ACCESSIBILITY) { in setLegacyStreamType()
1065 setInternalLegacyStreamType(streamType); in setLegacyStreamType()
1076 public Builder setInternalLegacyStreamType(int streamType) { in setInternalLegacyStreamType() argument
1082 streamType); in setInternalLegacyStreamType()
1096 switch (streamType) { in setInternalLegacyStreamType()
1133 Log.e(TAG, "Invalid stream type " + streamType + " for AudioAttributes"); in setInternalLegacyStreamType()
1137 mUsage = usageForStreamType(streamType); in setInternalLegacyStreamType()
1525 private static int usageForStreamType(int streamType) { in usageForStreamType() argument
1526 switch(streamType) { in usageForStreamType()
/aosp12/frameworks/av/services/audiopolicy/engine/common/src/
H A DProductStrategy.cpp82 audio_stream_type_t streamType = iter->mStream; in getStreamTypeForAttributes() local
83 ALOGW_IF(streamType == AUDIO_STREAM_DEFAULT, in getStreamTypeForAttributes()
87 return streamType != AUDIO_STREAM_DEFAULT ? streamType : AUDIO_STREAM_MUSIC; in getStreamTypeForAttributes()
90 audio_attributes_t ProductStrategy::getAttributesForStreamType(audio_stream_type_t streamType) const in getAttributesForStreamType()
93 [&streamType](const auto &supportedAttr) { in getAttributesForStreamType()
94 return supportedAttr.mStream == streamType; }); in getAttributesForStreamType()
116 bool ProductStrategy::supportStreamType(const audio_stream_type_t &streamType) const in supportStreamType()
119 [&streamType](const auto &supportedAttr) { in supportStreamType()
120 return supportedAttr.mStream == streamType; }) != end(mAttributesVector); in supportStreamType()
/aosp12/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/sensoryfeedback/
H A DEmergencyActionAlarmHelper.java97 int streamType = AudioManager.STREAM_ALARM; in setAlarmVolumeToFull() local
99 mUserSetAlarmVolume = mAudioManager.getStreamVolume(streamType); in setAlarmVolumeToFull()
104 mAudioManager.setStreamVolume(streamType, in setAlarmVolumeToFull()
105 mAudioManager.getStreamMaxVolume(streamType), 0); in setAlarmVolumeToFull()
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL/
H A DQCameraMem.h121 cam_stream_type_t streamType = CAM_STREAM_TYPE_DEFAULT,
171 cam_stream_type_t streamType, bool is_secure);
173 cam_stream_type_t streamType);
180 cam_stream_type_t streamType);
222 cam_stream_type_t streamType = CAM_STREAM_TYPE_DEFAULT,
H A DQCameraParametersIntf.h87 int32_t getStreamRotation(cam_stream_type_t streamType,
90 int32_t getStreamFormat(cam_stream_type_t streamType,
94 cam_stream_type_t streamType, cam_sub_format_type_t &sub_format);
97 int32_t getStreamDimension(cam_stream_type_t streamType,
181 int getFlipMode(cam_stream_type_t streamType);
H A DQCameraMem.cpp81 cam_stream_type_t streamType, QCameraMemType bufType) in QCameraMemory() argument
84 mStreamType(streamType), in QCameraMemory()
603 cam_stream_type_t streamType) in releaseBuffer() argument
607 mPools[streamType].push_back(memInfo); in releaseBuffer()
660 if (mPools[streamType].empty()) { in findBufferLocked()
665 if (streamType == CAM_STREAM_TYPE_OFFLINE_PROC) { in findBufferLocked()
666 for( ; it != mPools[streamType].end() ; it++) { in findBufferLocked()
673 mPools[streamType].erase(it); in findBufferLocked()
679 for( ; it != mPools[streamType].end() ; it++) { in findBufferLocked()
686 mPools[streamType].erase(it); in findBufferLocked()
[all …]
/aosp12/frameworks/av/services/audiopolicy/engine/config/src/
H A DEngineConfig.cpp61 static constexpr const char *streamType = "streamType"; member
327 audio_stream_type_t streamType = AUDIO_STREAM_DEFAULT; in deserialize() local
328 std::string streamTypeXml = getXmlAttribute(child, Attributes::streamType); in deserialize()
330 ALOGV("%s: No attribute %s found", __FUNCTION__, Attributes::streamType); in deserialize()
332 ALOGV("%s: %s = %s", __FUNCTION__, Attributes::streamType, streamTypeXml.c_str()); in deserialize()
333 if (not StreamTypeConverter::fromString(streamTypeXml.c_str(), streamType)) { in deserialize()
341 attributesGroup.push_back({name, streamType, volumeGroup, attributesVect}); in deserialize()
609 audio_stream_type_t streamType; in deserializeLegacyVolumeCollection() local
610 if (!StreamTypeConverter::fromString(volumeMapIter.first, streamType)) { in deserializeLegacyVolumeCollection()
614 int indexMin = streamType >= AUDIO_STREAM_PUBLIC_CNT ? 0 : -1; in deserializeLegacyVolumeCollection()
[all …]
/aosp12/frameworks/av/media/libaudioclient/
H A DAudioAttributes.cpp50 aidl.streamType = VALUE_OR_RETURN( in legacy2aidl_AudioAttributes_AudioAttributesEx()
60 aidl.streamType)), in aidl2legacy_AudioAttributesEx_AudioAttributes()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DSystemAudioInitiationActionFromAvrTest.java108 public int getStreamVolume(int streamType) { in SetUp()
113 public boolean isStreamMute(int streamType) { in SetUp()
118 public int getStreamMaxVolume(int streamType) { in SetUp()
124 int streamType, int direction, int flags) {} in SetUp()
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
H A DPsiData.java60 int streamType, in PmtItem() argument
64 mStreamType = streamType; in PmtItem()
/aosp12/frameworks/av/services/mediametrics/
H A DAudioTypes.cpp344 int32_t lookup<STREAM_TYPE>(const std::string &streamType)
347 if (!TypeConverter<StreamTraits>::fromString(streamType, value)) {
354 std::string lookup<STREAM_TYPE>(const std::string &streamType)
357 if (!TypeConverter<StreamTraits>::fromString(streamType, value)) {
360 return streamType.c_str() + sizeof("AUDIO_STREAM");
/aosp12/frameworks/av/media/libeffects/config/src/
H A DEffectsConfig.cpp236 const char* streamType = xmlStream.Attribute("type"); in parseStream() local
237 if (streamType == nullptr) { in parseStream()
242 if (!stringToStreamType(streamType, &stream.type)) { in parseStream()
243 ALOGE("Invalid <stream|device> type %s: %s", streamType, dump(xmlStream)); in parseStream()
/aosp12/frameworks/av/services/audioflinger/
H A DTrackMetrics.h72 audio_stream_type_t streamType = AUDIO_STREAM_DEFAULT) const {
84 if (streamType != AUDIO_STREAM_DEFAULT) {
85 item.set(AMEDIAMETRICS_PROP_STREAMTYPE, toString(streamType).c_str());
/aosp12/frameworks/av/media/libstagefright/include/media/stagefright/
H A DUtils.h55 bool isStreaming, audio_stream_type_t streamType, audio_offload_info_t *info);
59 bool isStreaming, audio_stream_type_t streamType);
/aosp12/frameworks/av/media/libaudioclient/include/media/
H A DAudioTrack.h163 audio_stream_type_t streamType,
254 AudioTrack( audio_stream_type_t streamType,
285 AudioTrack( audio_stream_type_t streamType,
331 status_t set(audio_stream_type_t streamType,
352 status_t set(audio_stream_type_t streamType,
393 audio_stream_type_t streamType() const;
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowAudioManager.java87 public int getDevicesForStream(int streamType) { in getDevicesForStream() argument
88 switch (streamType) { in getDevicesForStream()
/aosp12/system/chre/platform/slpi/see/
H A Dplatform_sensor_manager.cc381 bool isStreamTypeCorrect(uint8_t sensorType, uint8_t streamType) { in isStreamTypeCorrect() argument
384 streamType != SNS_STD_SENSOR_STREAM_TYPE_STREAMING) || in isStreamTypeCorrect()
386 streamType != SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE) in isStreamTypeCorrect()
391 streamType != SNS_STD_SENSOR_STREAM_TYPE_SINGLE_OUTPUT) in isStreamTypeCorrect()
396 static_cast<uint8_t>(sensorType), streamType); in isStreamTypeCorrect()
424 attr.streamType, attr.passiveRequest); in getSuidAndAttrs()
485 if (isStreamTypeCorrect(sensorType, attr.streamType)) { in findAndAddSensorsForType()

1234567