-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shark: parts: Import from SharkParts
Commits here: https://github.com/rtx4d/android_device_xiaomi_shark/commits/lineage-21-mi845/parts shark: parts: Add built-in speaker tweaks config shark: parts: Declare exported flags in manifest shark: parts: Target current sdk shark: parts: Migrate to CompoundButton.OnCheckedChangeListener shark: parts: Enable use_resource_processor for all sysui deps shark: parts: allow media and alarms in DND shark: parts: clean up rear LED code shark: parts: toggle DND with slider shark: parts: Init SharkParts Co-authored-by: Roman Rihter <[email protected]>
- Loading branch information
Showing
23 changed files
with
1,404 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24" | ||
android:tint="?attr/colorControlNormal"> | ||
<path | ||
android:fillColor="#000000" | ||
android:pathData="M22.56 11.39C22.36 10.59 21.82 9.85 21.05 9.44L20.63 7.74C21.11 7.58 21.57 7.41 22 7.23V5C20 6.07 16.53 7.03 12 7.03S4 6.07 2 5V7.23C2.43 7.41 2.89 7.58 3.37 7.74L2.95 9.44C2.18 9.85 1.64 10.59 1.44 11.39C.905 13.57 .385 17.31 2.92 17.93C4 18.2 6 17.89 7.27 12.82C7.46 12 7.33 11.12 6.84 10.39L7.26 8.67C8.14 8.81 9.05 8.9 10 8.96V10.74C9.35 11.33 9 12.17 9 13C9 15.24 9.39 19 12 19C13.12 19 15 18.22 15 13C15 12.17 14.65 11.33 14 10.74V8.96C14.95 8.9 15.86 8.81 16.74 8.67L17.16 10.39C16.67 11.12 16.54 12 16.73 12.82C18 17.89 20 18.2 21.08 17.93C23.61 17.31 23.09 13.57 22.56 11.39M5.81 12.47C5.81 12.47 4.74 16.84 3.28 16.5C1.82 16.12 2.9 11.75 2.9 11.75S3.26 10.29 4.71 10.65 5.81 12.47 5.81 12.47M12 17.5C10.5 17.5 10.5 13 10.5 13S10.5 11.5 12 11.5 13.5 13 13.5 13 13.5 17.5 12 17.5M20.72 16.5C19.27 16.84 18.19 12.47 18.19 12.47S17.83 11 19.29 10.65 21.1 11.75 21.1 11.75 22.18 16.12 20.72 16.5Z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="960" | ||
android:viewportHeight="960" | ||
android:tint="?attr/colorControlNormal"> | ||
<path | ||
android:fillColor="#000" | ||
android:pathData="M280,920Q247,920 223.5,896.5Q200,873 200,840L200,120Q200,87 223.5,63.5Q247,40 280,40L680,40Q713,40 736.5,63.5Q760,87 760,120L760,280L680,280L680,240L280,240L280,720L680,720L680,680L760,680L760,840Q760,873 736.5,896.5Q713,920 680,920L280,920ZM280,800L280,840Q280,840 280,840Q280,840 280,840L680,840Q680,840 680,840Q680,840 680,840L680,800L280,800ZM680,640L674,590Q666,587 660,583.5Q654,580 648,574L602,594L562,524L602,494Q600,486 600,479Q600,472 602,464L562,434L604,366L648,384Q654,379 660,376Q666,373 674,370L680,320L760,320L766,370Q774,373 780,376Q786,379 792,384L836,366L878,434L838,464Q840,472 840,479Q840,486 838,494L878,524L838,594L792,574Q786,580 780,583.5Q774,587 766,590L760,640L680,640ZM720,540Q746,540 763,523Q780,506 780,480Q780,454 763,437Q746,420 720,420Q694,420 677,437Q660,454 660,480Q660,506 677,523Q694,540 720,540ZM280,160L680,160L680,120Q680,120 680,120Q680,120 680,120L280,120Q280,120 280,120Q280,120 280,120L280,160ZM280,160L280,120Q280,120 280,120Q280,120 280,120L280,120Q280,120 280,120Q280,120 280,120L280,160L280,160ZM280,800L280,800L280,840Q280,840 280,840Q280,840 280,840L280,840Q280,840 280,840Q280,840 280,840L280,800Z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="960" | ||
android:viewportHeight="960" | ||
android:tint="?attr/colorControlNormal" | ||
android:autoMirrored="true"> | ||
<path | ||
android:fillColor="@android:color/white" | ||
android:pathData="M560,829L560,747Q650,721 705,647Q760,573 760,479Q760,385 705,311Q650,237 560,211L560,129Q684,157 762,254.5Q840,352 840,479Q840,606 762,703.5Q684,801 560,829ZM120,600L120,360L280,360L480,160L480,800L280,600L120,600ZM560,640L560,318Q607,340 633.5,384Q660,428 660,480Q660,531 633.5,574.5Q607,618 560,640ZM400,354L314,440L200,440L200,520L314,520L400,606L400,354ZM300,480L300,480L300,480L300,480L300,480L300,480L300,480Z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (C) 2020 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. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<PreferenceScreen | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:title="@string/logo_control_title"> | ||
|
||
<com.android.settingslib.widget.MainSwitchPreference | ||
android:defaultValue="false" | ||
android:key="logo_control_enable" | ||
android:title="@string/logo_control_enable_title" /> | ||
|
||
<ListPreference | ||
android:key="logo_control_mode" | ||
android:title="@string/logo_control_mode_title" | ||
android:entries="@array/logo_control_mode_entries" | ||
android:entryValues="@array/logo_control_mode_values" | ||
android:dependency="logo_control_enable" /> | ||
|
||
<SeekBarPreference | ||
android:key="logo_control_manual_red" | ||
android:title="@string/logo_control_intensity_title_red" | ||
android:min="0" | ||
android:max="255" | ||
android:persistent="false" | ||
android:dependency="logo_control_enable" /> | ||
<SeekBarPreference | ||
android:key="logo_control_manual_green" | ||
android:title="@string/logo_control_intensity_title_green" | ||
android:min="0" | ||
android:max="255" | ||
android:persistent="false" | ||
android:dependency="logo_control_enable" /> | ||
<SeekBarPreference | ||
android:key="logo_control_manual_blue" | ||
android:title="@string/logo_control_intensity_title_blue" | ||
android:min="0" | ||
android:max="255" | ||
android:persistent="false" | ||
android:dependency="logo_control_enable" /> | ||
|
||
</PreferenceScreen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (C) 2023 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. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> | ||
|
||
<PreferenceScreen | ||
android:key="logo" | ||
android:fragment="org.lineageos.settings.device.logo.LogoActivity" | ||
android:icon="@drawable/logo" | ||
android:summary="@string/logo_control_summary" | ||
android:title="@string/logo_control_title" /> | ||
|
||
<PreferenceScreen | ||
android:key="speaker" | ||
android:fragment="org.lineageos.settings.device.speaker.SpeakerActivity" | ||
android:icon="@drawable/speaker" | ||
android:summary="@string/speaker_control_summary" | ||
android:title="@string/speaker_control_title" /> | ||
</PreferenceScreen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<shortcut | ||
android:enabled="true" | ||
android:icon="@drawable/logo" | ||
android:shortcutId="shortcuts_switch" | ||
android:shortcutDisabledMessage="@string/logo_control_title" | ||
android:shortcutLongLabel="@string/logo_control_title" | ||
android:shortcutShortLabel="@string/logo_control_title"> | ||
|
||
<intent | ||
android:action="android.intent.action.VIEW" | ||
android:targetClass="org.lineageos.settings.device.logo.QsActivity" | ||
android:targetPackage="org.lineageos.settings.device" /> | ||
<categories android:name="android.shortcut.conversation" /> | ||
</shortcut> | ||
</shortcuts> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (C) 2020 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. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<PreferenceScreen | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:title="@string/speaker_control_title"> | ||
|
||
<com.android.settingslib.widget.MainSwitchPreference | ||
android:defaultValue="false" | ||
android:key="speaker_tweaks_enable" | ||
android:title="@string/speaker_control_enable_title" /> | ||
|
||
<PreferenceCategory | ||
android:title="@string/speaker_control_gamemode_title"> | ||
|
||
<ListPreference | ||
android:key="speaker_gamemode_val" | ||
android:title="@string/speaker_control_gamemode_title" | ||
android:entries="@array/speaker_control_gamemode_entries" | ||
android:entryValues="@array/speaker_control_gamemode_values" | ||
android:dependency="speaker_tweaks_enable" /> | ||
|
||
</PreferenceCategory> | ||
|
||
<PreferenceCategory | ||
android:title="@string/speaker_control_eq_title"> | ||
|
||
<SeekBarPreference | ||
android:key="speaker_control_eq_band_0" | ||
android:title="@string/speaker_control_eq_band_0" | ||
android:defaultValue="3" | ||
android:min="0" | ||
android:max="6" | ||
android:persistent="false" | ||
android:dependency="speaker_tweaks_enable" /> | ||
|
||
<SeekBarPreference | ||
android:key="speaker_control_eq_band_1" | ||
android:title="@string/speaker_control_eq_band_1" | ||
android:defaultValue="3" | ||
android:min="0" | ||
android:max="6" | ||
android:persistent="false" | ||
android:dependency="speaker_tweaks_enable" /> | ||
|
||
<SeekBarPreference | ||
android:key="speaker_control_eq_band_2" | ||
android:title="@string/speaker_control_eq_band_2" | ||
android:defaultValue="3" | ||
android:min="0" | ||
android:max="6" | ||
android:persistent="false" | ||
android:dependency="speaker_tweaks_enable" /> | ||
|
||
<SeekBarPreference | ||
android:key="speaker_control_eq_band_3" | ||
android:title="@string/speaker_control_eq_band_3" | ||
android:defaultValue="3" | ||
android:min="0" | ||
android:max="6" | ||
android:persistent="false" | ||
android:dependency="speaker_tweaks_enable" /> | ||
|
||
<SeekBarPreference | ||
android:key="speaker_control_eq_band_4" | ||
android:title="@string/speaker_control_eq_band_4" | ||
android:defaultValue="3" | ||
android:min="0" | ||
android:max="6" | ||
android:persistent="false" | ||
android:dependency="speaker_tweaks_enable" /> | ||
|
||
<com.android.settingslib.widget.FooterPreference | ||
android:key="speaker_control_footer" | ||
android:title="@string/speaker_control_footer" | ||
android:dependency="speaker_tweaks_enable"/> | ||
|
||
</PreferenceCategory> | ||
|
||
</PreferenceScreen> |
Oops, something went wrong.