Home
last modified time | relevance | path

Searched refs:apiCallStats (Results 1 – 14 of 14) sorted by relevance

/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/statsd/
DOdpStatsdLogger.java84 public void logApiCallStats(ApiCallStats apiCallStats) { in logApiCallStats() argument
85 if (!sApiNames.contains(apiCallStats.getApiName())) { in logApiCallStats()
90 apiCallStats.getApiClass(), in logApiCallStats()
91 apiCallStats.getApiName(), in logApiCallStats()
92 apiCallStats.getLatencyMillis(), in logApiCallStats()
93 apiCallStats.getResponseCode(), in logApiCallStats()
94 apiCallStats.getOverheadLatencyMillis(), in logApiCallStats()
95 apiCallStats.getRpcCallLatencyMillis(), in logApiCallStats()
96 apiCallStats.getRpcReturnLatencyMillis(), in logApiCallStats()
97 apiCallStats.getAppUid(), in logApiCallStats()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DApiCallStats.java43 ApiCallStats apiCallStats = (ApiCallStats) obj; in equals() local
44 return mCode == apiCallStats.mCode in equals()
45 && mApiClass == apiCallStats.mApiClass in equals()
46 && mApiName == apiCallStats.mApiName in equals()
47 && Objects.equals(mAppPackageName, apiCallStats.mAppPackageName) in equals()
48 && Objects.equals(mSdkPackageName, apiCallStats.mSdkPackageName) in equals()
49 && mLatencyMillisecond == apiCallStats.mLatencyMillisecond in equals()
50 && mResultCode == apiCallStats.mResultCode; in equals()
DAdServicesLoggerImpl.java77 public void logApiCallStats(ApiCallStats apiCallStats) { in logApiCallStats() argument
78 mStatsdAdServicesLogger.logApiCallStats(apiCallStats); in logApiCallStats()
81 apiCallStats.getAppPackageName(), in logApiCallStats()
82 apiCallStats.getApiName(), in logApiCallStats()
83 apiCallStats.getResultCode()); in logApiCallStats()
DStatsdAdServicesLogger.java153 public void logApiCallStats(ApiCallStats apiCallStats) { in logApiCallStats() argument
155 apiCallStats.getCode(), in logApiCallStats()
156 apiCallStats.getApiClass(), in logApiCallStats()
157 apiCallStats.getApiName(), in logApiCallStats()
158 apiCallStats.getAppPackageName(), in logApiCallStats()
159 apiCallStats.getSdkPackageName(), in logApiCallStats()
160 apiCallStats.getLatencyMillisecond(), in logApiCallStats()
161 apiCallStats.getResultCode()); in logApiCallStats()
DAdServicesLogger.java39 void logApiCallStats(ApiCallStats apiCallStats); in logApiCallStats() argument
DNoOpLoggerImpl.java38 public void logApiCallStats(ApiCallStats apiCallStats) {} in logApiCallStats() argument
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/statsd/
DFederatedComputeStatsdLogger.java55 public void logApiCallStats(ApiCallStats apiCallStats) { in logApiCallStats() argument
59 apiCallStats.getApiClass(), in logApiCallStats()
60 apiCallStats.getApiName(), in logApiCallStats()
61 apiCallStats.getLatencyMillis(), in logApiCallStats()
62 apiCallStats.getResponseCode(), in logApiCallStats()
63 apiCallStats.getSdkPackageName()); in logApiCallStats()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DTopicsServiceImplTest.java865 ApiCallStats apiCallStats = logApiCallStatsCallback.assertResultReceived(); in testGetTopics_LatencyCalculateVerify() local
866 assertApiCallStats(apiCallStats, AD_SERVICES_API_CALLED__API_NAME__GET_TOPICS); in testGetTopics_LatencyCalculateVerify()
869 expect.withMessage("%s.getLatencyMillisecond()", apiCallStats) in testGetTopics_LatencyCalculateVerify()
870 .that(apiCallStats.getLatencyMillisecond()) in testGetTopics_LatencyCalculateVerify()
965 ApiCallStats apiCallStats = logApiCallStatsCallback.assertResultReceived(); in testGetTopics_recordObservation() local
966 assertApiCallStats(apiCallStats, AD_SERVICES_API_CALLED__API_NAME__GET_TOPICS); in testGetTopics_recordObservation()
999 ApiCallStats apiCallStats = logApiCallStatsCallback.assertResultReceived(); in testGetTopics_notRecordObservation() local
1000 assertApiCallStats(apiCallStats, AD_SERVICES_API_CALLED__API_NAME__GET_TOPICS_PREVIEW_API); in testGetTopics_notRecordObservation()
1006 private void assertApiCallStats(ApiCallStats apiCallStats, int apiName) { in assertApiCallStats() argument
1007 expect.withMessage("%s.getResultCode()", apiCallStats) in assertApiCallStats()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdServicesCommonServiceImplTest.java831 ApiCallStats apiCallStats = mLogApiCallStatsCallback.assertResultReceived(); in testGetAdservicesCommonStates_unauthorizedUser() local
832 assertThat(apiCallStats.getAppPackageName()).isEqualTo(TEST_APP_PACKAGE_NAME); in testGetAdservicesCommonStates_unauthorizedUser()
833 assertThat(apiCallStats.getSdkPackageName()).isEqualTo(SOME_SDK_NAME); in testGetAdservicesCommonStates_unauthorizedUser()
834 assertThat(apiCallStats.getResultCode()).isEqualTo(STATUS_UNAUTHORIZED); in testGetAdservicesCommonStates_unauthorizedUser()
835 assertThat(apiCallStats.getLatencyMillisecond()).isEqualTo(350); in testGetAdservicesCommonStates_unauthorizedUser()
861 ApiCallStats apiCallStats = logApiCallStatsCallback.assertResultReceived(); in testGetAdservicesCommonStates_notAllowed() local
862 assertThat(apiCallStats.getResultCode()) in testGetAdservicesCommonStates_notAllowed()
864 assertThat(apiCallStats.getAppPackageName()).isEqualTo(TEST_APP_PACKAGE_NAME); in testGetAdservicesCommonStates_notAllowed()
865 assertThat(apiCallStats.getSdkPackageName()).isEqualTo(SOME_SDK_NAME); in testGetAdservicesCommonStates_notAllowed()
901 ApiCallStats apiCallStats = mLogApiCallStatsCallback.assertResultReceived(); in testGetAdservicesCommonStates_getCommonStatus() local
[all …]
DAppImportanceFilterTest.java23 …tic com.android.adservices.service.common.AppImportanceFilterTest.ApiCallStatsSubject.apiCallStats;
155 .about(apiCallStats()) in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure()
236 .about(apiCallStats()) in testCalledWithLessThanForegroundImportanceAppUid_logsFailure()
258 .about(apiCallStats()) in testCalledWithLessThanForegroundImportanceAppUidAndNullSdkName_logsFailure()
301 .about(apiCallStats()) in testSecurityExceptionTryingToRetrievePackageImportanceFromUid_throwsWrongCallingApplicationStateException()
350 public static Factory<ApiCallStatsSubject, ApiCallStats> apiCallStats() { in apiCallStats() method in AppImportanceFilterTest.ApiCallStatsSubject
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DProtectedSignalsServiceImplTest.java395 ApiCallStats apiCallStats = logApiCallStatsCallback.assertResultReceived(); in verifyUpdateSignalsApiUsageLog() local
396 assertThat(apiCallStats.getApiName()).isEqualTo( in verifyUpdateSignalsApiUsageLog()
398 assertThat(apiCallStats.getAppPackageName()).isEqualTo(packageName); in verifyUpdateSignalsApiUsageLog()
399 assertThat(apiCallStats.getResultCode()).isEqualTo(resultCode); in verifyUpdateSignalsApiUsageLog()
400 assertThat(apiCallStats.getLatencyMillisecond()).isAtLeast(0); in verifyUpdateSignalsApiUsageLog()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/mockito/
DMockitoExpectations.java82 ApiCallStats apiCallStats = inv.getArgument(0); in mockLogApiCallStats()
83 callback.injectResult(apiCallStats); in mockLogApiCallStats()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DGetAdSelectionDataRunnerTest.java1242 ApiCallStats apiCallStats = logApiCallStatsCallback.assertResultReceived(); in verifyGetAdSelectionDataApiUsageLog() local
1243 assertThat(apiCallStats.getApiName()).isEqualTo( in verifyGetAdSelectionDataApiUsageLog()
1245 assertThat(apiCallStats.getAppPackageName()).isEqualTo(TEST_PACKAGE_NAME); in verifyGetAdSelectionDataApiUsageLog()
1246 assertThat(apiCallStats.getResultCode()).isEqualTo(resultCode); in verifyGetAdSelectionDataApiUsageLog()
1247 assertThat(apiCallStats.getLatencyMillisecond()).isEqualTo( in verifyGetAdSelectionDataApiUsageLog()
DPersistAdSelectionResultRunnerTest.java1935 ApiCallStats apiCallStats = logApiCallStatsCallback.assertResultReceived(); in verifyPersistAdSelectionResultApiUsageLog() local
1936 assertThat(apiCallStats.getApiName()).isEqualTo( in verifyPersistAdSelectionResultApiUsageLog()
1938 assertThat(apiCallStats.getAppPackageName()).isEqualTo(CALLER_PACKAGE_NAME); in verifyPersistAdSelectionResultApiUsageLog()
1939 assertThat(apiCallStats.getResultCode()).isEqualTo(resultCode); in verifyPersistAdSelectionResultApiUsageLog()
1940 assertThat(apiCallStats.getLatencyMillisecond()).isEqualTo( in verifyPersistAdSelectionResultApiUsageLog()