Home
last modified time | relevance | path

Searched refs:indexMax (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioManagerTest.java207 int indexMax = 0; in testSetGetVolumePerAttributes() local
211 indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aaForUsage); in testSetGetVolumePerAttributes()
241 mAudioManager.setVolumeIndexForAttributes(aaForUsage, indexMax, 0/*flags*/); in testSetGetVolumePerAttributes()
243 assertEquals(index, indexMax); in testSetGetVolumePerAttributes()
270 int indexMax = 0; in testVolumeGroupCallback() local
282 indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aa); in testVolumeGroupCallback()
284 index = incrementVolumeIndex(index, indexMin, indexMax); in testVolumeGroupCallback()
310 indexMax = mAudioManager.getStreamMaxVolume(avgStreamType); in testVolumeGroupCallback()
312 index = incrementVolumeIndex(index, indexMin, indexMax); in testVolumeGroupCallback()
DAudioVolumesTestBase.java139 public static int resetVolumeIndex(int indexMin, int indexMax) { in resetVolumeIndex() argument
140 return (indexMax + indexMin) / 2; in resetVolumeIndex()
143 public static int incrementVolumeIndex(int index, int indexMin, int indexMax) { in incrementVolumeIndex() argument
144 return (index + 1 > indexMax) ? resetVolumeIndex(indexMin, indexMax) : ++index; in incrementVolumeIndex()
DAudioVolumeGroupChangeHandlerTest.java102 int indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aa); in testCallbackReceived() local
105 final int indexForAa = incrementVolumeIndex(index, indexMin, indexMax); in testCallbackReceived()
156 int indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aa); in testMultipleCallbackReceived() local
159 final int indexForAa = incrementVolumeIndex(index, indexMin, indexMax); in testMultipleCallbackReceived()
/frameworks/av/services/audiopolicy/engine/common/include/
DVolumeCurve.h74 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()
DVolumeGroup.h33 VolumeGroup(const std::string &name, int indexMin, int indexMax);
/frameworks/av/services/audiopolicy/engine/common/src/
DVolumeGroup.cpp34 VolumeGroup::VolumeGroup(const std::string &name, int indexMin, int indexMax) : in VolumeGroup() argument
36 mGroupVolumeCurves(VolumeCurves(indexMin, indexMax)) in VolumeGroup()
DEngineBase.cpp119 volumeConfig.indexMax); in loadAudioPolicyEngineConfig()
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp135 static constexpr const char *indexMax = "indexMax"; member
467 int indexMax = 0; in deserialize() local
489 if (not xmlStrcmp(child->name, (const xmlChar *)Attributes::indexMax)) { in deserialize()
495 if (!convertTo(indexMaxLiteral, indexMax)) { in deserialize()
511 __func__, name.c_str(), indexMin, indexMax, streamNames.c_str(), attrmNames.c_str( )); in deserialize()
516 volumes.push_back({ name, indexMin, indexMax, groupVolumeCurves }); in deserialize()
600 int indexMax = streamType >= AUDIO_STREAM_PUBLIC_CNT ? 100 : -1; in deserializeLegacyVolumeCollection() local
601 volumeGroups.push_back({ volumeMapIter.first, indexMin, indexMax, volumeMapIter.second }); in deserializeLegacyVolumeCollection()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DIVolumeCurves.h41 virtual status_t initVolume(int indexMin, int indexMax) = 0;
/frameworks/av/services/audiopolicy/engine/config/include/
DEngineConfig.h61 int indexMax; member
/frameworks/av/media/libaudioclient/include/media/
DIAudioPolicyService.h92 int indexMax) = 0;
DAudioSystem.h262 int indexMax);
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h155 int indexMax) = 0;
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp672 int indexMax) in initStreamVolume() argument
685 mAudioPolicyManager->initStreamVolume(stream, indexMin, indexMax); in initStreamVolume()
DAudioPolicyService.h110 int indexMax);
/frameworks/av/media/libaudioclient/
DIAudioPolicyService.cpp388 int indexMax) in initStreamVolume() argument
394 data.writeInt32(indexMax); in initStreamVolume()
1642 int indexMax = data.readInt32(); in onTransact() local
1643 reply->writeInt32(static_cast <uint32_t>(initStreamVolume(stream, indexMin,indexMax))); in onTransact()
DAudioSystem.cpp957 int indexMax) in initStreamVolume() argument
961 return aps->initStreamVolume(stream, indexMin, indexMax); in initStreamVolume()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h156 virtual void initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax);
DAudioPolicyManager.cpp2422 void AudioPolicyManager::initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) in initStreamVolume() argument
2424 ALOGV("initStreamVolume() stream %d, min %d, max %d", stream , indexMin, indexMax); in initStreamVolume()
2425 if (indexMin < 0 || indexMax < 0) { in initStreamVolume()
2426 ALOGE("%s for stream %d: invalid min %d or max %d", __func__, stream , indexMin, indexMax); in initStreamVolume()
2429 getVolumeCurves(stream).initVolume(indexMin, indexMax); in initStreamVolume()
2436 getVolumeCurves((audio_stream_type_t)curStream).initVolume(indexMin, indexMax); in initStreamVolume()
/frameworks/base/media/java/android/media/
DAudioSystem.java1154 public static native int initStreamVolume(int stream, int indexMin, int indexMax); in initStreamVolume() argument
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp551 …_AudioSystem_initStreamVolume(JNIEnv *env, jobject thiz, jint stream, jint indexMin, jint indexMax) in android_media_AudioSystem_initStreamVolume() argument
555 indexMax)); in android_media_AudioSystem_initStreamVolume()