Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/apf/
DLegacyApfFilter.java352 private final ApfSessionInfoMetrics mApfSessionInfoMetrics; field in LegacyApfFilter
407 mApfSessionInfoMetrics = dependencies.getApfSessionInfoMetrics(); in LegacyApfFilter()
2096 if (mIpClientRaInfoMetrics == null || mApfSessionInfoMetrics == null) return; in collectAndSendMetrics()
2111 mApfSessionInfoMetrics.setVersion(mApfCapabilities.apfVersionSupported); in collectAndSendMetrics()
2112 mApfSessionInfoMetrics.setMemorySize(mApfCapabilities.maximumApfProgramSize); in collectAndSendMetrics()
2113 mApfSessionInfoMetrics.setApfSessionDurationSeconds( in collectAndSendMetrics()
2115 mApfSessionInfoMetrics.setNumOfTimesApfProgramUpdated(mNumProgramUpdates); in collectAndSendMetrics()
2116 mApfSessionInfoMetrics.setMaxProgramSize(mMaxProgramSize); in collectAndSendMetrics()
2119 mApfSessionInfoMetrics.addApfCounter(entry.getKey(), entry.getValue()); in collectAndSendMetrics()
2122 mApfSessionInfoMetrics.statsWrite(); in collectAndSendMetrics()
DApfFilter.java295 private final ApfSessionInfoMetrics mApfSessionInfoMetrics; field in ApfFilter
399 mApfSessionInfoMetrics = dependencies.getApfSessionInfoMetrics(); in ApfFilter()
2531 if (mIpClientRaInfoMetrics == null || mApfSessionInfoMetrics == null) return; in collectAndSendMetrics()
2546 mApfSessionInfoMetrics.setVersion(mApfCapabilities.apfVersionSupported); in collectAndSendMetrics()
2547 mApfSessionInfoMetrics.setMemorySize(mApfCapabilities.maximumApfProgramSize); in collectAndSendMetrics()
2548 mApfSessionInfoMetrics.setApfSessionDurationSeconds( in collectAndSendMetrics()
2550 mApfSessionInfoMetrics.setNumOfTimesApfProgramUpdated(mNumProgramUpdates); in collectAndSendMetrics()
2551 mApfSessionInfoMetrics.setMaxProgramSize(mMaxProgramSize); in collectAndSendMetrics()
2554 mApfSessionInfoMetrics.addApfCounter(entry.getKey(), entry.getValue()); in collectAndSendMetrics()
2557 mApfSessionInfoMetrics.statsWrite(); in collectAndSendMetrics()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DLegacyApfTest.java141 @Mock private ApfSessionInfoMetrics mApfSessionInfoMetrics; field in LegacyApfTest
153 doReturn(mApfSessionInfoMetrics).when(mDependencies).getApfSessionInfoMetrics(); in setUp()
1877 verify(mApfSessionInfoMetrics).setVersion(4); in testApfSessionInfoMetrics_LegacyApfFilter()
1878 verify(mApfSessionInfoMetrics).setMemorySize(4096); in testApfSessionInfoMetrics_LegacyApfFilter()
1885 verify(mApfSessionInfoMetrics, times(expectedCounters.size())).addApfCounter( in testApfSessionInfoMetrics_LegacyApfFilter()
1895 verify(mApfSessionInfoMetrics).setApfSessionDurationSeconds( in testApfSessionInfoMetrics_LegacyApfFilter()
1897 verify(mApfSessionInfoMetrics).setNumOfTimesApfProgramUpdated(numProgramUpdated); in testApfSessionInfoMetrics_LegacyApfFilter()
1898 verify(mApfSessionInfoMetrics).setMaxProgramSize(maxProgramSize); in testApfSessionInfoMetrics_LegacyApfFilter()
1899 verify(mApfSessionInfoMetrics).statsWrite(); in testApfSessionInfoMetrics_LegacyApfFilter()
1992 verify(mApfSessionInfoMetrics, never()).statsWrite(); in testNoMetricsWrittenForShortDuration_LegacyApfFilter()
[all …]
DApfTest.java165 @Mock private ApfSessionInfoMetrics mApfSessionInfoMetrics; field in ApfTest
177 doReturn(mApfSessionInfoMetrics).when(mDependencies).getApfSessionInfoMetrics(); in setUp()
3244 verify(mApfSessionInfoMetrics).setVersion(4); in testApfSessionInfoMetrics()
3245 verify(mApfSessionInfoMetrics).setMemorySize(4096); in testApfSessionInfoMetrics()
3252 verify(mApfSessionInfoMetrics, times(expectedCounters.size())).addApfCounter( in testApfSessionInfoMetrics()
3262 verify(mApfSessionInfoMetrics).setApfSessionDurationSeconds( in testApfSessionInfoMetrics()
3264 verify(mApfSessionInfoMetrics).setNumOfTimesApfProgramUpdated(numProgramUpdated); in testApfSessionInfoMetrics()
3265 verify(mApfSessionInfoMetrics).setMaxProgramSize(maxProgramSize); in testApfSessionInfoMetrics()
3266 verify(mApfSessionInfoMetrics).statsWrite(); in testApfSessionInfoMetrics()
3355 verify(mApfSessionInfoMetrics, never()).statsWrite(); in verifyNoMetricsWrittenForShortDuration()
[all …]