/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioManagerTest.java | 206 int indexMin = 0; in testSetGetVolumePerAttributes() local 219 indexMin = mAudioManager.getMinVolumeIndexForAttributes(aaForUsage); in testSetGetVolumePerAttributes() 233 mAudioManager.setVolumeIndexForAttributes(aaForUsage, indexMin, 0/*flags*/); in testSetGetVolumePerAttributes() 240 assertEquals(index, indexMin); in testSetGetVolumePerAttributes() 272 int indexMin = 0; in testVolumeGroupCallback() local 284 indexMin = mAudioManager.getMinVolumeIndexForAttributes(aa); in testVolumeGroupCallback() 285 index = incrementVolumeIndex(index, indexMin, indexMax); in testVolumeGroupCallback() 312 indexMin = mAudioManager.getStreamMinVolumeInt(avgStreamType); in testVolumeGroupCallback() 313 index = incrementVolumeIndex(index, indexMin, indexMax); in testVolumeGroupCallback()
|
D | AudioVolumesTestBase.java | 134 public static int resetVolumeIndex(int indexMin, int indexMax) { in resetVolumeIndex() argument 135 return (indexMax + indexMin) / 2; in resetVolumeIndex() 138 public static int incrementVolumeIndex(int index, int indexMin, int indexMax) { in incrementVolumeIndex() argument 139 return (index + 1 > indexMax) ? resetVolumeIndex(indexMin, indexMax) : ++index; in incrementVolumeIndex()
|
D | AudioVolumeGroupChangeHandlerTest.java | 103 int indexMin = mAudioManager.getMinVolumeIndexForAttributes(aa); in testCallbackReceived() local 105 final int indexForAa = incrementVolumeIndex(index, indexMin, indexMax); in testCallbackReceived() 157 int indexMin = mAudioManager.getMinVolumeIndexForAttributes(aa); in testMultipleCallbackReceived() local 159 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() argument 79 status_t initVolume(int indexMin, int indexMax) override in initVolume() argument 81 mIndexMin = indexMin; 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 | 128 sp<VolumeGroup> volumeGroup = new VolumeGroup(volumeConfig.name, volumeConfig.indexMin, in loadAudioPolicyEngineConfig()
|
/frameworks/av/services/audiopolicy/engine/config/src/ |
D | EngineConfig.cpp | 135 static constexpr const char *indexMin = "indexMin"; member 490 int indexMin = 0; in deserialize() local 503 if (not xmlStrcmp(child->name, (const xmlChar *)Attributes::indexMin)) { in deserialize() 509 if (!convertTo(indexMinLiteral, indexMin)) { in deserialize() 535 __func__, name.c_str(), indexMin, indexMax, streamNames.c_str(), attrmNames.c_str( )); in deserialize() 540 volumes.push_back({ name, indexMin, indexMax, groupVolumeCurves }); in deserialize() 624 int indexMin = streamType >= AUDIO_STREAM_PUBLIC_CNT ? 0 : -1; in deserializeLegacyVolumeCollection() local 627 { volumeMapIter.first, indexMin, indexMax, volumeMapIter.second }); in deserializeLegacyVolumeCollection()
|
/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/include/ |
D | EngineConfig.h | 60 int indexMin; member
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | IAudioPolicyService.aidl | 117 int indexMin, in initStreamVolume() argument
|
/frameworks/av/services/audiopolicy/ |
D | AudioPolicyInterface.h | 181 int indexMin,
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioSystem.h | 313 int indexMin,
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 158 virtual void initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax);
|
D | AudioPolicyManager.cpp | 2961 void AudioPolicyManager::initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) in initStreamVolume() argument 2963 ALOGV("initStreamVolume() stream %d, min %d, max %d", stream , indexMin, indexMax); in initStreamVolume() 2964 if (indexMin < 0 || indexMax < 0) { in initStreamVolume() 2965 ALOGE("%s for stream %d: invalid min %d or max %d", __func__, stream , indexMin, indexMax); in initStreamVolume() 2968 getVolumeCurves(stream).initVolume(indexMin, indexMax); in initStreamVolume() 2975 getVolumeCurves((audio_stream_type_t)curStream).initVolume(indexMin, indexMax); in initStreamVolume()
|
/frameworks/base/media/java/android/media/ |
D | AudioSystem.java | 1653 public static native int initStreamVolume(int stream, int indexMin, int indexMax); in initStreamVolume() argument
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyInterfaceImpl.cpp | 984 int indexMin = VALUE_OR_RETURN_BINDER_STATUS(convertIntegral<int>(indexMinAidl)); in initStreamVolume() local 998 mAudioPolicyManager->initStreamVolume(stream, indexMin, indexMax); in initStreamVolume()
|
D | AudioPolicyService.h | 117 binder::Status initStreamVolume(AudioStreamType stream, int32_t indexMin,
|
/frameworks/av/media/libaudioclient/ |
D | AudioSystem.cpp | 1198 int indexMin, in initStreamVolume() argument 1205 int32_t indexMinAidl = VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(indexMin)); in initStreamVolume()
|
/frameworks/base/core/jni/ |
D | android_media_AudioSystem.cpp | 669 android_media_AudioSystem_initStreamVolume(JNIEnv *env, jobject thiz, jint stream, jint indexMin, j… in android_media_AudioSystem_initStreamVolume() argument 672 indexMin, in android_media_AudioSystem_initStreamVolume()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 8556 final int indexMin = hasModifyAudioSettings ? mIndexMin : mIndexMinNoPerm; in getValidIndex() local 8557 if (index < indexMin) { in getValidIndex() 8558 return indexMin; in getValidIndex()
|