Searched refs:mTetheringMetrics (Results 1 – 6 of 6) sorted by relevance
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/metrics/ |
D | TetheringMetricsTest.java | 79 private TetheringMetrics mTetheringMetrics; field in TetheringMetricsTest 100 mTetheringMetrics.timeNow(); in incrementCurrentTime() 114 mTetheringMetrics = spy(new MockTetheringMetrics()); in setUp() 129 verify(mTetheringMetrics).write(expectedReport); in verifyReport() 133 mTetheringMetrics.updateErrorCode(downstream, error); in updateErrorAndSendReport() 134 mTetheringMetrics.sendReport(downstream); in updateErrorAndSendReport() 165 mTetheringMetrics.createBuilder(type, TEST_CALLER_PKG); in runDownstreamTypesTest() 175 reset(mTetheringMetrics); in runDownstreamTypesTest() 177 mTetheringMetrics.cleanup(); in runDownstreamTypesTest() 192 mTetheringMetrics.createBuilder(TETHERING_WIFI, TEST_CALLER_PKG); in runErrorCodesTest() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 184 @Mock private TetheringMetrics mTetheringMetrics; field in IpServerTest 311 mTetheringMetrics, mDependencies); in createIpServer() 404 verify(mTetheringMetrics).updateErrorCode(eq(TETHERING_BLUETOOTH), in canUnrequestTethering() 406 verify(mTetheringMetrics).sendReport(eq(TETHERING_BLUETOOTH)); in canUnrequestTethering() 621 verify(mTetheringMetrics).updateErrorCode(eq(TETHERING_USB), in usbShouldBeTornDownOnTetherError() 623 verify(mTetheringMetrics).sendReport(eq(TETHERING_USB)); in usbShouldBeTornDownOnTetherError() 642 verify(mTetheringMetrics).updateErrorCode(eq(TETHERING_USB), in shouldTearDownUsbOnUpstreamError() 644 verify(mTetheringMetrics).sendReport(eq(TETHERING_USB)); in shouldTearDownUsbOnUpstreamError()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 294 @Mock private TetheringMetrics mTetheringMetrics; field in TetheringTest 532 return mTetheringMetrics; in makeTetheringMetrics() 1997 verify(mTetheringMetrics).createBuilder(eq(TETHERING_WIFI), anyString()); in failureEnablingIpForwarding() 2036 verify(mTetheringMetrics, times(0)).maybeUpdateUpstreamType(any()); in failureEnablingIpForwarding() 2037 verify(mTetheringMetrics, times(2)).updateErrorCode(eq(TETHERING_WIFI), in failureEnablingIpForwarding() 2039 verify(mTetheringMetrics, times(2)).sendReport(eq(TETHERING_WIFI)); in failureEnablingIpForwarding() 3477 verify(mTetheringMetrics).createBuilder(eq(TETHERING_NCM), anyString()); in testUsbFunctionConfigurationChange() 3478 verify(mTetheringMetrics, times(1)).maybeUpdateUpstreamType(any()); in testUsbFunctionConfigurationChange() 3484 verify(mTetheringMetrics).updateErrorCode(anyInt(), eq(TETHER_ERROR_NO_ERROR)); in testUsbFunctionConfigurationChange() 3485 verify(mTetheringMetrics).sendReport(eq(TETHERING_NCM)); in testUsbFunctionConfigurationChange() [all …]
|
D | BpfCoordinatorTest.java | 458 @Mock private TetheringMetrics mTetheringMetrics; field in BpfCoordinatorTest 626 mAddressCoordinator, mTetheringMetrics, mIpServerDeps); in makeAndStartIpServer()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | Tethering.java | 262 private final TetheringMetrics mTetheringMetrics; field in Tethering 301 mTetheringMetrics = mDeps.makeTetheringMetrics(); in Tethering() 683 mTetheringMetrics.createBuilder(request.tetheringType, callerPkg); in startTethering() 745 mTetheringMetrics.updateErrorCode(type, result); in sendTetherResult() 746 mTetheringMetrics.sendReport(type); in sendTetherResult() 1855 mTetheringMetrics.maybeUpdateUpstreamType(ns); in chooseUpstreamType() 2089 mTetheringMetrics.cleanup(); in exit() 2818 mPrivateAddressCoordinator, mTetheringMetrics, in ensureIpServerStarted()
|
/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
D | IpServer.java | 318 private final TetheringMetrics mTetheringMetrics; field in IpServer 344 mTetheringMetrics = tetheringMetrics; in IpServer() 1233 mTetheringMetrics.updateErrorCode(mInterfaceType, mLastError); in exit() 1234 mTetheringMetrics.sendReport(mInterfaceType); in exit()
|