Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base: add missing Text style in BatteryStyles [1/2] #7

Open
wants to merge 491 commits into
base: q10
Choose a base branch
from

Conversation

Rpingat
Copy link

@Rpingat Rpingat commented Mar 14, 2020

Change-Id: I027aa0aa0ded5f52ef546f748e5820130209eea1

neobuddy89 and others added 30 commits January 18, 2020 07:25
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Based on commits by ezio84 and maxwen:
ezio84/abc_frameworks_base@4247a86
ezio84/abc_frameworks_base@4467b77

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Also disable this by default.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
@ZENIXxx
* Bring to Android 10

Signed-off-by: ZeNiXxX <zenixxx.havoc@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Block touch screen and keys inputs when device is in pocket.
* Safe-door to disable pocket lock within long press power button
  if sensors do not behave correctly after PocketManager.isDeviceInPocket()
  returns true.
* Window uses TYPE_SYSTEM_ERROR flag with ensure high
  priority over the lockscreen and other high priority windows.
* Do not illuminate buttons when pocket lock is showing.
* Disable fingerprint events and gestures when in pocket
* Be friendly towards Keypress Boost

Contributors:
Carlo Savignano <carlosavignano@aospa.co>
Chris Lahaye <dev@chrislahaye.com>
Anas Karbila <anaskarbila@aospa.co>
Alex Naidis <alex.naidis@linux.com>
Park Ju Hyung <qkrwngud825@gmail.com>

Ticket: NOUGAT-15

@ZENIXxx
* Fix  booting issues
* Fix  NPEs
* Bring to Android 10

Change-Id: I65cb9de80d052f6704d609d270c7208eff28fdff
Signed-off-by: ZeNiXxX <zenixxx.havoc@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I585598242beec34bd92c5df5836ab395b36cea05
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
We already adjusted the proximity sensor rate to
400ms, so adjust the rate for the light sensor
accordingly and create a tunable.

Change-Id: Ie6dda80df8cdc677eb6cdb873a5ce1e888572fe7
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This service communicates pocket state to the pocket judge kernel driver.
It maintains the pocket state by binding to the pocket service.

Ticket: NOUGAT-49

Change-Id: Iee77f767f23d3f77a0d1d871f9305f3b3c6d6630
Signed-off-by: Chris Lahaye <dev@chrislahaye.com>
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Signed-off-by: ZeNiXxX <zenixxx.havoc@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
 - Fix the case where user sets a high value for sleep timeout in display settings
   and the pocket view is also displayed for that much duration.

Change-Id: If6c4daa1fd98992141f22db70e0e86d5d990f789
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
 - Use LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES layout
   flag to extend pocket lock view for display cutout mode.

Change-Id: I21e4e47cf999b3a0f3d6ebf9165ba9f5596ece0e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Fix auto hide not working correctly
* Restore systemui visibility when hidden

@ZENIXxx
* remove faceunlock logic and adapt for android 10

Change-Id: I2bb57b56cdf431d32cdbc3c67f272bf98251888
Signed-off-by: ZeNiXxX <zenixxx.havoc@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
DennySPb: add on_error switch

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This change is the combination of below commits, plus removing
ExtendedFace class from frameworks/base.

  # This is the 1st commit message:
  Add framework support for extended face detect
  CRs-Fixed: 587195
  Change-Id: I2a1c477ee6d11f2b9764966abbb85ede9100fe91

  # This is the 2nd commit message:
  Camera: Extended face features added
  - QCFace renamed to ExtendedFace
  CRs-Fixed: 587195
  Change-Id: I7c7e2073f283522c2f0bd0fa5e7b96a74ae18011

  # This is the 3rd commit message:
  Camera: QCFace AOST copyrights fixed
  AOST files copyright data must not be updated to 2014
  CRs-Fixed: 587195
  Change-Id: I0cd603da674152c9f47350e571ec3e230b61f8dd

Updated these changes with change in package name of extendedFace
com.qualcomm.qti.camera.ExtendedFace

