Home
last modified time | relevance | path

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

/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DApiCallRecord.java44 public ApiCallRecord(@NonNull CallStats callStats) { in ApiCallRecord() argument
45 Objects.requireNonNull(callStats); in ApiCallRecord()
48 mCallType = callStats.getCallType(); in ApiCallRecord()
49 mPackageName = callStats.getPackageName(); in ApiCallRecord()
50 mDatabaseName = callStats.getDatabase(); in ApiCallRecord()
51 mStatusCode = callStats.getStatusCode(); in ApiCallRecord()
52 mTotalLatencyMillis = callStats.getTotalLatencyMillis(); in ApiCallRecord()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DStatsUtils.java49 ApiCallStats callStats = new ApiCallStats.Builder(apiName) in writeAppRequestMetrics() local
53 OdpStatsdLogger.getInstance().logApiCallStats(callStats); in writeAppRequestMetrics()
62 ApiCallStats callStats = new ApiCallStats.Builder(apiName) in writeServiceRequestMetrics() local
67 OdpStatsdLogger.getInstance().logApiCallStats(callStats); in writeServiceRequestMetrics()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/
DDataAccessServiceImplTest.java582 ApiCallStats callStats = captor.getValue(); in testLogApiCallStats() local
583 assertThat(callStats.getSdkPackageName()).isEqualTo(mService.getPackageName()); in testLogApiCallStats()
584 assertThat(callStats.getAppUid()).isEqualTo(0); in testLogApiCallStats()
585 assertThat(callStats.getApiName()).isEqualTo(API_NAME_LOCAL_DATA_GET); in testLogApiCallStats()
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/
DAppSearchManagerServiceTest.java896 CallStats callStats = captor.getValue(); in verifyCallStats() local
897 assertThat(callStats.getPackageName()).isEqualTo(packageName); in verifyCallStats()
898 assertThat(callStats.getDatabase()).isEqualTo(databaseName); in verifyCallStats()
899 assertThat(callStats.getCallType()).isEqualTo(callType); in verifyCallStats()
900 assertThat(callStats.getStatusCode()).isEqualTo(AppSearchResult.RESULT_OK); in verifyCallStats()
901 assertThat(callStats.getEstimatedBinderLatencyMillis()).isGreaterThan(0); in verifyCallStats()