Home
last modified time | relevance | path

Searched refs:serviceCategory (Results 1 – 8 of 8) sorted by relevance

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastResources.java310 final int serviceCategory = message.getServiceCategory(); in getDialogTitleResource() local
311 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
316 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
320 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
332 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
336 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
340 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
344 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
348 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
352 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendCdmaCmasMessages.java126 private static SmsCbMessage createCmasSmsMessage(int serviceCategory, int serialNumber, in createCmasSmsMessage() argument
129 int cmasMessageClass = serviceCategoryToCmasMessageClass(serviceCategory); in createCmasSmsMessage()
134 new SmsCbLocation("123456"), serviceCategory, language, body, in createCmasSmsMessage()
143 private static int serviceCategoryToCmasMessageClass(int serviceCategory) { in serviceCategoryToCmasMessageClass() argument
144 switch (serviceCategory) { in serviceCategoryToCmasMessageClass()
DSendGsmCmasMessages.java228 private static SmsCbMessage createCmasSmsMessage(int serviceCategory, int serialNumber, in createCmasSmsMessage() argument
230 int messageClass = getCmasMessageClass(serviceCategory); in createCmasSmsMessage()
240 new SmsCbLocation("123456"), serviceCategory, language, body, in createCmasSmsMessage()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DDefaultCellBroadcastService.java75 public void onCdmaCellBroadcastSms(int slotIndex, byte[] bearerData, int serviceCategory) { in onCdmaCellBroadcastSms() argument
90 bearerData, serviceCategory); in onCdmaCellBroadcastSms()
121 int serviceCategory) { in parseBroadcastSms() argument
122 BearerData bData = BearerData.decode(context, bearerData, serviceCategory); in parseBroadcastSms()
140 serviceCategory, bData.getLanguage(), bData.userData.msgEncoding, in parseBroadcastSms()
DBearerData.java463 private static int serviceCategoryToCmasMessageClass(int serviceCategory) { in serviceCategoryToCmasMessageClass() argument
464 switch (serviceCategory) { in serviceCategoryToCmasMessageClass()
491 private static void decodeCmasUserData(Context context, BearerData bData, int serviceCategory) in decodeCmasUserData() argument
502 int messageClass = serviceCategoryToCmasMessageClass(serviceCategory); in decodeCmasUserData()
579 public static BearerData decode(Context context, byte[] smsData, int serviceCategory) { in decode() argument
626 if (isCmasAlertCategory(serviceCategory)) { in decode()
627 decodeCmasUserData(context, bData, serviceCategory); in decode()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java148 private static CdmaSmsMessage createBroadcastParcel(int serviceCategory) { in createBroadcastParcel() argument
153 msg.serviceCategory = serviceCategory; in createBroadcastParcel()
232 private static SmsMessage createCmasSmsMessage(int serviceCategory, int messageId, int priority, in createCmasSmsMessage() argument
256 CdmaSmsMessage msg = createBroadcastParcel(serviceCategory); in createCmasSmsMessage()
281 private static SmsMessage createBroadcastSmsMessage(int serviceCategory, int messageId, in createBroadcastSmsMessage() argument
283 CdmaSmsMessage msg = createBroadcastParcel(serviceCategory); in createBroadcastSmsMessage()
479 private static void doTestCmasBroadcast(Context context, int serviceCategory, int messageClass, in doTestCmasBroadcast() argument
482 serviceCategory, 1234, BearerData.PRIORITY_EMERGENCY, BearerData.LANGUAGE_ENGLISH, in doTestCmasBroadcast()
490 assertEquals(serviceCategory, cbMessage.getServiceCategory()); in doTestCmasBroadcast()
706 msg.serviceCategory = 0; in createServiceCategoryProgramDataParcel()
DCellBroadcastHandlerTest.java141 private SmsCbMessage createSmsCbMessage(int serialNumber, int serviceCategory, in createSmsCbMessage() argument
145 serviceCategory, "en", messageBody, 3, in createSmsCbMessage()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java53 int serviceCategory, int cmasMessageClass) { in createMessageForCmasMessageClass() argument
54 return new SmsCbMessage(1, 2, serialNumber, new SmsCbLocation(), serviceCategory, in createMessageForCmasMessageClass()