Loading packages/SystemUI/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ android_library { "jsr330", "org.lineageos.platform.internal", "vendor.lineage.biometrics.fingerprint.inscreen-V1.0-java", "vendor.lineage.powershare-V1.0-java", ], manifest: "AndroidManifest.xml", additional_manifests: ["LineageManifest.xml"], Loading packages/SystemUI/res/drawable/ic_qs_powershare.xml 0 → 100644 +23 −0 Original line number Diff line number Diff line <?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. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#ffffff" android:pathData="M19.77,7.23l0.01,-0.01 -3.72,-3.72L15,4.56l2.11,2.11c-0.94,0.36 -1.61,1.26 -1.61,2.33 0,1.38 1.12,2.5 2.5,2.5 0.36,0 0.69,-0.08 1,-0.21v7.21c0,0.55 -0.45,1 -1,1s-1,-0.45 -1,-1V14c0,-1.1 -0.9,-2 -2,-2h-1V5c0,-1.1 -0.9,-2 -2,-2H6c-1.1,0 -2,0.9 -2,2v16h10v-7.5h1.5v5c0,1.38 1.12,2.5 2.5,2.5s2.5,-1.12 2.5,-2.5V9c0,-0.69 -0.28,-1.32 -0.73,-1.77zM18,10c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM8,18v-4.5H6L10,6v5h2l-4,7z" /> </vector> packages/SystemUI/res/values/cm_strings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,12 @@ <string name="quick_settings_aod_label">AOD</string> <string name="quick_settings_aod_off_powersave_label">AOD off\nBattery saver</string> <!-- PowerShare QS tile --> <string name="quick_settings_powershare_label">Wireless PowerShare</string> <string name="quick_settings_powershare_off_powersave_label">Wireless PowerShare off\nBattery saver</string> <string name="quick_settings_powershare_off_low_battery_label">Wireless PowerShare off\nBattery too low</string> <string name="quick_settings_powershare_enabled_label">Wireless PowerShare is enabled</string> <!-- Name of the additional status bar icons also exposed with SystemUI Tuner --> <string name="status_bar_battery">Battery</string> <string name="status_bar_camera">Camera</string> Loading packages/SystemUI/res/values/config.xml +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ <!-- Tiles native to System UI. Order should match "quick_settings_tiles_default" --> <string name="quick_settings_tiles_stock" translatable="false"> wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,nfc,location,hotspot,inversion,saver,dark,work,cast,night,adb_network,ambient_display,caffeine,heads_up,livedisplay,aod,reading_mode,sync,usb_tether,volume_panel,vpn,profiles wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,nfc,location,hotspot,inversion,saver,dark,work,cast,night,adb_network,ambient_display,caffeine,heads_up,livedisplay,aod,reading_mode,sync,usb_tether,volume_panel,vpn,profiles,powershare </string> <!-- The tiles to display in QuickSettings --> Loading packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSFactoryImpl.java +6 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import com.android.systemui.qs.tiles.LiveDisplayTile; import com.android.systemui.qs.tiles.LocationTile; import com.android.systemui.qs.tiles.NfcTile; import com.android.systemui.qs.tiles.NightDisplayTile; import com.android.systemui.qs.tiles.PowerShareTile; import com.android.systemui.qs.tiles.ProfilesTile; import com.android.systemui.qs.tiles.ReadingModeTile; import com.android.systemui.qs.tiles.RotationLockTile; Loading Loading @@ -94,6 +95,7 @@ public class QSFactoryImpl implements QSFactory { private final Provider<HeadsUpTile> mHeadsUpTileProvider; private final Provider<LiveDisplayTile> mLiveDisplayTileProvider; private final Provider<AODTile> mAODTileProvider; private final Provider<PowerShareTile> mPowerShareTileProvider; private final Provider<ProfilesTile> mProfilesTileProvider; private final Provider<ReadingModeTile> mReadingModeTileProvider; private final Provider<SyncTile> mSyncTileProvider; Loading Loading @@ -128,6 +130,7 @@ public class QSFactoryImpl implements QSFactory { Provider<CaffeineTile> caffeineTileProvider, Provider<HeadsUpTile> headsUpTileProvider, Provider<LiveDisplayTile> liveDisplayTileProvider, Provider<PowerShareTile> powerShareTileProvider, Provider<ProfilesTile> profilesTileProvider, Provider<ReadingModeTile> readingModeTileProvider, Provider<SyncTile> syncTileProvider, Loading Loading @@ -160,6 +163,7 @@ public class QSFactoryImpl implements QSFactory { mHeadsUpTileProvider = headsUpTileProvider; mLiveDisplayTileProvider = liveDisplayTileProvider; mAODTileProvider = aodTileProvider; mPowerShareTileProvider = powerShareTileProvider; mProfilesTileProvider = profilesTileProvider; mReadingModeTileProvider = readingModeTileProvider; mSyncTileProvider = syncTileProvider; Loading Loading @@ -232,6 +236,8 @@ public class QSFactoryImpl implements QSFactory { return mLiveDisplayTileProvider.get(); case "aod": return mAODTileProvider.get(); case "powershare": return mPowerShareTileProvider.get(); case "profiles": return mProfilesTileProvider.get(); case "reading_mode": Loading Loading
packages/SystemUI/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ android_library { "jsr330", "org.lineageos.platform.internal", "vendor.lineage.biometrics.fingerprint.inscreen-V1.0-java", "vendor.lineage.powershare-V1.0-java", ], manifest: "AndroidManifest.xml", additional_manifests: ["LineageManifest.xml"], Loading
packages/SystemUI/res/drawable/ic_qs_powershare.xml 0 → 100644 +23 −0 Original line number Diff line number Diff line <?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. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#ffffff" android:pathData="M19.77,7.23l0.01,-0.01 -3.72,-3.72L15,4.56l2.11,2.11c-0.94,0.36 -1.61,1.26 -1.61,2.33 0,1.38 1.12,2.5 2.5,2.5 0.36,0 0.69,-0.08 1,-0.21v7.21c0,0.55 -0.45,1 -1,1s-1,-0.45 -1,-1V14c0,-1.1 -0.9,-2 -2,-2h-1V5c0,-1.1 -0.9,-2 -2,-2H6c-1.1,0 -2,0.9 -2,2v16h10v-7.5h1.5v5c0,1.38 1.12,2.5 2.5,2.5s2.5,-1.12 2.5,-2.5V9c0,-0.69 -0.28,-1.32 -0.73,-1.77zM18,10c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM8,18v-4.5H6L10,6v5h2l-4,7z" /> </vector>
packages/SystemUI/res/values/cm_strings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,12 @@ <string name="quick_settings_aod_label">AOD</string> <string name="quick_settings_aod_off_powersave_label">AOD off\nBattery saver</string> <!-- PowerShare QS tile --> <string name="quick_settings_powershare_label">Wireless PowerShare</string> <string name="quick_settings_powershare_off_powersave_label">Wireless PowerShare off\nBattery saver</string> <string name="quick_settings_powershare_off_low_battery_label">Wireless PowerShare off\nBattery too low</string> <string name="quick_settings_powershare_enabled_label">Wireless PowerShare is enabled</string> <!-- Name of the additional status bar icons also exposed with SystemUI Tuner --> <string name="status_bar_battery">Battery</string> <string name="status_bar_camera">Camera</string> Loading
packages/SystemUI/res/values/config.xml +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ <!-- Tiles native to System UI. Order should match "quick_settings_tiles_default" --> <string name="quick_settings_tiles_stock" translatable="false"> wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,nfc,location,hotspot,inversion,saver,dark,work,cast,night,adb_network,ambient_display,caffeine,heads_up,livedisplay,aod,reading_mode,sync,usb_tether,volume_panel,vpn,profiles wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,nfc,location,hotspot,inversion,saver,dark,work,cast,night,adb_network,ambient_display,caffeine,heads_up,livedisplay,aod,reading_mode,sync,usb_tether,volume_panel,vpn,profiles,powershare </string> <!-- The tiles to display in QuickSettings --> Loading
packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSFactoryImpl.java +6 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import com.android.systemui.qs.tiles.LiveDisplayTile; import com.android.systemui.qs.tiles.LocationTile; import com.android.systemui.qs.tiles.NfcTile; import com.android.systemui.qs.tiles.NightDisplayTile; import com.android.systemui.qs.tiles.PowerShareTile; import com.android.systemui.qs.tiles.ProfilesTile; import com.android.systemui.qs.tiles.ReadingModeTile; import com.android.systemui.qs.tiles.RotationLockTile; Loading Loading @@ -94,6 +95,7 @@ public class QSFactoryImpl implements QSFactory { private final Provider<HeadsUpTile> mHeadsUpTileProvider; private final Provider<LiveDisplayTile> mLiveDisplayTileProvider; private final Provider<AODTile> mAODTileProvider; private final Provider<PowerShareTile> mPowerShareTileProvider; private final Provider<ProfilesTile> mProfilesTileProvider; private final Provider<ReadingModeTile> mReadingModeTileProvider; private final Provider<SyncTile> mSyncTileProvider; Loading Loading @@ -128,6 +130,7 @@ public class QSFactoryImpl implements QSFactory { Provider<CaffeineTile> caffeineTileProvider, Provider<HeadsUpTile> headsUpTileProvider, Provider<LiveDisplayTile> liveDisplayTileProvider, Provider<PowerShareTile> powerShareTileProvider, Provider<ProfilesTile> profilesTileProvider, Provider<ReadingModeTile> readingModeTileProvider, Provider<SyncTile> syncTileProvider, Loading Loading @@ -160,6 +163,7 @@ public class QSFactoryImpl implements QSFactory { mHeadsUpTileProvider = headsUpTileProvider; mLiveDisplayTileProvider = liveDisplayTileProvider; mAODTileProvider = aodTileProvider; mPowerShareTileProvider = powerShareTileProvider; mProfilesTileProvider = profilesTileProvider; mReadingModeTileProvider = readingModeTileProvider; mSyncTileProvider = syncTileProvider; Loading Loading @@ -232,6 +236,8 @@ public class QSFactoryImpl implements QSFactory { return mLiveDisplayTileProvider.get(); case "aod": return mAODTileProvider.get(); case "powershare": return mPowerShareTileProvider.get(); case "profiles": return mProfilesTileProvider.get(); case "reading_mode": Loading