diff options
author | Joel Galenson <jgalenson@google.com> | 2018-11-07 16:14:52 -0800 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2018-11-14 10:21:44 -0800 |
commit | 89bdb3984364f0e0884e8ba94ab347fd6b471ae1 (patch) | |
tree | 27167714c8be46d2a0fe0db7e09073ea43d7a22e /res/drawable | |
parent | 7dd0dc60f113f10c13cdc52f797729f4bba6c859 (diff) | |
download | android_packages_apps_PackageInstaller-89bdb3984364f0e0884e8ba94ab347fd6b471ae1.tar.gz android_packages_apps_PackageInstaller-89bdb3984364f0e0884e8ba94ab347fd6b471ae1.tar.bz2 android_packages_apps_PackageInstaller-89bdb3984364f0e0884e8ba94ab347fd6b471ae1.zip |
Add the new app permission screen.
This screen allows toggling the permission (either dual- or tri-state)
and will eventually show the permission justification. It will also
replace PermissionPreference, from which most of the logic is copied.
This modifies PermissionUsagePreference so that clicks go to this page
instead of the old PermissionPreference pages.
Bug: 63532550
Bug: 118437704
Test: Used the new screen to toggle permissions.
Test: Manually forced the code down the paths of the rare conditions.
Change-Id: I7afa8d2ca88d495e824000dd4cbcb66d887aef91
Diffstat (limited to 'res/drawable')
-rw-r--r-- | res/drawable/ic_info.xml | 25 | ||||
-rw-r--r-- | res/drawable/ic_settings.xml | 34 | ||||
-rw-r--r-- | res/drawable/list_divider_dark.xml | 24 |
3 files changed, 83 insertions, 0 deletions
diff --git a/res/drawable/ic_info.xml b/res/drawable/ic_info.xml new file mode 100644 index 00000000..365bd338 --- /dev/null +++ b/res/drawable/ic_info.xml @@ -0,0 +1,25 @@ +<!-- + Copyright (C) 2018 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="16dp" + android:height="16dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0" + android:tint="?android:attr/colorAccent"> + <path + android:fillColor="#FF000000" + android:pathData="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> +</vector>
\ No newline at end of file diff --git a/res/drawable/ic_settings.xml b/res/drawable/ic_settings.xml new file mode 100644 index 00000000..28fb10df --- /dev/null +++ b/res/drawable/ic_settings.xml @@ -0,0 +1,34 @@ +<!-- + Copyright (C) 2018 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" + android:tint="?android:attr/colorAccent"> + <path + android:fillColor="#FF000000" + android:pathData="M21.4 14.2l-1.94-1.45c.03-.25 .04 -.5 .04 -.76s-.01-.51-.04-.76L21.4 9.8c.42-.31 +.52 -.94 .24 -1.41l-1.6-2.76c-.28-.48-.88-.7-1.36-.5l-2.14 .91 +c-.48-.37-1.01-.68-1.57-.92l-.27-2.2c-.06-.52-.56-.92-1.11-.92h-3.18c-.55 0-1.05 +.4 -1.11 .92 l-.26 2.19c-.57 .24 -1.1 .55 -1.58 .92 l-2.14-.91c-.48-.2-1.08 .02 +-1.36 .5 l-1.6 2.76c-.28 .48 -.18 1.1 .24 1.42l1.94 1.45c-.03 .24 -.04 .49 -.04 +.75 s.01 .51 .04 .76 L2.6 14.2c-.42 .31 -.52 .94 -.24 1.41l1.6 2.76c.28 .48 .88 +.7 1.36 .5 l2.14-.91c.48 .37 1.01 .68 1.57 .92 l.27 2.19c.06 .53 .56 .93 1.11 +.93 h3.18c.55 0 1.04-.4 1.11-.92l.27-2.19c.56-.24 1.09-.55 1.57-.92l2.14 .91 +c.48 .2 1.08-.02 1.36-.5l1.6-2.76c.28-.48 .18 -1.1-.24-1.42zM12 15.5c-1.93 +0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/> +</vector>
\ No newline at end of file diff --git a/res/drawable/list_divider_dark.xml b/res/drawable/list_divider_dark.xml new file mode 100644 index 00000000..c5af982b --- /dev/null +++ b/res/drawable/list_divider_dark.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2018 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. + --> + +<shape + xmlns:android="http://schemas.android.com/apk/res/android"> + <solid android:color="#64000000" /> + <size + android:height="1dp" + android:width="1dp" /> +</shape>
\ No newline at end of file |