Commit Graph

16 Commits

Author SHA1 Message Date
Linux4 2a7c32376c ParanoidSystemUI: Add powershare QS tile
Author: Linux4 <tim@linux4.de>
Date:   Mon Apr 20 17:57:43 2020 +0200

    base: SystemUI: add qs powershare tile

    Change-Id: Ibcf5cc3e766d971d9dca9242bf2770093d4d3099

Author: Linux4 <tim@linux4.de>
Date:   Sat May 2 12:54:49 2020 +0200

    base: SystemUI: fix NPE in PowerShareTile

    Change-Id: If69846f3e3d4f3a12c0f78f47b5adc1008888de1

Author: LuK1337 <priv.luk@gmail.com>
Date:   Tue Jul 7 13:27:12 2020 +0200

    SystemUI: Call setOnlyAlertOnce(true) for PowerShare notification

    * Otherwise we end up getting notification sound
      every 20 seconds when using it...

    Change-Id: Ia56b01f332860b64f0d2c532884e6bcaa2acfb17

Change-Id: Ia09a674745adb433f3aaeebfeb79899906350793
2023-06-13 13:38:42 +00:00
Marko Man ba7bc7f033 ParanoidSystemUI: Add Always-on Display QS tile
[mickaelmendes50]
 - Rework QS Tile label logical when power save mode is on

Squashed with:

Author: Marko Man <darkobas@gmail.com>
Date:   Wed Apr 18 13:22:52 2018 +0200

    base: SystemUI: add qs AOD tile

    Change-Id: I0d9948dbd48e309d8fcc9b2c33be8b17810dc5b0

Author: shagbag913 <sh4gbag913@gmail.com>
Date:   Sun Mar 1 15:49:17 2020 -0500

    AODTile: disable tile when power save mode is on

    AOD is not allowed when power save mode is active, reflect that upon the
    tile.

    Signed-off-by: NurKeinNeid <mralexman3000@gmail.com>
    Change-Id: I3fc7f2a33d25a1616e8df5698ca2bc2a23d45cbb

Author: Bruno Martins <bgcngm@gmail.com>
Date:   Sun Apr 12 19:04:24 2020 +0100

    AODTile: Explicitely disable long clicks

    Returning null in the getLongClickIntent() method is not enough to disable
    tile long clock and results in crashes:

      E AndroidRuntime: FATAL EXCEPTION: main
      E AndroidRuntime: Process: com.android.systemui, PID: 1391
      E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.resolveTypeIfNeeded(android.content.ContentResolver)' on a null object reference
      E AndroidRuntime:     at android.app.ApplicationPackageManager.queryIntentActivitiesAsUser(ApplicationPackageManager.java:1062)
      E AndroidRuntime:     at com.android.systemui.ActivityIntentHelper.getTargetActivityInfo(ActivityIntentHelper.java:70)
      E AndroidRuntime:     at com.android.systemui.ActivityIntentHelper.wouldLaunchResolverActivity(ActivityIntentHelper.java:47)
      E AndroidRuntime:     at com.android.systemui.statusbar.phone.StatusBar.startActivityDismissingKeyguard(StatusBar.java:2724)
      E AndroidRuntime:     at com.android.systemui.statusbar.phone.StatusBar.startActivityDismissingKeyguard(StatusBar.java:2709)
      E AndroidRuntime:     at com.android.systemui.statusbar.phone.StatusBar.startActivityDismissingKeyguard(StatusBar.java:2716)
      E AndroidRuntime:     at com.android.systemui.statusbar.phone.StatusBar.handleStartActivityDismissingKeyguard(StatusBar.java:3159)
      E AndroidRuntime:     at com.android.systemui.statusbar.phone.StatusBar.lambda$postStartActivityDismissingKeyguard$26$StatusBar(StatusBar.java:3155)
      E AndroidRuntime:     at com.android.systemui.statusbar.phone.-$$Lambda$StatusBar$CSd9n4rtnrfFyOdT2eTFRNUO5xM.run(Unknown Source:4)
      E AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:883)
      E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:100)
      E AndroidRuntime:     at android.os.Looper.loop(Looper.java:214)
      E AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:7356)
      E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
      E AndroidRuntime:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
      E AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

    Change-Id: Ia7d4da4723600c47bedbfeb4b9152924a50d52dd

Author: Bruno Martins <bgcngm@gmail.com>
Date:   Tue Jun 9 21:47:24 2020 +0100

    AODTile: Rewrite AOD setting handling

    This fixes the tile status on clean installs, which was showing as
    active despite AOD being disabled.

    Change-Id: I148cfb34938165395bc52c830d1f2e374b5427df

Author: Luca Stefani <luca.stefani.ge1@gmail.com>
Date:   Thu Mar 18 12:22:21 2021 +0100

    SystemUI: AODTile: Use SecureSetting to change doze setting

    Change-Id: Ic39d26ac8a37041b75862627a497274b24f3362c

Author: LuK1337 <priv.luk@gmail.com>
Date:   Thu Mar 18 12:23:45 2021 +0100

    SystemUI: AODTile: Actually start using SecureSetting

    Change-Id: I37f0194fcb54db1cf3cae221f7f702d398834ced

Author: Michael Bestas <mkbestas@gmail.com>
Date:   2023-03-15 17:10:40 +0200

     fixup! SystemUI: Add AOD QS tile

     Change-Id: I32e94533a8f2815579d8f1f2d6cb18c7d686af96

