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

Commit 0d1410dc authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7655495 from 05593dbb to sc-qpr1-release

Change-Id: I03cd7a6e2245f4537808e2d99187bb45d6eda35d
parents db121cea 05593dbb
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -14914,6 +14914,16 @@ public final class Settings {
        public static final String POWER_BUTTON_LONG_PRESS =
                "power_button_long_press";
        /**
         * Override internal R.integer.config_longPressOnPowerDurationMs. It determines the length
         * of power button press to be considered a long press in milliseconds.
         * Used by PhoneWindowManager.
         * @hide
         */
        @Readable
        public static final String POWER_BUTTON_LONG_PRESS_DURATION_MS =
                "power_button_long_press_duration_ms";
        /**
         * Overrides internal R.integer.config_veryLongPressOnPowerBehavior.
         * Allowable values detailed in frameworks/base/core/res/res/values/config.xml.
+10 −2
Original line number Diff line number Diff line
@@ -356,7 +356,11 @@ public class UiTranslationController {
            }
            for (int i = 0; i < translatedResult.size(); i++) {
                final AutofillId autofillId = new AutofillId(translatedResult.keyAt(i));
                final View view = mViews.get(autofillId).get();
                final WeakReference<View> viewRef = mViews.get(autofillId);
                if (viewRef == null) {
                    continue;
                }
                final View view = viewRef.get();
                if (view == null) {
                    Log.w(TAG, "onTranslationCompleted: the view for autofill id " + autofillId
                            + " may be gone.");
@@ -416,7 +420,11 @@ public class UiTranslationController {
                    Log.w(TAG, "No AutofillId is set in ViewTranslationResponse");
                    continue;
                }
                final View view = mViews.get(autofillId).get();
                final WeakReference<View> viewRef = mViews.get(autofillId);
                if (viewRef == null) {
                    continue;
                }
                final View view = viewRef.get();
                if (view == null) {
                    Log.w(TAG, "onTranslationCompleted: the view for autofill id " + autofillId
                            + " may be gone.");
+3 −1
Original line number Diff line number Diff line
@@ -771,6 +771,8 @@ message GlobalSettingsProto {
    optional SettingProto power_manager_constants = 93;
    reserved 94; // Used to be priv_app_oob_enabled

    optional SettingProto power_button_long_press_duration_ms = 154 [ (android.privacy).dest = DEST_AUTOMATIC ];

    message PrepaidSetup {
        option (android.msg_privacy).dest = DEST_EXPLICIT;

@@ -1063,5 +1065,5 @@ message GlobalSettingsProto {

    // Please insert fields in alphabetical order and group them into messages
    // if possible (to avoid reaching the method limit).
    // Next tag = 154;
    // Next tag = 155;
}
+14 −0
Original line number Diff line number Diff line
@@ -957,6 +957,20 @@
    -->
    <integer name="config_longPressOnPowerBehavior">5</integer>

    <!-- The time in milliseconds after which a press on power button is considered "long". -->
    <integer name="config_longPressOnPowerDurationMs">500</integer>

    <!-- The possible UI options to be surfaced for configuring long press power on duration
         action. Value set in config_longPressOnPowerDurationMs should be one of the available
         options to allow users to restore default. -->
    <integer-array name="config_longPressOnPowerDurationSettings">
        <item>250</item>
        <item>350</item>
        <item>500</item>
        <item>650</item>
        <item>750</item>
    </integer-array>

    <!-- Whether the setting to change long press on power behaviour from default to assistant (5)
         is available in Settings.
     -->
+2 −0
Original line number Diff line number Diff line
@@ -439,6 +439,8 @@
  <java-symbol type="integer" name="config_extraFreeKbytesAbsolute" />
  <java-symbol type="integer" name="config_immersive_mode_confirmation_panic" />
  <java-symbol type="integer" name="config_longPressOnPowerBehavior" />
  <java-symbol type="integer" name="config_longPressOnPowerDurationMs" />
  <java-symbol type="array" name="config_longPressOnPowerDurationSettings" />
  <java-symbol type="bool" name="config_longPressOnPowerForAssistantSettingAvailable" />
  <java-symbol type="integer" name="config_veryLongPressOnPowerBehavior" />
  <java-symbol type="integer" name="config_veryLongPressTimeout" />
Loading