Home
last modified time | relevance | path

Searched refs:channelRange (Results 1 – 4 of 4) sorted by relevance

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastChannelManager.java194 Resources res, String channelRange) { in CellBroadcastChannelRange() argument
208 int colonIndex = channelRange.indexOf(':'); in CellBroadcastChannelRange()
211 String[] pairs = channelRange.substring(colonIndex + 1).trim().split(","); in CellBroadcastChannelRange()
330 channelRange = channelRange.substring(0, colonIndex).trim(); in CellBroadcastChannelRange()
339 int dashIndex = channelRange.indexOf('-'); in CellBroadcastChannelRange()
342 mStartId = Integer.decode(channelRange.substring(0, dashIndex).trim()); in CellBroadcastChannelRange()
343 mEndId = Integer.decode(channelRange.substring(dashIndex + 1).trim()); in CellBroadcastChannelRange()
346 mStartId = mEndId = Integer.decode(channelRange); in CellBroadcastChannelRange()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastChannelManagerTest.java279 CellBroadcastChannelRange channelRange = mChannelManager1 in testGetCellBroadcastChannelRange() local
282 assertEquals(0xAC00, channelRange.mStartId); in testGetCellBroadcastChannelRange()
283 assertEquals(0xAFED, channelRange.mEndId); in testGetCellBroadcastChannelRange()
285 channelRange = mChannelManager2.getCellBroadcastChannelRange(0xAC00); in testGetCellBroadcastChannelRange()
287 assertEquals(0xAC00, channelRange.mStartId); in testGetCellBroadcastChannelRange()
288 assertEquals(0xAEFF, channelRange.mEndId); in testGetCellBroadcastChannelRange()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java333 for (String channelRange : channelString.split(",")) { in convertStringToChannelList()
335 if (channelRange.contains("-")) { in convertStringToChannelList()
336 String[] channels = channelRange.split("-"); in convertStringToChannelList()
352 channelList.add(Integer.parseInt(channelRange.trim())); in convertStringToChannelList()
1517 for (String channelRange : oemConfigString.split(",")) {
1519 if (channelRange.contains("-")) {
1520 String[] channels = channelRange.split("-");
1534 } else if (!TextUtils.isEmpty(channelRange)) {
1535 int channel = Integer.parseInt(channelRange.trim());
/packages/modules/Wifi/service/java/com/android/server/wifi/
DHostapdHalHidlImp.java1004 for (String channelRange : channelListStr.split(",")) { in toAcsChannelRanges()
1008 if (channelRange.contains("-")) { in toAcsChannelRanges()
1009 String[] channels = channelRange.split("-"); in toAcsChannelRanges()
1022 } else if (!TextUtils.isEmpty(channelRange)) { in toAcsChannelRanges()
1023 acsChannelRange.start = Integer.parseInt(channelRange.trim()); in toAcsChannelRanges()