Add @NonNull annotation per API Council's suggestion

Test: make framework-minus-apex -j8
Bug: 150127251
Change-Id: I667668ec97cc46f2513c63eeadcc56d5a26cb41f
This commit is contained in:
Amy
2020-02-24 14:10:40 -08:00
parent 27f83cdbce
commit 9db88a2f0d
2 changed files with 4 additions and 4 deletions

View File

@@ -29356,9 +29356,9 @@ package android.media.tv {
public abstract class TvInputService extends android.app.Service {
ctor public TvInputService();
method public final android.os.IBinder onBind(android.content.Intent);
method @Nullable public android.media.tv.TvInputService.RecordingSession onCreateRecordingSession(String);
method @Nullable public android.media.tv.TvInputService.RecordingSession onCreateRecordingSession(@NonNull String);
method @Nullable public android.media.tv.TvInputService.RecordingSession onCreateRecordingSession(@NonNull String, @NonNull String);
method @Nullable public abstract android.media.tv.TvInputService.Session onCreateSession(String);
method @Nullable public abstract android.media.tv.TvInputService.Session onCreateSession(@NonNull String);
method @Nullable public android.media.tv.TvInputService.Session onCreateSession(@NonNull String, @NonNull String);
field public static final int PRIORITY_HINT_USE_CASE_TYPE_BACKGROUND = 100; // 0x64
field public static final int PRIORITY_HINT_USE_CASE_TYPE_LIVE = 400; // 0x190

View File

@@ -240,7 +240,7 @@ public abstract class TvInputService extends Service {
* @param inputId The ID of the TV input associated with the session.
*/
@Nullable
public abstract Session onCreateSession(String inputId);
public abstract Session onCreateSession(@NonNull String inputId);
/**
* Returns a concrete implementation of {@link RecordingSession}.
@@ -251,7 +251,7 @@ public abstract class TvInputService extends Service {
* @param inputId The ID of the TV input associated with the recording session.
*/
@Nullable
public RecordingSession onCreateRecordingSession(String inputId) {
public RecordingSession onCreateRecordingSession(@NonNull String inputId) {
return null;
}