GitHub/LineageOS/android_hardware_samsung.git
4 years agohidl: powershare: add vintf manifest fragment
Linux4 [Fri, 22 May 2020 12:47:04 +0000 (14:47 +0200)]
hidl: powershare: add vintf manifest fragment

Change-Id: I7fddba246ce58127192b7cebcaa09da667e33c91

4 years agofingerprint: inscreen: add vintf manifest fragment
Jesse Chan [Thu, 21 May 2020 13:42:06 +0000 (21:42 +0800)]
fingerprint: inscreen: add vintf manifest fragment

Change-Id: Ie9579e4dea63fd8210f0d3a0a0fa41bd3202d352

4 years agoAutomatic translation import
Michael Bestas [Sat, 23 May 2020 15:20:03 +0000 (18:20 +0300)]
Automatic translation import

Change-Id: I7f11df70b63f3b068d9aac0d1e9ef1476f79c029

4 years agosensors: set max range of proximity sensor to 1
Jesse Chan [Sat, 16 May 2020 13:17:25 +0000 (21:17 +0800)]
sensors: set max range of proximity sensor to 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

4 years agofingerprint: inscreen: allow to set_fod_rect at boot
Jesse Chan [Fri, 8 May 2020 16:26:54 +0000 (00:26 +0800)]
fingerprint: inscreen: allow to set_fod_rect at boot

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>
4 years agofingerprint: inscreen: enable sensor on ShowFODView
Jesse Chan [Fri, 8 May 2020 16:08:23 +0000 (00:08 +0800)]
fingerprint: inscreen: enable sensor on ShowFODView

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>
4 years agosensors: get the full list of sensors
Andreas Schneider [Fri, 24 Apr 2020 14:57:08 +0000 (16:57 +0200)]
sensors: get the full list of sensors

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>
4 years agosensors: map Samsung proximity sensor type to generic
Willi Ye [Sun, 8 Sep 2019 16:23:04 +0000 (18:23 +0200)]
sensors: map Samsung proximity sensor type to generic

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>
4 years agosensors: get rid of com.samsung.permission.SSENSOR
Willi Ye [Sun, 8 Sep 2019 16:23:04 +0000 (18:23 +0200)]
sensors: get rid of com.samsung.permission.SSENSOR

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>
4 years agosensors: adapt and rebrand for hardware/samsung
Jesse Chan [Fri, 15 May 2020 13:48:07 +0000 (21:48 +0800)]
sensors: adapt and rebrand for hardware/samsung

Change-Id: I6c0521888ad60e5ecdd967809f91d0962a7c08a8
Signed-off-by: Jesse Chan <jc@lineageos.org>
4 years agosamsung: hidl: import default sensors HAL 1.0 impl
Jesse Chan [Fri, 15 May 2020 13:44:02 +0000 (21:44 +0800)]
samsung: hidl: import default sensors HAL 1.0 impl

hardware/interfaces/sensors/1.0/default from android-10.0.0_r35

Change-Id: Ide758984cd50b94382b320572ded7a62691aae52
Signed-off-by: Jesse Chan <jc@lineageos.org>
4 years agosamsung: hidl: add powershare
Linux4 [Mon, 20 Apr 2020 15:41:47 +0000 (17:41 +0200)]
samsung: hidl: add powershare

Change-Id: I7ebfc84674c3a29c7cca53861d71d3e9b94947fd

4 years agosamsung: hidl: fingerprint: Add inscreen support
Willi Ye [Wed, 13 Nov 2019 00:38:23 +0000 (01:38 +0100)]
samsung: hidl: fingerprint: Add inscreen support

Change-Id: I18e1835fd268d8b819f874029a88065d8be167bf

4 years agoAutomatic translation import
Michael Bestas [Thu, 23 Apr 2020 13:46:00 +0000 (16:46 +0300)]
Automatic translation import

Change-Id: I69cf83604c2915079978ca38f1654c02550c3e1d

4 years agosamsung: hidl: power: fixup setInteractive while display is on
Jan Altensen [Fri, 27 Mar 2020 15:40:28 +0000 (16:40 +0100)]
samsung: hidl: power: fixup setInteractive while display is on

