/aosp12/frameworks/av/include/media/ |
H A D | VolumeShaper.h | 56 class VolumeShaper { 701 VolumeShaper( in VolumeShaper() function 726 sp<VolumeShaper::State> getState() const { in getState() 800 sp<VolumeShaper::Configuration> mConfiguration; 801 sp<VolumeShaper::Operation> mOperation; 888 VolumeShaper::Status applyVolumeShaper( in applyVolumeShaper() 892 sp<VolumeShaper::Operation> operation(new VolumeShaper::Operation(operation_in)); in applyVolumeShaper() 898 return VolumeShaper::Status(BAD_VALUE); in applyVolumeShaper() 902 return VolumeShaper::Status(BAD_VALUE); in applyVolumeShaper() 1016 return VolumeShaper::Status(id); in applyVolumeShaper() [all …]
|
H A D | MediaPlayerInterface.h | 152 virtual media::VolumeShaper::Status applyVolumeShaper( 153 const sp<media::VolumeShaper::Configuration>& configuration, 154 const sp<media::VolumeShaper::Operation>& operation) = 0; 155 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) = 0;
|
/aosp12/frameworks/base/media/jni/ |
H A D | android_media_VolumeShaper.h | 24 using media::VolumeShaper; 108 sp<VolumeShaper::Configuration> configuration = new VolumeShaper::Configuration(); in convertJobjectToConfiguration() 116 (VolumeShaper::Configuration::OptionFlag) in convertJobjectToConfiguration() 121 (VolumeShaper::Configuration::InterpolatorType) in convertJobjectToConfiguration() 150 const sp<VolumeShaper::Configuration> &configuration) { in convertVolumeShaperToJobject() 181 static sp<VolumeShaper::Operation> convertJobjectToOperation( in convertJobjectToOperation() 183 VolumeShaper::Operation::Flag flags = in convertJobjectToOperation() 188 sp<VolumeShaper::Operation> operation = in convertJobjectToOperation() 189 new VolumeShaper::Operation(flags, replaceId, xOffset); in convertJobjectToOperation() 205 static sp<VolumeShaper::State> convertJobjectToState( in convertJobjectToState() [all …]
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | VolumeShaper.java | 49 public final class VolumeShaper implements AutoCloseable { class 54 /* package */ VolumeShaper( in VolumeShaper() method in VolumeShaper 148 new VolumeShaper.Configuration(mId), in close() 173 @NonNull VolumeShaper.Operation operation) { in applyPlayer() 205 final VolumeShaper.State state; in getStatePlayer() 541 return new VolumeShaper.Configuration( in fromParcelable() 1164 new VolumeShaper.Operation.Builder() 1173 new VolumeShaper.Operation.Builder() 1287 return new VolumeShaper.Operation( in fromParcelable() 1302 return new VolumeShaper.Operation[size]; [all …]
|
H A D | VolumeAutomation.java | 20 import android.media.VolumeShaper.Configuration; 38 public @NonNull VolumeShaper createVolumeShaper( in createVolumeShaper() 39 @NonNull VolumeShaper.Configuration configuration); in createVolumeShaper()
|
H A D | HwAudioSource.java | 89 @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()
|
H A D | PlayerProxy.java | 21 import android.media.VolumeShaper; 143 @NonNull VolumeShaper.Configuration configuration, in applyVolumeShaper() 144 @NonNull VolumeShaper.Operation operation) { in applyVolumeShaper()
|
H A D | VolumeShaper.aidl | 18 parcelable VolumeShaper; 19 parcelable VolumeShaper.Configuration;
|
H A D | PlayerBase.java | 344 @NonNull VolumeShaper.Configuration configuration, in playerApplyVolumeShaper() 345 @NonNull VolumeShaper.Operation operation); in playerApplyVolumeShaper() 355 /* package */ abstract @Nullable VolumeShaper.State playerGetVolumeShaperState(int id); in playerGetVolumeShaperState() 428 pb.playerApplyVolumeShaper(VolumeShaper.Configuration.fromParcelable(configuration), in applyVolumeShaper() 429 VolumeShaper.Operation.fromParcelable(operation)); in applyVolumeShaper()
|
H A D | IRingtonePlayer.aidl | 20 import android.media.VolumeShaper; 33 float volume, boolean looping, in @nullable VolumeShaper.Configuration volumeShaperConfig); in playWithVolumeShaping()
|
H A D | Ringtone.java | 66 private VolumeShaper.Configuration mVolumeShaperConfig; 67 private VolumeShaper mVolumeShaper; 357 public void setUri(Uri uri, @Nullable VolumeShaper.Configuration volumeShaperConfig) { in setUri() 481 mVolumeShaper.apply(VolumeShaper.Operation.PLAY); in startLocalPlayer()
|
H A D | SoundPool.java | 397 @NonNull VolumeShaper.Configuration configuration, in playerApplyVolumeShaper() 398 @Nullable VolumeShaper.Operation operation) { in playerApplyVolumeShaper() 403 /* package */ @Nullable VolumeShaper.State playerGetVolumeShaperState(int id) { in playerGetVolumeShaperState()
|
/aosp12/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | FadeOutManager.java | 23 import android.media.VolumeShaper; 52 private static final VolumeShaper.Configuration FADEOUT_VSHAPE = 53 new VolumeShaper.Configuration.Builder() 57 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME) 60 private static final VolumeShaper.Operation PLAY_CREATE_IF_NEEDED = 61 new VolumeShaper.Operation.Builder(VolumeShaper.Operation.PLAY) 80 private static final VolumeShaper.Operation PLAY_SKIP_RAMP = 81 new VolumeShaper.Operation.Builder(PLAY_CREATE_IF_NEEDED).setXOffset(1.0f).build(); 269 VolumeShaper.Operation.REVERSE); in removeUnfadeAll()
|
H A D | PlaybackActivityMonitor.java | 28 import android.media.VolumeShaper; 58 private static final VolumeShaper.Configuration DUCK_VSHAPE = 59 new VolumeShaper.Configuration.Builder() 63 .setOptionFlags(VolumeShaper.Configuration.OPTION_FLAG_CLOCK_TIME) 69 private static final VolumeShaper.Configuration DUCK_ID = 70 new VolumeShaper.Configuration(VOLUME_SHAPER_SYSTEM_DUCK_ID); 71 private static final VolumeShaper.Operation PLAY_CREATE_IF_NEEDED = 72 new VolumeShaper.Operation.Builder(VolumeShaper.Operation.PLAY) 83 private static final VolumeShaper.Operation PLAY_SKIP_RAMP = 84 new VolumeShaper.Operation.Builder(PLAY_CREATE_IF_NEEDED).setXOffset(1.0f).build(); [all …]
|
/aosp12/frameworks/av/media/libaudioclient/ |
H A D | TrackPlayerBase.cpp | 21 using media::VolumeShaper; 132 sp<VolumeShaper::Configuration> spConfiguration = new VolumeShaper::Configuration(); in applyVolumeShaper() 133 sp<VolumeShaper::Operation> spOperation = new VolumeShaper::Operation(); in applyVolumeShaper() 143 VolumeShaper::Status status = mAudioTrack->applyVolumeShaper(spConfiguration, spOperation); in applyVolumeShaper()
|
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | RingerTest.java | 24 import android.media.VolumeShaper; 152 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean())) in setUp() 178 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean()); in testNoActionInTheaterMode() 196 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean()); in testNoActionWithExternalRinger() 212 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean()); in testNoActionWhenDialerRings() 229 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean()); in testAudioFocusStillAcquiredWhenDialerRings() 245 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean()); in testNoActionWhenCallIsSelfManaged() 264 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean()); in testCallWaitingButNoRingForSpecificContacts() 358 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean()); in testStopRingingBeforeHapticsLookupComplete() 437 nullable(VolumeShaper.Configuration.class), anyBoolean(), anyBoolean()); in testSilentRingWithHfpStillAcquiresFocus1() [all …]
|
/aosp12/frameworks/av/media/libaaudio/src/legacy/ |
H A D | AudioStreamTrack.cpp | 561 using namespace android::media::VolumeShaper; 564 const VolumeShaper::Configuration& configuration, in applyVolumeShaper() 565 const VolumeShaper::Operation& operation) { in applyVolumeShaper() 567 … sp<VolumeShaper::Configuration> spConfiguration = new VolumeShaper::Configuration(configuration); in applyVolumeShaper() 568 sp<VolumeShaper::Operation> spOperation = new VolumeShaper::Operation(operation); in applyVolumeShaper()
|
H A D | AudioStreamTrack.h | 95 const android::media::VolumeShaper::Configuration& configuration, 96 const android::media::VolumeShaper::Operation& operation) override;
|
/aosp12/frameworks/av/media/libmedia/include/media/ |
H A D | IMediaPlayer.h | 96 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;
|
H A D | mediaplayer.h | 273 media::VolumeShaper::Status applyVolumeShaper( 274 const sp<media::VolumeShaper::Configuration>& configuration, 275 const sp<media::VolumeShaper::Operation>& operation); 276 sp<media::VolumeShaper::State> getVolumeShaperState(int id);
|
/aosp12/frameworks/av/media/libmedia/ |
H A D | IMediaPlayer.cpp | 36 using media::VolumeShaper; 472 virtual VolumeShaper::Status applyVolumeShaper( in applyVolumeShaper() 474 const sp<VolumeShaper::Operation>& operation) { in applyVolumeShaper() 484 return VolumeShaper::Status(status); in applyVolumeShaper() 492 return VolumeShaper::Status(status); in applyVolumeShaper() 501 return VolumeShaper::Status(status); in applyVolumeShaper() 503 return VolumeShaper::Status(remoteVolumeShaperStatus); in applyVolumeShaper() 515 sp<VolumeShaper::State> state = new VolumeShaper::State(); in getVolumeShaperState() 917 sp<VolumeShaper::Configuration> configuration; in onTransact() 918 sp<VolumeShaper::Operation> operation; in onTransact() [all …]
|
/aosp12/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.h | 141 virtual media::VolumeShaper::Status applyVolumeShaper( 142 const sp<media::VolumeShaper::Configuration>& configuration, 143 … const sp<media::VolumeShaper::Operation>& operation) override; 144 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) override; 359 virtual media::VolumeShaper::Status applyVolumeShaper( 360 const sp<media::VolumeShaper::Configuration>& configuration, 361 … const sp<media::VolumeShaper::Operation>& operation) override; 362 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) override;
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | AsyncRingtonePlayer.java | 23 import android.media.VolumeShaper; 82 @Nullable VolumeShaper.Configuration volumeShaperConfig, boolean isRingerAudible, in play() 156 VolumeShaper.Configuration volumeShaperConfig = (VolumeShaper.Configuration) args.arg3;
|
/aosp12/frameworks/av/media/libmediaplayerservice/include/ |
H A D | MediaPlayerInterface.h | 152 virtual media::VolumeShaper::Status applyVolumeShaper( 153 const sp<media::VolumeShaper::Configuration>& configuration, 154 const sp<media::VolumeShaper::Operation>& operation) = 0; 155 virtual sp<media::VolumeShaper::State> getVolumeShaperState(int id) = 0;
|
/aosp12/frameworks/av/services/audioflinger/ |
H A D | PlaybackTracks.h | 142 media::VolumeShaper::Status applyVolumeShaper( 143 const sp<media::VolumeShaper::Configuration>& configuration, 144 const sp<media::VolumeShaper::Operation>& operation); 145 sp<media::VolumeShaper::State> getVolumeShaperState(int id);
|