Home
last modified time | relevance | path

Searched refs:VolumeShaper (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/audio/
DFadeOutManager.java27 import android.media.VolumeShaper;
200 final VolumeShaper.Configuration volShaper = in fadeOutUid()
231 VolumeShaper.Configuration config = mFadeConfigurations in unfadeOutUid()
249 final VolumeShaper.Configuration volShaper = in checkFade()
302 private static final VolumeShaper.Operation PLAY_CREATE_IF_NEEDED =
303 new VolumeShaper.Operation.Builder(VolumeShaper.Operation.PLAY)
308 private static final VolumeShaper.Operation PLAY_SKIP_RAMP =
309 new VolumeShaper.Operation.Builder(PLAY_CREATE_IF_NEEDED).setXOffset(1.0f).build();
313 private final SparseArray<VolumeShaper.Configuration> mFadedPlayers = new SparseArray<>();
337 @NonNull VolumeShaper.Configuration volShaper) { in addFade()
[all …]
DFadeConfigurations.java27 import android.media.VolumeShaper;
70 private static final VolumeShaper.Configuration DEFAULT_FADEOUT_VSHAPE =
71 new VolumeShaper.Configuration.Builder()
75 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME)
277 public VolumeShaper.Configuration getFadeOutVolumeShaperConfig(@NonNull AudioAttributes aa) { in getFadeOutVolumeShaperConfig()
293 public VolumeShaper.Configuration getFadeInVolumeShaperConfig(@NonNull AudioAttributes aa) { in getFadeInVolumeShaperConfig()
414 private VolumeShaper.Configuration getOptimalFadeOutVolShaperConfig(AudioAttributes aa) { in getOptimalFadeOutVolShaperConfig()
418 VolumeShaper.Configuration volShaperConfig = in getOptimalFadeOutVolShaperConfig()
432 private VolumeShaper.Configuration getOptimalFadeInVolShaperConfig(AudioAttributes aa) { in getOptimalFadeInVolShaperConfig()
436 VolumeShaper.Configuration volShaperConfig = in getOptimalFadeInVolShaperConfig()
DPlaybackActivityMonitor.java46 import android.media.VolumeShaper;
93 private static final VolumeShaper.Configuration DUCK_VSHAPE =
94 new VolumeShaper.Configuration.Builder()
98 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME)
104 private static final VolumeShaper.Configuration DUCK_ID =
105 new VolumeShaper.Configuration(VOLUME_SHAPER_SYSTEM_DUCK_ID);
108 private static final VolumeShaper.Configuration STRONG_DUCK_VSHAPE =
109 new VolumeShaper.Configuration.Builder()
113 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME)
119 private static final VolumeShaper.Configuration STRONG_DUCK_ID =
[all …]
/frameworks/base/media/jni/
Dandroid_media_VolumeShaper.h24 using media::VolumeShaper;
106 static sp<VolumeShaper::Configuration> convertJobjectToConfiguration( in convertJobjectToConfiguration()
108 sp<VolumeShaper::Configuration> configuration = new VolumeShaper::Configuration(); in convertJobjectToConfiguration()
111 (VolumeShaper::Configuration::Type)env->GetIntField(jshaper, fields.coTypeId)); in convertJobjectToConfiguration()
114 if (configuration->getType() == VolumeShaper::Configuration::TYPE_SCALE) { in convertJobjectToConfiguration()
116 (VolumeShaper::Configuration::OptionFlag) in convertJobjectToConfiguration()
121 (VolumeShaper::Configuration::InterpolatorType) in convertJobjectToConfiguration()
150 const sp<VolumeShaper::Configuration> &configuration) { in convertVolumeShaperToJobject()
153 if (configuration->getType() == VolumeShaper::Configuration::TYPE_SCALE) { in convertVolumeShaperToJobject()
181 static sp<VolumeShaper::Operation> convertJobjectToOperation( in convertJobjectToOperation()
[all …]
/frameworks/av/include/media/
DVolumeShaper.h56 class VolumeShaper {
746 VolumeShaper( in VolumeShaper() function
747 const sp<VolumeShaper::Configuration> &configuration, in VolumeShaper()
748 const sp<VolumeShaper::Operation> &operation) in VolumeShaper()
756 && (getFlags() & VolumeShaper::Operation::FLAG_DELAY) == 0) { in VolumeShaper()
762 VolumeShaper::Operation::Flag getFlags() const { in getFlags()
764 ? VolumeShaper::Operation::FLAG_NONE : mOperation->getFlags(); in getFlags()
771 sp<VolumeShaper::State> getState() const { in getState()
776 return new VolumeShaper::State(volume, mDelayXOffset); in getState()
778 return new VolumeShaper::State(mLastVolume, mLastXOffset); in getState()
[all …]
DMediaPlayerInterface.h154 virtual media::VolumeShaper::Status applyVolumeShaper(
155 const sp<media::VolumeShaper::Configuration>& configuration,
156 const sp<media::VolumeShaper::Operation>& operation) = 0;
157 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) = 0;
/frameworks/base/media/java/android/media/
DVolumeShaper.java49 public final class VolumeShaper implements AutoCloseable { class
54 /* package */ VolumeShaper( in VolumeShaper() method in VolumeShaper
81 /* void */ applyPlayer(new VolumeShaper.Configuration(mId), operation); in apply()
148 new VolumeShaper.Configuration(mId), in close()
172 @NonNull VolumeShaper.Configuration configuration, in applyPlayer()
173 @NonNull VolumeShaper.Operation operation) { in applyPlayer()
204 private @NonNull VolumeShaper.State getStatePlayer(int id) { in getStatePlayer()
205 final VolumeShaper.State state; in getStatePlayer()
353 public static final Configuration LINEAR_RAMP = new VolumeShaper.Configuration.Builder()
366 public static final Configuration CUBIC_RAMP = new VolumeShaper.Configuration.Builder()
[all …]
DVolumeAutomation.java20 import android.media.VolumeShaper.Configuration;
38 public @NonNull VolumeShaper createVolumeShaper( in createVolumeShaper()
39 @NonNull VolumeShaper.Configuration configuration); in createVolumeShaper()
DFadeManagerConfiguration.java313 public VolumeShaper.Configuration getFadeOutVolumeShaperConfigForUsage( in getFadeOutVolumeShaperConfigForUsage()
332 public VolumeShaper.Configuration getFadeInVolumeShaperConfigForUsage( in getFadeInVolumeShaperConfigForUsage()
383 public VolumeShaper.Configuration getFadeOutVolumeShaperConfigForAudioAttributes( in getFadeOutVolumeShaperConfigForAudioAttributes()
402 public VolumeShaper.Configuration getFadeInVolumeShaperConfigForAudioAttributes( in getFadeInVolumeShaperConfigForAudioAttributes()
672 private long getDurationForVolumeShaperConfig(VolumeShaper.Configuration config) { in getDurationForVolumeShaperConfig()
676 private VolumeShaper.Configuration getVolumeShaperConfigFromWrapper( in getVolumeShaperConfigFromWrapper()
887 @Nullable VolumeShaper.Configuration fadeOutVShaperConfig) { in setFadeOutVolumeShaperConfigForUsage()
913 @Nullable VolumeShaper.Configuration fadeInVShaperConfig) { in setFadeInVolumeShaperConfigForUsage()
946 VolumeShaper.Configuration fadeOutVShaperConfig = in setFadeOutDurationForUsage()
977 VolumeShaper.Configuration fadeInVShaperConfig = in setFadeInDurationForUsage()
[all …]
DVolumeShaper.aidl18 parcelable VolumeShaper;
19 parcelable VolumeShaper.Configuration;
DHwAudioSource.java89 @NonNull VolumeShaper.Configuration configuration, in playerApplyVolumeShaper()
90 @NonNull VolumeShaper.Operation operation) { in playerApplyVolumeShaper()
104 VolumeShaper.State playerGetVolumeShaperState(int id) { in playerGetVolumeShaperState()
105 return new VolumeShaper.State(1f, 1f); in playerGetVolumeShaperState()
DPlayerProxy.java21 import android.media.VolumeShaper;
143 @NonNull VolumeShaper.Configuration configuration, in applyVolumeShaper()
144 @NonNull VolumeShaper.Operation operation) { in applyVolumeShaper()
DIRingtonePlayer.aidl20 import android.media.VolumeShaper;
33 float volume, boolean looping, in @nullable VolumeShaper.Configuration volumeShaperConfig); in playWithVolumeShaping()
DPlayerBase.java350 @NonNull VolumeShaper.Configuration configuration, in playerApplyVolumeShaper()
351 @NonNull VolumeShaper.Operation operation); in playerApplyVolumeShaper()
361 /* package */ abstract @Nullable VolumeShaper.State playerGetVolumeShaperState(int id); in playerGetVolumeShaperState()
434 pb.playerApplyVolumeShaper(VolumeShaper.Configuration.fromParcelable(configuration), in applyVolumeShaper()
435 VolumeShaper.Operation.fromParcelable(operation)); in applyVolumeShaper()
DRingtone.java67 private VolumeShaper.Configuration mVolumeShaperConfig;
68 private VolumeShaper mVolumeShaper;
473 public void setVolumeShaperConfig(@Nullable VolumeShaper.Configuration volumeShaperConfig) { in setVolumeShaperConfig()
484 public void setUri(Uri uri, @Nullable VolumeShaper.Configuration volumeShaperConfig) { in setUri()
577 mVolumeShaper.apply(VolumeShaper.Operation.PLAY); in startLocalPlayer()
/frameworks/av/media/libaudioclient/
DTrackPlayerBase.cpp21 using media::VolumeShaper;
135 sp<VolumeShaper::Configuration> spConfiguration = new VolumeShaper::Configuration(); in applyVolumeShaper()
136 sp<VolumeShaper::Operation> spOperation = new VolumeShaper::Operation(); in applyVolumeShaper()
146 VolumeShaper::Status status = mAudioTrack->applyVolumeShaper(spConfiguration, spOperation); in applyVolumeShaper()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeConfigurationsTest.java32 import android.media.VolumeShaper;
65 private static final VolumeShaper.Configuration DEFAULT_FADEOUT_VSHAPE =
66 new VolumeShaper.Configuration.Builder()
70 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME)
73 private static final VolumeShaper.Configuration DEFAULT_FADEIN_VSHAPE =
74 new VolumeShaper.Configuration.Builder()
78 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME)
/frameworks/av/media/libmedia/include/media/
DIMediaPlayer.h96 virtual media::VolumeShaper::Status applyVolumeShaper(
97 const sp<media::VolumeShaper::Configuration>& configuration,
98 const sp<media::VolumeShaper::Operation>& operation) = 0;
99 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) = 0;
Dmediaplayer.h275 media::VolumeShaper::Status applyVolumeShaper(
276 const sp<media::VolumeShaper::Configuration>& configuration,
277 const sp<media::VolumeShaper::Operation>& operation);
278 sp<media::VolumeShaper::State> getVolumeShaperState(int id);
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp585 using namespace android::media::VolumeShaper;
588 const VolumeShaper::Configuration& configuration, in applyVolumeShaper()
589 const VolumeShaper::Operation& operation) { in applyVolumeShaper()
591 … sp<VolumeShaper::Configuration> spConfiguration = new VolumeShaper::Configuration(configuration); in applyVolumeShaper()
592 sp<VolumeShaper::Operation> spOperation = new VolumeShaper::Operation(operation); in applyVolumeShaper()
DAudioStreamTrack.h94 const android::media::VolumeShaper::Configuration& configuration,
95 const android::media::VolumeShaper::Operation& operation) override;
/frameworks/av/media/libmedia/
DIMediaPlayer.cpp35 using media::VolumeShaper;
471 virtual VolumeShaper::Status applyVolumeShaper( in applyVolumeShaper()
472 const sp<VolumeShaper::Configuration>& configuration, in applyVolumeShaper()
473 const sp<VolumeShaper::Operation>& operation) { in applyVolumeShaper()
483 return VolumeShaper::Status(status); in applyVolumeShaper()
491 return VolumeShaper::Status(status); in applyVolumeShaper()
500 return VolumeShaper::Status(status); in applyVolumeShaper()
502 return VolumeShaper::Status(remoteVolumeShaperStatus); in applyVolumeShaper()
505 virtual sp<VolumeShaper::State> getVolumeShaperState(int id) { in getVolumeShaperState()
514 sp<VolumeShaper::State> state = new VolumeShaper::State(); in getVolumeShaperState()
[all …]
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DFadeManagerConfigurationUnitTest.java26 import android.media.VolumeShaper;
83 private static final VolumeShaper.Configuration TEST_DEFAULT_FADE_OUT_VOLUME_SHAPER_CONFIG =
84 new VolumeShaper.Configuration.Builder()
88 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME)
91 private static final VolumeShaper.Configuration TEST_DEFAULT_FADE_IN_VOLUME_SHAPER_CONFIG =
92 new VolumeShaper.Configuration.Builder()
96 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME)
99 private static final VolumeShaper.Configuration TEST_FADE_OUT_VOLUME_SHAPER_CONFIG =
100 new VolumeShaper.Configuration.Builder()
104 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME)
[all …]
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.h144 virtual media::VolumeShaper::Status applyVolumeShaper(
145 const sp<media::VolumeShaper::Configuration>& configuration,
146 … const sp<media::VolumeShaper::Operation>& operation) override;
147 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) override;
368 virtual media::VolumeShaper::Status applyVolumeShaper(
369 const sp<media::VolumeShaper::Configuration>& configuration,
370 … const sp<media::VolumeShaper::Operation>& operation) override;
371 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) override;
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h154 virtual media::VolumeShaper::Status applyVolumeShaper(
155 const sp<media::VolumeShaper::Configuration>& configuration,
156 const sp<media::VolumeShaper::Operation>& operation) = 0;
157 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) = 0;

123