Change-Id: I5cdf542650fa3baf416d5a1cb88cd7034efb407f

4 years agoAutomatic translation import
Michael Bestas [Mon, 30 Mar 2020 17:27:49 +0000 (20:27 +0300)]
Automatic translation import

Change-Id: Icf6cddef80717d18b8a7b5229f83c157484bcaad

4 years agosamsung: remove old power hal
Jan Altensen [Sun, 29 Mar 2020 16:53:01 +0000 (18:53 +0200)]
samsung: remove old power hal

 * a hidl replacement exist

Change-Id: I2df55148c1492a93f321e3b3a31f0704c071b9aa

4 years agohidl: Don't compile setNotificationLED if there is no blink node
Andreas Schneider [Fri, 13 Mar 2020 19:26:02 +0000 (20:26 +0100)]
hidl: Don't compile setNotificationLED if there is no blink node

For example exynos9820 doesn't provide a LED.

Change-Id: I745f179fae52816c915833321123c8f49ba0a7d2

4 years agosamsung: doze: Clean up proguard flags
Bruno Martins [Mon, 2 Sep 2019 09:15:57 +0000 (10:15 +0100)]
samsung: doze: Clean up proguard flags

Change-Id: If0250fb629417d36c2af7286bc0620e682c4576e

4 years agosamsung: Doze: Migrate to androidx
Bruno Martins [Tue, 9 Jul 2019 21:31:00 +0000 (22:31 +0100)]
samsung: Doze: Migrate to androidx

Change-Id: Ifaa67283a3437549a2304088a0ce377b399da19f

4 years agosamsung: doze: Set LOCAL_PRIVATE_PLATFORM_APIS
Anton Hansson [Wed, 21 Feb 2018 14:11:44 +0000 (14:11 +0000)]
samsung: doze: Set LOCAL_PRIVATE_PLATFORM_APIS

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

4 years agosamsung: doze: Rename to avoid conflicts with AdvancedDisplay
Paul Keith [Thu, 22 Feb 2018 00:55:15 +0000 (01:55 +0100)]
samsung: doze: Rename to avoid conflicts with AdvancedDisplay

Change-Id: I669835f3563b9eea4fce6db45552c0e3a0888911

4 years agosamsung: doze: Re-integrate into Settings
Bruno Martins [Wed, 18 Oct 2017 01:10:01 +0000 (03:10 +0200)]
samsung: doze: Re-integrate into Settings

* 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

4 years agosamsung: doze: Build with AAPT2
Bruno Martins [Mon, 16 Oct 2017 00:33:15 +0000 (02:33 +0200)]
samsung: doze: Build with AAPT2

Change-Id: Id0a60b490a504010dc8b3f16aa495044719a4062

4 years agosamsung: doze: Rebrand from cyanogenmod to lineageos
Arne Coucheron [Sat, 14 Oct 2017 06:21:29 +0000 (08:21 +0200)]
samsung: doze: Rebrand from cyanogenmod to lineageos

Change-Id: I619080f46a69a80fe3923cb3df6a676242f36eac

4 years agosamsung: doze: Remove extraneous meta-data
Zhao Wei Liew [Tue, 24 Jan 2017 05:06:32 +0000 (13:06 +0800)]
samsung: doze: Remove extraneous meta-data

We aren't using this currently, so get rid of it.

Change-Id: I3f35f65ebfd9e41d646211b982f3272c2bfd519f

4 years agosamsung: doze: specify a qualified user to send the pulse broadcast
Sean hoyt [Tue, 17 Jan 2017 07:13:21 +0000 (07:13 +0000)]
samsung: doze: specify a qualified user to send the pulse broadcast

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

4 years agosamsung: doze: Protect com.android.systemui.doze.pulse
Gabriele M [Thu, 10 Nov 2016 22:19:44 +0000 (23:19 +0100)]
samsung: doze: Protect com.android.systemui.doze.pulse

As stated in ActivityManagerService:

  The vast majority of broadcasts sent from system internals
  should be protected to avoid security holes

Change-Id: I1dc989d9d132d40835ca8dbf277285eb88e30a58

