Skip to content

Commit

Permalink
sdm845-common: Replace lineagehw implementation by HIDL services
Browse files Browse the repository at this point in the history
Move DisplayModeControl and SunlightEnhancement into a livedisplay
service, and TouchscreenGestures into a touch one.

Change-Id: I5f46671633a13ddc6733a47f4ea5a6515d6d6c98
  • Loading branch information
maniac103 authored and luca020400 committed Feb 4, 2019
1 parent eaa9bbc commit e3ee15e
Show file tree
Hide file tree
Showing 29 changed files with 702 additions and 356 deletions.
2 changes: 2 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
subdirs = [
"lights",
"livedisplay",
"touch",
"tri-state-key"
]
5 changes: 2 additions & 3 deletions BoardConfigCommon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ TARGET_USES_HWC2 := true
# DRM
TARGET_ENABLE_MEDIADRM_64 := true

# Lineage Hardware
JAVA_SOURCE_OVERLAYS := \
org.lineageos.hardware|$(COMMON_PATH)/lineagehw|**/*.java
# HIDL
DEVICE_FRAMEWORK_MANIFEST_FILE := $(COMMON_PATH)/framework_manifest.xml

# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
Expand Down
8 changes: 8 additions & 0 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
[email protected]_sdm845

# LiveDisplay
PRODUCT_PACKAGES += \
[email protected]_sdm845

# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
Expand All @@ -113,6 +117,10 @@ PRODUCT_PACKAGES += \
PRODUCT_BOOT_JARS += \
telephony-ext

# Touch
PRODUCT_PACKAGES += \
[email protected]_sdm845

# tri-state-key
PRODUCT_PACKAGES += \
KeyHandler \
Expand Down
24 changes: 24 additions & 0 deletions framework_manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<manifest version="1.0" type="framework">
<hal format="hidl">
<name>vendor.lineage.livedisplay</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IDisplayModes</name>
<instance>default</instance>
</interface>
<interface>
<name>ISunlightEnhancement</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.lineage.touch</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ITouchscreenGesture</name>
<instance>default</instance>
</interface>
</hal>
</manifest>
110 changes: 0 additions & 110 deletions lineagehw/src/org/lineageos/hardware/DisplayModeControl.java

This file was deleted.

86 changes: 0 additions & 86 deletions lineagehw/src/org/lineageos/hardware/SunlightEnhancement.java

This file was deleted.

119 changes: 0 additions & 119 deletions lineagehw/src/org/lineageos/hardware/TouchscreenGestures.java

This file was deleted.

11 changes: 11 additions & 0 deletions livedisplay/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
BasedOnStyle: Google
AccessModifierOffset: -2
AllowShortFunctionsOnASingleLine: Inline
ColumnLimit: 100
CommentPragmas: NOLINT:.*
DerivePointerAlignment: false
IndentWidth: 4
PointerAlignment: Left
TabWidth: 4
UseTab: Never
PenaltyExcessCharacter: 32
Loading

0 comments on commit e3ee15e

Please sign in to comment.