Home
last modified time | relevance | path

Searched refs:AudioPlaybackConfiguration (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/audio/
DPlaybackActivityMonitor.java19 import static android.media.AudioPlaybackConfiguration.EXTRA_PLAYER_EVENT_MUTE;
20 import static android.media.AudioPlaybackConfiguration.MUTED_BY_APP_OPS;
21 import static android.media.AudioPlaybackConfiguration.MUTED_BY_CLIENT_VOLUME;
22 import static android.media.AudioPlaybackConfiguration.MUTED_BY_MASTER;
23 import static android.media.AudioPlaybackConfiguration.MUTED_BY_STREAM_MUTED;
24 import static android.media.AudioPlaybackConfiguration.MUTED_BY_STREAM_VOLUME;
25 import static android.media.AudioPlaybackConfiguration.MUTED_BY_VOLUME_SHAPER;
26 import static android.media.AudioPlaybackConfiguration.PLAYER_PIID_INVALID;
27 import static android.media.AudioPlaybackConfiguration.PLAYER_UPDATE_MUTED;
39 import android.media.AudioPlaybackConfiguration;
[all …]
DFadeOutManager.java25 import android.media.AudioPlaybackConfiguration;
163 boolean canBeFadedOut(@NonNull AudioPlaybackConfiguration apc) { in canBeFadedOut()
192 void fadeOutUid(int uid, List<AudioPlaybackConfiguration> players) { in fadeOutUid()
199 for (AudioPlaybackConfiguration apc : players) { in fadeOutUid()
212 void unfadeOutUid(int uid, Map<Integer, AudioPlaybackConfiguration> players) { in unfadeOutUid()
228 ArrayList<AudioPlaybackConfiguration> apcs = new ArrayList<>(players.values()); in unfadeOutUid()
230 AudioPlaybackConfiguration apc = apcs.get(index); in unfadeOutUid()
242 void checkFade(@NonNull AudioPlaybackConfiguration apc) { in checkFade()
263 void removeReleased(@NonNull AudioPlaybackConfiguration apc) { in removeReleased()
336 void addFade(@NonNull AudioPlaybackConfiguration apc, boolean skipRamp, in addFade()
[all …]
DFadeConfigurations.java25 import android.media.AudioPlaybackConfiguration;
57 AudioPlaybackConfiguration.PLAYER_TYPE_AAUDIO,
58 AudioPlaybackConfiguration.PLAYER_TYPE_JAM_SOUNDPOOL
309 if (!isFadeable(aa, INVALID_UID, AudioPlaybackConfiguration.PLAYER_TYPE_UNKNOWN)) { in getFadeOutDuration()
385 @AudioPlaybackConfiguration.PlayerType int playerType) { in isFadeable()
DLoudnessCodecHelper.java23 import static android.media.AudioPlaybackConfiguration.PLAYER_DEVICEID_INVALID;
37 import android.media.AudioPlaybackConfiguration;
438 Optional<AudioPlaybackConfiguration> apc = in addLoudnessCodecInfo()
512 void updateCodecParameters(List<AudioPlaybackConfiguration> configs) { in updateCodecParameters()
517 List<AudioPlaybackConfiguration> updateApcList = new ArrayList<>(); in updateCodecParameters()
519 for (final AudioPlaybackConfiguration apc : configs) { in updateCodecParameters()
608 private void updateCodecParametersForConfiguration(AudioPlaybackConfiguration apc) { in updateCodecParametersForConfiguration()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeOutManagerTest.java22 import static android.media.AudioPlaybackConfiguration.PLAYER_TYPE_AAUDIO;
23 import static android.media.AudioPlaybackConfiguration.PLAYER_TYPE_JAM_AUDIOTRACK;
24 import static android.media.AudioPlaybackConfiguration.PLAYER_TYPE_UNKNOWN;
29 import android.media.AudioPlaybackConfiguration;
69 AudioPlaybackConfiguration mMockPlaybackConfiguration;
117 AudioPlaybackConfiguration apcMedia = createAudioPlaybackConfiguration( in testCanBeFadedOut_forFadableConfig_returnsTrue()
120 AudioPlaybackConfiguration apcGame = createAudioPlaybackConfiguration( in testCanBeFadedOut_forFadableConfig_returnsTrue()
132 AudioPlaybackConfiguration apcSpeech = createAudioPlaybackConfiguration( in testCanBeFadedOut_forUnFadableConfig_returnsFalse()
135 AudioPlaybackConfiguration apcAAudio = createAudioPlaybackConfiguration( in testCanBeFadedOut_forUnFadableConfig_returnsFalse()
147 final ArrayList<AudioPlaybackConfiguration> apcsToFadeOut = in testFadeOutUid_getsFadedOut_isFadedReturnsTrue()
[all …]
DLoudnessCodecHelperTest.java20 import static android.media.AudioPlaybackConfiguration.PLAYER_UPDATE_DEVICE_ID;
45 import android.media.AudioPlaybackConfiguration;
310 private List<AudioPlaybackConfiguration> getApcListForApcWithPiidSid(int piid, int sessionId, in getApcListForApcWithPiidSid()
312 final ArrayList<AudioPlaybackConfiguration> apcList = new ArrayList<>(); in getApcListForApcWithPiidSid()
320 AudioPlaybackConfiguration apc = in getApcListForApcWithPiidSid()
321 new AudioPlaybackConfiguration(idCard, piid, /*uid=*/1, /*pid=*/myPid()); in getApcListForApcWithPiidSid()
DFadeConfigurationsTest.java24 import static android.media.AudioPlaybackConfiguration.PLAYER_TYPE_AAUDIO;
25 import static android.media.AudioPlaybackConfiguration.PLAYER_TYPE_JAM_SOUNDPOOL;
26 import static android.media.AudioPlaybackConfiguration.PLAYER_TYPE_JAM_AUDIOTRACK;
27 import static android.media.AudioPlaybackConfiguration.PLAYER_TYPE_UNKNOWN;
/frameworks/base/services/core/java/com/android/server/media/
DAudioPlayerStateMonitor.java22 import android.media.AudioPlaybackConfiguration;
61 @NonNull AudioPlaybackConfiguration config, boolean isRemoved); in onAudioPlayerActiveStateChanged()
78 mListener.onAudioPlayerActiveStateChanged((AudioPlaybackConfiguration) msg.obj, in handleMessage()
85 final AudioPlaybackConfiguration config, final boolean isRemoved) { in sendAudioPlayerActiveStateChangedMessage()
100 ArrayMap<Integer, AudioPlaybackConfiguration> mPrevActiveAudioPlaybackConfigs =
233 final AudioPlaybackConfiguration config, final boolean isRemoved) { in sendAudioPlayerActiveStateChangedMessageLocked()
241 public void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs) { in onPlaybackConfigChanged()
245 ArrayMap<Integer, AudioPlaybackConfiguration> activeAudioPlaybackConfigs = in onPlaybackConfigChanged()
247 for (AudioPlaybackConfiguration config : configs) { in onPlaybackConfigChanged()
256 AudioPlaybackConfiguration config = activeAudioPlaybackConfigs.valueAt(i); in onPlaybackConfigChanged()
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/virtual/audio/
DVirtualAudioController.java19 import static android.media.AudioPlaybackConfiguration.PLAYER_STATE_STARTED;
29 import android.media.AudioPlaybackConfiguration;
148 List<AudioPlaybackConfiguration> configs = in onRunningAppsChanged()
179 public void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs) { in onPlaybackConfigChanged()
182 List<AudioPlaybackConfiguration> audioPlaybackConfigurations; in onPlaybackConfigChanged()
217 private void updatePlayingApplications(List<AudioPlaybackConfiguration> configs) { in updatePlayingApplications()
261 private static ArraySet<Integer> findPlayingAppUids(List<AudioPlaybackConfiguration> configs, in findPlayingAppUids()
264 for (AudioPlaybackConfiguration config : configs) { in findPlayingAppUids()
274 private static List<AudioPlaybackConfiguration> findPlaybackConfigurations( in findPlaybackConfigurations()
275 List<AudioPlaybackConfiguration> configs, in findPlaybackConfigurations()
[all …]
DAudioPlaybackDetector.java22 import android.media.AudioPlaybackConfiguration;
38 void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs); in onPlaybackConfigChanged()
61 public void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs) { in onPlaybackConfigChanged()
/frameworks/base/media/java/android/media/
DAudioPlaybackConfiguration.java46 public final class AudioPlaybackConfiguration implements Parcelable { class
332 private AudioPlaybackConfiguration(int piid) { in AudioPlaybackConfiguration() method in AudioPlaybackConfiguration
340 public AudioPlaybackConfiguration(PlayerBase.PlayerIdCard pic, int piid, int uid, int pid) { in AudioPlaybackConfiguration() method in AudioPlaybackConfiguration
391 public static AudioPlaybackConfiguration anonymizedCopy(AudioPlaybackConfiguration in) { in anonymizedCopy()
392 final AudioPlaybackConfiguration anonymCopy = new AudioPlaybackConfiguration(in.mPlayerIId); in anonymizedCopy()
748 …public static final @android.annotation.NonNull Parcelable.Creator<AudioPlaybackConfiguration> CRE…
749 = new Parcelable.Creator<AudioPlaybackConfiguration>() {
755 public AudioPlaybackConfiguration createFromParcel(Parcel p) {
756 return new AudioPlaybackConfiguration(p);
758 public AudioPlaybackConfiguration[] newArray(int size) {
[all …]
DIPlaybackConfigDispatcher.aidl19 import android.media.AudioPlaybackConfiguration;
28 … void dispatchPlaybackConfigChange(in List<AudioPlaybackConfiguration> configs, in boolean flush); in dispatchPlaybackConfigChange()
DPlayerBase.java81 protected int mPlayerIId = AudioPlaybackConfiguration.PLAYER_PIID_INVALID;
108 mState = AudioPlaybackConfiguration.PLAYER_STATE_IDLE; in PlayerBase()
173 AudioPlaybackConfiguration.PLAYER_UPDATE_DEVICE_ID, deviceId); in baseUpdateDeviceId()
192 + AudioPlaybackConfiguration.toLogFriendlyPlayerState(state) in updateState()
201 updateState(AudioPlaybackConfiguration.PLAYER_STATE_STARTED, deviceId); in baseStart()
218 updateState(AudioPlaybackConfiguration.PLAYER_STATE_PAUSED, 0); in basePause()
223 updateState(AudioPlaybackConfiguration.PLAYER_STATE_STOPPED, 0); in baseStop()
279 if (mState != AudioPlaybackConfiguration.PLAYER_STATE_RELEASED) { in baseRelease()
281 mState = AudioPlaybackConfiguration.PLAYER_STATE_RELEASED; in baseRelease()
DPlayerProxy.java38 private final AudioPlaybackConfiguration mConf; // never null
45 PlayerProxy(@NonNull AudioPlaybackConfiguration apc) { in PlayerProxy()
DAudioPlaybackConfiguration.aidl18 parcelable AudioPlaybackConfiguration;
DHwAudioSource.java57 super(attributes, AudioPlaybackConfiguration.PLAYER_TYPE_HW_SOURCE); in HwAudioSource()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/audio/
DVirtualAudioControllerTest.java20 import static android.media.AudioPlaybackConfiguration.PLAYER_STATE_STARTED;
33 import android.media.AudioPlaybackConfiguration;
177 List<AudioPlaybackConfiguration> configs = createPlaybackConfigurations(runningUids); in onPlaybackConfigChanged_sendsCallback()
198 private List<AudioPlaybackConfiguration> createPlaybackConfigurations( in createPlaybackConfigurations()
200 List<AudioPlaybackConfiguration> configs = new ArrayList<>(); in createPlaybackConfigurations()
204 AudioPlaybackConfiguration audioPlaybackConfiguration = in createPlaybackConfigurations()
205 new AudioPlaybackConfiguration( in createPlaybackConfigurations()
/frameworks/base/core/java/android/companion/virtual/audio/
DIAudioConfigChangedCallback.aidl19 import android.media.AudioPlaybackConfiguration;
33 void onPlaybackConfigChanged(in List<AudioPlaybackConfiguration> configs); in onPlaybackConfigChanged()
DVirtualAudioDevice.java28 import android.media.AudioPlaybackConfiguration;
58 void onPlaybackConfigChanged(@NonNull List<AudioPlaybackConfiguration> configs); in onPlaybackConfigChanged()
DVirtualAudioSession.java27 import android.media.AudioPlaybackConfiguration;
91 public void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs) { in onPlaybackConfigChanged()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DExternalDisplayStatsServiceTest.java40 import android.media.AudioPlaybackConfiguration;
71 private List<AudioPlaybackConfiguration> mAudioPlaybackConfigsPhoneActive;
72 private List<AudioPlaybackConfiguration> mAudioPlaybackConfigsHdmiActive;
327 private List<AudioPlaybackConfiguration> createAudioConfigs(boolean isPhoneActive) { in createAudioConfigs()
328 var mockedConfigHdmi = mock(AudioPlaybackConfiguration.class); in createAudioConfigs()
336 var mockedConfigPhone = mock(AudioPlaybackConfiguration.class); in createAudioConfigs()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DFlashNotificationsControllerTest.java54 import android.media.AudioPlaybackConfiguration;
114 private final List<AudioPlaybackConfiguration> mAudioConfigsWithAlarm = getConfigWithAlarm();
427 private static List<AudioPlaybackConfiguration> getConfigWithAlarm() { in getConfigWithAlarm()
428 List<AudioPlaybackConfiguration> list = new ArrayList<>(); in getConfigWithAlarm()
430 AudioPlaybackConfiguration config = new AudioPlaybackConfiguration( in getConfigWithAlarm()
432 config.handleStateEvent(AudioPlaybackConfiguration.PLAYER_STATE_STARTED, in getConfigWithAlarm()
433 AudioPlaybackConfiguration.PLAYER_DEVICEID_INVALID); in getConfigWithAlarm()
/frameworks/base/core/tests/coretests/src/android/companion/virtual/audio/
DVirtualAudioSessionTest.java33 import android.media.AudioPlaybackConfiguration;
168 List<AudioPlaybackConfiguration> configs = new ArrayList<>(); in onPlaybackConfigChanged_sendsCallback()
/frameworks/base/services/core/java/com/android/server/display/
DExternalDisplayStatsService.java32 import android.media.AudioPlaybackConfiguration;
114 public void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs) {
119 private boolean isExternalDisplayUsedForAudio(List<AudioPlaybackConfiguration> configs) {
/frameworks/layoutlib/bridge/src/android/media/
DAudioManager.java380 public List<AudioPlaybackConfiguration> getActivePlaybackConfigurations() { in getActivePlaybackConfigurations()
597 public void onPlaybackConfigChanged(List<AudioPlaybackConfiguration> configs) { in onPlaybackConfigChanged()

12