Change-Id: I5d099efe1721e5d26af51006dae4e5f3ea3292d6
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Issue: For project which dont have ExtendedFace
Class, exception for class is thrown causing issue.

Fix: Added exception clear.

CRs-Fixed: 2246547

Change-Id: I13b40a92348d4a14412961698612d9ea7e110df0
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Issue: HAL3 supports HFR only if its greater than or equal
       to 120fps.

Fix: Skip the checks to allow HFR 60 and 90 fps in HAL3 for
     specific apps.
     The following property need to be set to allow these
     HFR configurations :
     adb shell setprop persist.camera.privapp.list <pack1,pack2,etc>

Change-Id: I5f3bc94bea60dbe03284de39cd4280f67df8b015
CRs-Fixed: 2258892
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Omni: extracted from DUI
add a public call to Utils

Change-Id: If71944466c703a9b3fe54aea6bb21150b0a082bb
Change-Id: Ieb85137ee73f7ed032b9bbdd4087be2c72a4d1f5
Signed-off-by: a.derendyaev <a.derendyaev@magdv.com>
Change summary:
 - Position below status bar on AOD, and account for burn in prevention
   movement.
 - Position below lock icon on lock screen.

Change-Id: Ie575764143887a11ede3b85fa109db651814a639
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
mydongistiny: updated for oreo
neobuddy89: rewrite using TunerAPI

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
The feature is ported from Oppo ColorOS.
With the options on, users can swipe down
on the screen to have a screenshot.

original smali port by: wuxianlin

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Cancel touch events when tap with three fingers

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Reverse engineered from Xiaomi/beryllium/beryllium:9/PKQ1.180729.001/9.2.25:user/release-keys

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: Id30347258a15bcf99f51b0df6def0a6a9b1f9abf
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Signed-off-by: Arghya Chanda <arghyac35@gmail.com>
pressing date -> calendar

Change-Id: Ia2daff2038b136667c95efdc5515c72ef8eda502
By popular demand.

Change-Id: Ic8819c9b9cf5d1469a47f3d16cd10918285f40f9
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* Some fingerprint hardware hals might not notify userspace in time
  in some scenarios when successful authentication cancel is performed.
* This is observed for example in some devices that have power and/or home
  buttons merged with fingerprint sensor, but not limited to such cases.
* Add a opt-in configuration to enable client authentication cancel from
  fingerprint service when successful.
* This addresses originally an issue where requesting fingerprint to be
  disabled and then enabled will wait till cancelling timeout before changing
  fingerprint sensor state and start authenticating again.

Change-Id: I6a6795fbb795f0c6a4ff8ad27ac807e2f744c2d9
Signed-off-by: Carlo Savignano <carlosavignano@aospa.co>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
TheScarastic and others added 28 commits February 25, 2020 15:12
- Also use the default icons for miui animation

Change-Id: Ifab6dfe946ebd88c0e67fade5d269993552ff512
Co-authored-by: Stallix <joey@evolution-x.org>
Signed-off-by: Joey Huab <joey@evolution-x.org>
Change-Id: I8f218744a1b2767d13982b3d2e63706329db279a
Signed-off-by: Joey Huab <joey@evolution-x.org>
Author: Roman Birg <roman@cyngn.com>
Date:   Thu Feb 4 16:28:00 2016 -0800

    framework: move device key handler logic, fix gesture camera launch

    In order to make device camera gestures behave the same way as launching
    the camera by double tapping the power button, route DeviceKeyHandler
    logic through the GestureLauncherService.

    A callback is used in order to avoid publishing the
    GestureLauncherService into the System service registry, because the
    KeyHandler code cannot directly access services local to the system
    process.

    OPO-427

    Change-Id: I2a8860b278f65ccf31bfee151513d8a23ab746c5
    Signed-off-by: Roman Birg <roman@cyngn.com>

