1{ 2 "methods": { 3 "abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener)": { 4 "isImplementation": true, 5 "modifiers": [ 6 "protected" 7 ], 8 "params": [ 9 "l" 10 ], 11 "returnType": "int", 12 "exceptions": [], 13 "name": "abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener)" 14 }, 15 "abandonAudioFocusRequest(android.media.AudioFocusRequest)": { 16 "isImplementation": true, 17 "modifiers": [ 18 "protected" 19 ], 20 "params": [ 21 "audioFocusRequest" 22 ], 23 "returnType": "int", 24 "exceptions": [], 25 "minSdk": 26, 26 "name": "abandonAudioFocusRequest(android.media.AudioFocusRequest)", 27 "documentation": "Provides a mock like interface for the abandonAudioFocusRequest method by storing the request\nobject for later inspection and returning the value specified in setNextFocusRequestResponse.\n" 28 }, 29 "getActivePlaybackConfigurations()": { 30 "isImplementation": true, 31 "modifiers": [ 32 "protected" 33 ], 34 "params": [], 35 "returnType": "java.util.List\u003candroid.media.AudioPlaybackConfiguration\u003e", 36 "exceptions": [], 37 "minSdk": 26, 38 "name": "getActivePlaybackConfigurations()" 39 }, 40 "getLastAbandonedAudioFocusListener()": { 41 "isImplementation": false, 42 "modifiers": [ 43 "public" 44 ], 45 "params": [], 46 "returnType": "android.media.AudioManager.OnAudioFocusChangeListener", 47 "exceptions": [], 48 "name": "getLastAbandonedAudioFocusListener()" 49 }, 50 "getLastAbandonedAudioFocusRequest()": { 51 "isImplementation": false, 52 "modifiers": [ 53 "public" 54 ], 55 "params": [], 56 "returnType": "android.media.AudioFocusRequest", 57 "exceptions": [], 58 "name": "getLastAbandonedAudioFocusRequest()" 59 }, 60 "getLastAudioFocusRequest()": { 61 "isImplementation": false, 62 "modifiers": [ 63 "public" 64 ], 65 "params": [], 66 "returnType": "org.robolectric.shadows.ShadowAudioManager.AudioFocusRequest", 67 "exceptions": [], 68 "name": "getLastAudioFocusRequest()" 69 }, 70 "getMode()": { 71 "isImplementation": true, 72 "modifiers": [ 73 "protected" 74 ], 75 "params": [], 76 "returnType": "int", 77 "exceptions": [], 78 "name": "getMode()" 79 }, 80 "getRingerMode()": { 81 "isImplementation": true, 82 "modifiers": [ 83 "protected" 84 ], 85 "params": [], 86 "returnType": "int", 87 "exceptions": [], 88 "name": "getRingerMode()" 89 }, 90 "getStreamMaxVolume(int)": { 91 "isImplementation": true, 92 "modifiers": [ 93 "protected" 94 ], 95 "params": [ 96 "streamType" 97 ], 98 "returnType": "int", 99 "exceptions": [], 100 "name": "getStreamMaxVolume(int)" 101 }, 102 "getStreamVolume(int)": { 103 "isImplementation": true, 104 "modifiers": [ 105 "protected" 106 ], 107 "params": [ 108 "streamType" 109 ], 110 "returnType": "int", 111 "exceptions": [], 112 "name": "getStreamVolume(int)" 113 }, 114 "isBluetoothA2dpOn()": { 115 "isImplementation": true, 116 "modifiers": [ 117 "protected" 118 ], 119 "params": [], 120 "returnType": "boolean", 121 "exceptions": [], 122 "name": "isBluetoothA2dpOn()" 123 }, 124 "isBluetoothScoOn()": { 125 "isImplementation": true, 126 "modifiers": [ 127 "protected" 128 ], 129 "params": [], 130 "returnType": "boolean", 131 "exceptions": [], 132 "name": "isBluetoothScoOn()" 133 }, 134 "isMicrophoneMute()": { 135 "isImplementation": true, 136 "modifiers": [ 137 "protected" 138 ], 139 "params": [], 140 "returnType": "boolean", 141 "exceptions": [], 142 "name": "isMicrophoneMute()" 143 }, 144 "isMusicActive()": { 145 "isImplementation": true, 146 "modifiers": [ 147 "protected" 148 ], 149 "params": [], 150 "returnType": "boolean", 151 "exceptions": [], 152 "name": "isMusicActive()" 153 }, 154 "isSpeakerphoneOn()": { 155 "isImplementation": true, 156 "modifiers": [ 157 "protected" 158 ], 159 "params": [], 160 "returnType": "boolean", 161 "exceptions": [], 162 "name": "isSpeakerphoneOn()" 163 }, 164 "isValidRingerMode(int)": { 165 "isImplementation": false, 166 "modifiers": [ 167 "public", 168 "static" 169 ], 170 "params": [ 171 "ringerMode" 172 ], 173 "returnType": "boolean", 174 "exceptions": [], 175 "name": "isValidRingerMode(int)" 176 }, 177 "isWiredHeadsetOn()": { 178 "isImplementation": true, 179 "modifiers": [ 180 "protected" 181 ], 182 "params": [], 183 "returnType": "boolean", 184 "exceptions": [], 185 "name": "isWiredHeadsetOn()" 186 }, 187 "requestAudioFocus(android.media.AudioFocusRequest)": { 188 "isImplementation": true, 189 "modifiers": [ 190 "protected" 191 ], 192 "params": [ 193 "audioFocusRequest" 194 ], 195 "returnType": "int", 196 "exceptions": [], 197 "minSdk": 26, 198 "name": "requestAudioFocus(android.media.AudioFocusRequest)", 199 "documentation": "Provides a mock like interface for the requestAudioFocus method by storing the request\nobject for later inspection and returning the value specified in setNextFocusRequestResponse.\n" 200 }, 201 "requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener,int,int)": { 202 "isImplementation": true, 203 "modifiers": [ 204 "protected" 205 ], 206 "params": [ 207 "l", 208 "streamType", 209 "durationHint" 210 ], 211 "returnType": "int", 212 "exceptions": [], 213 "name": "requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener,int,int)" 214 }, 215 "setActivePlaybackConfigurationsFor(java.util.List\u003candroid.media.AudioAttributes\u003e)": { 216 "isImplementation": false, 217 "modifiers": [ 218 "public" 219 ], 220 "params": [ 221 "audioAttributes" 222 ], 223 "returnType": "void", 224 "exceptions": [], 225 "name": "setActivePlaybackConfigurationsFor(java.util.List\u003candroid.media.AudioAttributes\u003e)", 226 "documentation": "Sets active playback configurations that will be served by {@link\nAudioManager#getActivePlaybackConfigurations}.\n\n\u003cp\u003eNote that there is no public {@link AudioPlaybackConfiguration} constructor, so the\nconfigurations returned are specified by their audio attributes only.\n" 227 }, 228 "setBluetoothA2dpOn(boolean)": { 229 "isImplementation": true, 230 "modifiers": [ 231 "protected" 232 ], 233 "params": [ 234 "on" 235 ], 236 "returnType": "void", 237 "exceptions": [], 238 "name": "setBluetoothA2dpOn(boolean)" 239 }, 240 "setBluetoothScoOn(boolean)": { 241 "isImplementation": true, 242 "modifiers": [ 243 "protected" 244 ], 245 "params": [ 246 "isBluetoothScoOn" 247 ], 248 "returnType": "void", 249 "exceptions": [], 250 "name": "setBluetoothScoOn(boolean)" 251 }, 252 "setIsMusicActive(boolean)": { 253 "isImplementation": false, 254 "modifiers": [ 255 "public" 256 ], 257 "params": [ 258 "isMusicActive" 259 ], 260 "returnType": "void", 261 "exceptions": [], 262 "name": "setIsMusicActive(boolean)" 263 }, 264 "setMicrophoneMute(boolean)": { 265 "isImplementation": true, 266 "modifiers": [ 267 "protected" 268 ], 269 "params": [ 270 "on" 271 ], 272 "returnType": "void", 273 "exceptions": [], 274 "name": "setMicrophoneMute(boolean)" 275 }, 276 "setMode(int)": { 277 "isImplementation": true, 278 "modifiers": [ 279 "protected" 280 ], 281 "params": [ 282 "mode" 283 ], 284 "returnType": "void", 285 "exceptions": [], 286 "name": "setMode(int)" 287 }, 288 "setNextFocusRequestResponse(int)": { 289 "isImplementation": false, 290 "modifiers": [ 291 "public" 292 ], 293 "params": [ 294 "nextResponseValue" 295 ], 296 "returnType": "void", 297 "exceptions": [], 298 "name": "setNextFocusRequestResponse(int)" 299 }, 300 "setRingerMode(int)": { 301 "isImplementation": true, 302 "modifiers": [ 303 "protected" 304 ], 305 "params": [ 306 "ringerMode" 307 ], 308 "returnType": "void", 309 "exceptions": [], 310 "name": "setRingerMode(int)" 311 }, 312 "setSpeakerphoneOn(boolean)": { 313 "isImplementation": true, 314 "modifiers": [ 315 "protected" 316 ], 317 "params": [ 318 "on" 319 ], 320 "returnType": "void", 321 "exceptions": [], 322 "name": "setSpeakerphoneOn(boolean)" 323 }, 324 "setStreamMaxVolume(int)": { 325 "isImplementation": false, 326 "modifiers": [ 327 "public" 328 ], 329 "params": [ 330 "streamMaxVolume" 331 ], 332 "returnType": "void", 333 "exceptions": [], 334 "name": "setStreamMaxVolume(int)" 335 }, 336 "setStreamVolume(int)": { 337 "isImplementation": false, 338 "modifiers": [ 339 "public" 340 ], 341 "params": [ 342 "streamVolume" 343 ], 344 "returnType": "void", 345 "exceptions": [], 346 "name": "setStreamVolume(int)" 347 }, 348 "setStreamVolume(int,int,int)": { 349 "isImplementation": true, 350 "modifiers": [ 351 "protected" 352 ], 353 "params": [ 354 "streamType", 355 "index", 356 "flags" 357 ], 358 "returnType": "void", 359 "exceptions": [], 360 "name": "setStreamVolume(int,int,int)" 361 }, 362 "setWiredHeadsetOn(boolean)": { 363 "isImplementation": true, 364 "modifiers": [ 365 "protected" 366 ], 367 "params": [ 368 "on" 369 ], 370 "returnType": "void", 371 "exceptions": [], 372 "name": "setWiredHeadsetOn(boolean)" 373 } 374 }, 375 "imports": [ 376 "android.os.Build.VERSION_CODES.O", 377 "android.annotation.TargetApi", 378 "android.media.AudioAttributes", 379 "android.media.AudioManager", 380 "android.media.AudioPlaybackConfiguration", 381 "android.os.Build.VERSION_CODES", 382 "android.os.Parcel", 383 "java.util.ArrayList", 384 "java.util.Collections", 385 "java.util.HashMap", 386 "java.util.List", 387 "java.util.Map", 388 "org.robolectric.annotation.Implementation", 389 "org.robolectric.annotation.Implements", 390 "org.robolectric.util.ReflectionHelpers", 391 "org.robolectric.shadows.ShadowAudioManager.AudioFocusRequest", 392 "org.robolectric.shadows.ShadowAudioManager.AudioStream" 393 ], 394 "name": "org.robolectric.shadows.ShadowAudioManager" 395}