Add Sensors Off QS developer tile
This CL will replace the SensorPrivacyTile with a new tile that can be enabled from the developer settings. When this new tile is enabled only the camera, mic, and sensors controlled by the SensorManager will be disabled; the location and airplane mode tiles will not be modified. The user will be notified when this tile is enabled with the sensors off icon in the status bar. Fixes: 126618519 Test: Manually verified the Sensors Off tile was available in the QS page after being enabled from the developer settings. Change-Id: I028aa1c836b00e6a8d129e46a925d2d2c2d61759
This commit is contained in:
39
res/drawable/tile_icon_sensors_off.xml
Normal file
39
res/drawable/tile_icon_sensors_off.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<!--
|
||||
Copyright (C) 2019 The Android Open Source 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.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:pathData="M21.966,2 L2,22"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeColor="#000000"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeWidth="1.6521436"
|
||||
android:strokeLineJoin="miter"
|
||||
android:strokeAlpha="1"/>
|
||||
<path
|
||||
android:pathData="M0.752,12L4.496,12l2.496,-6.25 2.496,12.5 2.496,-15 2.496,12.5 2.496,-7.5 1.248,3.75h4.992"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeColor="#000000"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeWidth="1.25090861"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeAlpha="1"/>
|
||||
</vector>
|
||||
|
Reference in New Issue
Block a user