/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioVolumeTestUtil.java | 29 public static int resetVolumeIndex(int indexMin, int indexMax) { in resetVolumeIndex() argument 30 return (indexMax + indexMin) / 2; in resetVolumeIndex() 33 public static int incrementVolumeIndex(int index, int indexMin, int indexMax) { in incrementVolumeIndex() argument 34 return (index + 1 > indexMax) ? resetVolumeIndex(indexMin, indexMax) : ++index; in incrementVolumeIndex()
|
D | AudioManagerTest.java | 238 int indexMax = 0; in testSetGetVolumePerAttributes() local 243 indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aaForUsage); in testSetGetVolumePerAttributes() 273 mAudioManager.setVolumeIndexForAttributes(aaForUsage, indexMax, 0/*flags*/); in testSetGetVolumePerAttributes() 275 assertEquals(index, indexMax); in testSetGetVolumePerAttributes() 304 int indexMax = 0; in testVolumeGroupCallback() local 316 indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aa); in testVolumeGroupCallback() 318 index = incrementVolumeIndex(index, indexMin, indexMax); in testVolumeGroupCallback() 344 indexMax = mAudioManager.getStreamMaxVolume(avgStreamType); in testVolumeGroupCallback() 346 index = incrementVolumeIndex(index, indexMin, indexMax); in testVolumeGroupCallback()
|
D | AudioVolumeGroupChangeHandlerTest.java | 132 int indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aa); in testCallbackReceived() local 135 final int indexForAa = incrementVolumeIndex(index, indexMin, indexMax); in testCallbackReceived() 187 int indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aa); in testMultipleCallbackReceived() local 190 final int indexForAa = incrementVolumeIndex(index, indexMin, indexMax); in testMultipleCallbackReceived()
|
/frameworks/av/services/audiopolicy/engine/common/include/ |
D | VolumeCurve.h | 74 VolumeCurves(int indexMin = 0, int indexMax = 100) : 75 mIndexMin(indexMin), mIndexMax(indexMax) in mIndexMin() 79 status_t initVolume(int indexMin, int indexMax) override in initVolume() argument 82 mIndexMax = indexMax; in initVolume()
|
D | VolumeGroup.h | 33 VolumeGroup(const std::string &name, int indexMin, int indexMax);
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | VolumeGroup.cpp | 34 VolumeGroup::VolumeGroup(const std::string &name, int indexMin, int indexMax) : in VolumeGroup() argument 36 mGroupVolumeCurves(VolumeCurves(indexMin, indexMax)) in VolumeGroup()
|
D | EngineBase.cpp | 173 volumeConfig.indexMax); in processParsingResult()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | IVolumeCurves.h | 41 virtual status_t initVolume(int indexMin, int indexMax) = 0;
|
/frameworks/av/services/audiopolicy/engine/config/src/ |
D | EngineConfig.cpp | 146 legacy.indexMax = aidl.maxIndex; in aidl2legacy_AudioHalVolumeGroup_VolumeGroup() 241 static constexpr const char *indexMax = "indexMax"; member 590 int indexMax = 0; in deserialize() local 612 if (not xmlStrcmp(child->name, (const xmlChar *)Attributes::indexMax)) { in deserialize() 618 if (!convertTo(indexMaxLiteral, indexMax)) { in deserialize() 634 __func__, name.c_str(), indexMin, indexMax, streamNames.c_str(), attrmNames.c_str( )); in deserialize() 639 volumes.push_back({ name, indexMin, indexMax, groupVolumeCurves }); in deserialize() 724 int indexMax = streamType >= AUDIO_STREAM_PUBLIC_CNT ? 100 : -1; in deserializeLegacyVolumeCollection() local 726 { volumeMapIter.first, indexMin, indexMax, volumeMapIter.second }); in deserializeLegacyVolumeCollection()
|
/frameworks/av/services/audiopolicy/engine/config/include/ |
D | EngineConfig.h | 67 int indexMax; member
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | IAudioPolicyService.aidl | 125 int indexMax); in initStreamVolume() argument
|
/frameworks/av/services/audiopolicy/ |
D | AudioPolicyInterface.h | 192 int indexMax) = 0;
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioSystem.h | 383 int indexMax);
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 168 virtual void initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax);
|
D | AudioPolicyManager.cpp | 3402 void AudioPolicyManager::initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) in initStreamVolume() argument 3404 ALOGV("initStreamVolume() stream %d, min %d, max %d", stream , indexMin, indexMax); in initStreamVolume() 3405 if (indexMin < 0 || indexMax < 0) { in initStreamVolume() 3406 ALOGE("%s for stream %d: invalid min %d or max %d", __func__, stream , indexMin, indexMax); in initStreamVolume() 3409 getVolumeCurves(stream).initVolume(indexMin, indexMax); in initStreamVolume() 3416 getVolumeCurves((audio_stream_type_t)curStream).initVolume(indexMin, indexMax); in initStreamVolume()
|
/frameworks/base/media/java/android/media/ |
D | AudioSystem.java | 1771 public static native int initStreamVolume(int stream, int indexMin, int indexMax); in initStreamVolume() argument
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyService.h | 135 int32_t indexMax) override;
|
D | AudioPolicyInterfaceImpl.cpp | 1057 int indexMax = VALUE_OR_RETURN_BINDER_STATUS(convertIntegral<int>(indexMaxAidl)); in initStreamVolume() local 1070 mAudioPolicyManager->initStreamVolume(stream, indexMin, indexMax); in initStreamVolume()
|
/frameworks/av/media/libaudioclient/ |
D | AudioSystem.cpp | 1309 int indexMax) { in initStreamVolume() argument 1316 int32_t indexMaxAidl = VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(indexMax)); in initStreamVolume()
|
/frameworks/base/core/jni/ |
D | android_media_AudioSystem.cpp | 730 …_AudioSystem_initStreamVolume(JNIEnv *env, jobject thiz, jint stream, jint indexMin, jint indexMax) in android_media_AudioSystem_initStreamVolume() argument 734 indexMax)); in android_media_AudioSystem_initStreamVolume()
|