Skip to content

Commit

Permalink
Use SuppressLint annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Apr 4, 2023
1 parent 92e7bcb commit b3ca4d9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 55 deletions.
6 changes: 0 additions & 6 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ dependencies {
}

apply from: "$project.rootDir/config/android-checkstyle.gradle"

android {
lintOptions {
baseline file("lint-baseline.xml")
}
}
48 changes: 0 additions & 48 deletions server/lint-baseline.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static String getCurrentOpPackageName(AudioRecord audioRecord)
}

@TargetApi(Build.VERSION_CODES.R)
@SuppressLint({ "WrongConstant", "MissingPermission" })
@SuppressLint({ "WrongConstant", "MissingPermission", "BlockedPrivateApi" })
public static AudioRecord newInstance(AudioAttributes attributes, AudioFormat format,
int bufferSizeInBytes, int sessionId, Context context, int maxSharedAudioHistoryMs)
throws Exception {
Expand Down Expand Up @@ -289,6 +289,7 @@ public static AudioRecord newInstance(AudioAttributes attributes, AudioFormat fo
public static final int PRIVACY_SENSITIVE_DISABLED = 0;
public static final int PRIVACY_SENSITIVE_ENABLED = 1;

@SuppressLint({ "BlockedPrivateApi" })
public static AudioRecord build(AudioRecord.Builder builder) {
try {
Field mFormatField = AudioRecord.Builder.class.getDeclaredField("mFormat");
Expand Down

0 comments on commit b3ca4d9

Please sign in to comment.