4 years agoRevert "Revert "samsung: doze: Add back button to action bar""
Zhao Wei Liew [Sun, 15 Jan 2017 12:27:20 +0000 (12:27 +0000)]
Revert "Revert "samsung: doze: Add back button to action bar""

As of commit 8cd28f3bce5612d35c4b6196554c7e2846057310,
this app no longer lives on the Settings dashboard.

This reverts commit a75b016e61ef544abdadf4c5e7a508c04b18c8dc.

Change-Id: If5b1fa89ddcc9de3c93217ef79189ad9ebd5193d

4 years agosamsung: doze: Move to display settings
Zhao Wei Liew [Tue, 13 Dec 2016 04:03:32 +0000 (12:03 +0800)]
samsung: doze: Move to display settings

Reduce the clutter on the dashboard and move the ambient display
settings to where it belongs - in the display settings.

Change-Id: Ib08cc799e9f58884465b1730ce794cbc8be080f9

4 years agosamsung: doze: Clean up ambient display pref dependencies
Zhao Wei Liew [Thu, 13 Oct 2016 10:33:52 +0000 (18:33 +0800)]
samsung: doze: Clean up ambient display pref dependencies

 * Use SecureSettingSwitchPreference for Ambient Display
 * Use the XML preference dependency attribute

Change-Id: I3480af71e334110aed834a53f49b33a853f16316

4 years agosamsung: doze: Commonize strings translations
Abhisek Devkota [Thu, 24 Nov 2016 02:13:45 +0000 (18:13 -0800)]
samsung: doze: Commonize strings translations

 * Translations moved to the new project
    android_packages_resources_devicesettings

Change-Id: I06536915e1963a2fe464c3d6c46dd8728aba0cb4
Signed-off-by: Adrian DC <radian.dc@gmail.com>
4 years agosamsung: doze: Improve Settings search UX
Zhao Wei Liew [Sat, 8 Oct 2016 05:12:19 +0000 (13:12 +0800)]
samsung: doze: Improve Settings search UX

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

4 years agosamsung: doze: Integrate with Settings
Zhao Wei Liew [Wed, 7 Sep 2016 10:20:51 +0000 (18:20 +0800)]
samsung:  doze: Integrate with Settings

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

4 years agoRevert "samsung: doze: Add back button to action bar"
Zhao Wei Liew [Sat, 3 Sep 2016 09:41:48 +0000 (17:41 +0800)]
Revert "samsung: doze: Add back button to action bar"

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

4 years agosamsung: doze: Use new mechanism to include tiles into settings dashboard.
Danny Baumann [Wed, 16 Mar 2016 15:19:00 +0000 (10:19 -0500)]
samsung: doze: Use new mechanism to include tiles into settings dashboard.

Change-Id: I91cce3ee6faac16402c84f08e4957b1e3722eaa6

4 years agosamsung: doze: remove screen_gestures_panel_summary
KhasMek [Thu, 31 Dec 2015 15:38:04 +0000 (08:38 -0700)]
samsung: doze: remove screen_gestures_panel_summary

  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>
4 years agosamsung: doze: use ScreenType util from cmsdk
Michael Bestas [Tue, 1 Dec 2015 22:24:07 +0000 (16:24 -0600)]
samsung: doze: use ScreenType util from cmsdk

Change-Id: I73b610bc71bf07b2fdedb1d5c5931e90f1e6de0f

4 years agosamsung: doze: fix typo
Dave Daynard [Wed, 9 Sep 2015 02:56:10 +0000 (22:56 -0400)]
samsung: doze: fix typo

Change-Id: Id7716387688080b5ce0a99a4d968e210d8eed6f9

4 years agosamsung: doze: properly fix future timestamp error
Patrick Lower [Wed, 5 Aug 2015 14:51:03 +0000 (10:51 -0400)]
samsung: doze: properly fix future timestamp error

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

4 years agosamsung: doze: Prevent a pm wakeup with a timestamp in the future
Brandon McAnsh [Fri, 24 Jul 2015 19:40:45 +0000 (15:40 -0400)]
samsung: doze: Prevent a pm wakeup with a timestamp in the future

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>
4 years agosamsung: restore proximity wake preference on boot
Dave Daynard [Sat, 4 Jul 2015 17:44:53 +0000 (13:44 -0400)]
samsung: restore proximity wake preference on boot

