aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/src
Commit message (Collapse)AuthorAgeFilesLines
...
* TelephonyExtUtils: Handle extphone binder deathdianlujitao2019-01-251-0/+17
| | | | | | | * If extphone binder service is invoked after death, phone service would crash due to android.os.DeadObjectException. Change-Id: I8dec7bfd709b0443654001ecd67219a2ba8cc134
* TelephonyExtUtils: Set timeout for (de)activating provisionnico2019-01-211-14/+52
| | | | | | * catch OEM RIL being unresponsive to UICC provisioning request Change-Id: Ic28c01412bffaec4cadabd3d68434ddef75693ef
* Revert "[3/3] cmsdk: add burnIn protection setting"Wang Han2019-01-181-12/+0
| | | | | | | | | | * Our overlay name now confuses people as Google introduced a screen burnin protection feature for ambient mode in Oreo. Just re-use AOSP one and kill this. This reverts commit 088ddf5aafbb578ae5566bec3fab580d1372f76. Change-Id: Ia76b28444cd7b117559062fbd8230602962616b2
* ConstraintsHelper: Fix checking for a boolean system propertyMichele Bono2019-01-141-1/+1
| | | | Change-Id: I62b9e1cc8a4896062a3ffddbf2c33c566fd592dc
* lineage-sdk: Use AOSP permission CHANGE_OVERLAY_PACKAGES for stylesSam Mortimer2018-11-101-1/+1
| | | | | | | *) Replace lineageos.permission.CHANGE_STYLE with AOSP android.permission.CHANGE_OVERLAY_PACKAGES. Change-Id: I2dfb339688795ad5a7ae70d8d60a7dc51bbdb4cb
* lineage-sdk: Move force show navbar to lineage system settingsSam Mortimer2018-09-271-10/+13
| | | | | | *) Mild cleanup of DEV_FORCE_SHOW_NAVBAR in the process. Change-Id: I519245ffb350c172bb1eef2b0d507089fc87907c
* PowerMenuConstants: Add user logout as new global actionBruno Martins2018-09-161-1/+3
| | | | | | | * Google introduced user logout in Pie: https://github.com/LineageOS/android_frameworks_base/commit/044588599c97ceff70d74a133c9eb01a028db00c Change-Id: I60a64beb5fc69e89d5872c74439bec30a47d4d0c
* lineage-sdk: Rewrite Lineage preference classes used in about phone viewLuK13372018-09-034-104/+34
| | | | | | * Now extending TextView to match Android P settings. Change-Id: Ieed7174a92e3801e6c782b39c36731a67ae1be59
* ActionUtils: Switch getLastTask to IActivityManagerLuca Stefani2018-09-011-3/+3
| | | | | | | | * An alternative to using the getRecentTasksForUser method that got removed with the following commit: https://github.com/LineageOS/android_frameworks_base/commit/5fa397533fa29254e8a45a05675b2c03756a0ada Change-Id: I752c2445c3ffc0933dfe6290c99d839a036e4bc3
* lineage-sdk: Use PreferenceDataStore for lineage-sdk preferencesSam Mortimer2018-08-2912-184/+213
| | | | | | | | | | | | Replaces the need for: https://github.com/LineageOS/android_frameworks_support/commit/32e67e60201feee32b5af8ef4bb66c98292cd3b7 *) frameworks/support are now built with gradle and are included as prebuilts. *) API level 26 (8.0) introduced PreferenceDataStorage which can be used to implement what we need without touching the support library. Change-Id: Ide3417019ccf8bde5dca3b2aec3d2075e7c8b597
* LineageNotificationLights: Don't create KeyguardManager in constructorLuK13372018-08-251-8/+3
| | | | | | | | | | | | * Apparently creating it so early can cause serious breakages that make StorageManagerService and UsbDeviceManager end up getting null pointer when trying to get KeyguardManager with ctx.getSystemService(KeyguardManager.class). * Moving ctx.getSystemService(KeyguardManager.class) out of constructor to isKeyguardLocked() solves these issues. * Also move to getSystemService(Class<T>) while at it. Change-Id: Ib3f65ba2e726149089ab1fb12030321e0ecdeab1
* sdk: Rework reading mode APIPaul Keith2018-08-082-18/+2
| | | | | | | | * The current API makes no sense, and doesn't really fit with how the other boolean features work * While we're at it, place AutoContrast properly Change-Id: I81d7805411c281e435c7451c0b62689711dbb323
* sdk: Allow controllable brightness for non-RGB segmented battery LEDsPaul Keith2018-08-041-5/+13
| | | | | | | | | * For non-RGB segmented battery LEDs, we currently don't allow any kind of brightness control, because the alpha channel is taken up by the level * To remedy this, set the brightness in the color channel like we do for setting panel backlight brightness by setting the brightness as R/G/B Change-Id: I4e47861643e0b2b8766af0f2ff275069fc580108
* sdk: Add minimal LineageSettingsServiceLuK13372018-08-021-0/+8
| | | | | | | * This service is currently used for loading custom hostname, it may be used for more than that in the future. Change-Id: I9b4da124b54bdc28544becb2ad25b7b43d46f123
* Import preference class for custom hostname featureLuK13372018-08-021-0/+73
| | | | Change-Id: I85383db3583eba75f675ad5e4a4be1379c012ef6
* [2/2] Add vendor security patch level to device infoTobias Tefke2018-07-201-0/+90
| | | | Change-Id: Ic65290aa2c5fa159512e16a3781bc407876b9e5a
* styles: add support for more dark overlaysJoey2018-07-083-1/+131
| | | | | Change-Id: If9e08ba8ff28cff7a4061a6b6cea10d5fe38a541 Signed-off-by: Joey <joey@lineageos.org>
* sdk: Trust: better warnings managementJoey2018-07-063-1/+77
| | | | | | | | | Allow fine-tuned management of trust warnings, the user is now able to disable specific warnings instead of blocking everything Change-Id: I04c7aa5fba76fd7500fd70c0c874fa0c3e59e03a Signed-off-by: Joey <joey@lineageos.org>
* lineage-sdk: Introduce TelephonyExtUtilsMichael W2018-06-281-0/+247
| | | | Change-Id: Ifdd18dd6e89e23c5b804c3454ee8473a5920b562
* NetworkTraffic: Resolve status bar indicators tintsAdrian DC2018-06-261-4/+2
| | | | | | | | | | | | | | * Apply the color tint with PorterDuff.Mode.MULTIPLY as the original color is white, with transparencies * Use the DarkReceiver tint's value as icons tint * Results: Before and after: https://ibb.co/k15ony * Test: Bright wallpaper with status bar contrasts: https://ibb.co/dxupSy Change-Id: I4f31cf5a9a3db4018543603a891fa7967ccbb4a3
* Trust: warn if build is signed with insecure keysTobias Tefke2018-06-261-0/+11
| | | | Change-Id: I1d58e232ed99dfe7e2addb651c114c1068e64105
* sdk: Add an option to force pre-O apps to use full screen aspect ratioJesse Chan2018-06-123-0/+163
| | | | | | | | | | | When an app target pre-O releases, the default max aspect ratio is 1.86:1 which leads to ugly black areas on devices that have screens with higher aspect ratio (for example Galaxy S8/S9). This change adds an option to allow users to change aspect ratio for pre-O apps to full screen aspect ratio. Change-Id: I2531542f736ee7b809ef7faffd72e5963e7d20d6
* sdk: Introduce Trust InterfaceJoey2018-06-104-1/+294
| | | | | Change-Id: I5c3ece3f6035dd03be1ceab01020496c179f2e65 Signed-off-by: Joey <joey@lineageos.org>
* Add led capability LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESSSam Mortimer2018-06-052-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | *) Many existing liblights support notification brightness control via the alpha channel but do not support similar for the battery led. *) https://github.com/LineageOS/android_lineage-sdk/commit/8f7a4559ab4a81855f399eae32ebe4a3f531e8b2 introduced a dependency on light capability LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS such that, when set, it was assumed that the battery led brightness is also liblights adjustable. It turned out that this was not the case. *) Create a new capability to allow devices to distinguish whether their liblights supports adjustable brightness control for notification and battery leds independently of one another. *) Document how brightness support works in LightsCapabilities. *) Copy LightsCapabilities comments to the default lights config to raise visibility. Change-Id: Id95905f07128c78c6acacf3b60d71bb37f70bcfb
* lineage-sdk: Add backend for reading enhancementRashed Abdel-Tawab2018-05-245-4/+47
| | | | Change-Id: Ibd1c9e057ddf8e9d21657aef0ebeeaa9a253e92d
* LineageBatteryLights: Fix brightness for devices with segmented ledsBruno Martins2018-04-261-3/+3
| | | | | | | * In case mCanAdjustBrightness was false, the brightness level would always be set to the maximum value. Change-Id: I034bc17ac1174c491830f0a6cb1969a99ee900a7
* LineageBatteryLights: Take current user settings into accountBruno Martins2018-04-261-16/+21
| | | | Change-Id: Ie99c14a73c14e1f5b6c39125625153f2628f884d
* LineageBatteryLights: Rename some class members and add more debuggingBruno Martins2018-04-261-14/+27
| | | | | | * Follow LineageNotificationLights debug logic Change-Id: I6b4a91db45a119c8c0b8b30684386765b73b93d2
* lineage-sdk: Allow adjusting brightness of non-RGB LEDsMichael Bestas2018-04-221-11/+28
| | | | | | * Mimic LineageNotificationLights logic Change-Id: Ifc0c899ef78dbdec22fa69ecd0bcffe1a9488afe
* lineage-sdk: Update validators for button settingsLuK13372018-03-181-8/+8
| | | | | | | | * Fixes ArrayIndexOutOfBoundsException when accessing button settings after update from 14.1 when user had one hand selected before. Change-Id: I3a8663211cfc5dd7ee22dbb6fa85a8eafb746790
* sdk: ilama API (9)Joey2018-03-122-1/+12
| | | | | Change-Id: I22ec35e3ab59fe64c223e8e3433e12c05870a1c0 Signed-off-by: Joey <joey@lineageos.org>
* sdk: fixes for documentationJoey2018-03-113-24/+6
| | | | | Change-Id: Iace1ed8b9a4c38afda908a6923bdbea4679cba83 Signed-off-by: Joey <joey@lineageos.org>
* sdk: Styles API finalization for API9Joey2018-03-114-12/+104
| | | | | | | | | | | | | | | Changes: - Added getter for global style and current accent - Added getter for a list of (available) trusted overlays - Apps that want to change the global style now MUST specify their package name when calling setGlobalStyle(). LineageParts will expose the name of the app that's currently managing the global style - Improved documentation Change-Id: Iaa1b106f43684b4120aa0f39023ebfddcb379806 Signed-off-by: Joey <joey@lineageos.org>
* LineageSettings: Add a setting for button backlight only when pressedBruno Martins2018-03-071-0/+13
| | | | Change-Id: I1a914a5f0dab22376f2a86d58be4e4a0c233f6ac
* sdk: introduce Style APIJoey2018-03-056-0/+365
| | | | | | | | | | | | | | | | | | | | | | | | | This API will allow apps to change global style mode and accent. Global style mode can be * Automatic (wallpaper) * Automatic (day of time) * Light * Dark Accent colors are defined in the caller application that will have to pass the package name. It's possible for apps to pass a Bitmap and get a suggestion of a global style + accent color that can be applied. Restrictions: * Only one accent can be enabled at time. * We're not limiting this to system apps, but we're marking this as dangerous permissions so apps will have to require it at runtime to the user. Change-Id: I921e8758c3ae093a88e897899612830258c97f8d Signed-off-by: Joey <joey@lineageos.org>
* lineage-sdk lights: Let Lineage lights decide if notification led is on/offSam Mortimer2018-02-281-1/+16
| | | | | | | | *) Allows us to cater for the case where the notification led is turned off and yet the user wants to adjust battery light settings (which requires posting led notifications to illustrate the change). Change-Id: I24d128d796a44f5b3e9051d441427cc19e2a3822
* sdk: add TILE_LOCATION_DETAIL logging constJoey2018-02-161-0/+1
| | | | | Change-Id: I036b2e332ba0b03e50d323daf395bb13d160656d Signed-off-by: Joey <joey@lineageos.org>
* lineage-sdk: Set drawable bounds in generateAlertColorFromDrawable()Sam Mortimer2018-02-131-0/+1
| | | | | | | | | *) Android docs say this is required. *) Fixes generating alert color from oreo gmail app (and probably many others). Change-Id: Iad9a8ea82531c1cf844fae5456fd998a4b486165
* lineage-sdk lights: Treat requested led color of 0 as needing a defaultSam Mortimer2018-02-121-3/+1
| | | | | | | | *) fw/b now sets the color to 0 to indicate that we need to set a default (to cover Oreo+ sdk where DEFAULT_LIGHTS has been deprecated). Change-Id: I91b7cfff2ea6f8c1b999b6246c14416a2a47cbfb
* livedisplay: don't throw exception if config is not ready, warning is enoughstaging/lineage-15.1Pranav Vashi2018-02-111-1/+1
| | | | | | | Throwing an exception leads to rescueMode in oreo Change-Id: I9c4cb7af8cae51936f439641b79ae522c84eaaee Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
* sdk: livedisplay: add a method to determine whether night mode is enabledJoey2018-02-112-0/+16
| | | | | | | | | LiveDisplayManager.getMode() returns MODE_AUTO when night mode is enabled automatically, so there's no way to determine if night is on when livedisplay changes automatically Change-Id: Ia47fc127232c2bb3b6634b55712060a919f8c9c1 Signed-off-by: Joey <joey@lineageos.org>
* sdk: add berry global style and accent settingsJoey2018-02-111-0/+31
| | | | | Change-Id: If4b2d913713c7e5d2dab8dd43a41a7d0db3c6cb2 Signed-off-by: Joey <joey@lineageos.org>
* sdk: Cleanup PerformanceManagerLuca Stefani2018-02-084-84/+3
| | | | | | | * Remove per-app profiles support * Remove cpu boost support Change-Id: I37e7473f8df1d08a69bc9274ae356dc1133811db
* lineage-sdk: Add Network Traffic [2/3]Jon Haus2018-01-282-1/+418
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changes made since the original implementation from older branches: *) Forward-ported to Oreo and adapted to Lineage SDK (bgcngm). *) Implement LineageStatusBarItem interfaces to receive visibility and color tint information (bgcngm / sam3000). *) Move from fw/b to lineage-sdk (sam3000). *) Increase refresh interval from 1s to 2s (sam3000). *) Don't generate messages when the statusbar isn't visible (sam3000). *) Allow for choice of unit to be kb/s or Mb/s (and kB/s and MB/s). This deprecates threshold selection for autohide (sam3000). *) Add an option for whether units should be shown in the statusbar (sam3000). *) Various other simplifications (sam3000). *) Added vector drawables (courtesy of kover). Change-Id: Ia5aadc3f03a7b434a047accbd7d53f4aa44c77fb
* lineage-sdk: Add LineageStatusBarItem interfacesSam Mortimer2018-01-281-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | *) Introduce LineageStatusBarItem class that contains interfaces and utility methods that can be used by status bar items that that are hosted here in the lineage-sdk in order to communicate with systemui. *) Nested interface: Manager Implemented by layout view LineageStatusBarItemHolder in systemui. Contains methods that are used to request receipt of certain systemui events. *) Nested interface: DarkReceiver Can be used to listen for systemui DarkReceiver events. *) Nested interface: VisibilityReceiver Can be used to listen for changes in visibility of a statusbar item. Works even if the statusbar item sets it's own visibility to GONE. *) Util method: findManager(View v) walks up through parent views to look for something that implements Manager. *) Systemui side that provides a layout that implements Manager: https://review.lineageos.org/#/c/202265/ Change-Id: Ie237db5bfac9994b87de39372505cd61c39d89ee
* lineage-sdk internal: Add FileUtils delete() and rename() helpersSam Mortimer2018-01-271-0/+37
| | | | Change-Id: I00170f5c42a9849ec71b2c328b56b1ee32e73747
* lineage-sdk: DnD light brightness control for battery and notificationsSam Mortimer2018-01-255-24/+263
| | | | | | | | | | | | | | | | | | | | *) Support separate normal and dnd led brightness levels for battery and notifications. *) Move lineage-specific notification bundle extras definitions from fw/b to LineageNotification here in the sdk. *) In addition to the existing bundle extra EXTRA_FORCE_SHOW_LIGHTS, add a new extra EXTRA_FORCE_LIGHT_BRIGHTNESS that can be used to override the brightness level set by a Lineage system setting brightness level on a per notification basis. This is used by the brightness sliders in LineageParts that otherwise would have to juggle changing / restoring the system led brightness setting whenever the a slider is on display. *) Disable all lights in dnd mode when lineage setting ZEN_ALLOW_LIGHTS is set to 0. Change-Id: I917f402a291682b582f68c8324a33c461357dad9
* lineage-sdk: Remove MediaRecorder APIMichael Bestas2018-01-241-84/+0
| | | | | | * Last used in cm-13.0 for cyngn purposes Change-Id: Ie5aa8b224c29f2d716489cf7a7eb2dfe2d8a3bbf
* lineage-sdk: Remove ACTION_APP_FAILURE intentMichael Bestas2018-01-241-7/+0
| | | | | | * Was used by ThemeManagerService Change-Id: I94b5e640a8280edced2706ab029a2558f2003486
* lineage-sdk: Remove alarm clock APIMichael Bestas2018-01-242-477/+0
| | | | | | * Last used/implemented in cm-13.0 DeskClock Change-Id: I9db1a72e29fd2ce232f7cad69ee9b5a6fadfa5de