/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastResources.java | 314 final int serviceCategory = message.getServiceCategory(); in getSmsSenderAddressResource() local 316 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getSmsSenderAddressResource() 320 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getSmsSenderAddressResource() 324 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getSmsSenderAddressResource() 358 final int serviceCategory = message.getServiceCategory(); in getDialogTitleResource() local 359 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource() 364 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource() 368 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource() 382 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource() 386 if (channelManager.checkCellBroadcastChannelRange(serviceCategory, in getDialogTitleResource() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | SendCdmaCmasMessages.java | 126 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()
|
D | SendGsmCmasMessages.java | 228 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/ |
D | DefaultCellBroadcastService.java | 82 public void onCdmaCellBroadcastSms(int slotIndex, byte[] bearerData, int serviceCategory) { in onCdmaCellBroadcastSms() argument 100 bearerData, serviceCategory); in onCdmaCellBroadcastSms() 134 int serviceCategory) { in parseCdmaBroadcastSms() argument 137 bData = BearerData.decode(context, bearerData, serviceCategory); in parseCdmaBroadcastSms() 158 serviceCategory, bData.getLanguage(), bData.userData.msgEncoding, in parseCdmaBroadcastSms()
|
D | BearerData.java | 463 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 624 if (isCmasAlertCategory(serviceCategory)) { in decode() 625 decodeCmasUserData(context, bData, serviceCategory); in decode()
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CdmaSmsMessageTest.java | 148 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()
|
D | CellBroadcastHandlerTest.java | 167 private SmsCbMessage createSmsCbMessage(int serialNumber, int serviceCategory, in createSmsCbMessage() argument 171 serviceCategory, "en", messageBody, 3, in createSmsCbMessage()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastAlertServiceTest.java | 63 int serviceCategory, int cmasMessageClass) { in createMessageForCmasMessageClass() argument 64 return new SmsCbMessage(1, 2, serialNumber, new SmsCbLocation(), serviceCategory, in createMessageForCmasMessageClass() 71 static SmsCbMessage createCmasMessageWithLanguage(int serialNumber, int serviceCategory, in createCmasMessageWithLanguage() argument 74 serviceCategory, language, "body", in createCmasMessageWithLanguage()
|