Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6701839f authored by Jordan Liu's avatar Jordan Liu
Browse files

Add nullable and nonnull annotations

Bug: 135956699
Test: m -j20
Change-Id: I8f297a351896b9dc00100e6b3b8953a7f2b4ae90
Merged-In: I852fffebed9b63239a1f383ff4ad09f156fbb39d
parent 8d132dd3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -7245,9 +7245,9 @@ package android.telephony {
  public abstract class CellBroadcastService extends android.app.Service {
    ctor public CellBroadcastService();
    method @CallSuper public android.os.IBinder onBind(android.content.Intent);
    method public abstract void onCdmaCellBroadcastSms(int, byte[]);
    method public abstract void onGsmCellBroadcastSms(int, byte[]);
    method @CallSuper @NonNull public android.os.IBinder onBind(@Nullable android.content.Intent);
    method public abstract void onCdmaCellBroadcastSms(int, @NonNull byte[]);
    method public abstract void onGsmCellBroadcastSms(int, @NonNull byte[]);
    field public static final String CELL_BROADCAST_SERVICE_INTERFACE = "android.telephony.CellBroadcastService";
  }
+6 −3
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
package android.telephony;

import android.annotation.CallSuper;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.app.Service;
import android.content.Intent;
@@ -64,14 +66,14 @@ public abstract class CellBroadcastService extends Service {
     * @param slotIndex the index of the slot which received the message
     * @param message the SMS PDU
     */
    public abstract void onGsmCellBroadcastSms(int slotIndex, byte[] message);
    public abstract void onGsmCellBroadcastSms(int slotIndex, @NonNull byte[] message);

    /**
     * Handle a CDMA cell broadcast SMS message forwarded from the system.
     * @param slotIndex the index of the slot which received the message
     * @param message the SMS PDU
     */
    public abstract void onCdmaCellBroadcastSms(int slotIndex, byte[] message);
    public abstract void onCdmaCellBroadcastSms(int slotIndex, @NonNull byte[] message);

    /**
     * If overriding this method, call through to the super method for any unknown actions.
@@ -79,7 +81,8 @@ public abstract class CellBroadcastService extends Service {
     */
    @Override
    @CallSuper
    public IBinder onBind(Intent intent) {
    @NonNull
    public IBinder onBind(@Nullable Intent intent) {
        return mStubWrapper;
    }