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

Commit 767a662e authored by Wink Saville's avatar Wink Saville Committed by The Android Open Source Project
Browse files

AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
parent e9c08056
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -119,8 +119,8 @@ LOCAL_SRC_FILES += \
	telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
	telephony/java/com/android/internal/telephony/ITelephony.aidl \
	telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
	telephony/java/com/android/internal/telephony/gsm/ISimPhoneBook.aidl \
	telephony/java/com/android/internal/telephony/gsm/ISms.aidl \
	telephony/java/com/android/internal/telephony/IIccPhoneBook.aidl \
	telephony/java/com/android/internal/telephony/ISms.aidl \
	wifi/java/android/net/wifi/IWifiManager.aidl \
	telephony/java/com/android/internal/telephony/IExtendedNetworkService.aidl

@@ -432,3 +432,5 @@ include $(BUILD_JAVA_LIBRARY)
ifeq (,$(ONE_SHOT_MAKEFILE))
include $(call first-makefiles-under,$(LOCAL_PATH))
endif

+86 −64
Original line number Diff line number Diff line
@@ -10252,6 +10252,28 @@
 visibility="public"
>
</field>
<field name="stat_sys_vp_phone_call"
 type="int"
 transient="false"
 volatile="false"
 value="17302061"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="stat_sys_vp_phone_call_on_hold"
 type="int"
 transient="false"
 volatile="false"
 value="17302062"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="stat_sys_warning"
 type="int"
 transient="false"
@@ -95471,7 +95493,7 @@
 abstract="false"
 static="false"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<method name="divideMessage"
@@ -95480,8 +95502,8 @@
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 final="true"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="text" type="java.lang.String">
@@ -95493,8 +95515,8 @@
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 final="true"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95504,8 +95526,8 @@
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 final="true"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="destinationAddress" type="java.lang.String">
@@ -95527,8 +95549,8 @@
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 final="true"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="destinationAddress" type="java.lang.String">
@@ -95548,8 +95570,8 @@
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 final="true"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="destinationAddress" type="java.lang.String">
@@ -95570,7 +95592,7 @@
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95581,7 +95603,7 @@
 value="4"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95592,7 +95614,7 @@
 value="3"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95603,7 +95625,7 @@
 value="2"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95614,7 +95636,7 @@
 value="0"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95625,7 +95647,7 @@
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95636,7 +95658,7 @@
 value="5"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95647,7 +95669,7 @@
 value="3"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95658,7 +95680,7 @@
 value="7"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -95668,14 +95690,14 @@
 abstract="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<constructor name="SmsMessage"
 type="android.telephony.gsm.SmsMessage"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</constructor>
@@ -95686,7 +95708,7 @@
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="messageBody" type="java.lang.CharSequence">
@@ -95701,7 +95723,7 @@
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="messageBody" type="java.lang.String">
@@ -95716,7 +95738,7 @@
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="pdu" type="byte[]">
@@ -95729,7 +95751,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95740,7 +95762,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95751,7 +95773,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95762,7 +95784,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95773,7 +95795,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95784,7 +95806,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95795,7 +95817,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95806,7 +95828,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95817,7 +95839,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95828,7 +95850,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95839,7 +95861,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95850,7 +95872,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95861,7 +95883,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95872,7 +95894,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95883,7 +95905,7 @@
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="scAddress" type="java.lang.String">
@@ -95902,7 +95924,7 @@
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="scAddress" type="java.lang.String">
@@ -95923,7 +95945,7 @@
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<parameter name="pdu" type="java.lang.String">
@@ -95936,7 +95958,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95947,7 +95969,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95958,7 +95980,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95969,7 +95991,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95980,7 +96002,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -95991,7 +96013,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -96002,7 +96024,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -96013,7 +96035,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -96024,7 +96046,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -96035,7 +96057,7 @@
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</method>
@@ -96046,7 +96068,7 @@
 value="3"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -96057,7 +96079,7 @@
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -96068,7 +96090,7 @@
 value="2"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -96079,7 +96101,7 @@
 value="0"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -96090,7 +96112,7 @@
 value="140"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -96101,7 +96123,7 @@
 value="160"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -96112,7 +96134,7 @@
 value="153"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -96122,7 +96144,7 @@
 abstract="false"
 static="true"
 final="true"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<method name="valueOf"
@@ -96155,14 +96177,14 @@
 abstract="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
<constructor name="SmsMessage.SubmitPdu"
 type="android.telephony.gsm.SmsMessage.SubmitPdu"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</constructor>
@@ -96173,7 +96195,7 @@
 value="null"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
@@ -96184,7 +96206,7 @@
 value="null"
 static="false"
 final="false"
 deprecated="not deprecated"
 deprecated="deprecated"
 visibility="public"
