Loading core/java/com/android/internal/util/cm/QSConstants.java +2 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ public class QSConstants { public static final String TILE_USB_TETHER = "usb_tether"; public static final String TILE_HEADS_UP = "heads_up"; public static final String TILE_AMBIENT_DISPLAY = "ambient_display"; public static final String TILE_SYNC = "sync"; protected static final ArrayList<String> TILES_AVAILABLE = new ArrayList<String>(); Loading Loading @@ -81,5 +82,6 @@ public class QSConstants { TILES_AVAILABLE.add(TILE_USB_TETHER); TILES_AVAILABLE.add(TILE_HEADS_UP); TILES_AVAILABLE.add(TILE_AMBIENT_DISPLAY); TILES_AVAILABLE.add(TILE_SYNC); } } packages/SystemUI/AndroidManifest.xml +4 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,10 @@ <!-- Quick Settings Tile Listener --> <uses-permission android:name="cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE"/> <!-- Sync tile --> <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" /> <application android:name=".SystemUIApplication" android:persistent="true" Loading packages/SystemUI/res/drawable/ic_qs_sync_off.xml 0 → 100644 +31 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (c) 2015 The CyanogenMod 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="64dp" android:height="64dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#4DFFFFFF" android:pathData="M10 6.35V4.26c-.8 .21 -1.55 .54 -2.23 .96 l1.46 1.46c.25-.12 .5 -.24 .77 -.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21 .91 4.2 2.36 5.64L4 20h6v-6l-2.24 2.24C6.68 15.15 6 13.66 6 12c0-1 .25-1.94 .68 -2.77l8.08 8.08c-.25 .13 -.5 .25 -.77 .34 v2.09c.8-.21 1.55-.54 2.23-.96l2.36 2.36 1.27-1.27L4.14 4.14 2.86 5.41zM20 4h-6v6l2.24-2.24C17.32 8.85 18 10.34 18 12c0 1-.25 1.94-.68 2.77l1.46 1.46C19.55 15.01 20 13.56 20 12c0-2.21-.91-4.2-2.36-5.64L20 4z" /> </vector> packages/SystemUI/res/drawable/ic_qs_sync_on.xml 0 → 100644 +28 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (c) 2015 The CyanogenMod 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="64dp" android:height="64dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#FFFFFFFF" android:pathData="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01 .25 -1.97 .7 -2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z" /> </vector> packages/SystemUI/res/values/cm_strings.xml +10 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,15 @@ <!-- Announcement made when ambient display changes to on (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_ambient_display_changed_on">Ambient display turned on.</string> <!-- Content description of the sync tile in quick settings when off (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_sync_off">Sync off.</string> <!-- Content description of the sync tile in quick settings when on (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_sync_on">Sync on.</string> <!-- Announcement made when sync changes to off (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_sync_changed_off">Sync turned off.</string> <!-- Announcement made when sync changes to on (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_sync_changed_on">Sync turned on.</string> <string name="accessibility_dpad_left">Cursor left</string> <string name="accessibility_dpad_right">Cursor right</string> Loading Loading @@ -104,6 +113,7 @@ <string name="quick_settings_usb_tether_label">USB tethering</string> <string name="quick_settings_heads_up_label">Heads up</string> <string name="quick_settings_ambient_display_label">Ambient display</string> <string name="quick_settings_sync_label">Sync</string> <string name="quick_settings_custom_tile_detail_title">Custom tile</string> <!-- Weather string format in expanded statusbar header --> Loading Loading
core/java/com/android/internal/util/cm/QSConstants.java +2 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ public class QSConstants { public static final String TILE_USB_TETHER = "usb_tether"; public static final String TILE_HEADS_UP = "heads_up"; public static final String TILE_AMBIENT_DISPLAY = "ambient_display"; public static final String TILE_SYNC = "sync"; protected static final ArrayList<String> TILES_AVAILABLE = new ArrayList<String>(); Loading Loading @@ -81,5 +82,6 @@ public class QSConstants { TILES_AVAILABLE.add(TILE_USB_TETHER); TILES_AVAILABLE.add(TILE_HEADS_UP); TILES_AVAILABLE.add(TILE_AMBIENT_DISPLAY); TILES_AVAILABLE.add(TILE_SYNC); } }
packages/SystemUI/AndroidManifest.xml +4 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,10 @@ <!-- Quick Settings Tile Listener --> <uses-permission android:name="cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE"/> <!-- Sync tile --> <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" /> <application android:name=".SystemUIApplication" android:persistent="true" Loading
packages/SystemUI/res/drawable/ic_qs_sync_off.xml 0 → 100644 +31 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (c) 2015 The CyanogenMod 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="64dp" android:height="64dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#4DFFFFFF" android:pathData="M10 6.35V4.26c-.8 .21 -1.55 .54 -2.23 .96 l1.46 1.46c.25-.12 .5 -.24 .77 -.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21 .91 4.2 2.36 5.64L4 20h6v-6l-2.24 2.24C6.68 15.15 6 13.66 6 12c0-1 .25-1.94 .68 -2.77l8.08 8.08c-.25 .13 -.5 .25 -.77 .34 v2.09c.8-.21 1.55-.54 2.23-.96l2.36 2.36 1.27-1.27L4.14 4.14 2.86 5.41zM20 4h-6v6l2.24-2.24C17.32 8.85 18 10.34 18 12c0 1-.25 1.94-.68 2.77l1.46 1.46C19.55 15.01 20 13.56 20 12c0-2.21-.91-4.2-2.36-5.64L20 4z" /> </vector>
packages/SystemUI/res/drawable/ic_qs_sync_on.xml 0 → 100644 +28 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (c) 2015 The CyanogenMod 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="64dp" android:height="64dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#FFFFFFFF" android:pathData="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01 .25 -1.97 .7 -2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z" /> </vector>
packages/SystemUI/res/values/cm_strings.xml +10 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,15 @@ <!-- Announcement made when ambient display changes to on (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_ambient_display_changed_on">Ambient display turned on.</string> <!-- Content description of the sync tile in quick settings when off (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_sync_off">Sync off.</string> <!-- Content description of the sync tile in quick settings when on (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_sync_on">Sync on.</string> <!-- Announcement made when sync changes to off (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_sync_changed_off">Sync turned off.</string> <!-- Announcement made when sync changes to on (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_quick_settings_sync_changed_on">Sync turned on.</string> <string name="accessibility_dpad_left">Cursor left</string> <string name="accessibility_dpad_right">Cursor right</string> Loading Loading @@ -104,6 +113,7 @@ <string name="quick_settings_usb_tether_label">USB tethering</string> <string name="quick_settings_heads_up_label">Heads up</string> <string name="quick_settings_ambient_display_label">Ambient display</string> <string name="quick_settings_sync_label">Sync</string> <string name="quick_settings_custom_tile_detail_title">Custom tile</string> <!-- Weather string format in expanded statusbar header --> Loading