Migration to Westworld (1/2)
Migrate existing MetricsLogger to DocumentsStatsLog
Bug: 111552654
Test: atest DocumentsUITests
Change-Id: I4d6d4b13cefeeefd06b844ff07a0ccc3ef606c3e
diff --git a/src/com/android/documentsui/services/Job.java b/src/com/android/documentsui/services/Job.java
index cc5208e..1e01410 100644
--- a/src/com/android/documentsui/services/Job.java
+++ b/src/com/android/documentsui/services/Job.java
@@ -160,7 +160,7 @@
// No exceptions should be thrown here, as all calls to the provider must be
// handled within Job implementations. However, just in case catch them here.
Log.e(TAG, "Operation failed due to an unhandled runtime exception.", e);
- Metrics.logFileOperationErrors(service, operationType, failedDocs, failedUris);
+ Metrics.logFileOperationErrors(operationType, failedDocs, failedUris);
} finally {
mState = (mState == STATE_STARTED || mState == STATE_SET_UP) ? STATE_COMPLETED : mState;
finish();
@@ -221,7 +221,7 @@
final void cancel() {
mState = STATE_CANCELED;
mSignal.cancel();
- Metrics.logFileOperationCancelled(service, operationType);
+ Metrics.logFileOperationCancelled(operationType);
}
final boolean isCanceled() {