Home
last modified time | relevance | path

Searched refs:mUwbMetrics (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbMetricsTest.java124 private UwbMetrics mUwbMetrics; field in UwbMetricsTest
207 mUwbMetrics = new UwbMetrics(mUwbInjector); in setUp()
235 mUwbMetrics.logRangingInitEvent(mUwbSession, UwbUciConstants.STATUS_CODE_OK); in testLogRangingSessionAllEvents()
245 mUwbMetrics.longRangingStartEvent(mUwbSession, in testLogRangingSessionAllEvents()
248 mUwbMetrics.longRangingStartEvent(mUwbSession, UwbUciConstants.STATUS_CODE_OK); in testLogRangingSessionAllEvents()
253 mUwbMetrics.logRangingResult(UwbStatsLog.UWB_SESSION_INITIATED__PROFILE__FIRA, in testLogRangingSessionAllEvents()
257 mUwbMetrics.logRangingResult(UwbStatsLog.UWB_SESSION_INITIATED__PROFILE__FIRA, in testLogRangingSessionAllEvents()
261 mUwbMetrics.logDataRx(mUwbSession, UwbUciConstants.STATUS_CODE_OK); in testLogRangingSessionAllEvents()
263 mUwbMetrics.logDataRx(mUwbSession, UwbUciConstants.STATUS_CODE_FAILED); in testLogRangingSessionAllEvents()
266 mUwbMetrics.logDataTx(mUwbSession, UwbUciConstants.STATUS_CODE_OK); in testLogRangingSessionAllEvents()
[all …]
DUwbSessionNotificationManagerTest.java106 @Mock private UwbMetrics mUwbMetrics; field in UwbSessionNotificationManagerTest
139 when(mUwbInjector.getUwbMetrics()).thenReturn(mUwbMetrics); in setUp()
165 verify(mUwbMetrics, never()).logRangingResult(anyInt(), any(), any()); in testOnRangingResultWithoutUwbRangingPermission()
179 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithAoa()
196 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithNoAoa()
213 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithNoAoaElevation()
230 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithNoAoaAzimuth()
252 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithAoaAndDestAoa()
274 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithAoaAndNoDestAzimuth()
296 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithAoaAndNoDestElevation()
[all …]
DUwbSessionManagerTest.java312 private UwbMetrics mUwbMetrics; field in UwbSessionManagerTest
372 mUwbMetrics, in setup()
401 verify(mUwbMetrics).logDataRx(eq(mockUwbSession), eq(UwbUciConstants.STATUS_CODE_OK)); in onDataReceived_extendedMacAddressFormat_owrAoA()
416 verify(mUwbMetrics, never()).logDataRx(eq(mockUwbSession), in onDataReceived_unsupportedMacAddressLength_owrAoa()
431 verify(mUwbMetrics).logDataRx(eq(mockUwbSession), eq(UwbUciConstants.STATUS_CODE_OK)); in onDataReceived_shortMacAddressFormat_owrAoa()
449 verify(mUwbMetrics).logDataRx(eq(mockUwbSession), eq(UwbUciConstants.STATUS_CODE_OK)); in onDataReceived_shortMacAddressFormat_dsTwr()
505 verify(mUwbMetrics).logDataRx(eq(mockUwbSession), eq(UwbUciConstants.STATUS_CODE_OK)); in onRangeDataNotificationReceived_owrAoa_success_extendedMacAddress()
526 verify(mUwbMetrics).logDataToUpperLayer(eq(mockUwbSession), eq(1)); in onRangeDataNotificationReceived_owrAoa_success_extendedMacAddress()
551 verify(mUwbMetrics).logDataRx(eq(mockUwbSession), eq(UwbUciConstants.STATUS_CODE_OK)); in onRangeDataNotificationReceived_owrAoa_success_shortMacAddress()
572 verify(mUwbMetrics).logDataToUpperLayer(eq(mockUwbSession), eq(1)); in onRangeDataNotificationReceived_owrAoa_success_shortMacAddress()
[all …]
DUwbServiceCoreTest.java242 @Mock private UwbMetrics mUwbMetrics; field in UwbServiceCoreTest
281 mUwbServiceCore = new UwbServiceCore(mContext, mNativeUwbManager, mUwbMetrics, in setUp()
461 verify(mUwbMetrics).logUwbStateChangeEvent(true, false, false); in testEnable_failure()
506 verify(mUwbMetrics).logUwbStateChangeEvent(true, true, false); in testEnableWithCountryCode_success()
559 verify(mUwbMetrics).logUwbStateChangeEvent(true, true, false); in testEnableWithCountryCode_statusRegulationUwbOff()
765 verify(mUwbMetrics).logUwbStateChangeEvent(true, true, false); in testDisable()
779 verify(mUwbMetrics).logUwbStateChangeEvent(false, true, false); in testDisable()
1501 mUwbServiceCore = new UwbServiceCore(mContext, mNativeUwbManager, mUwbMetrics, in testGetAdapterState_multichip()
1531 mUwbServiceCore = new UwbServiceCore(mContext, mNativeUwbManager, mUwbMetrics, in testGetAdapterState_noChips()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbInjector.java112 private final UwbMetrics mUwbMetrics; field in UwbInjector
146 mUwbMetrics = new UwbMetrics(this); in UwbInjector()
155 new UwbSessionManager(uwbConfigurationManager, mNativeUwbManager, mUwbMetrics, in UwbInjector()
160 mUwbService = new UwbServiceCore(mContext, mNativeUwbManager, mUwbMetrics, in UwbInjector()
211 return mUwbMetrics; in getUwbMetrics()
DUwbServiceCore.java133 private final UwbMetrics mUwbMetrics; field in UwbServiceCore
290 mUwbMetrics = uwbMetrics; in UwbServiceCore()
402 mUwbMetrics.incrementDeviceStatusErrorCount(); in onDeviceStatusNotificationReceived()
498 mUwbMetrics.incrementUciGenericErrorCount(); in onCoreGenericErrorNotificationReceived()
1153 mUwbMetrics.logUwbStateChangeEvent(true, false, mListeners.isEmpty()); in initializeHw()
1168 mUwbMetrics.logUwbStateChangeEvent(true, true, false); in initializeHw()
1216 mUwbMetrics.logUwbStateChangeEvent(false, false, false); in deInitializeHw()
1219 mUwbMetrics.logUwbStateChangeEvent(false, true, false); in deInitializeHw()
DUwbSessionManager.java185 private final UwbMetrics mUwbMetrics; field in UwbSessionManager
203 mUwbMetrics = uwbMetrics; in UwbSessionManager()
372 mUwbMetrics.logDataRx(uwbSession, status); in onDataReceived()
554 mUwbMetrics.longRangingStopEvent(uwbSession); in onSessionStatusNotificationReceived()
658 mUwbMetrics.logRangingInitEvent(uwbSession, in initSession()
688 mUwbMetrics.logRangingInitEvent(uwbSession, in initSession()
701 mUwbMetrics.logRangingInitEvent(uwbSession, in initSession()
813 mUwbMetrics.longRangingStartEvent(uwbSession, UwbUciConstants.STATUS_CODE_FAILED); in startRanging()
836 mUwbMetrics.longRangingStopEvent(uwbSession); in stopRangingInternal()
946 mUwbMetrics.logDataToUpperLayer(uwbSession, receivedDataInfoList.size()); in processRangeData()
[all …]