Home
last modified time | relevance | path

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

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastResourcesTest.java177 final int[] serviceCategory = in testGetDialogTitleResource() local
179 for (int i = 0; i < serviceCategory.length; i++) { in testGetDialogTitleResource()
181 serviceCategory[i], "", "", 0, null, in testGetDialogTitleResource()
234 final int[] serviceCategory = {0x1112, 0x111B, 0x112C, 0x1113}; in testGetSmsSenderAddressResource() local
235 for (int i = 0; i < serviceCategory.length; i++) { in testGetSmsSenderAddressResource()
237 serviceCategory[i], "", "", 0, null, in testGetSmsSenderAddressResource()
273 final int[] serviceCategory = {0xA800, 0xAFEE, 0xAC00, 0xA802}; in testGetDialogPictogramResource() local
274 for (int i = 0; i < serviceCategory.length; i++) { in testGetDialogPictogramResource()
276 serviceCategory[i], "", "", 0, null, in testGetDialogPictogramResource()
355 final int[] serviceCategory = in testGetDialogTitleResourceForAdditionalChannel() local
[all …]
DCellBroadcastChannelManagerTest.java334 int serviceCategory, int cmasMessageClass) { in createMessageForCmasMessageClass() argument
335 return new SmsCbMessage(1, 2, serialNumber, new SmsCbLocation(), serviceCategory, in createMessageForCmasMessageClass()
DCellBroadcastAlertServiceTest.java105 int serviceCategory, int cmasMessageClass) { in createMessageForCmasMessageClass() argument
106 return new SmsCbMessage(1, 2, serialNumber, new SmsCbLocation(), serviceCategory, in createMessageForCmasMessageClass()
113 static SmsCbMessage createCmasMessageWithLanguage(int serialNumber, int serviceCategory, in createCmasMessageWithLanguage() argument
116 serviceCategory, language, "body", in createCmasMessageWithLanguage()
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendCdmaCmasMessages.java142 private static SmsCbMessage createCmasSmsMessage(int serviceCategory, int serialNumber, in createCmasSmsMessage() argument
145 int cmasMessageClass = serviceCategoryToCmasMessageClass(serviceCategory); in createCmasSmsMessage()
150 new SmsCbLocation("123456"), serviceCategory, language, body, in createCmasSmsMessage()
159 private static int serviceCategoryToCmasMessageClass(int serviceCategory) { in serviceCategoryToCmasMessageClass() argument
160 switch (serviceCategory) { in serviceCategoryToCmasMessageClass()
DSendGsmCmasMessages.java70 Context context, int serviceCategory, int serialNumber, String messageBody, in testSendCmasAlertWithServiceCategory() argument
74 serviceCategory, in testSendCmasAlertWithServiceCategory()
254 private static SmsCbMessage createCmasSmsMessage(int serviceCategory, int serialNumber, in createCmasSmsMessage() argument
256 int messageClass = getCmasMessageClass(serviceCategory); in createCmasSmsMessage()
266 new SmsCbLocation("123456"), serviceCategory, language, body, in createCmasSmsMessage()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DDefaultCellBroadcastService.java83 public void onCdmaCellBroadcastSms(int slotIndex, byte[] bearerData, int serviceCategory) { in onCdmaCellBroadcastSms() argument
95 bearerData, serviceCategory); in onCdmaCellBroadcastSms()
128 int serviceCategory) { in parseCdmaBroadcastSms() argument
131 bData = BearerData.decode(context, bearerData, serviceCategory); in parseCdmaBroadcastSms()
149 serviceCategory, bData.getLanguage(), bData.userData.msgEncoding, in parseCdmaBroadcastSms()
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
624 if (isCmasAlertCategory(serviceCategory)) { in decode()
625 decodeCmasUserData(context, bData, serviceCategory); in decode()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastResources.java314 final int serviceCategory = message.getServiceCategory(); in getSmsSenderAddressResource() local
316 int resourcesKey = channelManager.getCellBroadcastChannelResourcesKey(serviceCategory); in getSmsSenderAddressResource()
355 final int serviceCategory = message.getServiceCategory(); in getDialogTitleResource() local
356 int resourcesKey = channelManager.getCellBroadcastChannelResourcesKey(serviceCategory); in getDialogTitleResource()
358 .getCellBroadcastChannelRange(serviceCategory); in getDialogTitleResource()
426 final int serviceCategory = message.getServiceCategory(); in getDialogPictogramResource() local
431 if (channelManager.getCellBroadcastChannelResourcesKey(serviceCategory) in getDialogPictogramResource()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java150 private static CdmaSmsMessage createBroadcastParcel(int serviceCategory) { in createBroadcastParcel() argument
155 msg.serviceCategory = serviceCategory; in createBroadcastParcel()
234 env.serviceCategory = cdmaSmsMessage.serviceCategory; in convertHalCdmaSmsMessage()
334 private static SmsMessage createCmasSmsMessage(int serviceCategory, int messageId, int priority, in createCmasSmsMessage() argument
358 CdmaSmsMessage msg = createBroadcastParcel(serviceCategory); in createCmasSmsMessage()
383 private static SmsMessage createBroadcastSmsMessage(int serviceCategory, int messageId, in createBroadcastSmsMessage() argument
385 CdmaSmsMessage msg = createBroadcastParcel(serviceCategory); in createBroadcastSmsMessage()
581 private static void doTestCmasBroadcast(Context context, int serviceCategory, int messageClass, in doTestCmasBroadcast() argument
584 serviceCategory, 1234, BearerData.PRIORITY_EMERGENCY, BearerData.LANGUAGE_ENGLISH, in doTestCmasBroadcast()
592 assertEquals(serviceCategory, cbMessage.getServiceCategory()); in doTestCmasBroadcast()
[all …]
DCellBroadcastHandlerTest.java233 private SmsCbMessage createSmsCbMessage(int serialNumber, int serviceCategory, in createSmsCbMessage() argument
237 serviceCategory, "en", messageBody, 3, in createSmsCbMessage()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionTest.java334 Integer serviceCategory = c.getEmergencyServiceCategory(); in testDomainSelectionDisconnected_AlternateService() local
336 assertNotNull(serviceCategory); in testDomainSelectionDisconnected_AlternateService()
338 serviceCategory.intValue()); in testDomainSelectionDisconnected_AlternateService()
358 Integer serviceCategory = c.getEmergencyServiceCategory(); in testDomainSelectionDisconnected_SilentRedialEmergency() local
360 assertNotNull(serviceCategory); in testDomainSelectionDisconnected_SilentRedialEmergency()
362 serviceCategory.intValue()); in testDomainSelectionDisconnected_SilentRedialEmergency()