Added area info support in cell broadcast service
Added a broadcast for area info changed event, and also a get method in cell broadcast service to retrieve the area info. Test: Cell broadcast sanity tests Bug: 141318859 Change-Id: I5995e3c5099a1e49cb0c54d33da1dbfcc94d4037
This commit is contained in:
@@ -19,6 +19,8 @@ package android.telephony;
|
||||
import android.Manifest;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SdkConstant;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.annotation.SystemApi;
|
||||
import android.app.AppOpsManager;
|
||||
import android.content.BroadcastReceiver;
|
||||
@@ -42,6 +44,14 @@ public class CellBroadcastIntents {
|
||||
|
||||
private static final String EXTRA_MESSAGE = "message";
|
||||
|
||||
/**
|
||||
* Broadcast intent action for notifying area information has been updated. The information
|
||||
* can be retrieved by {@link CellBroadcastService#getCellBroadcastAreaInfo(int)}
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
public static final String ACTION_AREA_INFO_UPDATED =
|
||||
"android.telephony.action.AREA_INFO_UPDATED";
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user