aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/src
Commit message (Collapse)AuthorAgeFilesLines
* Implement quick QS brightness slider [3/3]lineage-17.1Jesse Chan2020-06-011-2/+2
| | | | | Change-Id: I00ad1ce2742faa1f5a24e4b4f034b314c61cbfd0 Signed-off-by: Jesse Chan <jc@lineageos.org>
* Implement hide gestural navigation hint bar [3/5]Jesse Chan2020-05-261-0/+10
| | | | | Change-Id: Iaf776d9d70b951119134eb31bc44a3a63f468698 Signed-off-by: Jesse Chan <jc@lineageos.org>
* lineage-sdk: add black theme for dark mode [4/4]Jesse Chan2020-05-261-0/+10
| | | | Change-Id: I53bbb8b9115d5b523aebd09cdb550df577c27272
* sdk: add top exclusion to the back gestureJoey2020-05-261-0/+14
| | | | | | | Change-Id: I908714d80740598188ef6a27f35e4f2cb228094a Signed-off-by: Joey <joey@lineageos.org> Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Signed-off-by: Jesse Chan <jc@lineageos.org>
* lineage-sdk: NetworkTraffic: Cleanup network callbackSam Mortimer2020-05-041-41/+8
| | | | | | | | | | * Don't call ConnectionManager.get* methods from within the callback, docs say it's racy. * Remove the NetworkState struct whilst we're here. It was useful for debug during development but is no longer needed. Change-Id: Ia1abbdfa31b258c38ba809844340d0dc06e5bd07
* lineage-sdk: add powershare qs tileLinux42020-05-011-0/+1
| | | | Change-Id: Ia324041843b7314881d9958f81fdc45a92b56ea0
* Profiles: Work with a list of subscriptionsMichael W2020-04-221-8/+14
| | | | | | * This is a better approach to work with all subscriptions independently Change-Id: Ibb8f8a2483bfc1e36dc27e5d6abaf9fc653fbeeb
* sdk: Allow translucent notifications background on lockscreen [2/3]rautamak2020-04-211-0/+7
| | | | Change-Id: I5f2ee373e446713aee236540f8d16e2685227b32
* profiles: Fix typo in static variable namingBruno Martins2020-04-212-7/+8
| | | | Change-Id: Ic17febc55e6726f0efc18c201223856bbc2798b3
* profiles: Account for deprecated location API methodsBruno Martins2020-04-211-4/+16
| | | | | | Settings.Secure#setLocationProviderEnabled is deprecated since API level 19. Change-Id: I7d1d13de3af100fb81d87e957acf89fb7f08cb7d
* lineage-sdk: Add AoD TileAndreas Schneider2020-04-041-0/+1
| | | | Change-Id: I9ab3f3269849edd6052be644f551ec2658615423
* NetworkTraffic: Include tethering hw offload statisticsSam Mortimer2020-03-171-6/+71
| | | | | | | | *) Regular interface stats don't include hw offload tethering statistics so collect and include them in our traffic calculations. Change-Id: Id72577429840f65ae20d7b80e7490ec41d826579
* Implement edge long swipe gesture [2/3]Nico2020-03-151-1/+12
| | | | | | | Set up standard action setting for long swipe gesture. (KEY_EDGE_LONG_SWIPE_ACTION) Change-Id: Ida75e768b822542dea944cc719408e192bbb7d7e
* lineage-sdk: Drop Expanded Desktop APIWang Han2020-03-091-53/+0
| | | | | | | | | | | | * This conflicts with AOSP gestures implemention now, and the framework part is hard to port. * Furthermore the original implementation has the following bugs/issues: 1. Pressing power button or double tap does not wake up the device 2. No soft-key buttons when opening the keyboard 3. Probably more Change-Id: Ia233c3b9d0aa7426f0fd15dffe4da203b4e09b1d
* sdk: Remove berry style leftoverslineage-17.0Michael Bestas2019-12-161-19/+0
| | | | Change-Id: I59cf25452d1de34bc3c357cdc01b6a4f985802ad
* lineage-sdk: Drop root status of TrustWang Han2019-12-081-23/+0
| | | | Change-Id: Iaec0b2a8a781a0e9d301a21a3af5e4362a5d6630
* sdk: Add GLOBAL_ACTION_KEY_RESTART_FASTBOOTLuK13372019-12-081-0/+1
| | | | Change-Id: Ib4f050f634769f58e654a4240fb521f136fd04e7
* sdk: Make phone a new compile targetMichael W2019-11-232-269/+0
| | | | | | | | | | | * Moving SensitivePhoneNumbers to sdk got us significantly bigger zip packages due to libphonenumber being part of every package that is using org.lineageos.platform or org.lineageos.platform.internal * In order to correct this, move the "phone" folder to an own library that statically links libphonennumber and subsequentially make use of that package where needed Change-Id: I4effd7a9248290aeb23ab47ff8e30385dce4401a
* sdk: Nuke Berry StylesBruno Martins2019-11-215-507/+10
| | | | | | This is being ditched in favour of ThemePicker. Change-Id: I00c5faca452164d59b804cb64166edb83611f77d
* sdk: Mark PG settings as deprecated and remove related resourcesBruno Martins2019-11-041-0/+4
| | | | Change-Id: Ie2867e46e20ff8749ca4755f7ead847c7962b583
* SensitivePhoneNumbers: Load numbers only at first actual call to methodMichael W2019-11-021-3/+9
| | | | | | | | * Constructor is called during boot, adding boot time where it's not necessary * Use the first actual call to a function to parse the list Change-Id: I02548d004c5d78db65c872247cd36a0405d826ea
* SensitivePhoneNumbers: Convert to singleton classMichael W2019-11-021-1/+10
| | | | | | | | * Now that there are more users than just call log, it is better to parse the XML-file just once * Keep an instance around for the various users of this class Change-Id: Iff1510dc40d68a211a6a1c5f19e4ca9ac64c3fcd
* SensitivePn: Also hide international numbersMichael W2019-11-021-3/+27
| | | | | | | | | | | | | | | | | | * When calling the number with intl. prefix it is currently not hidden * Remove the international prefix before checking th number Test: Before: 116006 - hidden +49116006 - not hidden 004911606 - not hidden After: 116006 - hidden +49116006 - hidden 0049116006 - hidden Change-Id: I72ec2c9a4da87ef243c59c8c4bab33585fdbd854
* SensitivePn: Take into account multiple SIMs for sensitive numbersMichael W2019-11-021-9/+31
| | | | | | | | | | * Instead of only checking the current or default MCC to hide a number, see if any of the connected networks would hide a number * This makes sure that e.g. for multiple sims (e.g. living next to the country border, having one sim for each country) and accidentially using the wrong sim for a call, the number would still get hidden Change-Id: I2692d00217d3143fd55122cee9064528bb09352d
* sdk: Import SensitivePhoneNumbersOlaia Segovia2019-11-022-0/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * In order to access the classes in Dialer, we need to expose them This was extracted from the original implementation in Telecom Author: Olaia Segovia <olaia.segovia@bq.com> Date: Thu Mar 16 08:40:30 2017 +0100 (1/2) Make sensitive phone numbers not to be shown in call log history. Considering sensitive phone numbers to be, hotlines dealing with violence against women. In the EU, these numbers do not show up in the phone bill. In order to avoid these phone numbers to be listed in the Call Log, we have implemented a new XML file which is parsed with phone numbers from different countries to be filtered. This file needs to be copied to device via desired Android.mk file in order to be able to process it. The comparison is made checking the network MCC the SIM is connected to in order to consider roaming and multisim scenarios. Test: CallLogManagerTest.testDontLogCallsToSensitivePhoneNumber PASS Change-Id: I4a59ff0577942ce56924f1a434ae0a3a38eacc62 Signed-off-by: Olaia Segovia <olaia.segovia@bq.com> Author: Paul Keith <javelinanddart@gmail.com> Date: Thu Jun 22 19:40:56 2017 +0200 SensitivePhoneNumbers: Handle lists of MCC codes * Some countries have multiple MCC codes, so handle it * In the sensitivePN network field, enter the list of MCCs like so: https://review.lineageos.org/178233 Change-Id: I34225473404b2be2640ea9ab05691dc985c49fa0 Author: Paul Keith <javelinanddart@gmail.com> Date: Thu Jul 6 16:12:12 2017 -0500 SensitivePhoneNumbers: Fix number comparison * Currently, we just compare the strings for equality, which results in incorrect detection of sensitive nums a lot of the time, because adding (or removing) the country code is enough to make the detection fail, meaning the call to that phone number is logged * Use Android's PhoneNumberUtils comparison method to fix this, since it takes these factors into account Change-Id: I26ac180f8a6552cf87a4bada1d370f0ebb884ee1 Author: Michael W <baddaemon87@gmail.com> AuthorDate: 2019-09-07 18:34:57 +0200 CallLog: Fix improper call to SensitivePhoneNumbers * isSensitiveNumber expects a subId to be passed, but with the current implementation gets a PhoneAccountHandle * Actually pass the subId and make the call use an int, while on it * Fall back to the default subId only when we get an INVALID_SUBSCRIPTION_ID Change-Id: Id6d64f2c9f76d94d1b4d9851317ea2cc7e07323b Change-Id: I241c1652105b82d1d15549332cb6e274d7c726ce
* lineage-sdk: Fix LineageSettingsProvider testsSam Mortimer2019-09-201-29/+0
| | | | | | | | | | | | | * Fix bp and manifest to work with AndroidJUnitRunner. * Remove broken tests (we no longer intercept in fw/b settings provider and QS_USE_MAIN_TILES was removed). * Tests pass when executed using: adb shell am instrument org.lineageos.lineagesettings.tests/androidx.test.runner.AndroidJUnitRunner (see README.md for more info) Change-Id: I3fcf4885c61106f43e99847293220afee78e2f6a
* lineage-sdk: Add call methods for list and delete to our settings providerSam Mortimer2019-09-191-0/+30
| | | | | | To match changes in fw/b settings provider Change-Id: Ie4683fe29b9109091d0ebd4910d31b7b4c714daa
* lineage-sdk: Clean up importsLuK13372019-09-1012-47/+3
| | | | Change-Id: Ie14853382ebefd42fdf827e2999a2a2a6d0a1cd1
* lineage-sdk: Remove leftover lineagehw compat codeLuK13372019-09-101-29/+0
| | | | Change-Id: I6a400cc79b9d00553c6646b788f9a4aa959a91b5
* lineage-sdk: Include authority in content provider callsSam Mortimer2019-09-091-2/+2
| | | | | | | | | | | API changed here: https://github.com/LineageOS/android_frameworks_base/commit/633a13e2fa8f378d523d4ae209dc573c66db8cb1#diff-944e798f679ef205433bd711345d06dcR75 Fixes: AndroidRuntime: Caused by: java.lang.SecurityException: The authority unknown does not match the one of the contentProvider: lineagesettings Change-Id: I5fe85fee777f919824e6a2ff78986e2d736e0267
* lineage-sdk: Fix moveTaskToFront() call in ActionUtilsLuK13372019-09-091-1/+18
| | | | | | | | | * moveTaskToFront() now has 2 nullable parameters at the beginning: - IApplicationThread appThread - String callingPackage Change-Id: I761784bdb3918021a0848e8ee31baa0818540bb1
* lineage-sdk: Migrate to androidxSam Mortimer2019-09-099-24/+31
| | | | | | | | * Migrate from support library to androidx * Various improvements and cleanup by @bgcngm Change-Id: I10bbf5056125e8309f344c3eb18cc628bd7ec34e
* sdk: Remove lineagehw compatPaul Keith2019-09-061-158/+2
| | | | Change-Id: I329a74b5e489cc39d183697c25bb9771ae5afd82
* 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
* sdk: Add LineageContextConstants.Features.FODLuK13372019-08-241-0/+8
| | | | Change-Id: I43f9a1f43c83fb83e7eac9c687a928d9bc0ba3f5
* LiveDisplayService: Notify SystemUI after initialization finisheddianlujitao2019-08-201-0/+7
| | | | 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
* linage-sdk: Add secure setting to allow tethering via VPN upstreamSam Mortimer2019-08-201-0/+9
| | | | Change-Id: I4665be19f425c47766f29da5993fd18b19352b4b
* sdk: Add volume panel left/right settingSam Mortimer2019-06-091-0/+11
| | | | Change-Id: I378e07bbed1fa438323be1ceaaeb6f9189daea45
* sdk: Update for refactored battery icon optionsHendrik Hagendorn2019-06-021-5/+3
| | | | | | | | | * 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: Remove VOLUME_KEYS_CONTROL_RING_STREAMLuK13372019-04-121-13/+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>
* Revert "lineage-sdk: Add ACCELEROMETER_ROTATION_ANGLES to system settings"Tim Schumacher2019-04-071-20/+0
| | | | | | This reverts commit 2f9375f4bce76fa98b129529bf188af91dca5eb2. Change-Id: I88392e75170302fda06900abfd222845371d6771
* sdk: Cleanup usage of List.toArray(T[] a)Paul Keith2019-02-173-5/+5
| | | | | | | * 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: 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
* sdk: add Trust usb restrictorJoey2019-02-043-4/+30
| | | | | Change-Id: I8ba443606e83fcfc6f23e62f434f10f25eb69e1b Signed-off-by: Joey <joey@lineageos.org>
* sdk: Add HIDL compat in LineageHardwareManagerPaul Keith2019-02-042-75/+403
| | | | | | | | * 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-043-193/+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