Author: Roman Birg <roman@cyngn.com>
Date:   Sat Feb 13 09:08:21 2016 -0800

    KeyHandler: don't break old interfaces

    Causing bootloops on devices, don't break old interfaces in the
    framework.

    OPO-427

    Change-Id: I49473b057bc4ed4710e9092c76e41c6a8134d2de
    Signed-off-by: Roman Birg <roman@cyngn.com>

Author: Roman Birg <roman@cyngn.com>
Date:   Tue Feb 16 17:22:01 2016 -0800

    SystemUI: handle camera launch gesture from keyhadler

    Includes partial reverts:

        Revert "KeyHandler: don't break old interfaces"
        This reverts commit 31ecbdc.

        Revert "framework: move device key handler logic, fix gesture camera launch"
        This reverts commit db1b4e6.

    Ref: OPO-427

    Change-Id: Ic15543a8f63ad4521ab0ab536d00224b0bd70f8c
    Signed-off-by: Roman Birg <roman@cyngn.com>

Author: Michael Bestas <mikeioannina@cyanogenmod.org>
Date:   Sat Feb 20 00:56:47 2016 +0200

    SystemUI: Don't vibrate on touchscreen camera gesture

    * This is usually handled in device-specific keyhandler,
      where vibration is optional and has the same duration
      in all gestures

    Change-Id: I879671c9d6f785137d63b8b70de35f5d5020748d

Change-Id: Iba9211b7d342f618c4082c34d11663d89861607a
(cherry picked from commit b48ec29)
Do not automatically turn off Bluetooth when airplane mode is turned
on and Bluetooth is in one of the following situations:
  1. Bluetooth A2DP is connected.
  2. Bluetooth Hearing Aid profile is connected.

Bug: 142831248
Test: Manual
Change-Id: I7f10b27102d91cc7a9803f74c88a4af80a294fb9
Layout of SinglePressAction was changed on Android 10, but ToggleAction
did not changed.
As a result, GlobalActionDialog menu is inconsistent layout when
ToggleAction is used.

We change to load the same layout resource for each Actions.
And show state of ToggleAction as single line.

Bug: 144680446
Change-Id: I75e07ea04450a2ecc91d5883711381deb72aa982
instead of using ro.build.fingerprint we explictly need to use ro.build.date

Change-Id: Ib3e80e58eb8c9a21c108e9f5cd2dbdb7ada8e3a4
With Q release, default sounds were moved to /product.
However, the settings update was not provided, and as a
result, the upgrade P -> Q  breaks all the default system
sounds that are kept in memory and persisted to XML file.

Apparently, there are no way to handle this other
than resetting settings of all of these sounds...

Test: After upgrade lock/unlock sounds are present,
charging sound is correct.

[javelinanddart]: For lineage, we don't upgrade the DB version
so that we can avoid carrying forward this patch indefinitely.
Since the DB version changed from 16.0, upgraded devices will
still hit the upgrade step correctly.

Change-Id: I43c2cbf53bca856b4659ab18c6d6e4cc77ab0413
When changing the notification sound for some apps with app-provided sounds,
the notification URI doesn't have a numerical ID.
For example, Outlook's email notification URI has the id 'new_email'

Test: m, outlook doesn't crash anymore, test google calendar

Change-Id: Ibf0c6f2f13e1c76ce02784165b97b92e8f7e432c
Change-Id: Icbbba2cb8f483190b2f7603621b35b3880952339
When doze state changed from DOZE to DOZE_PULSING on devices not
supporting doze_brightness_sensor_type sensor, there would be no
sensor events to update the AoD front scrim. And due to the scrim was
set to opaque at DOZE state, most views on the statusbar will be
invisible. This patch change the scrim to transparent again at leaving
DOZE state.

Bug: 148129743
Test: atest DozeScreenBrightnessTest
Change-Id: I2c079d081b04f00a929ae5c4475639685f9f7e69
Doing so allows us to keep track of user changes and restore
preferences.

This commit is squash of the following commits from CM 13.0:
7348be7 Move high touch sensitivity and hovering to InputService
f9a9d50 InputMethodManager : Move registration to systemReady