>
</field>
+40 −30
Original line number Diff line number Diff line
@@ -243,6 +243,7 @@ public class MobileDataStateTracker extends NetworkStateTracker {
    public String getTcpBufferSizesPropName() {
        String networkTypeStr = "unknown";
        TelephonyManager tm = new TelephonyManager(mContext);
        //TODO We have to edit the parameter for getNetworkType regarding CDMA
        switch(tm.getNetworkType()) {
        case TelephonyManager.NETWORK_TYPE_GPRS:
            networkTypeStr = "gprs";
@@ -253,6 +254,15 @@ public class MobileDataStateTracker extends NetworkStateTracker {
        case TelephonyManager.NETWORK_TYPE_UMTS:
            networkTypeStr = "umts";
            break;
        case TelephonyManager.NETWORK_TYPE_CDMA:
            networkTypeStr = "cdma";
            break;
        case TelephonyManager.NETWORK_TYPE_EVDO_0:
            networkTypeStr = "evdo";
            break;
        case TelephonyManager.NETWORK_TYPE_EVDO_A:
            networkTypeStr = "evdo";
            break;
        }
        return "net.tcp.buffersize." + networkTypeStr;
    }
+7 −0
Original line number Diff line number Diff line
@@ -132,6 +132,7 @@ public final class Checkin {
            BROWSER_SNAP_CENTER,
            BROWSER_TEXT_SIZE_CHANGE,
            BROWSER_ZOOM_OVERVIEW,

            CRASHES_REPORTED,
            CRASHES_TRUNCATED,
            ELAPSED_REALTIME_SEC,
@@ -181,6 +182,9 @@ public final class Checkin {
            MARKET_REASON_PARSE_MANIFEST_EMPTY,
            MARKET_REASON_UNKNOWN,
            MARKET_STALE_INSTALL_ATTEMPT,
            PHONE_CDMA_REGISTERED,
            PHONE_CDMA_DATA_ATTEMPTED,
            PHONE_CDMA_DATA_CONNECTED,
        }
    }

@@ -347,3 +351,6 @@ public final class Checkin {
        }
    }
}


+69 −4
Original line number Diff line number Diff line
@@ -2049,6 +2049,70 @@ public final class Settings {
         * @hide pending API council
         */
        public static final String BACKGROUND_DATA = "background_data";

        /**
         * The CDMA roaming mode 0 = Home Networks, CDMA default
         *                       1 = Roaming on Affiliated networks
         *                       2 = Roaming on any networks
         * @hide
         */
        public static final String CDMA_ROAMING_MODE = "roaming_settings";

        /**
         * The CDMA subscription mode 0 = RUIM/SIM (default)
         *                                1 = NV
         * @hide
         */
        public static final String CDMA_SUBSCRIPTION_MODE = "subscription_mode";

        /**
         * represents current active phone class
         * 1 = GSM-Phone, 0 = CDMA-Phone
         * @hide
         */
        public static final String CURRENT_ACTIVE_PHONE = "current_active_phone";

        /**
         * The preferred network mode 7 = Global, CDMA default
         *                            4 = CDMA only
         *                            3 = GSM/UMTS only
         * @hide
         */
        public static final String PREFERRED_NETWORK_MODE =
                "preferred_network_mode";

        /**
         * CDMA Cell Broadcast SMS
         *                            0 = CDMA Cell Broadcast SMS disabled
         *                            1 = CDMA Cell Broadcast SMS enabled
         * @hide
         */
        public static final String CDMA_CELL_BROADCAST_SMS =
                "cdma_cell_broadcast_sms";

        /**
         * The cdma subscription 0 = Subscription from RUIM, when available
         *                       1 = Subscription from NV
         * @hide
         */
        public static final String PREFERRED_CDMA_SUBSCRIPTION =
                "preferred_cdma_subscription";

        /**
         * Whether the enhanced voice privacy mode is enabled.
         * 0 = normal voice privacy
         * 1 = enhanced voice privacy
         * @hide
         */
        public static final String ENHANCED_VOICE_PRIVACY_ENABLED = "enhanced_voice_privacy_enabled";

        /**
         * Whether the TTY mode mode is enabled.
         * 0 = disabled
         * 1 = enabled
         * @hide
         */
        public static final String TTY_MODE_ENABLED = "tty_mode_enabled";
    }
    
    /**
@@ -3127,13 +3191,13 @@ public final class Settings {
            throw new RuntimeException("this should never happen");
        }

        String imei = TelephonyManager.getDefault().getDeviceId();
        if (TextUtils.isEmpty(imei)) {
        String deviceId = TelephonyManager.getDefault().getDeviceId();
        if (TextUtils.isEmpty(deviceId)) {
            return "";
        }

        byte[] hashedImei = digest.digest(imei.getBytes());
        String id = new String(Base64.encodeBase64(hashedImei), 0, 12);
        byte[] hashedDeviceId = digest.digest(deviceId.getBytes());
        String id = new String(Base64.encodeBase64(hashedDeviceId), 0, 12);
        id = id.replaceAll("/", "_");
        sJidResource = JID_RESOURCE_PREFIX + id;
        return sJidResource;
@@ -3152,3 +3216,4 @@ public final class Settings {
        return "android-" + Long.toHexString(androidId);
    }
}
Loading