Merge "[Settings] Start SettingsDumpService to dump the db log after the db is created." into udc-dev
This commit is contained in:
@@ -39,6 +39,7 @@ import android.telephony.UiccCardInfo;
|
||||
import android.telephony.UiccPortInfo;
|
||||
import android.telephony.UiccSlotInfo;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.IndentingPrintWriter;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.settings.network.telephony.MobileNetworkUtils;
|
||||
@@ -736,4 +737,17 @@ public class MobileNetworkRepository extends SubscriptionManager.OnSubscriptions
|
||||
default void onCallStateChanged(int state) {
|
||||
}
|
||||
}
|
||||
|
||||
public void dump(IndentingPrintWriter printwriter) {
|
||||
printwriter.println(TAG + ": ");
|
||||
printwriter.increaseIndent();
|
||||
printwriter.println(" availableSubInfoEntityList= " + mAvailableSubInfoEntityList);
|
||||
printwriter.println(" activeSubInfoEntityList=" + mActiveSubInfoEntityList);
|
||||
printwriter.println(" mobileNetworkInfoEntityList= " + mMobileNetworkInfoEntityList);
|
||||
printwriter.println(" uiccInfoEntityList= " + mUiccInfoEntityList);
|
||||
printwriter.println(" CacheSubscriptionInfoEntityMap= " + sCacheSubscriptionInfoEntityMap);
|
||||
printwriter.println(" SubscriptionInfoMap= " + mSubscriptionInfoMap);
|
||||
printwriter.flush();
|
||||
printwriter.decreaseIndent();
|
||||
}
|
||||
}
|
||||
|
@@ -30,6 +30,7 @@ import androidx.fragment.app.Fragment;
|
||||
import androidx.lifecycle.LifecycleOwner;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.SettingsDumpService;
|
||||
import com.android.settings.Utils;
|
||||
import com.android.settings.core.OnActivityResultListener;
|
||||
import com.android.settings.dashboard.DashboardFragment;
|
||||
@@ -122,6 +123,11 @@ public class NetworkDashboardFragment extends DashboardFragment implements
|
||||
}
|
||||
controllers.add(privateDnsPreferenceController);
|
||||
controllers.add(new NetworkProviderCallsSmsController(context, lifecycle, lifecycleOwner));
|
||||
|
||||
// Start SettingsDumpService after the MobileNetworkRepository is created.
|
||||
Intent intent = new Intent(context, SettingsDumpService.class);
|
||||
intent.putExtra(SettingsDumpService.EXTRA_KEY_SHOW_NETWORK_DUMP, true);
|
||||
context.startService(intent);
|
||||
return controllers;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user