Change-Id: I614772d6ff1005968a7f8f1ed0349e3878ddadf1

4 years agosamsung: doze: add proximity wake
Dave Daynard [Mon, 25 May 2015 16:54:00 +0000 (12:54 -0400)]
samsung: doze: add proximity wake

Change-Id: Ib02f4611e7b8bc09d540ca5c49aab68ef27f188b

4 years agosamsung: doze: Add back button to action bar
luca020400 [Sun, 24 May 2015 22:47:17 +0000 (15:47 -0700)]
samsung: doze: Add back button to action bar

Change-Id: Ia56183c8c2d5a6bc25c84f1d1b9823b84bc936c9

4 years agosamsung: doze: fix defaults
Dave Daynard [Sat, 23 May 2015 22:29:13 +0000 (18:29 -0400)]
samsung: doze: fix defaults

Change all defaults to false

Change-Id: I2df507b2fc823d3fb07bce89d44067db565a5ab8

4 years agosamsung: doze: Consolidate doze settings
Christopher R. Palmer [Sat, 23 May 2015 18:42:49 +0000 (11:42 -0700)]
samsung: doze: Consolidate doze settings

* Allow user to disable ambient display from gesture panel
* Disable/enable doze settings based on ambient display state

Change-Id: I0ff7686ccc04037b3ada9a8355384ba6746cf30c

4 years agosamsung: doze: Set gesture to disabled by default
Arne Coucheron [Tue, 19 May 2015 22:56:19 +0000 (00:56 +0200)]
samsung: doze: Set gesture to disabled by default

Change-Id: I0bf3f6a3a4c01bab7ff7522e916e2149f9cfe8d5

4 years agosamsung: doze: Add service for using proximity sensor for wake-up
Patrick Lower [Mon, 11 May 2015 20:14:17 +0000 (16:14 -0400)]
samsung: doze: Add service for using proximity sensor for wake-up

* 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

4 years agosamsung: move modemloader and wifiloader to /vendor
Danny Wood [Fri, 29 Nov 2019 13:48:37 +0000 (13:48 +0000)]
samsung: move modemloader and wifiloader to /vendor

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

4 years agosamsung: hidl: add exynos hidl power hal
Jan Altensen [Sat, 1 Feb 2020 05:21:33 +0000 (06:21 +0100)]
samsung: hidl: add exynos hidl power hal

Change-Id: I993353943dd1be7104b6790bfd2d73cd6f63260a

4 years agosamsung: hidl: fingerprint: call cancel on fingerprint enrollment completion
Danny Wood [Sat, 22 Feb 2020 06:36:04 +0000 (06:36 +0000)]
samsung: hidl: fingerprint: call cancel on fingerprint enrollment completion

Change-Id: I288613b772e3b31b86c7dffd5903dbe21ce5d5a9

4 years agosamsung: hidl: fingerprint: call notify on cancel
Jan Altensen [Wed, 21 Aug 2019 21:34:48 +0000 (23:34 +0200)]
samsung: hidl: fingerprint: call notify on cancel

Change-Id: Idb1b3200e571c546441fa9c0cfd1a1728e165a96

4 years agosamsung: hidl: correct USES_PERCENTAGE_SAMPLES behaviour as previously it did nothing
Danny Wood [Mon, 23 Dec 2019 11:37:10 +0000 (11:37 +0000)]
samsung: hidl: correct USES_PERCENTAGE_SAMPLES behaviour as previously it did nothing

This fixes fingerprint on the SM-A510F and possibly other older Samsung devices when using the new
HIDL implementation

Change-Id: Ie8883d3d628e924a9b181b08681388cd05e5f325

4 years agosamsung: remove old consumerir hal
Jan Altensen [Fri, 31 Jan 2020 14:56:59 +0000 (15:56 +0100)]
samsung: remove old consumerir hal

Change-Id: I5d6a51bf1fee6a196b11e67b267c90643831a42c

4 years agosamsung: hidl: add vibrator HAL for SEC Haptic Engine
Jesse Chan [Thu, 3 May 2018 00:09:59 +0000 (17:09 -0700)]
samsung: hidl: add vibrator HAL for SEC Haptic Engine

