aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lineage-sdk: Refactor ActionUtilsHan Wang2019-08-301-42/+38
| | | | | | | | * Use getFocusedStackInfo() to check active task, also do general cleanups for this class. Hopefully this will get rid of the strange issues of "kill foreground app" feature. Change-Id: Ice1ca8e088ea4fec050fa171d990cb938dd3272c
* lineage-sdk: Fix traffic stats for tethering and vpn use casesSam Mortimer2019-08-251-11/+101
| | | | | | | | | | | | | | | | | | | | | | | | | Problems with current TrafficStats.getTotal[RT]XBytes() implementation: * Tethering related traffic is not counted at all. * If you have a VPN active, stats are double counted. So change the approach and track traffic on all non-VPN Internet capable networks since: * Tethering traffic is included in interface specific stats (unlike getTotal*). * VPN networks are excluded so no longer double counted. * Works correctly regardless of hotspot "Allow clients to use VPNs" hotspot setting. * Works with simultaneous wifi ap and wifi upstream. (WIFI_HIDL_FEATURE_DUAL_INTERFACE = true) Change-Id: Ic1135f10388b5be427202b092acd1444f94bd2b6
* Automatic translation importMichael Bestas2019-08-252-0/+22
| | | | Change-Id: Iaab92105e9b37bcf015ba07362cc6fbd14047d8a
* sdk: tests: fix LineageHardwareTestJoey2019-08-241-2/+2
| | | | | Change-Id: I7fb99b8e92e83f6288e90e3dad9748b2eaf6305a Signed-off-by: Joey <joey@lineageos.org>
* sdk: Add LineageContextConstants.Features.FODLuK13372019-08-241-0/+8
| | | | Change-Id: I43f9a1f43c83fb83e7eac9c687a928d9bc0ba3f5
* LiveDisplayService: Notify SystemUI after initialization finisheddianlujitao2019-08-203-0/+12
| | | | Change-Id: Id01eeee3bdfc599bdc20a5779db3d002fa4bc1c9
* LiveDisplayManager: Perform null check in getConfig()dianlujitao2019-08-201-12/+10
| | | | | | | * LiveDisplayConfig isn't instanced until boot completed, thus if LiveDisplayManager is instanced earlier, null is always returned. Change-Id: I003886ffced86a5a82dec25a4cc7b542da0f2331
* OutdoorModeController: Unconditionally enable auto mode on HWC2dianlujitao2019-08-201-2/+2
| | | | | | | | | | * On HWC2, setting "Display mode" to "Automatic" and disabling "Automatic outdoor mode" at the same time makes no difference with setting "Display mode" to "Off" alone. Obviously this is redundant and could confuse the user, so simply ignore the "Automatic outdoor mode" setting on HWC2 to reduce redundancy. Change-Id: I6858571a6b9ded3540fd3d936499878f57a7b3d4
* OutdoorModeController: Advertise MODE_AUTOdianlujitao2019-08-201-0/+2
| | | | | | | | | * This capability is set by ColorTemperatureController on HWC1 which is not used on HWC2, but it controls whether to enable automatic outdoor mode, thus advertise it here. * Set the default mode back to MODE_AUTO. Change-Id: I2061cdb9ca5991e60dc9c4b3d566dd811c3c8936
* LiveDisplayService: Properly disable ColorTemperaturedianlujitao2019-08-203-13/+10
| | | | | | | | | This reverts commit f781a9399aeb3a6c4db78a8848188781c7c0720a. * Twilight tracker and display mode are still used by ColorTemperatureController Change-Id: Icaf2a93befd56478eb2307d6f25da49c7c3fd73f
* linage-sdk: Add secure setting to allow tethering via VPN upstreamSam Mortimer2019-08-201-0/+9
| | | | Change-Id: I4665be19f425c47766f29da5993fd18b19352b4b
* lineage-sdk: Correct default value of charging soundsMichael Bestas2019-08-191-1/+1
| | | | | | * It is enabled by default on Pie Change-Id: Ia6faeee4d41c088d057fe1719f32d70f7fa1b099
* lineage-sdk: Use AOSP default ringtone for power notificationMartincz Gao2019-08-191-1/+1
| | | | Change-Id: I5b9aa82f23d404ea4372658671608b106600733f
* Automatic translation importMichael Bestas2019-08-043-5/+36
| | | | Change-Id: I0aeca2cb7c42a517b92b6d6cae3856572b210a63
* Automatic translation importMichael Bestas2019-07-061-5/+7
| | | | Change-Id: Ic88e1f4ea4e44cfdd74ffb9f0e0c8cb678a09b5b
* Trust: Onboarding: Listen for locale changesMichael W2019-06-261-0/+23
| | | | | | | | | * When SuW is not yet done, the notification is already posted * This results in an english notification text when the SuW is finished because the notification doesn't update when the locale changes -> Listen for locale changes and post the notification again (= update) Change-Id: I920a52c5c85c91adb7333a20d410a5464e80a812
* Automatic translation importMichael Bestas2019-06-192-2/+2
| | | | Change-Id: Idf93ba1c852729a0f138d2ce8c41bf5027db5cfc
* sdk: Add volume panel left/right settingSam Mortimer2019-06-091-0/+11
| | | | Change-Id: I378e07bbed1fa438323be1ceaaeb6f9189daea45
* Automatic translation importMichael Bestas2019-06-087-3/+108
| | | | Change-Id: I2d6ab8ea3d829b91c1d147f2efe9249f7a6cd04b
* LiveDisplayService: Disable ColorTemperature when NightDisplay is availableBruno Martins2019-06-051-4/+11
| | | | | | | | | | | * Having decided to use AOSP's night display feature in favor of our equivalent implementation, then we should take care of getting the latter completely disabled. Not only it can happen that a user was likely using it and enabling night display will now cause color transformation matrices to be applied twice, but also because there are resources being used for nothing. Change-Id: I4ba7f643bf9e3d3b9bda17102b41668644e22ba1
* sdk: Update for refactored battery icon optionsHendrik Hagendorn2019-06-024-17/+48
| | | | | | | | | * Handle the migration for old settings and default to Android's stock battery style. * Hiding battery icon is now achieved using icon blacklist via system tuner settings. Change-Id: Ie41d71c774a34abe225e2c0a6a0a9fd4316189cd
* sdk: Change night/day mode transition behaviorPaul Keith2019-05-141-7/+11
| | | | | | | | | | * Update 2x a minute rather than 1x a minute as a result of dropping TWILIGHT_ADJUSTMENT_TIME from 1hr to 30min in an earlier change * Use an AccelerateDecelerateInterpolator for transitioning from day to night mode and back to make the transition smoother for the user * Update copyright while we're at it Change-Id: I438f265c6cd9a2487b75744beccaf2bbac21b36e
* sdk: Remove VOLUME_KEYS_CONTROL_RING_STREAMLuK13372019-04-123-22/+0
| | | | | | * No longer used since we removed preference from LineageParts. Change-Id: Iff64a051762fd71a79d1ddfa52b3ca4b14f6a2bb
* sdk: notification: allow forcing notification color for previewAlexander Martinz2019-04-122-0/+61
| | | | | | | | | | | | | | Parts uses notifications to preview custom notification lights. Since Android O we got NotificationChannels and the internal API uses the color values of the channel instead of the color set at the notification. To prevent unexpected breakage in future, introduce a flag to be used for providing preview colors in a bundle to force said color. Also introduce flags to control the ON and OFF duration. Change-Id: Ifbb7995a19d95b6ddb2627c1b14dd201f9dc5430 Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
* Automatic translation importMichael Bestas2019-04-0714-16/+244
| | | | Change-Id: I9a0517fe270f0b6f37b22bf2cc3ab9974e3fcdd1
* Revert "lineage-sdk: Add ACCELEROMETER_ROTATION_ANGLES to system settings"Tim Schumacher2019-04-071-20/+0
| | | | | | This reverts commit 2f9375f4bce76fa98b129529bf188af91dca5eb2. Change-Id: I88392e75170302fda06900abfd222845371d6771
* Automatic translation importMichael W2019-03-11167-6165/+217
| | | | Change-Id: If43774499b4bbea34c504b1a86ee4c2a1d09fc75
* Automatic translation importMichael Bestas2019-02-266-1/+7
| | | | Change-Id: Ia4b2bbf6b93883e87ed88d2d0acde820dfea3698
* sdk: Cleanup usage of List.toArray(T[] a)Paul Keith2019-02-1710-15/+13
| | | | | | | * The parameter here only has to have the type you want it to return, so creating an array of size > 0 is unnecessary and wasteful Change-Id: I28e490fb6fa3703d7edca21b29d640105072947b
* sdk: LineageHardwareService: Add fallback to HWC2Paul Keith2019-02-081-4/+78
| | | | | | | | | * We can't talk to DisplayTransformManager in C++, so we must have a fallback in the SDK itself for HWC2 * While we're at it, fix the size of the int array created in getDisplayColorCalibration() to be 5 rather than 6 Change-Id: Ic524f7d60ae1585efed3fba676cf3301dcaecd7f
* sdk: HIDLHelper: Remove public access modifierPaul Keith2019-02-071-8/+8
| | | | | | * The default access modifier is sufficient here Change-Id: I174757643b385b73f64420cc66a92828a9d0a045
* Add emergency power menu constantLuca Stefani2019-02-061-1/+3
| | | | Change-Id: I44555b31ff14a5d14de7395b88f44d7be93e06f1
* LineageSettingsProvider: Fix migration of FORCE_SHOW_NAVBARMichael Bestas2019-02-041-1/+31
| | | | | | | * It was moved from Global to System but no migration was in place to handle upgrades from previous versions. Change-Id: If76243b0224dbc0138cf3c5dbc8aaeefa69f06a4
* sdk: add Trust usb restrictorJoey2019-02-044-5/+54
| | | | | Change-Id: I8ba443606e83fcfc6f23e62f434f10f25eb69e1b Signed-off-by: Joey <joey@lineageos.org>
* PerformanceManager: Allow wait for MPCTL to start on bootdianlujitao2019-02-043-1/+54
| | | | | | | | | | | | | * For devices using Qualcomm MPCTL interface as power profile backend, setting the user's profile preference fails on boot, because we call perf_lock_acq before MPCTL is ready. * To fix the issue, add an option to wait for MPCTL service to start before setting stored power profile. * We should not only wait for the service to start but also post boot parsed property to be set, because MPCTL service won't actually initialize if the property is not set to 1. Change-Id: Ib749c3eb548dad0ab24868ee0048247a0b80dd6a
* LiveDisplayService: Catch NPE before LiveDisplayConfig is initializedBruno Martins2019-02-041-1/+2
| | | | | | | | | * During boot up phase the system is trying to update LiveDisplay tile status based on the applied mode. However, with LiveDisplayConfig not yet initialized this results in a NullPointerException. Address it and fallback to MODE_OFF. Change-Id: I736da21455e74801aae69e16b9e80c8985b83a5a
* LineageAudioService: Make audio session broadcast explicitLuca Stefani2019-02-041-0/+1
| | | | Change-Id: Ia6a2a2a9840912e1a4317e11229ca5dc69bd376a
* sdk: Add HIDL compat in LineageHardwareManagerPaul Keith2019-02-045-128/+416
| | | | | | | | * While we're at it, hide the use of getSupportedFeatures(), since it only works for lineagehw java features, not hidl * Cleanup some minor styling/organization issues Change-Id: I905010bc7c6d7d8578eeca501be23f665127aa27
* sdk: Deprecate some unused lineagehw featuresPaul Keith2019-02-046-441/+0
| | | | | | | | | * DISPLAY_GAMMA_CALIBRATION * LONG_TERM_ORBITS * SERIAL_NUMBER * While we're at it, cleanup tests for removal of other features too Change-Id: I1a572cf3bcc5298d208a3dc234f9d82da1105bf0
* 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
* sdk: Trust: Return TRUST_FEATURE_LEVEL_BAD on encryption inactiveHan Wang2019-01-211-5/+0
| | | | | | * Prepare to change the logic in Trust frontend. Change-Id: I8fafdc891bdc17eb92fbfe4be33ed2cd074bad74
* TelephonyExtUtils: Set timeout for (de)activating provisionnico2019-01-211-14/+52
| | | | | | * catch OEM RIL being unresponsive to UICC provisioning request Change-Id: Ic28c01412bffaec4cadabd3d68434ddef75693ef
* lineage-sdk: Remove useless logic on database upgradingHan Wang2019-01-191-18/+1
| | | | | | | | * The upgradeVersion < newVersion part is never reachable because we increase upgradeVersion unconditionally. Make it back to stage by nuking it as no one has experience issues before. Change-Id: Icac1e18c192292ad3147fd4af4c862e93ef34ba5
* sdk: Split TWILIGHT_ADJUSTMENT_TIME in halfPaul Keith2019-01-191-5/+5
| | | | | | | | | | | | | * The difference between civil and actual sun{rise,set} is 6 degrees of movement of the Sun in its path in the sky, astronomically speaking * Since the Sun "travels" at 15 degrees/hr in the sky, that means the difference between civil and actual sun{rise,set} is about 24 minutes, temporally speaking * In order to more closely match that temporal difference, the TWILIGHT_ADJUSTMENT_TIME should be about 30 minutes Change-Id: I30a600c71ce5dd01fcb96fb4f5108f45fa493b0c
* sdk: Stop using lerp for night/day mode transitionsPaul Keith2019-01-181-6/+9
| | | | | | | | | | | | | * This makes it clear what the desired behavior is * In order to make the logic more clear, also start scaling into night mode before civil sunset so that we finish by civil sunset -- this makes sure that by the time there's no light out for practical purposes, we are in night mode * While we're at it, add a few comments about what each return is supposed to do, for the future Change-Id: I4ec0f8eec6b0129a37e99f9e3a2b3f124aeeb4f2
* Revert "[3/3] cmsdk: add burnIn protection setting"Wang Han2019-01-184-19/+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
* Automatic translation importMichael Bestas2019-01-12143-8565/+9015
| | | | Change-Id: I0256f07ce9acdc90e9cd4b25c6c28608cd6cade8
* lineage-sdk: Start Weather service in onUnlockUser.Steve Kondik2019-01-061-3/+7
| | | | | | | | | | | | | | | | After reboot the active WeatherProvider is started (onBootPhase) too early, resulting in WeatherProvider not syncing anymore. Start the active Provider when userland apps are ready to fix this, like on 14.1: https://github.com/LineageOS/cm_platform_sdk/commit/0cee14b03c42fc606b9674d22f9a82a638617d0e Found by meiser@xda lineage-15.1 ready Weatherproviders for testing: https://github.com/nvertigo/android_vendor_nlos/tree/nlos-15.1/weatherproviders Change-Id: I8d3eb7aacaf265c55d5d0b5157731e04068a7c7d
* ProfileManager: Don't start before decrypteddianlujitao2018-12-081-0/+5
| | | | | | | | | | * WiFi service is not considered as a core service so it won't start in min framework, but ProfileManager accesses to WiFi service's API. This would lead to a fatal exception and trigger RescueParty. * We don't really need ProfileManager during such early stage, so simply disable it to avoid invoking WifiManager. Change-Id: I2c66217599e0062eaff2e5f4e86ebc092d4a41d5