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:
Jack Yu
2020-01-23 23:01:40 -08:00
parent 9652ad9514
commit afaa71d418
4 changed files with 39 additions and 0 deletions

View File

@@ -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
*/