summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* hidl: Add standard timed_out vibrator servicelineage-17.1Andreas Schneider2020-06-096-0/+468
| | | | Change-Id: I48164e9adfa52cd223c5a2925fa3b48417a6e50c
* hidl: powershare: add vintf manifest fragmentLinux42020-06-092-0/+12
| | | | Change-Id: I7fddba246ce58127192b7cebcaa09da667e33c91
* fingerprint: inscreen: add vintf manifest fragmentJesse Chan2020-06-092-0/+12
| | | | Change-Id: Ie9579e4dea63fd8210f0d3a0a0fa41bd3202d352
* Automatic translation importMichael Bestas2020-05-231-0/+21
| | | | Change-Id: I7f11df70b63f3b068d9aac0d1e9ef1476f79c029
* sensors: set max range of proximity sensor to 1Jesse Chan2020-05-191-0/+1
| | | | | | | | | | | | | | | | | | | Samsung's proximity sensor type is binary in nature. There are only two state: FAR and NEAR. However, Samsung uses values between min and max for other purposes like proximity detection during Always-On Display. This breaks proximity detection during Doze for AOSP as AOSP only considers the proximity sensor in FAR state when the value equals or larger than max. Thus, this change sets the max to 1 so any > 1 value would be considered as FAR and the behavior of this vendor proximity sensor type matches the behavior expected by AOSP. Change-Id: I56af8e2ae743b47e3c4894e5ef68ce0b54e5cfdb
* fingerprint: inscreen: allow to set_fod_rect at bootJesse Chan2020-05-162-1/+7
| | | | | | | | | | | | | | | | | We found that stock firmware calculates the fod rect from resolution and a set of inscreen fingerprint sensor position data at boot and then use set_fod_rect command to tell the Kernel TSP driver. Then the Kernel TSP driver wrote it to "sponge" (presumably firmware of touchscreen panel). It is not yet known what exactly was done with this data but it is good to keep in line with stock firmware when we can. Change-Id: Id44d399a8dc482c7d6f320a3bbfea1282ac4f83a Signed-off-by: Jesse Chan <jc@lineageos.org>
* fingerprint: inscreen: enable sensor on ShowFODViewJesse Chan2020-05-161-8/+5
| | | | | | | | | | | | | | | | | | | | Enabling sensor on Press is slow and frequent on/off switching on Press/Release leads to unexpected results. Looking into Kernel, the purpose of FOD_ENABLE/FOD_DISABLE commands are to save battery. (ts->lowpower_mode) It is not meant to handle fingerprint authentication on Press/Release. It is expected that FOD is in ENABLED state whenever the user is EXPECTED to use fingerprint authentication soon. Thus, this patch moved FOD_ENABLE/FOD_DISABLE from OnPress/onRelease to onShowFODView/onHideFODView so the fingerprint authentication can be faster and the logic makes more sense. Change-Id: Id94b71acd55038d6eda7a1a89dde5fdf5a1e298f Signed-off-by: Jesse Chan <jc@lineageos.org>
* sensors: get the full list of sensorsAndreas Schneider2020-05-161-0/+3
| | | | | | | | | Samsung uses a special OperationMode (5555). Thanks to Pierre-Hugues HUSSON for the hint. Change-Id: I037ff5bf5a1edd65b616480d1c43cef8e61ba999 Signed-off-by: Jesse Chan <jc@lineageos.org>
* sensors: map Samsung proximity sensor type to genericWilli Ye2020-05-151-0/+6
| | | | | | | | | | | | | | Samsung uses their own com.samsung.sensor.physical_proximity type instead of SENSOR_TYPE_PROXIMITY of Android. This makes proximity sensor unavailable for us as we only look for SENSOR_TYPE_PROXIMITY. Thus, this change maps Samsung's vendor-specific proximity sensor type to generic one. Change-Id: I64f6558876e1398dfbea0e5c0eb76aa1aafd2dfd Signed-off-by: Jesse Chan <jc@lineageos.org>
* sensors: get rid of com.samsung.permission.SSENSORWilli Ye2020-05-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | Samsung uses a permission com.samsung.permission.SSENSOR for Samsung-specfic sensors. Android obviously does not have that and the default is denied when there is no permission. As such, those sensors are inaccessible. Thus, this change removes this permission from those sensors so we can use them. Android does not require special permissions for most sensors so this change doesn't attach additional permission requirements to those sensors. However, note that it is possible that some sensitive sensors introduced by Samsung in the future may use SSENSOR permission and for privacy reasons they should be handled separately with appropriate permission control attached. Change-Id: Ia3033898722039b285e522e226074238508f6093 Signed-off-by: Jesse Chan <jc@lineageos.org>
* sensors: adapt and rebrand for hardware/samsungJesse Chan2020-05-153-6/+5
| | | | | Change-Id: I6c0521888ad60e5ecdd967809f91d0962a7c08a8 Signed-off-by: Jesse Chan <jc@lineageos.org>
* samsung: hidl: import default sensors HAL 1.0 implJesse Chan2020-05-153-0/+470
| | | | | | | hardware/interfaces/sensors/1.0/default from android-10.0.0_r35 Change-Id: Ide758984cd50b94382b320572ded7a62691aae52 Signed-off-by: Jesse Chan <jc@lineageos.org>
* samsung: hidl: add powershareLinux42020-05-016-0/+272
| | | | Change-Id: I7ebfc84674c3a29c7cca53861d71d3e9b94947fd
* samsung: hidl: fingerprint: Add inscreen supportWilli Ye2020-04-307-0/+357
| | | | Change-Id: I18e1835fd268d8b819f874029a88065d8be167bf
* Automatic translation importMichael Bestas2020-04-2364-66/+31
| | | | Change-Id: I69cf83604c2915079978ca38f1654c02550c3e1d
* samsung: hidl: power: fixup setInteractive while display is onJan Altensen2020-04-091-1/+1
| | | | Change-Id: I5cdf542650fa3baf416d5a1cb88cd7034efb407f
* Automatic translation importMichael Bestas2020-03-303-3/+0
| | | | Change-Id: Icf6cddef80717d18b8a7b5229f83c157484bcaad
* samsung: remove old power halJan Altensen2020-03-294-663/+0
| | | | | | * a hidl replacement exist Change-Id: I2df55148c1492a93f321e3b3a31f0704c071b9aa
* hidl: Don't compile setNotificationLED if there is no blink nodeAndreas Schneider2020-03-202-15/+22
| | | | | | For example exynos9820 doesn't provide a LED. Change-Id: I745f179fae52816c915833321123c8f49ba0a7d2
* samsung: doze: Clean up proguard flagsBruno Martins2020-03-201-6/+0
| | | | Change-Id: If0250fb629417d36c2af7286bc0620e682c4576e
* samsung: Doze: Migrate to androidxBruno Martins2020-03-202-11/+5
| | | | Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f
* samsung: doze: Set LOCAL_PRIVATE_PLATFORM_APISAnton Hansson2020-03-201-0/+1
| | | | | | | | | | | | | | | This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Bug: 73535841 Change-Id: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0
* samsung: doze: Rename to avoid conflicts with AdvancedDisplayPaul Keith2020-03-206-6/+6
| | | | Change-Id: I669835f3563b9eea4fce6db45552c0e3a0888911
* samsung: doze: Re-integrate into SettingsBruno Martins2020-03-206-61/+62
| | | | | | | | | | | | | | * Apply the default Oreo theme and inherit the layouts from Google for the Settings app, in order to keep UI consistency. * Get rid of SettingsDrawerActivity as it no longer fits in and include the back button in the action bar. * Kill the icon drawable not only because is a leftover, but also doesn't really serve any puropose in the new UI. Change-Id: I71ea2c118dcfd387904d04516572902babb16e35
* samsung: doze: Build with AAPT2Bruno Martins2020-03-201-10/+7
| | | | Change-Id: Id0a60b490a504010dc8b3f16aa495044719a4062
* samsung: doze: Rebrand from cyanogenmod to lineageosArne Coucheron2020-03-208-12/+12
| | | | Change-Id: I619080f46a69a80fe3923cb3df6a676242f36eac
* samsung: doze: Remove extraneous meta-dataZhao Wei Liew2020-03-201-6/+0
| | | | | | We aren't using this currently, so get rid of it. Change-Id: I3f35f65ebfd9e41d646211b982f3272c2bfd519f
* samsung: doze: specify a qualified user to send the pulse broadcastSean hoyt2020-03-201-1/+3
| | | | | | | | | | | | | Should fix this: W/ContextImpl(3700): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:877 android.content.ContextWrapper.sendBroadcast:421 com.cyanogenmod.settings.device.SamsungDozeService.launchDozePulse:151 com.cyanogenmod.settings.device.SamsungDozeService.-wrap1:-1 com.cyanogenmod.settings.device.SamsungDozeService$SamsungProximitySensor.onSensorChanged:81 Change-Id: I680a57c9010d06719c3bd014001b00353f8e12fd
* samsung: doze: Protect com.android.systemui.doze.pulseGabriele M2020-03-201-0/+2
| | | | | | | | | As stated in ActivityManagerService: The vast majority of broadcasts sent from system internals should be protected to avoid security holes Change-Id: I1dc989d9d132d40835ca8dbf277285eb88e30a58
* Revert "Revert "samsung: doze: Add back button to action bar""Zhao Wei Liew2020-03-201-0/+12
| | | | | | | | | As of commit 8cd28f3bce5612d35c4b6196554c7e2846057310, this app no longer lives on the Settings dashboard. This reverts commit a75b016e61ef544abdadf4c5e7a508c04b18c8dc. Change-Id: If5b1fa89ddcc9de3c93217ef79189ad9ebd5193d
* samsung: doze: Move to display settingsZhao Wei Liew2020-03-201-6/+7
| | | | | | | Reduce the clutter on the dashboard and move the ambient display settings to where it belongs - in the display settings. Change-Id: Ib08cc799e9f58884465b1730ce794cbc8be080f9
* samsung: doze: Clean up ambient display pref dependenciesZhao Wei Liew2020-03-202-42/+7
| | | | | | | * Use SecureSettingSwitchPreference for Ambient Display * Use the XML preference dependency attribute Change-Id: I3480af71e334110aed834a53f49b33a853f16316
* samsung: doze: Commonize strings translationsAbhisek Devkota2020-03-204-39/+5
| | | | | | | | * Translations moved to the new project android_packages_resources_devicesettings Change-Id: I06536915e1963a2fe464c3d6c46dd8728aba0cb4 Signed-off-by: Adrian DC <radian.dc@gmail.com>
* samsung: doze: Improve Settings search UXZhao Wei Liew2020-03-202-4/+4
| | | | | | | | | | | | | | | | Currently, the preference titles are very vague and confusing, with no way for the user to understand what the preferences do at a glance (e.g. in Settings search). Make the purpose of the preferences more explicit through the titles. Also, the current drawable is colored white, when it should be colored green. This results in a near-invisible icon in the Settings search results. Color the drawable the appropriate teal instead. Change-Id: I2dac9a73e8689f14d676b41922e0eba364c6500f
* samsung: doze: Integrate with SettingsZhao Wei Liew2020-03-206-12/+93
| | | | | | | | Bring this up to speed on the Settings changes in N: * Use support libs for preferences * Hook up to Settings drawer through SettingsDrawerActivity Change-Id: I9365b3ebd1bbfed2936302e30da50e3f9af06665
* Revert "samsung: doze: Add back button to action bar"Zhao Wei Liew2020-03-201-15/+0
| | | | | | | | | Starting N, top-level Settings activities should a drawer menu up on the action bar. Remove the up/back button as it is now obsolete. This reverts commit 5cfd7e76cf8099ebd22f4580cac8ed2217c3ead4. Change-Id: I07af4c08a12bafbef424d01f62521cf226abbc2f
* samsung: doze: Use new mechanism to include tiles into settings dashboard.Danny Baumann2020-03-202-3/+38
| | | | Change-Id: I91cce3ee6faac16402c84f08e4957b1e3722eaa6
* samsung: doze: remove screen_gestures_panel_summaryKhasMek2020-03-202-4/+0
| | | | | | | | | The gestures settings are the only settings on the main screen to contain a summary line, and it looks extremely out of place. Change-Id: I2cacef71e8db204ab4380f77d9282009e0e5df03 Signed-off-by: KhasMek <Boushh@gmail.com>
* samsung: doze: use ScreenType util from cmsdkMichael Bestas2020-03-202-2/+5
| | | | Change-Id: I73b610bc71bf07b2fdedb1d5c5931e90f1e6de0f
* samsung: doze: fix typoDave Daynard2020-03-201-1/+1
| | | | Change-Id: Id7716387688080b5ce0a99a4d968e210d8eed6f9
* samsung: doze: properly fix future timestamp errorPatrick Lower2020-03-201-6/+1
| | | | | | | | | | | | | | Previously attempted fix at review.cyanogenmod.org/#/c/104083/ The timestamp isn't in the future, that would be impossible. The real issue is the timestamp from the SensorEvent is a true timestamp, the System.nanoTime is nanoseconds since boot. So the previous patch would always return false and never pulse. I've simply changed it so that the wakeup call gets sent the current System.nanoTime in milliseconds since boot so it does not think the event came from the future since the wakeUp method expects uptimeMillis, not true world time. Change-Id: I78f5e9d61107caf9c3bf6c10fa7c5bb400082294
* samsung: doze: Prevent a pm wakeup with a timestamp in the futureBrandon McAnsh2020-03-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Prevents: java.lang.IllegalArgumentException: event time must not be in the future at android.os.Parcel.readException(Parcel.java:1550) at android.os.Parcel.readException(Parcel.java:1499) at android.os.IPowerManager$Stub$Proxy.wakeUp(IPowerManager.java:550) at android.os.PowerManager.wakeUp(PowerManager.java:666) at com.cyanogenmod.settings.device.SamsungDozeService$SamsungProximitySensor.shouldPulse(SamsungDozeService.java:95) at com.cyanogenmod.settings.device.SamsungDozeService$SamsungProximitySensor.onSensorChanged(SamsungDozeService.java:75) at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent(SystemSensorManager.java:405) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:143) at android.os.Looper.loop(Looper.java:122) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) Change-Id: I8ed248271d67216e531b124bf27101fa538f1195 Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* samsung: restore proximity wake preference on bootDave Daynard2020-03-201-0/+1
| | | | Change-Id: I614772d6ff1005968a7f8f1ed0349e3878ddadf1
* samsung: doze: add proximity wakeDave Daynard2020-03-205-7/+52
| | | | Change-Id: Ib02f4611e7b8bc09d540ca5c49aab68ef27f188b
* samsung: doze: Add back button to action barluca0204002020-03-201-0/+15
| | | | Change-Id: Ia56183c8c2d5a6bc25c84f1d1b9823b84bc936c9
* samsung: doze: fix defaultsDave Daynard2020-03-201-4/+4
| | | | | | Change all defaults to false Change-Id: I2df507b2fc823d3fb07bce89d44067db565a5ab8
* samsung: doze: Consolidate doze settingsChristopher R. Palmer2020-03-203-11/+77
| | | | | | | * Allow user to disable ambient display from gesture panel * Disable/enable doze settings based on ambient display state Change-Id: I0ff7686ccc04037b3ada9a8355384ba6746cf30c
* samsung: doze: Set gesture to disabled by defaultArne Coucheron2020-03-201-1/+1
| | | | Change-Id: I0bf3f6a3a4c01bab7ff7522e916e2149f9cfe8d5
* samsung: doze: Add service for using proximity sensor for wake-upPatrick Lower2020-03-209-0/+387
| | | | | | | | | * Added custom service that uses proximity sensor in wake-up mode to trigger display on * If more sensor triggers are suitable to use, they can be added to the service Change-Id: Id0849fb5c17ff569d771a19cebfc579dc93dbc48
* samsung: move modemloader and wifiloader to /vendorDanny Wood2020-03-172-0/+2
| | | | | | | | | Init scripts and SEPolicy need updating after this change. Example on universal7580: https://review.lineageos.org/c/LineageOS/android_device_samsung_universal7580-common/+/264957 Change-Id: Ia1d8801a2b06eca89d05257e9c011799082c66a9