[am] add place holders for new crash stats fields

Putting empty values for now to cope with proto changes. Will replace
the place holders with real values in follow-up CLs.

BUG: 184844615
Test: atest android.cts.statsdatom.incremental.AppErrorAtomTests
Change-Id: I5a6adcf91c67f331a43e76ee706fdb5f2ffe67d6
This commit is contained in:
Songchun Fan
2021-04-21 17:49:09 -07:00
parent f0572fd733
commit 2ee0270cba
2 changed files with 22 additions and 2 deletions

View File

@@ -7775,7 +7775,17 @@ public class ActivityManagerService extends IActivityManager.Stub
: ServerProtoEnums.ERROR_SOURCE_UNKNOWN,
incrementalMetrics != null /* isIncremental */, loadingProgress,
incrementalMetrics != null ? incrementalMetrics.getMillisSinceOldestPendingRead()
: -1
: -1,
0 /* storage_health_code */,
0 /* data_loader_status_code */,
false /* read_logs_enabled */,
0 /* millis_since_last_data_loader_bind */,
0 /* data_loader_bind_delay_millis */,
0 /* total_delayed_reads */,
0 /* total_failed_reads */,
0 /* last_read_error_uid */,
0 /* last_read_error_millis_since */,
0 /* last_read_error_code */
);
final int relaunchReason = r == null ? RELAUNCH_REASON_NONE

View File

@@ -432,7 +432,17 @@ class ProcessErrorStateRecord {
(mApp.info != null) ? mApp.info.packageName : "",
incrementalMetrics != null /* isIncremental */, loadingProgress,
incrementalMetrics != null ? incrementalMetrics.getMillisSinceOldestPendingRead()
: -1);
: -1,
0 /* storage_health_code */,
0 /* data_loader_status_code */,
false /* read_logs_enabled */,
0 /* millis_since_last_data_loader_bind */,
0 /* data_loader_bind_delay_millis */,
0 /* total_delayed_reads */,
0 /* total_failed_reads */,
0 /* last_read_error_uid */,
0 /* last_read_error_millis_since */,
0 /* last_read_error_code */);
final ProcessRecord parentPr = parentProcess != null
? (ProcessRecord) parentProcess.mOwner : null;
mService.addErrorToDropBox("anr", mApp, mApp.processName, activityShortComponentName,