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

Commit 95fc334e authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Adds better logging for ImsFeature features" am: 739e89c8 am:...

Merge "Adds better logging for ImsFeature features" am: 739e89c8 am: 13a9c5c0 am: 7bf7ca75 am: 292b84c2
am: 52d2ced8

Change-Id: I392b94fc9ea1b1b1d60c50f6fc08e8eb8b6b6583
parents 6a929105 52d2ced8
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -556,8 +556,9 @@ public class MmTelFeatureConnection {
        public void imsStatusChanged(int slotId, int feature, int status) {
            mExecutor.execute(() -> {
                synchronized (mLock) {
                    Log.i(TAG, "imsStatusChanged: slot: " + slotId + " feature: " + feature +
                            " status: " + status);
                    Log.i(TAG, "imsStatusChanged: slot: " + slotId + " feature: "
                            + ImsFeature.FEATURE_LOG_MAP.get(feature) +
                            " status: " + ImsFeature.STATE_LOG_MAP.get(status));
                    if (mSlotId == slotId && feature == ImsFeature.FEATURE_MMTEL) {
                        mFeatureStateCached = status;
                        if (mStatusCallback != null) {
@@ -900,16 +901,16 @@ public class MmTelFeatureConnection {
            }
        }
        // Don't synchronize on Binder call.
        Integer status = retrieveFeatureState();
        Integer state = retrieveFeatureState();
        synchronized (mLock) {
            if (status == null) {
            if (state == null) {
                return ImsFeature.STATE_UNAVAILABLE;
            }
            // Cache only non-null value for feature status.
            mFeatureStateCached = status;
            mFeatureStateCached = state;
        }
        Log.i(TAG, "getFeatureState - returning " + status);
        return status;
        Log.i(TAG, "getFeatureState - returning " + ImsFeature.STATE_LOG_MAP.get(state));
        return state;
    }

    /**