Change-Id: I758b40deb4e0b8bfda1aa9a24c27207d3f3d7dbe

4 years agosamsung: hidl: light: use StringPrintf
Jan Altensen [Mon, 3 Feb 2020 17:57:34 +0000 (18:57 +0100)]
samsung: hidl: light: use StringPrintf

Change-Id: I3f36a92f04b254770a768623a2d957729fa87150

4 years agohidl: consumerir: Fill in implementation for IR hal
Paul Keith [Tue, 28 Jan 2020 02:19:53 +0000 (20:19 -0600)]
hidl: consumerir: Fill in implementation for IR hal

Change-Id: I0b69cce74a6fce9bf720508c279df67c49641c49

4 years agohidl: consumerir: Update samsung_consumerir header for HIDL hal
Paul Keith [Tue, 28 Jan 2020 02:19:45 +0000 (20:19 -0600)]
hidl: consumerir: Update samsung_consumerir header for HIDL hal

Change-Id: Ife68fd0ccd65eb16241694bbf911fc6810f7dd80

4 years agohidl: consumerir: Add legacy samsung_consumerir header
Paul Keith [Tue, 28 Jan 2020 02:19:37 +0000 (20:19 -0600)]
hidl: consumerir: Add legacy samsung_consumerir header

Change-Id: I5eba753669b7c8ae6e63cb235cc16bf362c6c051

4 years agohidl: consumerir: Setup boilerplate code for HIDL hal
Paul Keith [Tue, 28 Jan 2020 02:19:30 +0000 (20:19 -0600)]
hidl: consumerir: Setup boilerplate code for HIDL hal

Change-Id: I5347b6b7d2b12f4f5ae0990503e50f22850746fb

4 years agohidl: consumerir: Add autogenerated HIDL impl and blueprint
Paul Keith [Tue, 28 Jan 2020 02:19:23 +0000 (20:19 -0600)]
hidl: consumerir: Add autogenerated HIDL impl and blueprint

* Using the commands:
 - hidl-gen -p ../.. -o hidl/consumerir -r android.hardware:hardware/interfaces android.hardware.ir@1.0 -L androidbp-impl
 - hidl-gen -p ../.. -o hidl/consumerir -r android.hardware:hardware/interfaces android.hardware.ir@1.0 -L c++-impl

Change-Id: I4079d2a7b50bdb6e9b9389892bce2a9e881db039

4 years agosamsung: Replace clang-format with symlink.
Steven Moreland [Wed, 16 Jan 2019 00:56:32 +0000 (16:56 -0800)]
samsung: Replace clang-format with symlink.

Automatic consistency.

Bug: 122835115
Test: manual
Change-Id: I6583f9f7923a822aa11f1839fbf375c1063a89c6

4 years agosamsung: move livedisplay and touch from lineagehw to hidl folder
Jan Altensen [Mon, 27 Jan 2020 23:06:47 +0000 (00:06 +0100)]
samsung: move livedisplay and touch from lineagehw to hidl folder

 * to keep all hidl things in one place

Change-Id: I91e4918191781e697b0c6c6e5cfe5dbe72ea5e59

4 years agosamsung: Remove devicesettings resources from lineage.dependencies
LuK1337 [Wed, 22 Jan 2020 23:40:21 +0000 (00:40 +0100)]
samsung: Remove devicesettings resources from lineage.dependencies

* Synced by default since LineageOS/android@9bd031c

Change-Id: I822298f856f4d1012f847a8be311310f5e51f2bb

4 years agosamsung: add radio 1.3 service lineage-17.0
Willi Ye [Tue, 22 Oct 2019 20:48:05 +0000 (22:48 +0200)]
samsung: add radio 1.3 service

Change-Id: I9b8710c5f322ec928a2106072f002eaf0ecd7e82

4 years agosamsung: power: dont depend on liblights_helper
Jan Altensen [Tue, 26 Nov 2019 19:34:28 +0000 (20:34 +0100)]
samsung: power: dont depend on liblights_helper

 * this is partially a revert of 1226350ee7101a4dc42a4903e148f17c4bd54e4b

