Searched refs:cbm (Results 1 – 4 of 4) sorted by relevance
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertService.java | 248 private boolean shouldDisplayMessage(CellBroadcastMessage cbm) { in shouldDisplayMessage() argument 250 if (!isChannelEnabled(cbm)) { in shouldDisplayMessage() 251 Log.d(TAG, "ignoring alert of type " + cbm.getServiceCategory() in shouldDisplayMessage() 258 .getCellBroadcastChannelRangeFromMessage(getApplicationContext(), cbm); in shouldDisplayMessage() 262 String messageLanguage = cbm.getLanguageCode(); in shouldDisplayMessage() 278 if (cbm.getMessageBody().toLowerCase().contains(filter)) { in shouldDisplayMessage() 303 final CellBroadcastMessage cbm = new CellBroadcastMessage(message); in handleCellBroadcastIntent() local 306 cbm.setSubId(subId); in handleCellBroadcastIntent() 311 if (!shouldDisplayMessage(cbm)) { in handleCellBroadcastIntent() 373 alertIntent.putExtra(EXTRA_MESSAGE, cbm); in handleCellBroadcastIntent() [all …]
|
D | CellBroadcastResources.java | 45 public static CharSequence getMessageDetails(Context context, CellBroadcastMessage cbm) { in getMessageDetails() argument 54 buf.append(cbm.getDateString(context)); in getMessageDetails() 56 if (cbm.isCmasMessage()) { in getMessageDetails() 58 appendCmasAlertDetails(context, buf, cbm.getCmasWarningInfo()); in getMessageDetails() 243 public static int getDialogTitleResource(Context context, CellBroadcastMessage cbm) { in getDialogTitleResource() argument 245 SmsCbEtwsInfo etwsInfo = cbm.getEtwsWarningInfo(); in getDialogTitleResource() 266 SmsCbCmasInfo cmasInfo = cbm.getCmasWarningInfo(); in getDialogTitleResource() 267 int subId = cbm.getSubId(); in getDialogTitleResource() 268 final int serviceCategory = cbm.getServiceCategory(); in getDialogTitleResource() 323 if (CellBroadcastChannelManager.isEmergencyMessage(context, cbm)) { in getDialogTitleResource()
|
D | CellBroadcastListActivity.java | 181 private void showDialogAndMarkRead(CellBroadcastMessage cbm) { in showDialogAndMarkRead() argument 185 messageList.add(cbm); in showDialogAndMarkRead() 190 private void showBroadcastDetails(CellBroadcastMessage cbm) { in showBroadcastDetails() argument 192 CharSequence details = CellBroadcastResources.getMessageDetails(getActivity(), cbm); in showBroadcastDetails()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertServiceTest.java | 120 CellBroadcastMessage cbm = new CellBroadcastMessage(createMessage(987654321)); in testHandleCellBroadcastIntent() local 122 compareCellBroadCastMessage(cbm, cbmTest); in testHandleCellBroadcastIntent() 161 CellBroadcastMessage cbm = new CellBroadcastMessage(createMessage(4321)); in testDuplicateMessage() local 163 compareCellBroadCastMessage(cbm, cbmTest); in testDuplicateMessage() 202 CellBroadcastMessage cbm = new CellBroadcastMessage(m); in testNonDuplicateMessage() local 204 compareCellBroadCastMessage(cbm, cbmTest); in testNonDuplicateMessage() 219 CellBroadcastMessage cbm = new CellBroadcastMessage(createMessage(0)); in testMaximumMessages() local 221 compareCellBroadCastMessage(cbm, cbmTest); in testMaximumMessages()
|