Loading src/java/com/android/internal/telephony/ProxyController.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -126,7 +126,7 @@ public class ProxyController { mUiccPhoneBookController = new UiccPhoneBookController(mPhones); mUiccPhoneBookController = new UiccPhoneBookController(mPhones); mPhoneSubInfoController = new PhoneSubInfoController(mContext, mPhones); mPhoneSubInfoController = new PhoneSubInfoController(mContext, mPhones); mUiccSmsController = new UiccSmsController(); mUiccSmsController = new UiccSmsController(mContext); mSetRadioAccessFamilyStatus = new int[mPhones.length]; mSetRadioAccessFamilyStatus = new int[mPhones.length]; mNewRadioAccessFamily = new int[mPhones.length]; mNewRadioAccessFamily = new int[mPhones.length]; mOldRadioAccessFamily = new int[mPhones.length]; mOldRadioAccessFamily = new int[mPhones.length]; Loading src/java/com/android/internal/telephony/UiccSmsController.java +11 −2 Original line number Original line Diff line number Diff line Loading @@ -18,6 +18,8 @@ package com.android.internal.telephony; package com.android.internal.telephony; import static com.android.internal.util.DumpUtils.checkDumpPermission; import android.annotation.Nullable; import android.annotation.Nullable; import android.app.ActivityThread; import android.app.ActivityThread; import android.app.PendingIntent; import android.app.PendingIntent; Loading @@ -42,9 +44,12 @@ import java.util.List; * Implements the ISmsImplBase interface used in the SmsManager API. * Implements the ISmsImplBase interface used in the SmsManager API. */ */ public class UiccSmsController extends ISmsImplBase { public class UiccSmsController extends ISmsImplBase { static final String LOG_TAG = "RIL_UiccSmsController"; static final String LOG_TAG = "UiccSmsController"; private final Context mContext; protected UiccSmsController() { protected UiccSmsController(Context context) { mContext = context; if (ServiceManager.getService("isms") == null) { if (ServiceManager.getService("isms") == null) { ServiceManager.addService("isms", this); ServiceManager.addService("isms", this); } } Loading Loading @@ -393,6 +398,10 @@ public class UiccSmsController extends ISmsImplBase { @Override @Override protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { if (!checkDumpPermission(mContext, LOG_TAG, pw)) { return; } IndentingPrintWriter indentingPW = IndentingPrintWriter indentingPW = new IndentingPrintWriter(pw, " " /* singleIndent */); new IndentingPrintWriter(pw, " " /* singleIndent */); for (Phone phone : PhoneFactory.getPhones()) { for (Phone phone : PhoneFactory.getPhones()) { Loading Loading
src/java/com/android/internal/telephony/ProxyController.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -126,7 +126,7 @@ public class ProxyController { mUiccPhoneBookController = new UiccPhoneBookController(mPhones); mUiccPhoneBookController = new UiccPhoneBookController(mPhones); mPhoneSubInfoController = new PhoneSubInfoController(mContext, mPhones); mPhoneSubInfoController = new PhoneSubInfoController(mContext, mPhones); mUiccSmsController = new UiccSmsController(); mUiccSmsController = new UiccSmsController(mContext); mSetRadioAccessFamilyStatus = new int[mPhones.length]; mSetRadioAccessFamilyStatus = new int[mPhones.length]; mNewRadioAccessFamily = new int[mPhones.length]; mNewRadioAccessFamily = new int[mPhones.length]; mOldRadioAccessFamily = new int[mPhones.length]; mOldRadioAccessFamily = new int[mPhones.length]; Loading
src/java/com/android/internal/telephony/UiccSmsController.java +11 −2 Original line number Original line Diff line number Diff line Loading @@ -18,6 +18,8 @@ package com.android.internal.telephony; package com.android.internal.telephony; import static com.android.internal.util.DumpUtils.checkDumpPermission; import android.annotation.Nullable; import android.annotation.Nullable; import android.app.ActivityThread; import android.app.ActivityThread; import android.app.PendingIntent; import android.app.PendingIntent; Loading @@ -42,9 +44,12 @@ import java.util.List; * Implements the ISmsImplBase interface used in the SmsManager API. * Implements the ISmsImplBase interface used in the SmsManager API. */ */ public class UiccSmsController extends ISmsImplBase { public class UiccSmsController extends ISmsImplBase { static final String LOG_TAG = "RIL_UiccSmsController"; static final String LOG_TAG = "UiccSmsController"; private final Context mContext; protected UiccSmsController() { protected UiccSmsController(Context context) { mContext = context; if (ServiceManager.getService("isms") == null) { if (ServiceManager.getService("isms") == null) { ServiceManager.addService("isms", this); ServiceManager.addService("isms", this); } } Loading Loading @@ -393,6 +398,10 @@ public class UiccSmsController extends ISmsImplBase { @Override @Override protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { if (!checkDumpPermission(mContext, LOG_TAG, pw)) { return; } IndentingPrintWriter indentingPW = IndentingPrintWriter indentingPW = new IndentingPrintWriter(pw, " " /* singleIndent */); new IndentingPrintWriter(pw, " " /* singleIndent */); for (Phone phone : PhoneFactory.getPhones()) { for (Phone phone : PhoneFactory.getPhones()) { Loading