Change-Id: I0ab7f6dc7642f7778f802e18b2f2dda7c11d9b3b

4 years agosamsung: remove old fingerprint and lights hal
Jan Altensen [Tue, 26 Nov 2019 18:47:02 +0000 (19:47 +0100)]
samsung: remove old fingerprint and lights hal

 * there are hidl replacements available, use them

Change-Id: I36243259627aeb76c2dfbfc2b6b4e219c509cfb5

5 years agosamsung: remove old lineagehw java classes
Jan Altensen [Sat, 7 Sep 2019 19:15:44 +0000 (21:15 +0200)]
samsung: remove old lineagehw java classes

Change-Id: I69f3aeb20382c49c7e928d6d6f41f016adfbc9b1

5 years agosamsung: audio: Add libprocessgroup dependency to set_sched_policy users
Suren Baghdasaryan [Fri, 21 Dec 2018 23:07:18 +0000 (15:07 -0800)]
samsung: audio: Add libprocessgroup dependency to set_sched_policy users

Add libprocessgroup dependency to audio hal that uses set_sched_policy.
Include sched_policy_ctrl.h header which now contains set_sched_policy
definition.

Exempt-From-Owner-Approval: janitorial

Bug: 111307099
Test: builds, boots

Change-Id: I8286daed7065c405ca06e87c1b8f6f6c301dc388
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
5 years agosamsung: libril: Tuning of Binder buffer for rild.
Ruthwar Ambeer [Thu, 19 Jul 2018 10:23:23 +0000 (15:53 +0530)]
samsung: libril: Tuning of Binder buffer for rild.

Tuned the Binder buffer to 500KB as it is not
going to use the default allocated 1MB which
saves RAM for 32 bit processors.

Change-Id: Ifea2720f8e853643a37912c3459e923168677b1e
CRs-Fixed: 2283052

5 years agosamsung: Drop module eng tags
Erfan Abdi [Wed, 4 Sep 2019 12:50:32 +0000 (17:20 +0430)]
samsung: Drop module eng tags

Change-Id: I2e84d598b2412e617e5575bfdefd804612f76889

5 years agosamsung: hidl: Add fingerprint 2.1 HAL
Jan Altensen [Tue, 20 Aug 2019 21:20:25 +0000 (23:20 +0200)]
samsung: hidl: Add fingerprint 2.1 HAL

Change-Id: Ibd1b7fe7e1847ec28b2450fbf44cc740e5f364ef

5 years agosamsung: hidl: Add keymaster 4.0 HAL
LuK1337 [Sun, 18 Aug 2019 22:08:08 +0000 (00:08 +0200)]
samsung: hidl: Add keymaster 4.0 HAL

Change-Id: Ib754acda4b6f3e8d1911432523a9b06ba1509aa6

5 years agoloki: Standardize ifeq logic among makefiles
Nolen Johnson [Sun, 11 Aug 2019 20:46:48 +0000 (20:46 +0000)]
loki: Standardize ifeq logic among makefiles

* Also resolve a typo.

Change-Id: Ic32740db8a9216751b5735ad472a7fcc48e6a738

5 years agomkbootimg: Add Loki support
Nolen Johnson [Thu, 8 Aug 2019 03:56:48 +0000 (23:56 -0400)]
mkbootimg: Add Loki support

* I want my target-files built images to be Loki'd if the device
  needs Loki.
* With this, devices that rely on Loki can ship Lineage Recovery
  officially.
* Import loki_tool from: https://github.com/Stricted/android_external_loki.

Change-Id: I45ef363e05566268c8f24f7e8939a2d785478fbe

5 years agosamsung: hidl: light: battery has lowest priority
Jan Altensen [Wed, 7 Aug 2019 09:33:32 +0000 (11:33 +0200)]
samsung: hidl: light: battery has lowest priority

Change-Id: I90d61439f8a431f1836e439d34764b7eb7983db9

5 years agoAutomatic translation import
Michael Bestas [Sun, 4 Aug 2019 13:22:21 +0000 (16:22 +0300)]
Automatic translation import

Change-Id: Ieb32cc183acaf620e49ec4e2951e80df2ff6b694

