Compare commits

...

7 Commits

Author SHA1 Message Date
Jenna-they-them f95bcad876 Merge branch 'lineage-21' of https://github.com/LineageOS/android_hardware_samsung into urubino 1 month ago
Ruchit 5ac489cda9
doze: mk->bp 1 month ago
LuK1337 219ef45832
dap: Migrate to SelectorWithWidgetPreference 1 month ago
Chaohui Wang 8fd19f2d7c
samsung: Migrate to CompoundButton.OnCheckedChangeListener 1 month ago
Peter Kalauskas 8b14999cd0
samsung: Enable use_resource_processor for all sysui deps 1 month ago
Bruno Martins 1548ce2f61 hidl: camera: Update dependencies for U QPR2 2 months ago
Michael Bestas fe1251795d aidl: Update dependencies for QPR2 2 months ago
  1. 4
      AdvancedDisplay/src/org/lineageos/settings/device/AdvancedDisplayActivity.java
  2. 1
      Android.mk
  3. 4
      aidl/fingerprint/Android.bp
  4. 4
      aidl/thermal/Android.bp
  5. 18
      dap/res/xml/dolby_settings.xml
  6. 3
      dap/src/org/lineageos/dap/DolbyActivity.kt
  7. 16
      dap/src/org/lineageos/dap/DolbyFragment.kt
  8. 28
      doze/Android.bp
  9. 33
      doze/Android.mk
  10. 4
      doze/src/org/lineageos/settings/doze/SamsungDozeActivity.java
  11. 8
      doze/src/org/lineageos/settings/doze/SamsungDozeSettings.java
  12. 5
      hidl/camera/default/Android.bp
  13. 1
      hidl/camera/device/3.2/default/Android.bp
  14. 1
      hidl/camera/device/3.4/default/Android.bp
  15. 1
      hidl/camera/device/3.5/default/Android.bp

@ -19,14 +19,14 @@ package org.lineageos.settings.device;
import android.os.Bundle;
import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
import com.android.settingslib.widget.R;
public class AdvancedDisplayActivity extends CollapsingToolbarBaseActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getFragmentManager().beginTransaction().replace(R.id.content_frame,
getFragmentManager().beginTransaction().replace(
com.android.settingslib.collapsingtoolbar.R.id.content_frame,
new AdvancedDisplayFragment()).commit();
}
}

@ -37,7 +37,6 @@ endif
ifeq ($(BOARD_VENDOR),samsung)
include $(SAM_ROOT)/audio/Android.mk
include $(SAM_ROOT)/doze/Android.mk
include $(SAM_ROOT)/hidl/Android.mk
include $(SAM_ROOT)/modemloader/Android.mk
include $(SAM_ROOT)/ril/Android.mk

@ -21,8 +21,8 @@ cc_binary {
"libbase",
"libbinder_ndk",
"libhardware",
"android.hardware.biometrics.fingerprint-V3-ndk",
"android.hardware.biometrics.common-V3-ndk",
"android.hardware.biometrics.fingerprint-V4-ndk",
"android.hardware.biometrics.common-V4-ndk",
"android.hardware.biometrics.common.util",
],
static_libs: ["libandroid.hardware.biometrics.fingerprint.SamsungProps"],