Change-Id: I5249106fea3518e8fa69990d1aa13c21cc542cb1
2023-05-23 21:33:26 -03:00
thestinger bb66383fd7 ParanoidSystemUI: Enable NFC quick settings tile
Change-Id: If7fe4e53a25065c551f6fd9b1faf5c785cce2604
Signed-off-by: Mesquita <mesquita@aospa.co>
2023-05-03 19:27:53 -03:00
rituj bb84c65c2d ParanoidSystemUI: Add DC Dimming QS tile
Co-authored-by: Andrew Fluck <andrew@aospa.co>
Change-Id: Ib41e9a4a0c6ebbb957338feaf5cb72205f92fe28
2023-04-17 11:19:09 +05:30
Anay Wadhera 0f787ef3af ParanoidSystemUI: Use Google home icon on home controls lockscreen if app is installed
Change-Id: I038f378f935f77b33b8ac893e17fdbcd7f986052
2023-02-18 15:59:04 +00:00
Jake Weinstein 2070309ccd ParanoidSystemUI: Define symbols for Alert Slider
Change-Id: I399973c1d1957eea72dc9a841b784360629b0bb4
2023-02-02 00:35:02 +09:00
Jake Weinstein 9eca1288be ParanoidSystemUI: Separate AOSP and non-AOSP configs
Change-Id: I6db27f195a5b55e575bdf47d0ef1d5baf7e59ff2
2023-02-02 00:34:44 +09:00
Jake Weinstein d6200862e4 ParanoidSystemUI: Move Alert Slider location config here
It doesn't make sense to define this in frameworks/base

Change-Id: I853ea39082c08fe6823a7cd1698af0c1051374c9
2023-02-01 16:29:11 +09:00
Jake Weinstein 028a64f673 ParanoidSystemUI: Move config to aospa_config.xml
Change-Id: I8b48f1afd1ccdddc3d61c0a60fe068a07d89cd8c
2023-02-01 16:28:17 +09:00
Anushek Prasal c30fe1347a
ParanoidSystemUI: Improve alert slider dialog.
- Convert px to dip
- Modify the dialog to match toast
- Fix positioning for OP7 Pro slider
- Remove unused dimens and drawables

Edit: set position values to 0 for neutrality. They should
be adapted by overriding in each device tree.

Change-Id: I6bf3ad449a76f7145ab3db697ac57becd788a1f2
2023-01-20 02:44:27 +01:00
Chris Crump 41fc5d8071
ParanoidSystemUI: Introduce user interface for Alert Sliders.
Ported from OxygenOS and reworked for our alert slider
implementation. We target AudioManager instead of Zen,
icons are also the same as aosp and the dialog uses the
material theme as well as support for our themes.

To use, the alert slider config must be enabled. By default,
the dialog shows on the left side. To move it to the right
side, set the location config to 1.

Change-Id: I0522b849a8aeb3af0936eec4c0def894931cc564
2023-01-20 02:44:27 +01:00
Michael Bestas aa7ac23466 ParanoidSystemUI: Add heads up tile
* Icon designed and made by Andrew Fluck.

Signed-off-by: Mesquita <mesquita@aospa.co>
Co-authored-by: Andrew Fluck <andrew@aospa.co>
Old-Change-Id: I9bb734652273f7d35284a39d22adb94bad1e00ec
Change-Id: Ic5a0894422963524e75643bcdf91970de1e85592
2023-01-16 14:43:08 -05:00
Christian Oder 042d6dbcb4 ParanoidSystemUI: Introduce Data Switch QS Tile
* Based on OnePlus' OxygenOS tile, reworked to work with AOSP toggling without requirements on proprietary telephony-ext features

idoybh (YAAP): Adapt to A12

[ghostrider-reborn]
- Set secondary label to SIM1 or SIM2 instead of just "On"

[Jyotiraditya Panda <jyotiraditya@aospa.co>]
- Code cleanup and improvements

[Andrew Fluck <andrew@aospa.co>]
- Update SIMs QS icons

Change-Id: Ie2e280c07f24f9da6b4ee218b72501a2713ce429
Co-authored-by: Andrew Fluck <andrew@aospa.co>
Signed-off-by: Hernán Castañón Álvarez <herna@paranoidandroid.co>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2023-01-16 14:42:19 -05:00
Keith Mok 26b393d521 ParanoidSystemUI: Add caffeine QS tile
* Caffeine Tile icon designed by Andrew Fluck

[Adin Kwok] Add long press to infinity to caffeine qs tile

[ghostrider-reborn] Updated for android 12

Co-authored-by: Adin Kwok <adin@adin.dev>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: If54ea27ddf179c2de39b61850163e14173727698
2023-01-16 14:41:45 -05:00
Tobias Merkel 6276e0c150 ParanoidSystemUI: Introduce custom QSFactory
Change-Id: Id3886c998b3d7cfc1f173addc63bb0c2bbcde2a7
2023-01-16 05:27:01 +00:00
Chris Crump 9531109ba1
Initial Paranoid SystemUI module
Based on and referenced from https://github.com/StatiXOS/android_packages_apps_Statix_SystemUI

Change-Id: I99689c4b9e3bdd45ca849e7e199c99fe1b98a387
2023-01-04 16:32:07 +01:00