5 years agosamsung: hidl: light service: Mark as shutdown critical
Steven Moreland [Fri, 16 Mar 2018 17:23:14 +0000 (18:23 +0100)]
samsung: hidl: light service: Mark as shutdown critical

Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
      including when an artificial 5s delay is inserted when
      the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3

5 years agosamsung: hidl: light_service: Add interface specification for lights hal
Steven Moreland [Fri, 5 Jan 2018 01:31:57 +0000 (02:31 +0100)]
samsung: hidl: light_service: Add interface specification for lights hal

So that init knows how to start it and to provide
an example of how to specify interfaces since there
are no lazy starting services on Pixel yet.

In order to make lights a lazy service, it would also
have to be marked as 'oneshot'.

Test: manually using Light as a lazy service
Bug: 64678982
Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355

5 years agolineagehw: hidl: livedisplay: run clang-format
Jan Altensen [Fri, 19 Jul 2019 23:01:03 +0000 (01:01 +0200)]
lineagehw: hidl: livedisplay: run clang-format

Change-Id: I2abd96bb87321c8cfb86aa155b5423665dfb5c2e

5 years agolineagehw: hidl: touch: run clang-format
Jan Altensen [Fri, 19 Jul 2019 23:00:46 +0000 (01:00 +0200)]
lineagehw: hidl: touch: run clang-format

Change-Id: If7126936fc4e0804c29061c7ecc706228654af15

5 years agohidl: add hidl lights hal
Jan Altensen [Tue, 9 Jul 2019 20:43:47 +0000 (22:43 +0200)]
hidl: add hidl lights hal

Change-Id: I333c8d3e20bb451d208f15661afc06ac47e1a377

5 years agohidl: livedisplay: Fix reading mode string comparison
LuK1337 [Wed, 10 Jul 2019 08:36:49 +0000 (10:36 +0200)]
hidl: livedisplay: Fix reading mode string comparison

* Since we are trimming the string it will
  never match one with trailing space at the end.

Change-Id: Iea76092112555ed8b858560f07ef8e88f0ff593b

5 years agoAutomatic translation import
Michael Bestas [Sat, 6 Jul 2019 08:57:26 +0000 (11:57 +0300)]
Automatic translation import

Change-Id: I7b217eb210fe710ba73511bcf96d9c4e4abe17bc

5 years agoAutomatic translation import
Michael Bestas [Sat, 8 Jun 2019 15:56:55 +0000 (18:56 +0300)]
Automatic translation import

Change-Id: I3c6060e02b5a290f9485994035750c96d9a5a118

5 years agohidl: livedisplay: Restore default display mode in DisplayModes constructor
LuK1337 [Fri, 24 May 2019 21:51:02 +0000 (23:51 +0200)]
hidl: livedisplay: Restore default display mode in DisplayModes constructor

Change-Id: I5a6303f7f67a8b6d35663d2d86346d585f367cd3

5 years agohidl: livedisplay: Move .displaymodedefault to /data/vendor/display
LuK1337 [Fri, 24 May 2019 21:30:00 +0000 (23:30 +0200)]
hidl: livedisplay: Move .displaymodedefault to /data/vendor/display

* By default hal_lineage_livedisplay_default does not
  have permissions to write to /data/misc.

Change-Id: I5599a5e6602ea326322328aeda1c6eb0411a5568

5 years agohidl: livedisplay: Add binderized service implementation
Jan Altensen [Sun, 20 Jan 2019 01:40:07 +0000 (02:40 +0100)]
hidl: livedisplay: Add binderized service implementation

* Change default ::implementation namespace to ::samsung
* Fill in required methods for used impls
* Cleanup passthrough code for used impls
* Remove unused impls
* Add and setup binderized service

Change-Id: I545a7c0ac8bf4fce04da73a0d39d4ac1938496f2

5 years agosamsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.livedisplay
Jan Altensen [Sun, 20 Jan 2019 00:40:51 +0000 (01:40 +0100)]
samsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.livedisplay

* Generated from hidl-gen with added LineageOS copyrights

Change-Id: I150c3a65b92586fa2715c0f8ef27d2bcc6ba5d70