@ -27,7 +27,7 @@ cc_binary {
"libutils",
"libnl",
"libbinder_ndk",
"android.frameworks.stats-V1-ndk",
"android.frameworks.stats-V2-ndk",
"android.hardware.power-V1-ndk",
"android.hardware.thermal-V1-ndk",
"pixel-power-ext-V1-ndk",
@ -37,7 +37,7 @@ cc_binary {
"libpixelstats",
],
export_shared_lib_headers: [
"android.frameworks.stats-V1-ndk",
"android.frameworks.stats-V2-ndk",
"pixelatoms-cpp",
],
cflags: [

@ -12,40 +12,40 @@
android:key="dolby_top_intro"
android:title="@string/dolby_top_intro_summary" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:defaultValue="true"
android:key="dolby_profile_auto"
android:title="@string/dolby_profile_auto" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="dolby_profile_game"
android:title="@string/dolby_profile_game" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="dolby_profile_game_1"
android:title="@string/dolby_profile_game_1" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="dolby_profile_game_2"
android:title="@string/dolby_profile_game_2" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="dolby_profile_movie"
android:title="@string/dolby_profile_movie" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="dolby_profile_music"
android:title="@string/dolby_profile_music" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="dolby_profile_off"
android:title="@string/dolby_profile_off" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="dolby_profile_spacial_audio"
android:title="@string/dolby_profile_spacial_audio" />
<com.android.settingslib.widget.RadioButtonPreference
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="dolby_profile_voice"
android:title="@string/dolby_profile_voice" />

@ -19,13 +19,12 @@ package org.lineageos.dap
import android.os.Bundle
import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity
import com.android.settingslib.widget.R
class DolbyActivity : CollapsingToolbarBaseActivity() {
public override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
fragmentManager.beginTransaction().replace(
R.id.content_frame,
com.android.settingslib.collapsingtoolbar.R.id.content_frame,
DolbyFragment()
).commit()
}

@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 The LineageOS Project
* Copyright (C) 2022-2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -17,17 +17,17 @@
package org.lineageos.dap
import android.os.Bundle
import android.widget.Switch
import android.widget.CompoundButton
import android.widget.CompoundButton.OnCheckedChangeListener
import androidx.preference.PreferenceFragment
import com.android.settingslib.widget.MainSwitchPreference
import com.android.settingslib.widget.OnMainSwitchChangeListener
import com.android.settingslib.widget.RadioButtonPreference
import com.android.settingslib.widget.SelectorWithWidgetPreference
import org.lineageos.dap.R
class DolbyFragment : PreferenceFragment(), OnMainSwitchChangeListener {
class DolbyFragment : PreferenceFragment(), OnCheckedChangeListener {
private lateinit var switchBar: MainSwitchPreference
@ -39,7 +39,7 @@ class DolbyFragment : PreferenceFragment(), OnMainSwitchChangeListener {
switchBar.isChecked = DolbyCore.isEnabled()
for ((key, value) in PREF_DOLBY_MODES) {
val preference = findPreference<RadioButtonPreference>(key)!!
val preference = findPreference<SelectorWithWidgetPreference>(key)!!
preference.setOnPreferenceClickListener {
setProfile(value)
true
@ -47,7 +47,7 @@ class DolbyFragment : PreferenceFragment(), OnMainSwitchChangeListener {
}
}
override fun onSwitchChanged(switchView: Switch, isChecked: Boolean) {
override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
DolbyCore.setEnabled(isChecked)
}
@ -55,7 +55,7 @@ class DolbyFragment : PreferenceFragment(), OnMainSwitchChangeListener {
DolbyCore.setProfile(profile)
for ((key, value) in PREF_DOLBY_MODES) {
val preference = findPreference<RadioButtonPreference>(key)!!
val preference = findPreference<SelectorWithWidgetPreference>(key)!!
preference.isChecked = value == profile
}
}

@ -0,0 +1,28 @@
//
// Copyright (C) 2024 The Pixel Experience Project
//
// SPDX-License-Identifier: Apache-2.0
//
android_app {
name: "SamsungDoze",
defaults: ["SettingsLibDefaults"],
srcs: ["src/**/*.java"],
resource_dirs: ["res"],
certificate: "platform",
platform_apis: true,
system_ext_specific: true,
static_libs: [
"androidx.window.extensions",
"androidx.window.sidecar",
"org.lineageos.platform.internal",
"org.lineageos.settings.resources",
],
optimize: {
proguard_flags_files: ["proguard.flags"],
},
}

@ -1,33 +0,0 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := SamsungDoze
LOCAL_CERTIFICATE := platform
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_PRIVILEGED_MODULE := true
LOCAL_USE_AAPT2 := true
LOCAL_STATIC_ANDROID_LIBRARIES := \
SettingsLib
LOCAL_OPTIONAL_USES_LIBRARIES := \
androidx.window.extensions \
androidx.window.sidecar
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/res \
$(TOP)/packages/resources/devicesettings/res
ifneq ($(INCREMENTAL_BUILDS),)
LOCAL_PROGUARD_ENABLED := disabled
LOCAL_JACK_ENABLED := incremental
endif
include $(BUILD_PACKAGE)

@ -18,7 +18,6 @@ package org.lineageos.settings.doze;
import android.os.Bundle;
import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
import com.android.settingslib.widget.R;
public class SamsungDozeActivity extends CollapsingToolbarBaseActivity {
@ -27,7 +26,8 @@ public class SamsungDozeActivity extends CollapsingToolbarBaseActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getFragmentManager().beginTransaction().replace(R.id.content_frame,
getFragmentManager().beginTransaction().replace(
com.android.settingslib.collapsingtoolbar.R.id.content_frame,
new SamsungDozeSettings(), TAG).commit();
}
}

@ -19,7 +19,8 @@ package org.lineageos.settings.doze;
import android.os.Bundle;
import android.os.Handler;
import android.widget.Switch;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import androidx.preference.Preference;
import androidx.preference.Preference.OnPreferenceChangeListener;
@ -27,10 +28,9 @@ import androidx.preference.PreferenceFragment;
import androidx.preference.SwitchPreference;
import com.android.settingslib.widget.MainSwitchPreference;
import com.android.settingslib.widget.OnMainSwitchChangeListener;
public class SamsungDozeSettings extends PreferenceFragment
implements OnPreferenceChangeListener, OnMainSwitchChangeListener {
implements OnPreferenceChangeListener, OnCheckedChangeListener {
private MainSwitchPreference mSwitchBar;
@ -106,7 +106,7 @@ public class SamsungDozeSettings extends PreferenceFragment
}
@Override
public void onSwitchChanged(Switch switchView, boolean isChecked) {
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
Utils.enableDoze(getActivity(), isChecked);
Utils.checkDozeService(getActivity());

@ -24,14 +24,13 @@ cc_library_static {
"libgralloctypes",
"libhardware",
"libcamera_metadata",
"android.hardware.graphics.mapper@2.0",
"android.hardware.graphics.mapper@3.0",
"android.hardware.graphics.mapper@4.0",
"libexif",
"libui",
],
include_dirs: ["system/media/private/camera/include"],
header_libs: ["libhardware_headers.camera3_samsung"],
export_include_dirs: ["include"],
export_shared_lib_headers: ["libui"],
}
// NOTE: Deprecated module kept for compatibility reasons.

@ -24,6 +24,7 @@ cc_library_shared {
"libhardware",
"libcamera_metadata",
"libfmq",
"libui",
],
static_libs: [
"android.hardware.camera.common@1.0-helper.samsung",

@ -45,6 +45,7 @@ cc_library_shared {
"libhardware",
"libcamera_metadata",
"libfmq",
"libui",
],
static_libs: [
"android.hardware.camera.common@1.0-helper.samsung",

@ -28,6 +28,7 @@ cc_library_shared {
],
shared_libs: [
"libhidlbase",
"libui",
"libutils",
"libcutils",
"camera.device@3.2-impl.samsung",

Loading…
Cancel
Save