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

Commit 51ba7c50 authored by Naveen Kumar's avatar Naveen Kumar
Browse files

Merge commit '77024009' into remote

Change-Id: I7049559d4490cd7a674ffe6f1f30ff852580fecb
parents f5eb9774 77024009
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -203,6 +203,8 @@ public class CallLog {
         * @hide
         */
        public static final int ANSWERED_EXTERNALLY_TYPE = 7;
        /** Call log type for outgoing IMS calls. */
        private static final int OUTGOING_IMS_TYPE = 9;
        /** Call log type for missed IMS calls. */
        private static final int MISSED_IMS_TYPE = 10;
        /**
@@ -826,7 +828,8 @@ public class CallLog {
                c = resolver.query(
                    CONTENT_URI,
                    new String[] {NUMBER},
                    TYPE + " = " + OUTGOING_TYPE,
                    TYPE + " = " + OUTGOING_TYPE + " OR " + TYPE + " = " + OUTGOING_IMS_TYPE +
                            " OR " + TYPE + " = " + OUTGOING_WIFI_TYPE,
                    null,
                    DEFAULT_SORT_ORDER + " LIMIT 1");
                if (c == null || !c.moveToFirst()) {
+6 −0
Original line number Diff line number Diff line
@@ -6560,6 +6560,12 @@ public final class Settings {
         */
        public static final String AIRPLANE_MODE_ON = "airplane_mode_on";

        /**
         * Whether VoLTE Preferred is on
         * @hide
         */
        public static final String VOLTE_PREFERRED_ON = "volte_preferred_on";

        /**
         * Whether Theater Mode is on.
         * {@hide}
+21 −7
Original line number Diff line number Diff line
@@ -3386,6 +3386,7 @@ public final class ViewRootImpl implements ViewParent,
    private final static int MSG_DISPATCH_WINDOW_SHOWN = 25;
    private final static int MSG_REQUEST_KEYBOARD_SHORTCUTS = 26;
    private final static int MSG_UPDATE_POINTER_ICON = 27;
    private final static int MSG_HIGHTEXT_CONTRAST_CHANGED = 28;

    final class ViewRootHandler extends Handler {
        @Override
@@ -3435,6 +3436,8 @@ public final class ViewRootImpl implements ViewParent,
                    return "MSG_DISPATCH_WINDOW_SHOWN";
                case MSG_UPDATE_POINTER_ICON:
                    return "MSG_UPDATE_POINTER_ICON";
                case MSG_HIGHTEXT_CONTRAST_CHANGED:
                    return "MSG_HIGHTEXT_CONTRAST_CHANGED";
            }
            return super.getMessageName(message);
        }
@@ -3693,6 +3696,9 @@ public final class ViewRootImpl implements ViewParent,
                MotionEvent event = (MotionEvent) msg.obj;
                resetPointerIcon(event);
            } break;
            case MSG_HIGHTEXT_CONTRAST_CHANGED: {
                handleHighTextContrastChange(msg.arg1 != 0);
            } break;
            }
        }
    }
@@ -7272,19 +7278,27 @@ public final class ViewRootImpl implements ViewParent,
        }
    }

    void handleHighTextContrastChange(boolean enabled) {
        mAttachInfo.mHighContrastText = enabled;
        // Destroy Displaylists so they can be recreated with high contrast recordings
        destroyHardwareResources();
        // Schedule redraw, which will rerecord + redraw all text
        invalidate();
    }

    public void dispatchHighTextContrastChange(boolean enabled) {
        Message msg = mHandler.obtainMessage(MSG_HIGHTEXT_CONTRAST_CHANGED);
        msg.arg1 = enabled ? 1 : 0;
        mHandler.sendMessage(msg);
    }

    final class HighContrastTextManager implements HighTextContrastChangeListener {
        HighContrastTextManager() {
            mAttachInfo.mHighContrastText = mAccessibilityManager.isHighTextContrastEnabled();
        }
        @Override
        public void onHighTextContrastStateChanged(boolean enabled) {
            mAttachInfo.mHighContrastText = enabled;

            // Destroy Displaylists so they can be recreated with high contrast recordings
            destroyHardwareResources();

            // Schedule redraw, which will rerecord + redraw all text
            invalidate();
            dispatchHighTextContrastChange(enabled);
        }
    }

+4 −0
Original line number Diff line number Diff line
@@ -512,6 +512,9 @@
    <!-- Integer indicating RSSI boost given to current network -->
    <integer translatable="false" name="config_wifi_framework_current_network_boost">16</integer>

    <!-- Integer indicating the number of selective channel scan when Wifi turn on -->
    <integer translatable="false" name="config_max_initial_scans_on_selective_channels">2</integer>

    <!-- Integer indicating how to handle beacons with uninitialized RSSI value of 0 -->
    <integer translatable="false" name="config_wifi_framework_scan_result_rssi_level_patchup_value">-85</integer>

@@ -2652,4 +2655,5 @@
    <!-- Allow the gesture to tap the power button N times to start
         the Emergency Call while the device is non-interactive. -->
    <bool name="config_emergencyCallOnPowerkeyTapGestureEnabled">false</bool>
    <bool name="config_volte_preferred">false</bool>
</resources>
+2 −0
Original line number Diff line number Diff line
@@ -359,6 +359,7 @@
  <java-symbol type="integer" name="config_wifi_framework_network_switch_tx_packet_threshold" />
  <java-symbol type="integer" name="config_wifi_framework_network_switch_rx_packet_threshold" />
  <java-symbol type="integer" name="config_wifi_framework_current_network_boost" />
  <java-symbol type="integer" name="config_max_initial_scans_on_selective_channels" />
  <java-symbol type="bool" name="config_send_sms1x_on_voice_call" />
  <java-symbol type="integer" name="config_bluetooth_max_advertisers" />
  <java-symbol type="integer" name="config_bluetooth_max_scan_filters" />
@@ -2735,4 +2736,5 @@
  <java-symbol type="integer" name="power_key_hits_emergency" />
  <java-symbol type="bool" name="config_emergencyCallOnPowerkeyTapGestureEnabled" />
  <java-symbol type="bool" name="config_usb_data_unlock" />
  <java-symbol type="bool" name="config_volte_preferred" />
</resources>
Loading