Created
January 15, 2020 07:52
-
-
Save ReeseWang/3a03cc32f727064b5918b318d14beb64 to your computer and use it in GitHub Desktop.
Audio service codes of PHICOMM R1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ANDROID_SERIAL= | |
ro.build.version.release=5.1.1 | |
TAG=android-5.1.1_r1 | |
SERVICE=audio | |
SERVICE_PACKAGE=android.media.IAudioService | |
1 void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags, String callingPackage) | |
2 void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage) | |
3 void adjustMasterVolume(int direction, int flags, String callingPackage) | |
4 void setStreamVolume(int streamType, int index, int flags, String callingPackage) | |
5 oneway void setRemoteStreamVolume(int index) | |
6 void setMasterVolume(int index, int flags, String callingPackage) | |
7 void setStreamSolo(int streamType, boolean state, IBinder cb) | |
8 void setStreamMute(int streamType, boolean state, IBinder cb) | |
9 boolean isStreamMute(int streamType) | |
10 void forceRemoteSubmixFullVolume(boolean startForcing, IBinder cb) | |
11 void setMasterMute(boolean state, int flags, String callingPackage, IBinder cb) | |
12 boolean isMasterMute() | |
13 int getStreamVolume(int streamType) | |
14 int getMasterVolume() | |
15 int getStreamMaxVolume(int streamType) | |
16 int getMasterMaxVolume() | |
17 int getLastAudibleStreamVolume(int streamType) | |
18 int getLastAudibleMasterVolume() | |
19 void setMicrophoneMute(boolean on, String callingPackage) | |
20 void setRingerModeExternal(int ringerMode, String caller) | |
21 void setRingerModeInternal(int ringerMode, String caller) | |
22 int getRingerModeExternal() | |
23 int getRingerModeInternal() | |
24 boolean isValidRingerMode(int ringerMode) | |
25 void setVibrateSetting(int vibrateType, int vibrateSetting) | |
26 int getVibrateSetting(int vibrateType) | |
27 boolean shouldVibrate(int vibrateType) | |
28 void setMode(int mode, IBinder cb) | |
29 int getMode() | |
30 oneway void playSoundEffect(int effectType) | |
31 oneway void playSoundEffectVolume(int effectType, float volume) | |
32 boolean loadSoundEffects() | |
33 oneway void unloadSoundEffects() | |
34 oneway void reloadAudioSettings() | |
35 oneway void avrcpSupportsAbsoluteVolume(String address, boolean support) | |
36 void setSpeakerphoneOn(boolean on) | |
37 boolean isSpeakerphoneOn() | |
38 void setBluetoothScoOn(boolean on) | |
39 boolean isBluetoothScoOn() | |
40 void setBluetoothA2dpOn(boolean on) | |
41 boolean isBluetoothA2dpOn() | |
42 int requestAudioFocus(in AudioAttributes aa, int durationHint, IBinder cb, IAudioFocusDispatcher fd, String clientId, String callingPackageName, int flags, IAudioPolicyCallback pcb) | |
43 int abandonAudioFocus(IAudioFocusDispatcher fd, String clientId, in AudioAttributes aa) | |
44 void unregisterAudioFocusClient(String clientId) | |
45 int getCurrentAudioFocus() | |
46 boolean registerRemoteControlDisplay(in IRemoteControlDisplay rcd, int w, int h) | |
47 boolean registerRemoteController(in IRemoteControlDisplay rcd, int w, int h, in ComponentName listenerComp) | |
48 oneway void unregisterRemoteControlDisplay(in IRemoteControlDisplay rcd) | |
49 oneway void remoteControlDisplayUsesBitmapSize(in IRemoteControlDisplay rcd, int w, int h) | |
50 oneway void remoteControlDisplayWantsPlaybackPositionSync(in IRemoteControlDisplay rcd, boolean wantsSync) | |
51 void startBluetoothSco(IBinder cb, int targetSdkVersion) | |
52 void startBluetoothScoVirtualCall(IBinder cb) | |
53 void stopBluetoothSco(IBinder cb) | |
54 void forceVolumeControlStream(int streamType, IBinder cb) | |
55 void setRingtonePlayer(IRingtonePlayer player) | |
56 IRingtonePlayer getRingtonePlayer() | |
57 int getMasterStreamType() | |
58 void setWiredDeviceConnectionState(int device, int state, String name) | |
59 int setBluetoothA2dpDeviceConnectionState(in BluetoothDevice device, int state, int profile) | |
60 AudioRoutesInfo startWatchingRoutes(in IAudioRoutesObserver observer) | |
61 boolean isCameraSoundForced() | |
62 void setVolumeController(in IVolumeController controller) | |
63 void notifyVolumeControllerVisible(in IVolumeController controller, boolean visible) | |
64 boolean isStreamAffectedByRingerMode(int streamType) | |
65 void disableSafeMediaVolume() | |
66 int setHdmiSystemAudioSupported(boolean on) | |
67 boolean isHdmiSystemAudioSupported() | |
68 String registerAudioPolicy(in AudioPolicyConfig policyConfig, in IAudioPolicyCallback pcb, boolean hasFocusListener) | |
69 oneway void unregisterAudioPolicyAsync(in IAudioPolicyCallback pcb) | |
70 int setFocusPropertiesForPolicy(int duckingBehavior, in IAudioPolicyCallback pcb) | |
71 | |
72 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment