Home
last modified time | relevance | path

Searched refs:mClockProxy (Results 1 – 13 of 13) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DEmergencyCallDiagnosticLogger.java88 private final ClockProxy mClockProxy; field in EmergencyCallDiagnosticLogger
100 mClockProxy = clockProxy; in EmergencyCallDiagnosticLogger()
264 long currentTime = mClockProxy.currentTimeMillis(); in onStartCreateConnection()
292 long currentTime = mClockProxy.currentTimeMillis(); in onCallRemoved()
345 long currentTime = mClockProxy.currentTimeMillis(); in onCallStateChanged()
354 long currentTime = mClockProxy.currentTimeMillis(); in dumpDiagnosticDataFromDropbox()
DCallAnomalyWatchdog.java115 private final ClockProxy mClockProxy; field in CallAnomalyWatchdog
156 mClockProxy = clockProxy; in CallAnomalyWatchdog()
276 call.isCreateConnectionComplete(), mClockProxy.elapsedRealtime()); in maybeTrackCall()
352 call.isCreateConnectionComplete(), mClockProxy.elapsedRealtime()); in getCleanupRunnable()
406 return mClockProxy.elapsedRealtime() - state.stateStartTimeMillis; in getDurationInCurrentStateMillis()
DCall.java564 private final ClockProxy mClockProxy; field in Call
946 mClockProxy = clockProxy; in Call()
948 mCreationTimeMillis = mClockProxy.currentTimeMillis(); in Call()
949 mCreationElapsedRealtimeMillis = mClockProxy.elapsedRealtime(); in Call()
1380 mConnectTimeMillis = mClockProxy.currentTimeMillis(); in setState()
1381 mConnectElapsedTimeMillis = mClockProxy.elapsedRealtime(); in setState()
1390 mDisconnectTimeMillis = mClockProxy.currentTimeMillis(); in setState()
1391 mDisconnectElapsedTimeMillis = mClockProxy.elapsedRealtime(); in setState()
2241 return mClockProxy.elapsedRealtime() - mConnectElapsedTimeMillis; in getAgeMillis()
4709 mStartRingTime = mClockProxy.elapsedRealtime(); in setStartRingTime()
DCallsManager.java472 private final ClockProxy mClockProxy; field in CallsManager
719 mClockProxy = clockProxy; in CallsManager()
1542 mClockProxy, in processIncomingCallIntent()
1784 mClockProxy, in addNewUnknownCall()
1906 mClockProxy, in startOutgoingCall()
4031 && (mClockProxy.elapsedRealtime() - call.getStartRingTime())
4512 mClockProxy,
5372 && ((mClockProxy.elapsedRealtime() - liveCall.getCreationElapsedRealtimeMillis())
5570 mClockProxy,
6226 false, mClockProxy, mToastFactory, mFeatureFlags);
[all …]
DInCallController.java363 mInCallServiceInfo.setBindingStartTime(mClockProxy.elapsedRealtime()); in connect()
416 mInCallServiceInfo.setDisconnectTime(mClockProxy.elapsedRealtime()); in disconnect()
1249 private final ClockProxy mClockProxy; field in InCallController
1327 mClockProxy = clockProxy; in InCallController()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DParcelableCallUtilsTest.java45 @Mock private ClockProxy mClockProxy; field in ParcelableCallUtilsTest
58 when(mClockProxy.currentTimeMillis()).thenReturn(System.currentTimeMillis()); in setUp()
59 when(mClockProxy.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
80 mClockProxy /* ClockProxy */, in setUp()
DBasicCallTests.java133 when(mClockProxy.currentTimeMillis()).thenReturn(TEST_DISCONNECT_TIME); in testSingleOutgoingCallLocalDisconnect()
134 when(mClockProxy.elapsedRealtime()).thenReturn(TEST_DISCONNECT_ELAPSED_TIME); in testSingleOutgoingCallLocalDisconnect()
158 when(mClockProxy.currentTimeMillis()).thenReturn(TEST_DISCONNECT_TIME); in testSingleOutgoingCallRemoteDisconnect()
159 when(mClockProxy.elapsedRealtime()).thenReturn(TEST_DISCONNECT_ELAPSED_TIME); in testSingleOutgoingCallRemoteDisconnect()
300 when(mClockProxy.currentTimeMillis()).thenReturn(TEST_DISCONNECT_TIME); in testSingleIncomingCallLocalDisconnect()
301 when(mClockProxy.elapsedRealtime()).thenReturn(TEST_DISCONNECT_ELAPSED_TIME); in testSingleIncomingCallLocalDisconnect()
316 when(mClockProxy.currentTimeMillis()).thenReturn(TEST_DISCONNECT_TIME); in testSingleIncomingCallRemoteDisconnect()
317 when(mClockProxy.elapsedRealtime()).thenReturn(TEST_DISCONNECT_ELAPSED_TIME); in testSingleIncomingCallRemoteDisconnect()
388 when(mClockProxy.currentTimeMillis()).thenReturn(TEST_DISCONNECT_TIME); in testOutgoingCallAndSelectPhoneAccount()
389 when(mClockProxy.elapsedRealtime()).thenReturn(TEST_DISCONNECT_ELAPSED_TIME); in testOutgoingCallAndSelectPhoneAccount()
[all …]
DEmergencyCallDiagnosticLoggerTest.java114 private ClockProxy mClockProxy; field in EmergencyCallDiagnosticLoggerTest
131 when(mClockProxy.currentTimeMillis()).thenReturn(System.currentTimeMillis()); in setUp()
135 mTimeouts, mDbm, Runnable::run, mClockProxy); in setUp()
294 when(mClockProxy.currentTimeMillis()).thenReturn(System.currentTimeMillis() + 10000L); in testEmergencyCallWentActiveForLongDuration_shouldNotCollectDiagnostics()
DTelecomSystemTest.java212 @Mock ClockProxy mClockProxy; field in TelecomSystemTest
513 mClockProxy = mock(ClockProxy.class); in setupTelecomSystem()
514 when(mClockProxy.currentTimeMillis()).thenReturn(TEST_CREATE_TIME); in setupTelecomSystem()
515 when(mClockProxy.elapsedRealtime()).thenReturn(TEST_CREATE_ELAPSED_TIME); in setupTelecomSystem()
575 mClockProxy, in setupTelecomSystem()
1100 when(mClockProxy.currentTimeMillis()).thenReturn(TEST_CONNECT_TIME); in startAndMakeActiveOutgoingCall()
1101 when(mClockProxy.elapsedRealtime()).thenReturn(TEST_CONNECT_ELAPSED_TIME); in startAndMakeActiveOutgoingCall()
1157 when(mClockProxy.currentTimeMillis()).thenReturn(TEST_CONNECT_TIME); in startAndMakeActiveIncomingCall()
1158 when(mClockProxy.elapsedRealtime()).thenReturn(TEST_CONNECT_ELAPSED_TIME); in startAndMakeActiveIncomingCall()
DMissedInformationTest.java280 when(mClockProxy.elapsedRealtime()).thenReturn(1L + SHORT_RING_TIME); in testShortRing()
299 when(mClockProxy.elapsedRealtime()).thenReturn(1L + LONG_RING_TIME); in testLongRing()
423 mClockProxy, null, mFeatureFlags)); in setUpIncomingCall()
428 }).when(mClockProxy).elapsedRealtime(); in setUpIncomingCall()
DTransactionTests.java104 @Mock private ClockProxy mClockProxy; field in TransactionTests
445 mClockProxy, in createSpyCall()
DCallsManagerTest.java291 @Mock private ClockProxy mClockProxy; field in CallsManagerTest
343 when(mClockProxy.currentTimeMillis()).thenReturn(System.currentTimeMillis()); in setUp()
344 when(mClockProxy.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUp()
353 when(mClockProxy.elapsedRealtime()).thenReturn(0L); in setUp()
375 mClockProxy, in setUp()
468 mClockProxy, in constructOngoingCall()
1999 when(mClockProxy.elapsedRealtime()).thenReturn(STATE_TIMEOUT + 10L); in testAnomalyReportedWhenMakeRoomForOutgoingCallConnecting()
2022 when(mClockProxy.elapsedRealtime()).thenReturn(STATE_TIMEOUT / 2); in testDontDisconnectConnectingCallWhenNotTimedOut()
2100 when(mClockProxy.elapsedRealtime()).thenReturn(STATE_TIMEOUT + 10L); in testMakeRoomForOutgoingCallHasConnectingCall()
2110 when(mClockProxy.elapsedRealtime()).thenReturn(STATE_TIMEOUT + 10L); in testMakeRoomForOutgoingCallForSameCall()
[all …]
DInCallControllerTests.java152 @Mock ClockProxy mClockProxy; field in InCallControllerTests
242 mEmergencyCallHelper, mCarModeTracker, mClockProxy, mFeatureFlags); in setUp()