File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
aws-android-sdk-lex/src/main/java/com/amazonaws/mobileconnectors/lex/interactionkit/internal/audio
aws-android-sdk-testutils/src/main/java/com/amazonaws/testutils/util Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1515
1616package com .amazonaws .mobileconnectors .lex .interactionkit .internal .audio ;
1717
18+ import android .annotation .SuppressLint ;
1819import android .content .Context ;
1920import android .content .pm .PackageManager ;
2021import android .media .AudioFormat ;
@@ -115,6 +116,7 @@ public class AudioRecorder implements AudioSource {
115116 * @param format the audio format the audio recorder will use.
116117 * @throws Exception if failed to create audio recorder instance.
117118 */
119+ @ SuppressLint ("MissingPermission" ) // App Developer should check for Manifest.permission.RECORD_AUDIO permission
118120 public AudioRecorder (final Context context , final MediaType mediaType ,
119121 final int recorderPositionNotificationPeriod ,
120122 final int sampleRate , final int channels , final int format ) throws Exception {
Original file line number Diff line number Diff line change 1515
1616package com .amazonaws .testutils .util ;
1717
18+ import android .annotation .SuppressLint ;
1819import android .content .ContentResolver ;
1920import android .content .Intent ;
2021import android .provider .Settings ;
@@ -44,6 +45,7 @@ public static boolean isEnabled() {
4445 return status == 1 ;
4546 }
4647
48+ @ SuppressLint ("MissingPermission" )
4749 private static void setAirplaneMode (boolean shouldEnable ) {
4850 if (shouldEnable == isEnabled ()) return ;
4951
You can’t perform that action at this time.
0 commit comments