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.java69 private static ArrayList<CellBroadcastChannelRange> sAllCellBroadcastChannelRanges = null;
75 public static class CellBroadcastChannelRange { class in CellBroadcastChannelManager
111 public CellBroadcastChannelRange(Context context, String channelRange) throws Exception { in CellBroadcastChannelRange() method in CellBroadcastChannelManager.CellBroadcastChannelRange
215 public static ArrayList<CellBroadcastChannelRange> getCellBroadcastChannelRanges( in getCellBroadcastChannelRanges()
217 ArrayList<CellBroadcastChannelRange> result = new ArrayList<>(); in getCellBroadcastChannelRanges()
225 result.add(new CellBroadcastChannelRange(context, range)); in getCellBroadcastChannelRanges()
241 public static ArrayList<CellBroadcastChannelRange> getAllCellBroadcastChannelRanges( in getAllCellBroadcastChannelRanges()
245 ArrayList<CellBroadcastChannelRange> result = new ArrayList<>(); in getAllCellBroadcastChannelRanges()
265 ArrayList<CellBroadcastChannelRange> ranges = CellBroadcastChannelManager in checkCellBroadcastChannelRange()
268 for (CellBroadcastChannelRange range : ranges) { in checkCellBroadcastChannelRange()
[all …]
DCellBroadcastConfigService.java30 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
242 ArrayList<CellBroadcastChannelRange> ranges = CellBroadcastChannelManager in setCellBroadcastOnSub()
246 for (CellBroadcastChannelRange range: ranges) { in setCellBroadcastOnSub()
269 SmsManager manager, boolean enable, List<CellBroadcastChannelRange> ranges) { in setCellBroadcastRange()
271 for (CellBroadcastChannelRange range: ranges) { in setCellBroadcastRange()
DCellBroadcastAlertService.java52 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
257 CellBroadcastChannelRange range = CellBroadcastChannelManager in shouldDisplayMessage()
453 ArrayList<CellBroadcastChannelRange> ranges = CellBroadcastChannelManager in isChannelEnabled()
458 for (CellBroadcastChannelRange range : ranges) { in isChannelEnabled()
600 ArrayList<CellBroadcastChannelRange> ranges = CellBroadcastChannelManager in openEmergencyAlertNotification()
603 for (CellBroadcastChannelRange range : ranges) { in openEmergencyAlertNotification()
611 CellBroadcastChannelRange range = CellBroadcastChannelManager in openEmergencyAlertNotification()
DCellBroadcastResources.java28 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
324 ArrayList<CellBroadcastChannelRange> ranges = CellBroadcastChannelManager in getDialogTitleResource()
328 for (CellBroadcastChannelRange range : ranges) { in getDialogTitleResource()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/
DCellBroadcastChannelManagerTest.java24 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
62 ArrayList<CellBroadcastChannelRange> list = CellBroadcastChannelManager.getInstance() in testGetCellBroadcastChannelRanges()
68 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(0).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
73 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(1).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
78 assertEquals(CellBroadcastChannelRange.LEVEL_NOT_EMERGENCY, list.get(2).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
83 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(3).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
88 assertEquals(CellBroadcastChannelRange.LEVEL_UNKNOWN, list.get(4).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
93 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(5).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
DCellBroadcastConfigServiceTest.java34 import com.android.cellbroadcastreceiver.CellBroadcastChannelManager.CellBroadcastChannelRange;
129 private void setCellBroadcastRange(boolean enable, List<CellBroadcastChannelRange> ranges) in setCellBroadcastRange()
150 ArrayList<CellBroadcastChannelRange> result = new ArrayList<>(); in testEnableCellBroadcastRange()
151 result.add(new CellBroadcastChannelRange(mContext, "10-20")); in testEnableCellBroadcastRange()
171 ArrayList<CellBroadcastChannelRange> result = new ArrayList<>(); in testDisableCellBroadcastRange()
172 result.add(new CellBroadcastChannelRange(mContext, "10-20")); in testDisableCellBroadcastRange()