Searched refs:serviceSwitch (Results 1 – 6 of 6) sorted by relevance
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | ServiceStateStatsTest.java | 563 CellularDataServiceSwitch serviceSwitch = serviceSwitchCaptor.getAllValues().get(0); in onServiceStateChanged_differentDataRats() local 564 assertEquals(TelephonyManager.NETWORK_TYPE_UNKNOWN, serviceSwitch.ratFrom); in onServiceStateChanged_differentDataRats() 565 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, serviceSwitch.ratTo); in onServiceStateChanged_differentDataRats() 566 assertEquals(0, serviceSwitch.simSlotIndex); in onServiceStateChanged_differentDataRats() 567 assertFalse(serviceSwitch.isMultiSim); in onServiceStateChanged_differentDataRats() 568 assertEquals(CARRIER1_ID, serviceSwitch.carrierId); in onServiceStateChanged_differentDataRats() 569 assertEquals(1, serviceSwitch.switchCount); in onServiceStateChanged_differentDataRats() 892 CellularDataServiceSwitch serviceSwitch = serviceSwitchCaptor.getAllValues().get(0); in onServiceStateChanged_roaming() local 893 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, serviceSwitch.ratFrom); in onServiceStateChanged_roaming() 894 assertEquals(TelephonyManager.NETWORK_TYPE_UMTS, serviceSwitch.ratTo); in onServiceStateChanged_roaming() [all …]
|
D | MetricsCollectorTest.java | 381 CellularDataServiceSwitch serviceSwitch = new CellularDataServiceSwitch(); in onPullAtom_cellularDataServiceSwitch_multipleSwitches() local 382 doReturn(new CellularDataServiceSwitch[] {serviceSwitch, serviceSwitch, serviceSwitch}) in onPullAtom_cellularDataServiceSwitch_multipleSwitches()
|
D | PersistAtomsStorageTest.java | 2086 CellularDataServiceSwitch serviceSwitch = new CellularDataServiceSwitch(); in addCellularServiceStateAndCellularDataServiceSwitch_tooManyServiceStates() local 2087 serviceSwitch.ratFrom = i / 10; in addCellularServiceStateAndCellularDataServiceSwitch_tooManyServiceStates() 2088 serviceSwitch.ratTo = i % 10; in addCellularServiceStateAndCellularDataServiceSwitch_tooManyServiceStates() 2089 expectedServiceSwitches.add(serviceSwitch); in addCellularServiceStateAndCellularDataServiceSwitch_tooManyServiceStates() 2091 copyOf(state), copyOf(serviceSwitch)); in addCellularServiceStateAndCellularDataServiceSwitch_tooManyServiceStates()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | ServiceStateStats.java | 205 @Nullable CellularDataServiceSwitch serviceSwitch) { in addServiceStateAndSwitch() argument 213 mStorage.addCellularServiceStateAndCellularDataServiceSwitch(state, serviceSwitch); in addServiceStateAndSwitch() 227 CellularDataServiceSwitch serviceSwitch = new CellularDataServiceSwitch(); in getDataServiceSwitch() local 228 serviceSwitch.ratFrom = prevState.dataRat; in getDataServiceSwitch() 229 serviceSwitch.ratTo = nextState.dataRat; in getDataServiceSwitch() 230 serviceSwitch.isMultiSim = nextState.isMultiSim; in getDataServiceSwitch() 231 serviceSwitch.simSlotIndex = nextState.simSlotIndex; in getDataServiceSwitch() 232 serviceSwitch.carrierId = nextState.carrierId; in getDataServiceSwitch() 233 serviceSwitch.switchCount = 1; in getDataServiceSwitch() 234 return serviceSwitch; in getDataServiceSwitch()
|
D | PersistAtomsStorage.java | 320 CellularServiceState state, @Nullable CellularDataServiceSwitch serviceSwitch) { in addCellularServiceStateAndCellularDataServiceSwitch() argument 332 if (serviceSwitch != null) { in addCellularServiceStateAndCellularDataServiceSwitch() 333 CellularDataServiceSwitch existingSwitch = find(serviceSwitch); in addCellularServiceStateAndCellularDataServiceSwitch() 335 existingSwitch.switchCount += serviceSwitch.switchCount; in addCellularServiceStateAndCellularDataServiceSwitch() 338 serviceSwitch.lastUsedMillis = getWallTimeMillis(); in addCellularServiceStateAndCellularDataServiceSwitch() 342 serviceSwitch, in addCellularServiceStateAndCellularDataServiceSwitch() 1052 .forEach(serviceSwitch -> serviceSwitch.lastUsedMillis = 0L); in getCellularDataServiceSwitches() 1992 for (CellularDataServiceSwitch serviceSwitch : mAtoms.cellularDataServiceSwitch) { in find() 1993 if (serviceSwitch.ratFrom == key.ratFrom in find() 1994 && serviceSwitch.ratTo == key.ratTo in find() [all …]
|
D | MetricsCollector.java | 1059 private static StatsEvent buildStatsEvent(CellularDataServiceSwitch serviceSwitch) { in buildStatsEvent() argument 1062 serviceSwitch.ratFrom, in buildStatsEvent() 1063 serviceSwitch.ratTo, in buildStatsEvent() 1064 serviceSwitch.simSlotIndex, in buildStatsEvent() 1065 serviceSwitch.isMultiSim, in buildStatsEvent() 1066 serviceSwitch.carrierId, in buildStatsEvent() 1067 serviceSwitch.switchCount); in buildStatsEvent()
|