Searched refs:callStats (Results 1 – 4 of 4) sorted by relevance
44 public ApiCallRecord(@NonNull CallStats callStats) { in ApiCallRecord() argument45 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()
49 ApiCallStats callStats = new ApiCallStats.Builder(apiName) in writeAppRequestMetrics() local53 OdpStatsdLogger.getInstance().logApiCallStats(callStats); in writeAppRequestMetrics()62 ApiCallStats callStats = new ApiCallStats.Builder(apiName) in writeServiceRequestMetrics() local67 OdpStatsdLogger.getInstance().logApiCallStats(callStats); in writeServiceRequestMetrics()
582 ApiCallStats callStats = captor.getValue(); in testLogApiCallStats() local583 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()
896 CallStats callStats = captor.getValue(); in verifyCallStats() local897 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()