Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcaa7cdb authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add anomaly reporting if RejectedExecutionException occurs when...

Merge "Add anomaly reporting if RejectedExecutionException occurs when creating a conference/connection." into main
parents b38b5510 14e82279
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -111,6 +111,11 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
            UUID.fromString("af6b293b-239f-4ccf-bf3a-db212594e29d");
    public static final String NULL_SCHEDULED_EXECUTOR_ERROR_MSG =
            "Scheduled executor is null when creating connection/conference.";
    public static final UUID EXECUTOR_REJECTED_EXECUTION_ERROR_UUID =
            UUID.fromString("649b348c-9d3f-451e-bae9-d9920e7b422c");

    public static final String EXECUTOR_REJECTED_EXECUTION_ERROR_MSG =
            "Scheduled executor caused a Rejected Execution Exception when creating connection.";

    private static final String TELECOM_ABBREVIATION = "cast";
    private static final long SERVICE_BINDING_TIMEOUT = 15000L;
@@ -1672,6 +1677,9 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
                    } catch (RejectedExecutionException e) {
                        Log.e(this, e, "createConference: mScheduledExecutor was "
                                + "already shutdown");
                        mAnomalyReporter.reportAnomaly(
                                EXECUTOR_REJECTED_EXECUTION_ERROR_UUID,
                                EXECUTOR_REJECTED_EXECUTION_ERROR_MSG);
                    }
                } else {
                    Log.w(this, "createConference: Scheduled executor is null or shutdown");
@@ -1814,6 +1822,9 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
                    } catch (RejectedExecutionException e) {
                        Log.e(this, e, "createConnection: mScheduledExecutor was "
                                + "already shutdown");
                        mAnomalyReporter.reportAnomaly(
                                EXECUTOR_REJECTED_EXECUTION_ERROR_UUID,
                                EXECUTOR_REJECTED_EXECUTION_ERROR_MSG);
                    }
                } else {
                    Log.w(this, "createConnection: Scheduled executor is null or shutdown");