5 years agohidl: touch: Add binderized service implementation
Paul Keith [Tue, 8 Jan 2019 23:11:40 +0000 (00:11 +0100)]
hidl: touch: Add binderized service implementation

* Change default ::implementation namespace to ::samsung
* Fill in required methods for used impls
* Cleanup passthrough code for used impls
* Add and setup binderized service

Change-Id: Iadc3b6e385233d103c3349ce31a08d6d040886c7

5 years agosamsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.touch
Paul Keith [Tue, 8 Jan 2019 22:45:03 +0000 (23:45 +0100)]
samsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.touch

* Generated from hidl-gen with added LineageOS copyrights

Change-Id: Ia1073b57ecbafee0e599788b1ead5cc4b2dbda57

5 years agoAutomatic translation import
Michael Bestas [Sun, 7 Apr 2019 18:57:34 +0000 (21:57 +0300)]
Automatic translation import

Change-Id: I9a691863f0f09b859ec07c1f421f5c41dc3fdbdd

5 years agoAutomatic translation import
Michael W [Sun, 10 Mar 2019 23:20:08 +0000 (00:20 +0100)]
Automatic translation import

Change-Id: Ic3b685df13f3fd3564b1301bfb1276f7c369196b

5 years agoAutomatic translation import
Michael Bestas [Tue, 26 Feb 2019 17:00:24 +0000 (19:00 +0200)]
Automatic translation import

Change-Id: I95f8b2c7aa1c76cef2d14b6b9c2e971cc5f66d46

5 years agoAdd anpother semco oui mapping
ivanmeler [Wed, 13 Feb 2019 15:30:38 +0000 (16:30 +0100)]
Add anpother semco oui mapping

Change-Id: Ie6d58fe13af35716a406feb262e6e18954c26c36

5 years agoaudio_hw: Prevent referencing input devices from empty list
Vasyl Gello [Sun, 1 Jul 2018 07:57:35 +0000 (10:57 +0300)]
audio_hw: Prevent referencing input devices from empty list

Fixes audioserver crash in in_get_capture_position() if PCM input
device was not properly opened.

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
Change-Id: I2f2d9bc8151cf61af112a9544268513effacacb5

5 years agoAudio: fix voip calls over bluetooth for Wolfson Microelectronics codecs.
stenkinevgeniy [Mon, 9 Jul 2018 14:48:19 +0000 (14:48 +0000)]
Audio: fix voip calls over bluetooth for Wolfson Microelectronics codecs.

Some devices, that using wm* codecs like i9500, t805, p601 and others
need open CP pcm's when using BT SCO in IN_COMMUNICATION mode.

Change-Id: I64935aabf1c52e66409e727f02752cd325f8ef58
Signed-off-by: stenkinevgeniy <stenkinevgeniy@gmail.com>
5 years agoAudio: fix voip calls over bluetooth headset.
stenkinevgeniy [Mon, 9 Jul 2018 11:20:36 +0000 (11:20 +0000)]
Audio: fix voip calls over bluetooth headset.

Current HAL start/stop bt_sco session only for incall mode -
rewrite logic to start/stop bt session when system switch to
one of the bluetooth devices.
Move bt_sco_active and pcm_sco_rx/tx to main audio_device structure.
Remove bt_sco_capture profile.

Change-Id: I7bbe4273f759e255bb857f8292f2921df31d4b0b
Signed-off-by: stenkinevgeniy <stenkinevgeniy@gmail.com>
5 years agoAudio: fix call recording.
stenkinevgeniy [Thu, 12 Jul 2018 05:55:33 +0000 (05:55 +0000)]
Audio: fix call recording.

Change-Id: I312d2a36009ec1415dd5ccba4fbb68ae4a10e2ab

5 years agoaudio: Re-worked sound pre- and post-processing
Basil Gello [Mon, 21 May 2018 15:29:12 +0000 (18:29 +0300)]
audio: Re-worked sound pre- and post-processing

In order to activate proprietary sound pre- and post-processing,
the following parts of audio HAL were revised:

* Activated ENABLE_PREPROCESSING directive in Android.mk
* Removed unused variables and functions
* Re-written set_preprocessor_echo_delay() function

Change-Id: I868087f422764895df7d2bc6bbf4bbd76672b8e7