Loading src/java/com/android/internal/telephony/DefaultPhoneNotifier.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -25,11 +25,11 @@ import android.telephony.BarringInfo; import android.telephony.CallQuality; import android.telephony.CallQuality; import android.telephony.CellIdentity; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.CellInfo; import android.telephony.DisplayInfo; import android.telephony.PhoneCapability; import android.telephony.PhoneCapability; import android.telephony.PreciseCallState; import android.telephony.PreciseCallState; import android.telephony.PreciseDataConnectionState; import android.telephony.PreciseDataConnectionState; import android.telephony.ServiceState; import android.telephony.ServiceState; import android.telephony.TelephonyDisplayInfo; import android.telephony.TelephonyManager; import android.telephony.TelephonyManager; import android.telephony.TelephonyRegistryManager; import android.telephony.TelephonyRegistryManager; import android.telephony.data.ApnSetting; import android.telephony.data.ApnSetting; Loading Loading @@ -202,9 +202,9 @@ public class DefaultPhoneNotifier implements PhoneNotifier { } } @Override @Override public void notifyDisplayInfoChanged(Phone sender, DisplayInfo displayInfo) { public void notifyDisplayInfoChanged(Phone sender, TelephonyDisplayInfo telephonyDisplayInfo) { mTelephonyRegistryMgr.notifyDisplayInfoChanged(sender.getPhoneId(), sender.getSubId(), mTelephonyRegistryMgr.notifyDisplayInfoChanged(sender.getPhoneId(), sender.getSubId(), displayInfo); telephonyDisplayInfo); } } @Override @Override Loading src/java/com/android/internal/telephony/DeviceStateMonitor.java +38 −32 Original line number Original line Diff line number Diff line Loading @@ -308,10 +308,11 @@ public class DeviceStateMonitor extends Handler { } } /** /** * @return True if signal strength update should be turned on. * @return True if signal strength update should be enabled. See details in * android.hardware.radio@1.2::IndicationFilter::SIGNAL_STRENGTH. */ */ private boolean shouldTurnOnSignalStrength() { private boolean shouldEnableSignalStrengthReports() { // We should turn on signal strength update if one of the following condition is true. // We should enable signal strength update if one of the following condition is true. // 1. The device is charging. // 1. The device is charging. // 2. When the screen is on. // 2. When the screen is on. // 3. Any of system services is registrating to always listen to signal strength changes // 3. Any of system services is registrating to always listen to signal strength changes Loading @@ -319,49 +320,54 @@ public class DeviceStateMonitor extends Handler { } } /** /** * @return True if full network update should be turned on. When off, only significant changes * @return True if full network state update should be enabled. When off, only significant * will trigger the network update unsolicited response. * changes will trigger the network update unsolicited response. See details in * android.hardware.radio@1.2::IndicationFilter::FULL_NETWORK_STATE. */ */ private boolean shouldTurnOnFullNetworkUpdate() { private boolean shouldEnableFullNetworkStateReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * @return True if data dormancy status update should be turned on. * @return True if data call dormancy changed update should be enabled. See details in * android.hardware.radio@1.2::IndicationFilter::DATA_CALL_DORMANCY_CHANGED. */ */ private boolean shouldTurnOnDormancyUpdate() { private boolean shouldEnableDataCallDormancyChangedReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * @return True if link capacity estimate update should be turned on. * @return True if link capacity estimate update should be enabled. See details in * android.hardware.radio@1.2::IndicationFilter::LINK_CAPACITY_ESTIMATE. */ */ private boolean shouldTurnOnLinkCapacityEstimate() { private boolean shouldEnableLinkCapacityEstimateReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * @return True if physical channel config update should be turned on. * @return True if physical channel config update should be enabled. See details in * android.hardware.radio@1.2::IndicationFilter::PHYSICAL_CHANNEL_CONFIG. */ */ private boolean shouldTurnOnPhysicalChannelConfig() { private boolean shouldEnablePhysicalChannelConfigReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * @return True if BarryingInfo update should be turned on. * @return True if barring info update should be enabled. See details in * android.hardware.radio@1.5::IndicationFilter::BARRING_INFO. */ */ private boolean shouldTurnOnBarringInfo() { private boolean shouldEnableBarringInfoReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * A common policy to determine if we should turn on necessary indications, * A common policy to determine if we should enable the necessary indications update, * for power consumption's sake. * for power consumption's sake. * * * @return True if the response filter update should be turned on. * @return True if the response update should be enabled. */ */ private boolean shouldTurnOnHighPowerConsumptionIndications() { private boolean shouldEnableHighPowerConsumptionIndications() { // We should turn on update if one of the following condition is true. // We should enable indications reports if one of the following condition is true. // 1. The device is charging. // 1. The device is charging. // 2. When the screen is on. // 2. When the screen is on. // 3. When the tethering is on. // 3. When the tethering is on. Loading Loading @@ -414,7 +420,7 @@ public class DeviceStateMonitor extends Handler { * @param state True if enabled/on, otherwise disabled/off. * @param state True if enabled/on, otherwise disabled/off. */ */ private void onUpdateDeviceState(int eventType, boolean state) { private void onUpdateDeviceState(int eventType, boolean state) { final boolean shouldTurnOnBarringInfoOld = shouldTurnOnBarringInfo(); final boolean shouldEnableBarringInfoReportsOld = shouldEnableBarringInfoReports(); switch (eventType) { switch (eventType) { case EVENT_SCREEN_STATE_CHANGED: case EVENT_SCREEN_STATE_CHANGED: if (mIsScreenOn == state) return; if (mIsScreenOn == state) return; Loading Loading @@ -459,35 +465,35 @@ public class DeviceStateMonitor extends Handler { } } int newFilter = 0; int newFilter = 0; if (shouldTurnOnSignalStrength()) { if (shouldEnableSignalStrengthReports()) { newFilter |= IndicationFilter.SIGNAL_STRENGTH; newFilter |= IndicationFilter.SIGNAL_STRENGTH; } } if (shouldTurnOnFullNetworkUpdate()) { if (shouldEnableFullNetworkStateReports()) { newFilter |= IndicationFilter.FULL_NETWORK_STATE; newFilter |= IndicationFilter.FULL_NETWORK_STATE; } } if (shouldTurnOnDormancyUpdate()) { if (shouldEnableDataCallDormancyChangedReports()) { newFilter |= IndicationFilter.DATA_CALL_DORMANCY_CHANGED; newFilter |= IndicationFilter.DATA_CALL_DORMANCY_CHANGED; } } if (shouldTurnOnLinkCapacityEstimate()) { if (shouldEnableLinkCapacityEstimateReports()) { newFilter |= IndicationFilter.LINK_CAPACITY_ESTIMATE; newFilter |= IndicationFilter.LINK_CAPACITY_ESTIMATE; } } if (shouldTurnOnPhysicalChannelConfig()) { if (shouldEnablePhysicalChannelConfigReports()) { newFilter |= IndicationFilter.PHYSICAL_CHANNEL_CONFIG; newFilter |= IndicationFilter.PHYSICAL_CHANNEL_CONFIG; } } final boolean shouldTurnOnBarringInfo = shouldTurnOnBarringInfo(); final boolean shouldEnableBarringInfoReports = shouldEnableBarringInfoReports(); if (shouldTurnOnBarringInfo) { if (shouldEnableBarringInfoReports) { newFilter |= IndicationFilter.BARRING_INFO; newFilter |= IndicationFilter.BARRING_INFO; } } setUnsolResponseFilter(newFilter, false); setUnsolResponseFilter(newFilter, false); // Pull barring info AFTER setting filter, the order matters // Pull barring info AFTER setting filter, the order matters if (shouldTurnOnBarringInfo && !shouldTurnOnBarringInfoOld) { if (shouldEnableBarringInfoReports && !shouldEnableBarringInfoReportsOld) { if (DBG) log("Manually pull barring info...", true); if (DBG) log("Manually pull barring info...", true); // use a null message since we don't care of receiving response // use a null message since we don't care of receiving response mPhone.mCi.getBarringInfo(null); mPhone.mCi.getBarringInfo(null); Loading src/java/com/android/internal/telephony/Phone.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -47,7 +47,6 @@ import android.telephony.CarrierRestrictionRules; import android.telephony.CellIdentity; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.CellInfo; import android.telephony.ClientRequestStats; import android.telephony.ClientRequestStats; import android.telephony.DisplayInfo; import android.telephony.ImsiEncryptionInfo; import android.telephony.ImsiEncryptionInfo; import android.telephony.PhoneStateListener; import android.telephony.PhoneStateListener; import android.telephony.PhysicalChannelConfig; import android.telephony.PhysicalChannelConfig; Loading @@ -57,6 +56,7 @@ import android.telephony.RadioAccessSpecifier; import android.telephony.ServiceState; import android.telephony.ServiceState; import android.telephony.SignalStrength; import android.telephony.SignalStrength; import android.telephony.SubscriptionManager; import android.telephony.SubscriptionManager; import android.telephony.TelephonyDisplayInfo; import android.telephony.TelephonyManager; import android.telephony.TelephonyManager; import android.telephony.data.ApnSetting; import android.telephony.data.ApnSetting; import android.telephony.emergency.EmergencyNumber; import android.telephony.emergency.EmergencyNumber; Loading Loading @@ -2416,8 +2416,8 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { } } /** Send notification that display info has changed. */ /** Send notification that display info has changed. */ public void notifyDisplayInfoChanged(DisplayInfo displayInfo) { public void notifyDisplayInfoChanged(TelephonyDisplayInfo telephonyDisplayInfo) { mNotifier.notifyDisplayInfoChanged(this, displayInfo); mNotifier.notifyDisplayInfoChanged(this, telephonyDisplayInfo); } } public void notifySignalStrength() { public void notifySignalStrength() { Loading src/java/com/android/internal/telephony/PhoneNotifier.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -25,9 +25,9 @@ import android.telephony.BarringInfo; import android.telephony.CallQuality; import android.telephony.CallQuality; import android.telephony.CellIdentity; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.CellInfo; import android.telephony.DisplayInfo; import android.telephony.PhoneCapability; import android.telephony.PhoneCapability; import android.telephony.PreciseDataConnectionState; import android.telephony.PreciseDataConnectionState; import android.telephony.TelephonyDisplayInfo; import android.telephony.emergency.EmergencyNumber; import android.telephony.emergency.EmergencyNumber; import android.telephony.ims.ImsReasonInfo; import android.telephony.ims.ImsReasonInfo; Loading Loading @@ -88,7 +88,7 @@ public interface PhoneNotifier { void notifyUserMobileDataStateChanged(Phone sender, boolean state); void notifyUserMobileDataStateChanged(Phone sender, boolean state); /** Send a notification that the display info has changed */ /** Send a notification that the display info has changed */ void notifyDisplayInfoChanged(Phone sender, DisplayInfo displayInfo); void notifyDisplayInfoChanged(Phone sender, TelephonyDisplayInfo telephonyDisplayInfo); /** Send a notification that the phone capability has changed */ /** Send a notification that the phone capability has changed */ void notifyPhoneCapabilityChanged(PhoneCapability capability); void notifyPhoneCapabilityChanged(PhoneCapability capability); Loading src/java/com/android/internal/telephony/SubscriptionController.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -341,7 +341,7 @@ public class SubscriptionController extends ISub.Stub { int nameSource = cursor.getInt(cursor.getColumnIndexOrThrow( int nameSource = cursor.getInt(cursor.getColumnIndexOrThrow( SubscriptionManager.NAME_SOURCE)); SubscriptionManager.NAME_SOURCE)); int iconTint = cursor.getInt(cursor.getColumnIndexOrThrow( int iconTint = cursor.getInt(cursor.getColumnIndexOrThrow( SubscriptionManager.COLOR)); SubscriptionManager.HUE)); String number = cursor.getString(cursor.getColumnIndexOrThrow( String number = cursor.getString(cursor.getColumnIndexOrThrow( SubscriptionManager.NUMBER)); SubscriptionManager.NUMBER)); int dataRoaming = cursor.getInt(cursor.getColumnIndexOrThrow( int dataRoaming = cursor.getInt(cursor.getColumnIndexOrThrow( Loading Loading @@ -1454,7 +1454,7 @@ public class SubscriptionController extends ISub.Stub { value.put(SubscriptionManager.ICC_ID, uniqueId); value.put(SubscriptionManager.ICC_ID, uniqueId); int color = getUnusedColor(mContext.getOpPackageName(), mContext.getAttributionTag()); int color = getUnusedColor(mContext.getOpPackageName(), mContext.getAttributionTag()); // default SIM color differs between slots // default SIM color differs between slots value.put(SubscriptionManager.COLOR, color); value.put(SubscriptionManager.HUE, color); value.put(SubscriptionManager.SIM_SLOT_INDEX, slotIndex); value.put(SubscriptionManager.SIM_SLOT_INDEX, slotIndex); value.put(SubscriptionManager.CARRIER_NAME, ""); value.put(SubscriptionManager.CARRIER_NAME, ""); value.put(SubscriptionManager.CARD_ID, uniqueId); value.put(SubscriptionManager.CARD_ID, uniqueId); Loading Loading @@ -1571,7 +1571,7 @@ public class SubscriptionController extends ISub.Stub { try { try { validateSubId(subId); validateSubId(subId); ContentValues value = new ContentValues(1); ContentValues value = new ContentValues(1); value.put(SubscriptionManager.COLOR, tint); value.put(SubscriptionManager.HUE, tint); if (DBG) logd("[setIconTint]- tint:" + tint + " set"); if (DBG) logd("[setIconTint]- tint:" + tint + " set"); int result = mContext.getContentResolver().update( int result = mContext.getContentResolver().update( Loading @@ -1596,7 +1596,7 @@ public class SubscriptionController extends ISub.Stub { */ */ public static int getNameSourcePriority(@SimDisplayNameSource int nameSource) { public static int getNameSourcePriority(@SimDisplayNameSource int nameSource) { int index = Arrays.asList( int index = Arrays.asList( SubscriptionManager.NAME_SOURCE_DEFAULT, SubscriptionManager.NAME_SOURCE_CARRIER_ID, SubscriptionManager.NAME_SOURCE_SIM_PNN, SubscriptionManager.NAME_SOURCE_SIM_PNN, SubscriptionManager.NAME_SOURCE_SIM_SPN, SubscriptionManager.NAME_SOURCE_SIM_SPN, SubscriptionManager.NAME_SOURCE_CARRIER, SubscriptionManager.NAME_SOURCE_CARRIER, Loading Loading @@ -1657,7 +1657,7 @@ public class SubscriptionController extends ISub.Stub { } } ContentValues value = new ContentValues(1); ContentValues value = new ContentValues(1); value.put(SubscriptionManager.DISPLAY_NAME, nameToSet); value.put(SubscriptionManager.DISPLAY_NAME, nameToSet); if (nameSource >= SubscriptionManager.NAME_SOURCE_DEFAULT) { if (nameSource >= SubscriptionManager.NAME_SOURCE_CARRIER_ID) { if (DBG) logd("Set nameSource=" + nameSource); if (DBG) logd("Set nameSource=" + nameSource); value.put(SubscriptionManager.NAME_SOURCE, nameSource); value.put(SubscriptionManager.NAME_SOURCE, nameSource); } } Loading Loading
src/java/com/android/internal/telephony/DefaultPhoneNotifier.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -25,11 +25,11 @@ import android.telephony.BarringInfo; import android.telephony.CallQuality; import android.telephony.CallQuality; import android.telephony.CellIdentity; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.CellInfo; import android.telephony.DisplayInfo; import android.telephony.PhoneCapability; import android.telephony.PhoneCapability; import android.telephony.PreciseCallState; import android.telephony.PreciseCallState; import android.telephony.PreciseDataConnectionState; import android.telephony.PreciseDataConnectionState; import android.telephony.ServiceState; import android.telephony.ServiceState; import android.telephony.TelephonyDisplayInfo; import android.telephony.TelephonyManager; import android.telephony.TelephonyManager; import android.telephony.TelephonyRegistryManager; import android.telephony.TelephonyRegistryManager; import android.telephony.data.ApnSetting; import android.telephony.data.ApnSetting; Loading Loading @@ -202,9 +202,9 @@ public class DefaultPhoneNotifier implements PhoneNotifier { } } @Override @Override public void notifyDisplayInfoChanged(Phone sender, DisplayInfo displayInfo) { public void notifyDisplayInfoChanged(Phone sender, TelephonyDisplayInfo telephonyDisplayInfo) { mTelephonyRegistryMgr.notifyDisplayInfoChanged(sender.getPhoneId(), sender.getSubId(), mTelephonyRegistryMgr.notifyDisplayInfoChanged(sender.getPhoneId(), sender.getSubId(), displayInfo); telephonyDisplayInfo); } } @Override @Override Loading
src/java/com/android/internal/telephony/DeviceStateMonitor.java +38 −32 Original line number Original line Diff line number Diff line Loading @@ -308,10 +308,11 @@ public class DeviceStateMonitor extends Handler { } } /** /** * @return True if signal strength update should be turned on. * @return True if signal strength update should be enabled. See details in * android.hardware.radio@1.2::IndicationFilter::SIGNAL_STRENGTH. */ */ private boolean shouldTurnOnSignalStrength() { private boolean shouldEnableSignalStrengthReports() { // We should turn on signal strength update if one of the following condition is true. // We should enable signal strength update if one of the following condition is true. // 1. The device is charging. // 1. The device is charging. // 2. When the screen is on. // 2. When the screen is on. // 3. Any of system services is registrating to always listen to signal strength changes // 3. Any of system services is registrating to always listen to signal strength changes Loading @@ -319,49 +320,54 @@ public class DeviceStateMonitor extends Handler { } } /** /** * @return True if full network update should be turned on. When off, only significant changes * @return True if full network state update should be enabled. When off, only significant * will trigger the network update unsolicited response. * changes will trigger the network update unsolicited response. See details in * android.hardware.radio@1.2::IndicationFilter::FULL_NETWORK_STATE. */ */ private boolean shouldTurnOnFullNetworkUpdate() { private boolean shouldEnableFullNetworkStateReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * @return True if data dormancy status update should be turned on. * @return True if data call dormancy changed update should be enabled. See details in * android.hardware.radio@1.2::IndicationFilter::DATA_CALL_DORMANCY_CHANGED. */ */ private boolean shouldTurnOnDormancyUpdate() { private boolean shouldEnableDataCallDormancyChangedReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * @return True if link capacity estimate update should be turned on. * @return True if link capacity estimate update should be enabled. See details in * android.hardware.radio@1.2::IndicationFilter::LINK_CAPACITY_ESTIMATE. */ */ private boolean shouldTurnOnLinkCapacityEstimate() { private boolean shouldEnableLinkCapacityEstimateReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * @return True if physical channel config update should be turned on. * @return True if physical channel config update should be enabled. See details in * android.hardware.radio@1.2::IndicationFilter::PHYSICAL_CHANNEL_CONFIG. */ */ private boolean shouldTurnOnPhysicalChannelConfig() { private boolean shouldEnablePhysicalChannelConfigReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * @return True if BarryingInfo update should be turned on. * @return True if barring info update should be enabled. See details in * android.hardware.radio@1.5::IndicationFilter::BARRING_INFO. */ */ private boolean shouldTurnOnBarringInfo() { private boolean shouldEnableBarringInfoReports() { return shouldTurnOnHighPowerConsumptionIndications(); return shouldEnableHighPowerConsumptionIndications(); } } /** /** * A common policy to determine if we should turn on necessary indications, * A common policy to determine if we should enable the necessary indications update, * for power consumption's sake. * for power consumption's sake. * * * @return True if the response filter update should be turned on. * @return True if the response update should be enabled. */ */ private boolean shouldTurnOnHighPowerConsumptionIndications() { private boolean shouldEnableHighPowerConsumptionIndications() { // We should turn on update if one of the following condition is true. // We should enable indications reports if one of the following condition is true. // 1. The device is charging. // 1. The device is charging. // 2. When the screen is on. // 2. When the screen is on. // 3. When the tethering is on. // 3. When the tethering is on. Loading Loading @@ -414,7 +420,7 @@ public class DeviceStateMonitor extends Handler { * @param state True if enabled/on, otherwise disabled/off. * @param state True if enabled/on, otherwise disabled/off. */ */ private void onUpdateDeviceState(int eventType, boolean state) { private void onUpdateDeviceState(int eventType, boolean state) { final boolean shouldTurnOnBarringInfoOld = shouldTurnOnBarringInfo(); final boolean shouldEnableBarringInfoReportsOld = shouldEnableBarringInfoReports(); switch (eventType) { switch (eventType) { case EVENT_SCREEN_STATE_CHANGED: case EVENT_SCREEN_STATE_CHANGED: if (mIsScreenOn == state) return; if (mIsScreenOn == state) return; Loading Loading @@ -459,35 +465,35 @@ public class DeviceStateMonitor extends Handler { } } int newFilter = 0; int newFilter = 0; if (shouldTurnOnSignalStrength()) { if (shouldEnableSignalStrengthReports()) { newFilter |= IndicationFilter.SIGNAL_STRENGTH; newFilter |= IndicationFilter.SIGNAL_STRENGTH; } } if (shouldTurnOnFullNetworkUpdate()) { if (shouldEnableFullNetworkStateReports()) { newFilter |= IndicationFilter.FULL_NETWORK_STATE; newFilter |= IndicationFilter.FULL_NETWORK_STATE; } } if (shouldTurnOnDormancyUpdate()) { if (shouldEnableDataCallDormancyChangedReports()) { newFilter |= IndicationFilter.DATA_CALL_DORMANCY_CHANGED; newFilter |= IndicationFilter.DATA_CALL_DORMANCY_CHANGED; } } if (shouldTurnOnLinkCapacityEstimate()) { if (shouldEnableLinkCapacityEstimateReports()) { newFilter |= IndicationFilter.LINK_CAPACITY_ESTIMATE; newFilter |= IndicationFilter.LINK_CAPACITY_ESTIMATE; } } if (shouldTurnOnPhysicalChannelConfig()) { if (shouldEnablePhysicalChannelConfigReports()) { newFilter |= IndicationFilter.PHYSICAL_CHANNEL_CONFIG; newFilter |= IndicationFilter.PHYSICAL_CHANNEL_CONFIG; } } final boolean shouldTurnOnBarringInfo = shouldTurnOnBarringInfo(); final boolean shouldEnableBarringInfoReports = shouldEnableBarringInfoReports(); if (shouldTurnOnBarringInfo) { if (shouldEnableBarringInfoReports) { newFilter |= IndicationFilter.BARRING_INFO; newFilter |= IndicationFilter.BARRING_INFO; } } setUnsolResponseFilter(newFilter, false); setUnsolResponseFilter(newFilter, false); // Pull barring info AFTER setting filter, the order matters // Pull barring info AFTER setting filter, the order matters if (shouldTurnOnBarringInfo && !shouldTurnOnBarringInfoOld) { if (shouldEnableBarringInfoReports && !shouldEnableBarringInfoReportsOld) { if (DBG) log("Manually pull barring info...", true); if (DBG) log("Manually pull barring info...", true); // use a null message since we don't care of receiving response // use a null message since we don't care of receiving response mPhone.mCi.getBarringInfo(null); mPhone.mCi.getBarringInfo(null); Loading
src/java/com/android/internal/telephony/Phone.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -47,7 +47,6 @@ import android.telephony.CarrierRestrictionRules; import android.telephony.CellIdentity; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.CellInfo; import android.telephony.ClientRequestStats; import android.telephony.ClientRequestStats; import android.telephony.DisplayInfo; import android.telephony.ImsiEncryptionInfo; import android.telephony.ImsiEncryptionInfo; import android.telephony.PhoneStateListener; import android.telephony.PhoneStateListener; import android.telephony.PhysicalChannelConfig; import android.telephony.PhysicalChannelConfig; Loading @@ -57,6 +56,7 @@ import android.telephony.RadioAccessSpecifier; import android.telephony.ServiceState; import android.telephony.ServiceState; import android.telephony.SignalStrength; import android.telephony.SignalStrength; import android.telephony.SubscriptionManager; import android.telephony.SubscriptionManager; import android.telephony.TelephonyDisplayInfo; import android.telephony.TelephonyManager; import android.telephony.TelephonyManager; import android.telephony.data.ApnSetting; import android.telephony.data.ApnSetting; import android.telephony.emergency.EmergencyNumber; import android.telephony.emergency.EmergencyNumber; Loading Loading @@ -2416,8 +2416,8 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { } } /** Send notification that display info has changed. */ /** Send notification that display info has changed. */ public void notifyDisplayInfoChanged(DisplayInfo displayInfo) { public void notifyDisplayInfoChanged(TelephonyDisplayInfo telephonyDisplayInfo) { mNotifier.notifyDisplayInfoChanged(this, displayInfo); mNotifier.notifyDisplayInfoChanged(this, telephonyDisplayInfo); } } public void notifySignalStrength() { public void notifySignalStrength() { Loading
src/java/com/android/internal/telephony/PhoneNotifier.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -25,9 +25,9 @@ import android.telephony.BarringInfo; import android.telephony.CallQuality; import android.telephony.CallQuality; import android.telephony.CellIdentity; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.CellInfo; import android.telephony.DisplayInfo; import android.telephony.PhoneCapability; import android.telephony.PhoneCapability; import android.telephony.PreciseDataConnectionState; import android.telephony.PreciseDataConnectionState; import android.telephony.TelephonyDisplayInfo; import android.telephony.emergency.EmergencyNumber; import android.telephony.emergency.EmergencyNumber; import android.telephony.ims.ImsReasonInfo; import android.telephony.ims.ImsReasonInfo; Loading Loading @@ -88,7 +88,7 @@ public interface PhoneNotifier { void notifyUserMobileDataStateChanged(Phone sender, boolean state); void notifyUserMobileDataStateChanged(Phone sender, boolean state); /** Send a notification that the display info has changed */ /** Send a notification that the display info has changed */ void notifyDisplayInfoChanged(Phone sender, DisplayInfo displayInfo); void notifyDisplayInfoChanged(Phone sender, TelephonyDisplayInfo telephonyDisplayInfo); /** Send a notification that the phone capability has changed */ /** Send a notification that the phone capability has changed */ void notifyPhoneCapabilityChanged(PhoneCapability capability); void notifyPhoneCapabilityChanged(PhoneCapability capability); Loading
src/java/com/android/internal/telephony/SubscriptionController.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -341,7 +341,7 @@ public class SubscriptionController extends ISub.Stub { int nameSource = cursor.getInt(cursor.getColumnIndexOrThrow( int nameSource = cursor.getInt(cursor.getColumnIndexOrThrow( SubscriptionManager.NAME_SOURCE)); SubscriptionManager.NAME_SOURCE)); int iconTint = cursor.getInt(cursor.getColumnIndexOrThrow( int iconTint = cursor.getInt(cursor.getColumnIndexOrThrow( SubscriptionManager.COLOR)); SubscriptionManager.HUE)); String number = cursor.getString(cursor.getColumnIndexOrThrow( String number = cursor.getString(cursor.getColumnIndexOrThrow( SubscriptionManager.NUMBER)); SubscriptionManager.NUMBER)); int dataRoaming = cursor.getInt(cursor.getColumnIndexOrThrow( int dataRoaming = cursor.getInt(cursor.getColumnIndexOrThrow( Loading Loading @@ -1454,7 +1454,7 @@ public class SubscriptionController extends ISub.Stub { value.put(SubscriptionManager.ICC_ID, uniqueId); value.put(SubscriptionManager.ICC_ID, uniqueId); int color = getUnusedColor(mContext.getOpPackageName(), mContext.getAttributionTag()); int color = getUnusedColor(mContext.getOpPackageName(), mContext.getAttributionTag()); // default SIM color differs between slots // default SIM color differs between slots value.put(SubscriptionManager.COLOR, color); value.put(SubscriptionManager.HUE, color); value.put(SubscriptionManager.SIM_SLOT_INDEX, slotIndex); value.put(SubscriptionManager.SIM_SLOT_INDEX, slotIndex); value.put(SubscriptionManager.CARRIER_NAME, ""); value.put(SubscriptionManager.CARRIER_NAME, ""); value.put(SubscriptionManager.CARD_ID, uniqueId); value.put(SubscriptionManager.CARD_ID, uniqueId); Loading Loading @@ -1571,7 +1571,7 @@ public class SubscriptionController extends ISub.Stub { try { try { validateSubId(subId); validateSubId(subId); ContentValues value = new ContentValues(1); ContentValues value = new ContentValues(1); value.put(SubscriptionManager.COLOR, tint); value.put(SubscriptionManager.HUE, tint); if (DBG) logd("[setIconTint]- tint:" + tint + " set"); if (DBG) logd("[setIconTint]- tint:" + tint + " set"); int result = mContext.getContentResolver().update( int result = mContext.getContentResolver().update( Loading @@ -1596,7 +1596,7 @@ public class SubscriptionController extends ISub.Stub { */ */ public static int getNameSourcePriority(@SimDisplayNameSource int nameSource) { public static int getNameSourcePriority(@SimDisplayNameSource int nameSource) { int index = Arrays.asList( int index = Arrays.asList( SubscriptionManager.NAME_SOURCE_DEFAULT, SubscriptionManager.NAME_SOURCE_CARRIER_ID, SubscriptionManager.NAME_SOURCE_SIM_PNN, SubscriptionManager.NAME_SOURCE_SIM_PNN, SubscriptionManager.NAME_SOURCE_SIM_SPN, SubscriptionManager.NAME_SOURCE_SIM_SPN, SubscriptionManager.NAME_SOURCE_CARRIER, SubscriptionManager.NAME_SOURCE_CARRIER, Loading Loading @@ -1657,7 +1657,7 @@ public class SubscriptionController extends ISub.Stub { } } ContentValues value = new ContentValues(1); ContentValues value = new ContentValues(1); value.put(SubscriptionManager.DISPLAY_NAME, nameToSet); value.put(SubscriptionManager.DISPLAY_NAME, nameToSet); if (nameSource >= SubscriptionManager.NAME_SOURCE_DEFAULT) { if (nameSource >= SubscriptionManager.NAME_SOURCE_CARRIER_ID) { if (DBG) logd("Set nameSource=" + nameSource); if (DBG) logd("Set nameSource=" + nameSource); value.put(SubscriptionManager.NAME_SOURCE, nameSource); value.put(SubscriptionManager.NAME_SOURCE, nameSource); } } Loading