Loading packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/LTEButton.java +2 −2 Original line number Diff line number Diff line Loading @@ -51,12 +51,12 @@ public class LTEButton extends PowerButton{ ContentResolver resolver = context.getContentResolver(); if (Phone.NT_MODE_GLOBAL == network || Phone.NT_MODE_LTE_GSM_WCDMA == network) { //tm.toggleLTE(false); // TODO: ******* Disabled for now ************ tm.toggleLTE(false); mState = STATE_DISABLED; Settings.System.putInt(resolver, Settings.System.LTE_MODE, 0); } else if (Phone.NT_MODE_CDMA == network || tm.getLteOnGsmMode() != 0) { //tm.toggleLTE(true); // TODO: ******* Disabled for now ************ tm.toggleLTE(true); mState = STATE_ENABLED; Settings.System.putInt(resolver, Settings.System.LTE_MODE, 1); } Loading telephony/java/android/telephony/TelephonyManager.java +11 −0 Original line number Diff line number Diff line Loading @@ -473,6 +473,17 @@ public class TelephonyManager { } } /** * {@hide} */ public void toggleLTE(boolean on) { try { getITelephony().toggleLTE(on); } catch (RemoteException e) { //Silently fail } } /** Unknown network class. {@hide} */ public static final int NETWORK_CLASS_UNKNOWN = 0; /** Class of broadly defined "2G" networks. {@hide} */ Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,12 @@ interface ITelephony { */ void call(String number); /** * Toggle between 3G and LTE (NT_MODE_CDMA, NT_MODE_GLOBAL) * @param boolean to turn on and off LTE */ void toggleLTE(boolean on); /** * If there is currently a call in progress, show the call screen. * The DTMF dialpad may or may not be visible initially, depending on Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/LTEButton.java +2 −2 Original line number Diff line number Diff line Loading @@ -51,12 +51,12 @@ public class LTEButton extends PowerButton{ ContentResolver resolver = context.getContentResolver(); if (Phone.NT_MODE_GLOBAL == network || Phone.NT_MODE_LTE_GSM_WCDMA == network) { //tm.toggleLTE(false); // TODO: ******* Disabled for now ************ tm.toggleLTE(false); mState = STATE_DISABLED; Settings.System.putInt(resolver, Settings.System.LTE_MODE, 0); } else if (Phone.NT_MODE_CDMA == network || tm.getLteOnGsmMode() != 0) { //tm.toggleLTE(true); // TODO: ******* Disabled for now ************ tm.toggleLTE(true); mState = STATE_ENABLED; Settings.System.putInt(resolver, Settings.System.LTE_MODE, 1); } Loading
telephony/java/android/telephony/TelephonyManager.java +11 −0 Original line number Diff line number Diff line Loading @@ -473,6 +473,17 @@ public class TelephonyManager { } } /** * {@hide} */ public void toggleLTE(boolean on) { try { getITelephony().toggleLTE(on); } catch (RemoteException e) { //Silently fail } } /** Unknown network class. {@hide} */ public static final int NETWORK_CLASS_UNKNOWN = 0; /** Class of broadly defined "2G" networks. {@hide} */ Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,12 @@ interface ITelephony { */ void call(String number); /** * Toggle between 3G and LTE (NT_MODE_CDMA, NT_MODE_GLOBAL) * @param boolean to turn on and off LTE */ void toggleLTE(boolean on); /** * If there is currently a call in progress, show the call screen. * The DTMF dialpad may or may not be visible initially, depending on Loading