Since lineage-17.1 services/core/java/com/android/server/InputMethodManagerService.java is moved to
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java

Change-Id: I5a6af73129acefa6530ceb3f73cc4cd83a19a676
Ticket-Id: CYNGNOS-1166
…atform/frameworks/base into q10

Android 10.0.0 Release 27 (QQ1B.200205.002)

Change-Id: I428efe0b4a0a1fb87cc33dedd10b6cde277b0cf5
…witch pass

Device fresh rate (60.0024) is larger than USER_SETTING_PEAK_REFRESH_RATE(60)

The difference is more than EPSILON (0.001), which will make the mode invalid the cts-on-gsi case : android.display.cts.DisplayTest#testModeSwitch will fail

Change-Id: Ie8adaf2d00280560111486d63ff774f47c2eace2
(cherry picked from commit bc5068c64b18314712b27cbb9336cf04d935f658)
For some pixel formats, stride has no meaning.
Take this into account and use buffer width instead.

Bug: 143470518
Change-Id: I728b40803e80c4e534504c5b9db55921bb5e7dbc
Test: android.graphics.cts.ImageDecoderTest#testConserveMemoryPlusHardware
Change-Id: Ic64c29eae63e96f34dc37cda355401b7e2cd2d39
* When the torch is on, any subsequent long press power is almost certainly
  intended to turn the torch off (regardless of screen state).  Therefore,
  always allow long press power to toggle torch if the torch is on.

* Tested: long press power toggles torch on/off with screen off.
          long press power toggles torch off with screen on and torch on.
          long press power brings up global actions menu with screen on and torch off.

Change-Id: I932caa9f3be06d14408aea2ecb3a6eca73e052e0
Use same padding value (@dimen/navigation_side_padding) for ime_switcher width
as for other navbar buttons. This corrects the alignment of the ime_switcher
button on the navbar, giving it the same width as other navbar buttons (e.g.
clipboard, or custom key) for a more symmetric look.

Ticket: #1475
Test: m, check layout on device/tablet
Change-Id: I5d96ce1b18a43d4788d15d54568e638328c4fbc3
* BiometricService already has support for authenticate() to fallback to CDC.
  This allows BiometricPrompt to ask for credentials when no biometric
  hardware is present, rather then doing nothing.

Change-Id: Ib69b913a9e9a6d4d76de5d2ee9e618a3dfd6e5bd
… status

If the device is kept unlocked, it displays 'Kept unlocked by TrustAgent' and will not show charging state.
This adds the charging state below the unlocked message

Test: m, atest KeyguardIndicationControllerTest, check keyguard
Change-Id: I6b3515167c990c27fa89b3742d72db98657768b0
Change-Id: I21aefbb74d8060ae172d3246bd0f4e519ff4a3d8
Decrease the bottom margin when fingerprint in display is active
to avoid obstructing the view

Change-Id: Iec87c5ca67f0f6081209fd685e7a8621b8e8b1d7
Outlined and polished. Made by Andrew Fluck.

Change-Id: I97821e90b974af90a3b1a33f52739f07c6815efb
Android 10.0.0 release 31

* tag 'android-10.0.0_r31': (327 commits)
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Fixes NPE when preparing app data during init
  Use KNOWN_PACKAGES when shared lib consumers
  DO NOT MERGE: Add another exception to the nearby-sharing chip code.
  Handles null outInfo in deleteSystemPackageLI
  docs: Add documentation for equals() method
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  docs: Fix typo in IMPORTANCE_SERVICE description
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  [WIFI] Protect broadcasts used by the Wi-Fi framework
  [WIFI] Protect broadcasts used by the Wi-Fi framework
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  ...

Change-Id: I6dbf311c60dc195dd722633b6f7b4628d5a807ee
Signed-off-by: PMS22 <prathams99@rediff.com>
Change-Id: I027aa0aa0ded5f52ef546f748e5820130209eea1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet