GitHub/LineageOS/android_hardware_samsung.git
7 years agopower: Make boostpulse_warned static
Christopher N. Hesse [Wed, 25 Jan 2017 21:41:05 +0000 (22:41 +0100)]
power: Make boostpulse_warned static

Change-Id: I8bd557c637402922702fcb75a1c0633947ded41a

7 years agopower: Remove unused local variables
Christopher N. Hesse [Mon, 16 Jan 2017 22:45:28 +0000 (23:45 +0100)]
power: Remove unused local variables

Change-Id: I8f45398eba884fee3c3833a67f37ffd28186cf24

7 years agopower: Consolidate verbose logging
Christopher N. Hesse [Mon, 16 Jan 2017 21:49:06 +0000 (22:49 +0100)]
power: Consolidate verbose logging

Change-Id: I8b2a5d9c625273220d43a3d39e6fd977bbc1247d

7 years agopower: Update module author
Christopher N. Hesse [Mon, 16 Jan 2017 21:47:59 +0000 (22:47 +0100)]
power: Update module author

Change-Id: I4ec64beb57729f5dd299ae04a68770e4f5943c61

7 years agopower: Remove outdated comments
Christopher N. Hesse [Mon, 16 Jan 2017 21:47:11 +0000 (22:47 +0100)]
power: Remove outdated comments

Always redirect to power.h for updated documentation.

Change-Id: I066f3b6f83483bdf3a0db315c1381c670df47b12

7 years agoliblights: Check for hardware support on HAL open
Christopher N. Hesse [Sat, 31 Dec 2016 16:14:47 +0000 (17:14 +0100)]
liblights: Check for hardware support on HAL open

Change-Id: I601a987914e1774c9d1d12574f143f19f22b12e9

7 years agopower: Get panel backlight brightness from lights helper
Christopher N. Hesse [Wed, 7 Dec 2016 11:18:20 +0000 (12:18 +0100)]
power: Get panel backlight brightness from lights helper

Change-Id: I3f28fc4abac947cc4a30d95ba74f45bf24c12c20

7 years agoliblights: Expose panel brightness in helper lib
Christopher N. Hesse [Wed, 7 Dec 2016 11:12:23 +0000 (12:12 +0100)]
liblights: Expose panel brightness in helper lib

Change-Id: I810166818eac84466dfe2c4b88dff47e83a181c0

7 years agopower: Allow devices to override node paths
Christopher N. Hesse [Wed, 7 Dec 2016 11:21:44 +0000 (12:21 +0100)]
power: Allow devices to override node paths

Change-Id: Ida7f41ddce2ef458cc77348c0b44ec0a7a86df72

7 years agoliblights: Scale brightness if necessary
Christopher N. Hesse [Mon, 5 Dec 2016 21:11:55 +0000 (22:11 +0100)]
liblights: Scale brightness if necessary

Change-Id: Ia9fdbe0c0f709e8e2e16f9cd2fb757c6f53e7c50

7 years agoliblights: Allow devices to override node paths
Christopher N. Hesse [Thu, 1 Dec 2016 14:51:12 +0000 (15:51 +0100)]
liblights: Allow devices to override node paths

 * Update the copyrights while we're at it.

Change-Id: Ie1bbf1f5150428a47baf6615f32d703d578efb82

7 years agopower: Fix unused argument
Christopher N. Hesse [Fri, 18 Nov 2016 17:59:06 +0000 (18:59 +0100)]
power: Fix unused argument

Change-Id: Ia4048aa48b32ea344c303ca24289ade1b7dfae7a

7 years agopower: Simplify read_panel_brightness()
Christopher N. Hesse [Fri, 18 Nov 2016 17:56:17 +0000 (18:56 +0100)]
power: Simplify read_panel_brightness()

Overengineering.

Change-Id: Ifef79a7e8f2249fdd22099a043303f9686ac014b

7 years agoAutomatic translation import
Abhisek Devkota [Thu, 26 Jan 2017 23:04:58 +0000 (15:04 -0800)]
Automatic translation import

Change-Id: I7f1b4d176610ce04811ce2c608ecf8a8d3ed28a0

7 years agodtbhtool: Add LOCAL_MODULE_TAGS := optional
Paul Keith [Mon, 16 Jan 2017 16:48:08 +0000 (10:48 -0600)]
dtbhtool: Add LOCAL_MODULE_TAGS := optional

* This breaks building on devices that
  don't require the need of dtbhtool
* Also remove LOCAL_MODULE_TAGS := eng, to
  avoid requiring this on an eng build

Change-Id: Iad9296f46dd78c778ce1ce48d6722ed98bc27cd3
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
(cherry picked from commit 7598a16084a6aa1f708bea3c6448f824f73db851)

7 years agoAllow targets to build dtbhtool
Christopher N. Hesse [Wed, 4 Jan 2017 00:17:53 +0000 (01:17 +0100)]
Allow targets to build dtbhtool

Change-Id: Id31337de6acff43798a05acacaa0672c5737911f

7 years agodtbhtool: Rename unpackbootimg to avoid conflicts
Christopher N. Hesse [Wed, 4 Jan 2017 00:27:48 +0000 (01:27 +0100)]
dtbhtool: Rename unpackbootimg to avoid conflicts

Change-Id: Iee1146dc6eca01dc50ac3e41e0b12a41a33064c1

7 years agodtbhtool: Split out dtimg components
Christopher N. Hesse [Thu, 29 Dec 2016 23:11:33 +0000 (00:11 +0100)]
dtbhtool: Split out dtimg components

Factor out DT image creation code into a small host
library.

Create a new host binary which allows us to create
device tree blob (DTB) images.

Change-Id: I5424684ad467b952df8b2ccf3afbacdec03e88c9

7 years agodtbhtool: Move target defs to header
Christopher N. Hesse [Thu, 29 Dec 2016 19:32:22 +0000 (20:32 +0100)]
dtbhtool: Move target defs to header

Change-Id: Id1dcebe1abee087bb74d263c7537bc32d98f2380

7 years agodtbhtool: Fix missing PATH_MAX macro from limits.h
Christopher N. Hesse [Thu, 29 Dec 2016 20:24:37 +0000 (21:24 +0100)]
dtbhtool: Fix missing PATH_MAX macro from limits.h

Change-Id: Ie9cc147d6f4511d1fd696de7f8c58e01afdd079e

7 years agoSamsung Exynos DTBH device tree support
Ketut Putu Kumajaya [Tue, 24 Jun 2014 09:18:20 +0000 (16:18 +0700)]
Samsung Exynos DTBH device tree support

Change-Id: If5bee99b10c2b0fe55cc6eaf9143126be0cf70dd

7 years agoAdd signature support
Ketut Putu Kumajaya [Mon, 23 Jun 2014 13:18:46 +0000 (20:18 +0700)]
Add signature support

Change-Id: Idf5b6144b78e156e6c77e656cfe14097750259e5

7 years agoInitial commit, from CM's system/core
Ketut Putu Kumajaya [Mon, 23 Jun 2014 13:05:33 +0000 (20:05 +0700)]
Initial commit, from CM's system/core

Change-Id: I9bcf09859a7171e4fbb869b1d2818b31b2677207
(cherry picked from commit 6384637a7c45be53c3478740ac643ae518c02450)

7 years agomacloader : add murata MAC addresses
RGIB [Fri, 23 Dec 2016 00:24:38 +0000 (01:24 +0100)]
macloader : add murata MAC addresses

Change-Id: I6de212f3eb0e53b60db548629653acbd40744d1f

7 years agoAutomatic translation import
blinky@build01 [Thu, 22 Dec 2016 01:20:27 +0000 (17:20 -0800)]
Automatic translation import

Change-Id: Iddc34d12708397ce3aac22c24727ae6f7a54b320
Ticket: -

7 years agoAutomatic translation import
clyde@build01 [Wed, 21 Dec 2016 01:09:55 +0000 (17:09 -0800)]
Automatic translation import

Change-Id: I03c76f153c3cd6b0637fc715f4e9bf2399c6ab4f
Ticket: -

7 years agomacloader : add n5120 murata MAC address
RGIB [Sun, 11 Dec 2016 14:08:09 +0000 (15:08 +0100)]
macloader : add n5120 murata MAC address

Change-Id: I617eba4abfe9ad2088aaeb740e4deccce439c569

7 years agomacloader : add n5110 murata MAC address
RGIB [Sat, 10 Dec 2016 10:37:34 +0000 (11:37 +0100)]
macloader : add n5110 murata MAC address

Change-Id: Ie7f71f4e678eb69b7d1942f5ee31127b2091715a

8 years agoAutomatic translation import
inky@build01 [Tue, 29 Nov 2016 17:40:31 +0000 (09:40 -0800)]
Automatic translation import

Change-Id: I2058ccb4d4c9fb5fe41b5bd6590ad9cc1181414c
Ticket: -

8 years agopower: Update DT2W_PATH
ishantvivek [Mon, 21 Nov 2016 06:05:47 +0000 (06:05 +0000)]
power: Update DT2W_PATH

* TARGET_TAP_TO_WAKE_NODE is defined in if condition. But in DT2W_PATH, TARGET_DT2W_PATH is defined. Why?
* Use same flag for both, otherwise we need to define two flags for the dt2w path.
* Use TARGET_TAP_TO_WAKE_NODE instead of TARGET_DT2W_PATH, for similarity with qcom powerHAL.

Change-Id: I87cbdc3f2aa1a3f9f6509580f2c1f001129a0fda
(cherry picked from commit 987dcca8254f68461016e700c8bd8c956eaac2e2)

8 years agomacloader: add another semco3rd OUI for klte (SM-G900F)
Cal Archer [Fri, 14 Oct 2016 19:17:23 +0000 (21:17 +0200)]
macloader: add another semco3rd OUI for klte (SM-G900F)

Change-Id: I669a4cab0fba92c4ac5d4bd1c496634d06aa4a40

8 years agoAutomatic translation import
pinky@build01 [Sun, 28 Aug 2016 03:33:10 +0000 (20:33 -0700)]
Automatic translation import

Change-Id: If6ff6c2400cacf2b36a9798d1fae5945ca0c80b6
Ticket: -

8 years agoAutomatic translation import
pinky@build01 [Sat, 27 Aug 2016 21:23:14 +0000 (14:23 -0700)]
Automatic translation import

Change-Id: I11aa5f0a63d05c91868b1a1a2ed0391fa1c3d5b6
Ticket: -

8 years agolibril: Remove unused include stable/cm-13.0-ZNH5Y
Christopher N. Hesse [Sat, 30 Jul 2016 17:47:13 +0000 (19:47 +0200)]
libril: Remove unused include

If someone needs this, it has to be fixed to read
TARGET_OUT_HEADERS (notice the extra 's').
We are only getting away with it right now because M ignores empty
include paths, but N will barf on this.

Change-Id: I7f010398a40ebaf6811a58a121590944445fbcba

8 years agoDisplayModeControl: Add null check to setMode()
Kevin F. Haggerty [Tue, 19 Jul 2016 04:21:29 +0000 (22:21 -0600)]
DisplayModeControl: Add null check to setMode()

* getCurrentMode() can return null. Don't let setMode() try set a
  null mode because bad things happen.
* Let's make cmhw safe again (groan, I know that one was bad)

Change-Id: I20bdee4a0e8cbb0598f35770d71902332db51ddb

8 years agoUnbreak AdvancedDisplay
Luca Stefani [Fri, 15 Jul 2016 15:55:11 +0000 (08:55 -0700)]
Unbreak AdvancedDisplay

Change-Id: I546ad32983d9f6250319cf36a8ea528ee8473763

8 years agoAutomatic translation import
blinky@build01 [Thu, 14 Jul 2016 16:38:55 +0000 (09:38 -0700)]
Automatic translation import

Change-Id: I45a29ea2169735036b2fc2dbaeab822f4e6a68ce
Ticket: -

8 years agoAutomatic translation import
pinky@build01 [Wed, 13 Jul 2016 17:01:49 +0000 (10:01 -0700)]
Automatic translation import

Change-Id: I65fff5aaeb44f5b5e2a26c99b8a179660e0509ea
Ticket: -

8 years agopower: Add double tap to wake support
Christopher N. Hesse [Wed, 22 Jun 2016 21:04:39 +0000 (23:04 +0200)]
power: Add double tap to wake support

Change-Id: Icb0b6d442544b39576ec74e70e97751d6bc70590

8 years agoAdvancedDisplay: Fix build error
Arne Coucheron [Wed, 13 Jul 2016 05:05:45 +0000 (07:05 +0200)]
AdvancedDisplay: Fix build error

Change-Id: Ic0bac704bcf0b9bbcc374765db7df8b339bd1d42

8 years agopower: Fix compilation failure
Ethan Chen [Wed, 13 Jul 2016 01:38:00 +0000 (18:38 -0700)]
power: Fix compilation failure

Change-Id: Ib0923ba5c0976e2d00e6f190b370936a14a9b6df

8 years agopower: Fix I/O business parameter setting
Christopher N. Hesse [Mon, 11 Jul 2016 13:49:49 +0000 (15:49 +0200)]
power: Fix I/O business parameter setting

This parameter should be set even if we bail out early.

Change-Id: Iae78a13db229538960f1c7ec4c1f95f530810d71

8 years agopower: Add support for auto power modes
Christopher N. Hesse [Mon, 11 Jul 2016 13:48:35 +0000 (15:48 +0200)]
power: Add support for auto power modes

Do not disable input devices in case of the screen still
being enabled.

Change-Id: Ide6bd7ca3d41ac64b472c5e68fdc545c8f851b2b

8 years agocmhw: Add DisplayModeControl support
Zhao Wei Liew [Thu, 30 Jun 2016 10:47:22 +0000 (18:47 +0800)]
cmhw: Add DisplayModeControl support

Make use of LiveDisplay's implementation of display modes.

Remove AdvancedDisplay's display mode support as it duplicates
functionality provided by the CMHW implementation.

Based on Sean hoyt's original work on klmintwifi.

Change-Id: I455a8c764118adbdb997b2ba9145e24fecb8199b

8 years agohardware: Clean up CMHW and AdvancedDisplay
Zhao Wei Liew [Wed, 29 Jun 2016 12:21:59 +0000 (20:21 +0800)]
hardware: Clean up CMHW and AdvancedDisplay

 - Use CMSDK FileUtils
 - Simplify, yet harden checks
 - Use static final Strings
 - Remove unnecessary imports
 - Remove unnecessary Strings
 - Update copyright

Change-Id: Id2f0f2fdf5be7e2b29a3910a6aa56a3aad10868f

8 years agoexynos: multimedia: implement proper EOS signalling for encoder
Dheeraj CVR [Sun, 27 Mar 2016 13:31:41 +0000 (17:31 +0400)]
exynos: multimedia: implement proper EOS signalling for encoder

Change-Id: Ib1e33f9c9c6ee2bfe0280f1b73d731e3191aa56d

8 years agoliblights: Add BLN support
Arnab Chaudhuri [Sat, 7 May 2016 09:14:00 +0000 (14:44 +0530)]
liblights: Add BLN support

Change-Id: I859416c484777fcf08b5bf8f72ba9f9838e4c1b3

8 years agoAutomatic translation import
Michael Bestas [Sat, 16 Apr 2016 14:52:54 +0000 (17:52 +0300)]
Automatic translation import

Change-Id: I7ef909edb8aef366d7b03c05b0b36e96df531888

8 years agoexynos4: gralloc: we have an ALIGN macro, use it
Simon Shields [Fri, 15 Apr 2016 12:44:30 +0000 (22:44 +1000)]
exynos4: gralloc: we have an ALIGN macro, use it

Change-Id: I1ef089b004d1d1e3f2ae525638954536ca881c7a

8 years agoril: Restore alphabetical order for modem barrier
Christopher N. Hesse [Fri, 15 Apr 2016 16:38:35 +0000 (18:38 +0200)]
ril: Restore alphabetical order for modem barrier

Change-Id: Iae8f7cb6500c16d5b88d8e60d4e7e97ee6539a19

8 years agolibril: add initial support for tss310 modem
messi2050 [Thu, 14 Apr 2016 16:42:26 +0000 (22:12 +0530)]
libril: add initial support for tss310 modem

 - j7elte use tss310

Change-Id: I9bea333de037d4d1c8a9bc2111a3455f56b61c9a
Signed-off-by: messi2050 <mino_forever@yahoo.com>
8 years agolibril: Use a board flag for video call field
Andreas Schneider [Fri, 1 Apr 2016 19:19:59 +0000 (21:19 +0200)]
libril: Use a board flag for video call field

xmm7260 on SLTE doesn't have this flag anymore. Devices which need it
should specify the flag.

Change-Id: I166f579274667919756d3bb90e0b182165525975
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
8 years agoAutomatic translation import
Michael Bestas [Tue, 5 Apr 2016 22:25:38 +0000 (01:25 +0300)]
Automatic translation import

Change-Id: Id8e0b97763e94e1c8108e75cd94de03d422748ec

8 years agolibril: Remove RIL_REQUEST_DIAL_EMERGENCY
Christopher N. Hesse [Sun, 27 Mar 2016 19:31:04 +0000 (21:31 +0200)]
libril: Remove RIL_REQUEST_DIAL_EMERGENCY

This is not part of the standard API, so remove it.
Samsung devices almost always use the RIL_REQUEST_DIAL_EMERGENCY_CALL
hook, so devices should implement that in their specific RIL subclass.

Change-Id: I2cf9eee00a4b5b02e998d8efcbefa87a9ca7b7b4

8 years agoril: fix libril if we don't overwrite the header in our device tree
Andreas Blaesius [Mon, 28 Mar 2016 22:44:45 +0000 (00:44 +0200)]
ril: fix libril if we don't overwrite the header in our device tree

Change-Id: Ic580b80b28c738828f4c19aeb54421d9f98c7d40

8 years agolibril: Move vendor commands header
Christopher N. Hesse [Sun, 27 Mar 2016 19:04:38 +0000 (21:04 +0200)]
libril: Move vendor commands header

Devices can now override this header in the device tree.

Change-Id: I6e3814342ee22513e556ba92264b0c2651722af3

8 years agoAutomatic translation import
Michael Bestas [Sun, 27 Mar 2016 21:50:48 +0000 (00:50 +0300)]
Automatic translation import

Change-Id: I9f757393f0b772d813db58fe42bff9fbc1826ad1

8 years agoMove Advanced Display so exynos5/7 can use it
deadman96385 [Mon, 21 Mar 2016 19:21:38 +0000 (14:21 -0500)]
Move Advanced Display so exynos5/7 can use it

Change-Id: Idc255301f30cff6b41d04db6f14fa421ee9eddb5

8 years agoexynos4: squash opensource libUMP
Javi Ferrer [Thu, 20 Nov 2014 22:35:51 +0000 (04:05 +0530)]
exynos4: squash opensource libUMP

commit f40eeecbe44ee3ca5f4406e8881f6ffe1507d87c
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:41:30 2014 +0530

    exynos4: libUMP: fix headers for newer mali driver

    Change-Id: Ia81fa1949d04d809b4c5045269a70d7bab758f4a

commit 8c3792c590c0591647ab5ab59ff74d11e5f8afdd
Author: Dheeraj CVR <cvr.dheeraj@gmail.com>
Date:   Sun Dec 14 16:38:51 2014 +0530

    exynos4: libUMP: use relative include paths

    Change-Id: If46c68512d0404df0d46734531a6160eb18b7ce5

commit feb6f2c45d4f87655a2f391114946933a128e60c
Author: Javi Ferrer <javi.f.o@gmail.com>
Date:   Fri Nov 21 04:05:51 2014 +0530

    exynos4: open source libUMP

    - Deleted unneeded include ion.h
    - Correct libsecion build
    - Correct gralloc build and bring back ump_ref_drv_ion_import

Change-Id: I1da602ec77d78e5056ea0c37f328c6c1b0e60e00

8 years agoexynos4: commonize AdvancedDisplay [1/3]
Simon Shields [Fri, 18 Mar 2016 12:12:15 +0000 (23:12 +1100)]
exynos4: commonize AdvancedDisplay [1/3]

* show in settings
* drop support lib
* drop unnecessary viewpager/tab bar
* drop unused strings/resources

Change-Id: I90c62d7b106ad744ae698044f6f17a759fcbf8a3

8 years agomodemloader: Use hw.revision instead of ro.revision
Christopher N. Hesse [Tue, 15 Mar 2016 18:43:04 +0000 (19:43 +0100)]
modemloader: Use hw.revision instead of ro.revision

This change requires you to hexedit your cbd binary,
but in turn frees us from having to ignore ro.revision
in init.

Change-Id: I9c43fbbf5895888ea4bceff2a08a5ed8de77b921

8 years agomacloader: add n5100 murata wifi address stable/cm-13.0-ZNH0E
RGIB [Fri, 11 Mar 2016 14:56:23 +0000 (15:56 +0100)]
macloader: add n5100 murata wifi address

Change-Id: I8296825f3d17bfdaccfa990d45598652ab40faaa

8 years agolibsecril-client: Use the correct incall audio paths
Christopher N. Hesse [Tue, 8 Mar 2016 14:50:23 +0000 (15:50 +0100)]
libsecril-client: Use the correct incall audio paths

The modems used in recent Samsung devices use different paths
than older devices apparently.

These values were extracted from hexdumps at the correct data
positions from the device specific libsecril-client.so blobs.

Change-Id: I0547cb1de40130843fee3f1310e1e6aed95195c7

8 years agolibril: Make ST-E Thor M7450 and Intel XMM7260 next gen modems as well
Christopher N. Hesse [Mon, 22 Feb 2016 20:57:39 +0000 (21:57 +0100)]
libril: Make ST-E Thor M7450 and Intel XMM7260 next gen modems as well

Change-Id: I7cacda8cdaf9e285688c06c42ccf6629efc2af9d

8 years agopowerhal: Add set_profile support
Andreas Schneider [Wed, 3 Feb 2016 09:43:47 +0000 (10:43 +0100)]
powerhal: Add set_profile support

Change-Id: I0d7fb8c5a7e5e06c300cbb4b78b6e1013d7bff6a
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
8 years agomacloader: Add another SEMCO mac address half
Christopher N. Hesse [Mon, 29 Feb 2016 16:55:11 +0000 (17:55 +0100)]
macloader: Add another SEMCO mac address half

Order existing SEMCO values while we're at it.

Change-Id: I2b5c8a3e458cbcf41ea78eb953117a6779db2cc0

8 years agoFix memory leaks and use of uninitialized pointers.
Pavel Zhamaitsiak [Tue, 18 Aug 2015 18:40:01 +0000 (11:40 -0700)]
Fix memory leaks and use of uninitialized pointers.

Bug: 23187886
Change-Id: Ic15a02a902b591362b5c52c20afabe511fb0bbb7

8 years agoril: fix $(filter ...) derp
Simon Shields [Wed, 17 Feb 2016 10:10:26 +0000 (21:10 +1100)]
ril: fix $(filter ...) derp

Change-Id: Ic2be936268701bd5f40056e5993ef35f5bd3969d

8 years agoril: Group next gen Samsung modem's in same CFLAG
Brandon McAnsh [Sun, 14 Feb 2016 02:01:05 +0000 (21:01 -0500)]
ril: Group next gen Samsung modem's in same CFLAG

* Sprint variant of zeroflte uses mdm9x35 instead of ss333

Change-Id: Ifa7c1ea51dd57ea4fbeb41560c3a7c4fa65a85c8
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
8 years agocmhw: add SunlightEnhancement/MDNIE Outdoor mode support
Simon Shields [Tue, 9 Feb 2016 07:18:07 +0000 (18:18 +1100)]
cmhw: add SunlightEnhancement/MDNIE Outdoor mode support

Change-Id: I86ea442992a945cf6dcad939aa95f04caa72834c

8 years agolibril: add initial support for ss333 modem
Say [Sun, 13 Dec 2015 08:25:01 +0000 (17:25 +0900)]
libril: add initial support for ss333 modem

zeroflte uses ss333

Change-Id: If3c9d34ea31c06ce23bd8d0236a9f2ddbab3ddc4
Signed-off-by: Say <sktjdgns1189@naver.com>
8 years agopower: Ensure node_path is a string literal
Christopher N. Hesse [Mon, 1 Feb 2016 11:36:54 +0000 (12:36 +0100)]
power: Ensure node_path is a string literal

Change-Id: I20a87b04789e7fe2ae5938331e9d2fcef8134035

8 years agoInitial unified Samsung lights HAL
Christopher N. Hesse [Tue, 26 Jan 2016 11:17:55 +0000 (12:17 +0100)]
Initial unified Samsung lights HAL

Originally written by Andreas Schneider for Slte.

Change-Id: Iccff1e4532bc460896940451093470ece9086fb9

8 years agomodemloader: Fix compilation warnings
Andreas Schneider [Mon, 4 Jan 2016 12:59:17 +0000 (13:59 +0100)]
modemloader: Fix compilation warnings

Change-Id: I2c52b329cfe27e2df2f13213036b533c53e39d42

8 years agoInitial unified Samsung power HAL
Christopher N. Hesse [Mon, 21 Dec 2015 20:28:23 +0000 (21:28 +0100)]
Initial unified Samsung power HAL

This is a power HAL for non-qcom Samsung devices.

It currently supports standard multi-core systems as well as
big.LITTLE configurations.

This HAL auto-detects your touchscreen and touchkey input switches
and handles the interactive state requests.

I also implemented a check to make sure your touchkeys won't turn
on when they're not supposed to (for example when a CMHW class disables
the capacitive buttons and activates a software navigation solution).
This previously needed a kernel hack to make sure the touchkeys wouldn't
be activated when resuming from suspend.

Change-Id: I22888c5ac490c85c417c5457ea4f457f78ed3521

8 years agolibsecril-client: spell AUDIO correctly
Android-Andi [Thu, 7 Jan 2016 10:51:38 +0000 (11:51 +0100)]
libsecril-client: spell AUDIO correctly

Change-Id: I10c3a4bdeb71685049f641018d7a5ef593f999a6

8 years agoAllow all devices to build the modemloader
Christopher N. Hesse [Mon, 4 Jan 2016 10:52:28 +0000 (11:52 +0100)]
Allow all devices to build the modemloader

It's needed by all Samsung devices using the proprietary
cpboot-daemon service, which applies to more than just
the currently supported modems (e.g. Shannon and friends).

Change-Id: I1f96f9b9926e12428cce9fa6976422c8eb53887e

8 years agoInitial modemloader service
Christopher N. Hesse [Fri, 1 Jan 2016 15:36:37 +0000 (16:36 +0100)]
Initial modemloader service

Change-Id: Icef590f4af8032cb06dc2554c6c64d9db48b7c83

8 years agoAdd wifiloader
Andreas Schneider [Sat, 19 Dec 2015 13:29:21 +0000 (14:29 +0100)]
Add wifiloader

This is needed on some Samsung device to load the wifi module. Before
this was solved using a bash script which does:

  cat /proc/deferred_initcalls

but the new sepolicy rules don't allow init execute bash scripts. For
this we need a new tool which does the job and we can create sepolicy
rule for it.

Change-Id: I137cfaaff74955ad431bc09d74b0c970618dc3bf
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
8 years agoril: Unify network elements property check
Christopher N. Hesse [Sat, 12 Dec 2015 10:49:42 +0000 (11:49 +0100)]
ril: Unify network elements property check

frameworks/opt/telephony is using a slightly different named property
to check for the QANElements count.
Align the check here to the frameworks one to avoid redundancies.

Change-Id: I22f7cf070953026798d0ae4759e3c9845dba767c

8 years agoexynos: multimedia: speed up color conversion from ARGB8888 to YUV420SP
Dheeraj CVR [Sat, 30 May 2015 19:08:59 +0000 (23:08 +0400)]
exynos: multimedia: speed up color conversion from ARGB8888 to YUV420SP

Use NEON instructions for color conversion from ARGB8888 to YUV420SP. This
greatly improves performance and can help achieve 30fps+ framerates when
dealing with OMX_COLOR_FormatAndroidOpaque during Screen Recording and
Screen Casting.

Change-Id: Ifdaaf03e1ce6909822df3f046ef35dd977b84d17

9 years agolibgralloc: Fix refresh rate calculation
Caio Schnepper [Mon, 30 Nov 2015 13:05:10 +0000 (11:05 -0200)]
libgralloc: Fix refresh rate calculation

Calculated refresh rate can be 3% off
Reference: https://code.google.com/p/android/issues/detail?id=69391

Change-Id: I3b4efefcc0aef695ba48abdfb61f6d38b9d0a79c

9 years agolibril: fix compilation with debugging enabled
forkbomb [Mon, 23 Nov 2015 07:37:37 +0000 (18:37 +1100)]
libril: fix compilation with debugging enabled

Change-Id: Iac159175a23b2810e56c38fb82cae58c20dddb8e

9 years agosamsung: Compilation fixes
rogersb11 [Tue, 13 Oct 2015 02:03:21 +0000 (22:03 -0400)]
samsung: Compilation fixes

* Add missing headers
* Cast values to correct types

Change-Id: Iaf621c562e884daeb22f6ec700d6989ba6ba1aef

9 years agoril: Use debug log level and not error
Andreas Schneider [Fri, 23 Oct 2015 06:36:26 +0000 (08:36 +0200)]
ril: Use debug log level and not error

Change-Id: I8f017cb181967790260183fd06d1226d303bd2b8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agoril: Fix network operator search
Andreas Schneider [Thu, 22 Oct 2015 14:20:51 +0000 (16:20 +0200)]
ril: Fix network operator search

Newer RIL versions have more QAN elements so we need a way
to adjust them to the correct value.

This needs to be set to same value as mQANElements in the RIL Telephony
class.

Change-Id: Icfad9c0acf1b95f63c232b6c4c49ed52bd4e3aa4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
9 years agoexynos4: Fix build of hwc and gralloc
Caio Schnepper [Mon, 19 Oct 2015 23:06:03 +0000 (21:06 -0200)]
exynos4: Fix build of hwc and gralloc

HAL_PIXEL_FORMAT_RGBA_5551 and HAL_PIXEL_FORMAT_RGBA_4444 are used
by our hwc and gralloc, but they no longer exist in /system/core/include,
so we are moving these two formats to the hardware specific repo

Change-Id: I1c214af3b9819290173d2d60122d45a8ac635faf

9 years agoModify RIL Unsol Message Wakelock to 200ms
Nathan Harold [Tue, 28 Jul 2015 21:54:58 +0000 (14:54 -0700)]
Modify RIL Unsol Message Wakelock to 200ms

bug: 22456054

Change-Id: Id41e001f98b455bec5f004438f5d8498b17aaf2d

9 years agoModem activity info
Prerepa Viswanadham [Thu, 28 May 2015 07:37:32 +0000 (00:37 -0700)]
Modem activity info

Change-Id: Iab8fbdeae0867c6e9cb9027b08317b1b5a2c9dfc

9 years agoAdd missing extern "C" declaration.
Chih-Hung Hsieh [Wed, 6 May 2015 22:12:30 +0000 (15:12 -0700)]
Add missing extern "C" declaration.

BUG: 20891299
Change-Id: Iedfd2e8e5bd32014f011352898763bcc0887b6b9

9 years agoRemove verbose logs
Robert Greenwalt [Wed, 29 Apr 2015 23:57:39 +0000 (16:57 -0700)]
Remove verbose logs

Several things are redundent except for the fact
messages are reaching rilc.  Left in in case we need to debug
the layer, but blocked out with #if VDBG

Reduces startup logging to radio buffer by 20%

Change-Id: I95099457ea365ee108e7da8e1f81434531b6b9f0

9 years agoLink Capacity Estimation - RIL support
fenglu [Tue, 14 Apr 2015 21:53:55 +0000 (14:53 -0700)]
Link Capacity Estimation - RIL support

Change-Id: I9c4d4901d823d719be2b8bdec64f08eda342de53

9 years agoFix build issues after the merge
Vinit Deshpande [Wed, 15 Apr 2015 20:31:05 +0000 (13:31 -0700)]
Fix build issues after the merge

Change-Id: Ia856311187a0b2168cb859bd8b2300ff59df6569

9 years agolibril: tag RILC messages to radio log
Mark Salyzyn [Thu, 9 Apr 2015 14:18:35 +0000 (07:18 -0700)]
libril: tag RILC messages to radio log

Change-Id: Ia3234aa933249eb9f383c7e45c3f67b3c0c50634

9 years agoIntroduction of the new SAP-UIM socket
Dheeraj Shetty [Wed, 2 Jul 2014 19:27:57 +0000 (21:27 +0200)]
Introduction of the new SAP-UIM socket

Added new socket connection for communication between the SAP module
in Telephony and User Identity Module with DSDA support.

New classes added are:

RilSocket
---------
Base class(virtual) for any type of socket. Has listen
and commands callbacks similar to that of the existing
telephony->rild socket.

RilSapSocket
------------
Derived class for socket for communication between BT SAP
and the sim module in the modem. It initialises
socket, calls Sap_Uim_Init to get the handles and
starts the socket thread.

rilSocketQueue
--------------
Queue for managing socket requests.

Change-Id: I8828173941d6ae76f1f9cc0d567efaf41a77d175

9 years agoRemoval of dead code and adding log messages to make it easier
Nanik Tolaram [Tue, 3 Feb 2015 01:50:04 +0000 (12:50 +1100)]
Removal of dead code and adding log messages to make it easier
for debugging

- Add more logging using ALOGD(..) for function dispatchSmsWrite,
dispatchDial, dispatchSIM_IO, dispatchSIM_APDU, dispatchCallForward,
dispatchRaw and dispatchCdmaSmsAck. To make it easier for debugging.

- Remove commented log message inside wakeTimeoutCallback () function
and remove the else clause as it's dead not used for anything.

- Modify log message inside removeFromList and removeWatch using +
and - to make it consistent with the other log message.

Change-Id: Ife0212e6a4724d8b06a1dd767484bfdf98b8e1a6
Signed-off-by: Nanik Tolaram <nanikjava@gmail.com>
9 years agoWe have POSIX clocks.
Elliott Hughes [Fri, 9 Jan 2015 23:27:28 +0000 (15:27 -0800)]
We have POSIX clocks.

We're probably not running the RIL on a Mac.

Change-Id: Ib6be56cd26d67e2b72b559cb364b1e34ab613016

9 years agolibgralloc_ump: Fix build
Caio Schnepper [Wed, 14 Oct 2015 19:07:24 +0000 (16:07 -0300)]
libgralloc_ump: Fix build

Included legacy <pixelflinger/format.h> to continue
using "GGL_PIXEL_FORMAT_L_8" pixel format

Change-Id: If08f90333bbcd9857f0dbcb462aaf6e8ad4d689f

9 years agomacloader: Including missing errno header
Christopher N. Hesse [Wed, 16 Sep 2015 09:00:56 +0000 (11:00 +0200)]
macloader: Including missing errno header

Change-Id: I25ea307e4f4f8754563fc69f53db9e5c087c3bfb

9 years agomacloader: include errno.h
Caio Schnepper [Sat, 10 Oct 2015 05:14:28 +0000 (02:14 -0300)]
macloader: include errno.h

Fix build

Change-Id: Ib60f66ddc2065bc92cd32e507ae9f3a5023f54c2