Home
last modified time | relevance | path

Searched refs:CellBroadcastChannelRange (Results 1 – 6 of 6) sorted by relevance

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastChannelManager.java70 private static ArrayList<CellBroadcastChannelRange> sAllCellBroadcastChannelRanges = null;
80 public static class CellBroadcastChannelRange { class in CellBroadcastChannelManager
129 public CellBroadcastChannelRange(Context context, int subId, String channelRange) { in CellBroadcastChannelRange() method in CellBroadcastChannelManager.CellBroadcastChannelRange
247 public @NonNull ArrayList<CellBroadcastChannelRange> getCellBroadcastChannelRanges(int key) { in getCellBroadcastChannelRanges()
248 ArrayList<CellBroadcastChannelRange> result = new ArrayList<>(); in getCellBroadcastChannelRanges()
254 result.add(new CellBroadcastChannelRange(mContext, mSubId, range)); in getCellBroadcastChannelRanges()
268 public @NonNull ArrayList<CellBroadcastChannelRange> getAllCellBroadcastChannelRanges() { in getAllCellBroadcastChannelRanges()
271 ArrayList<CellBroadcastChannelRange> result = new ArrayList<>(); in getAllCellBroadcastChannelRanges()
289 ArrayList<CellBroadcastChannelRange> ranges = getCellBroadcastChannelRanges(key); in checkCellBroadcastChannelRange()
291 for (CellBroadcastChannelRange range : ranges) { in checkCellBroadcastChannelRange()
[all …]
DCellBroadcastConfigService.java34 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
244 ArrayList<CellBroadcastChannelRange> ranges = in enableCellBroadcastChannels()
248 for (CellBroadcastChannelRange range: ranges) { in enableCellBroadcastChannels()
270 List<CellBroadcastChannelRange> ranges) { in setCellBroadcastRange()
279 for (CellBroadcastChannelRange range: ranges) { in setCellBroadcastRange()
DCellBroadcastAlertService.java53 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
206 CellBroadcastChannelRange range = channelManager in shouldDisplayMessage()
298 CellBroadcastChannelRange range = channelManager in handleCellBroadcastIntent()
397 ArrayList<CellBroadcastChannelRange> ranges = channelManager.getCellBroadcastChannelRanges( in isChannelEnabled()
400 for (CellBroadcastChannelRange range : ranges) { in isChannelEnabled()
533 ArrayList<CellBroadcastChannelRange> ranges = channelManager in openEmergencyAlertNotification()
535 for (CellBroadcastChannelRange range : ranges) { in openEmergencyAlertNotification()
542 CellBroadcastChannelRange range = channelManager in openEmergencyAlertNotification()
DCellBroadcastResources.java29 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
362 ArrayList<CellBroadcastChannelRange> ranges = in getDialogTitleResource()
366 for (CellBroadcastChannelRange range : ranges) { in getDialogTitleResource()
417 ArrayList<CellBroadcastChannelRange> ranges = in getDialogPictogramResource()
420 for (CellBroadcastChannelRange range : ranges) { in getDialogPictogramResource()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastChannelManagerTest.java26 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
66 ArrayList<CellBroadcastChannelRange> list = channelManager.getCellBroadcastChannelRanges( in testGetCellBroadcastChannelRanges()
72 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(0).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
77 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(1).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
82 assertEquals(CellBroadcastChannelRange.LEVEL_NOT_EMERGENCY, list.get(2).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
87 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(3).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
92 assertEquals(CellBroadcastChannelRange.LEVEL_UNKNOWN, list.get(4).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
97 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(5).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
DCellBroadcastConfigServiceTest.java35 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
141 List<CellBroadcastChannelRange> ranges) in setCellBroadcastRange()
162 ArrayList<CellBroadcastChannelRange> result = new ArrayList<>(); in testEnableCellBroadcastRange()
163 result.add(new CellBroadcastChannelRange(mContext, in testEnableCellBroadcastRange()
184 ArrayList<CellBroadcastChannelRange> result = new ArrayList<>(); in testDisableCellBroadcastRange()
185 result.add(new CellBroadcastChannelRange(mContext, in testDisableCellBroadcastRange()