Commit bfc4fe14 authored by Bruno Martins's avatar Bruno Martins Committed by Michael Bestas

Settings: Privacy Guard

This had been partially split into CMParts, now LineageParts.
The AppOps functionality still lives here.

Squash of the following changes, adapted to the Lineage SDK:

Author: Steve Kondik <shade@chemlab.org>
Date:   Tue Feb 25 14:02:16 2014 +0100

    settings: Relocate Privacy Guard icons to framework

    * So we can use them in the permission dialog for MODE_ASK

    Change-Id: Ia9bac7dff0bbe91ae48db5d4b0d8f46feb9fdf86

Author: DvTonder <david.vantonder@gmail.com>
Date:   Thu Jan 16 19:01:23 2014 -0500

    Settings: Fix up top level "Privacy" section

    Change-Id: Id4dbda10a891c793bc6eb3c42807cc0e3f6092cc

Author: Danny Baumann <dannybaumann@web.de>
Date:   Fri Nov 8 13:37:07 2013 +0100

    Add back privacy guard manager.

    Change-Id: Ic9fbbae137bb8425fe72a6cdb2f17117351b5709

Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Sat Dec 28 18:51:46 2013 +0530

    PrivacyGuard: Specify a default value in Settings.getInt method call

    * While privacy guard is enabled by default, the default value specified
      here is returned only when the setting is not defined or not an integer.

    Change-Id: Iaedffcc76a23a310aa7915f6a42ccce83ba5d2a6

Author: Matt Mower <mowerm@gmail.com>
Date:   Wed Feb 5 19:40:37 2014 -0600

    PrivacyGuard: confirm permissions reset

    The button to reset all application permissions to enabled looks
    suspiciously like a refresh button. Prompt the user with a confirmation
    dialog to make sure they know what they've pressed.

    Change-Id: I0444c5bf8e9533feccf890055d34d3200609c6f6

Author: Diogo Ferreira <defer@cyngn.com>
Date:   Wed Dec 17 11:56:22 2014 +0000

    su: Add Root access app-ops control

    Adds an app-ops option for root access.

    Platform-signed apps weren't previously being listed but there are some
    that use root access (FileManager comes to mind).

    So we list all of them, but for platform-signed apps we only show the
    root toggle and none of the permission-based ones.

    Change-Id: Ie716974156d55eb66061e78dc39505569e5bdc2a

Author: Shashank Mittal <mittals@codeaurora.org>
Date:   Thu Sep 5 19:01:47 2013 -0700

    AppOps: Add more operations in app ops settings.

    Add following operations in app ops settings.

    -- Wifi enable/disable
    -- Bluetooth enable/disable

    Change-Id: I32183d77b88c326168557444a445765b5a69de6f

    AppOps: Add support for nfc operation

    Add support for nfc operation

    Change-Id: I0ca617b11d3f65f80cc49c3f629312e2fee1ba91

    AppOps: Add mobile data-on permission control.

    Add mobile data-on permission control.

    Change-Id: I0956fb1575addb5f4e522e664a80442120190b86

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Sat Mar 8 03:18:34 2014 +0200

    Settings: Convert AppOps array items to string references

    * Avoid future breakage
     This will need conversion of all AOSP translated arrays to strings

    Change-Id: I2e52e4013d1232d529ce5b9e3aae3502c42e938a

Author: Shashank Mittal <mittals@codeaurora.org>
Date:   Thu Mar 6 17:16:49 2014 -0800

    AppOps: Add 'Always ask' option under appOps setting.

    Add always ask option for each operation.

    Change-Id: Ia4f331a5b7d0b1c8ae6946c55a4f78818fe0454f

Author: Shashank Mittal <mittals@codeaurora.org>
Date:   Fri Aug 1 13:05:35 2014 -0700

    AppOps: Use switch widget for non-strict ops.

    There are few Ops for which 'Always Ask' mode is not allwoed.
    So use switch widget to control such Ops.

    Change-Id: Ic7464a207c00e4cb9efff57c1f060e04379c1ee7

Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Mon Dec 7 14:07:11 2015 -0800

    Allow disabling the privacy guard notification - port from cm-12.1 (1/3)

    Change-Id: Iebf4545c1a65b10036a4865bae29d14e86b12d07

Author: Roman Birg <roman@cyngn.com>
Date:   Mon Nov 2 17:34:00 2015 -0800

    Fix advanced privacy guard screen

    Change-Id: I1064f2df748b21384f53219b87645f1569f595d5
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Thu Oct 3 13:51:31 2013 -0700

    AppOps: menu options to show/hide user and system apps

    Change-Id: Ia55364c361db949a891e4b53a757ee4dff519eb6

Author: Danny Baumann <dannybaumann@web.de>
Date:   Wed Oct 2 22:24:14 2013 -0700

    [1/2] AppOps: Show allowed/ignored counts

    Change-Id: Ia27737155c33e934df9a2a1fcff88379240fd096

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Sun Dec 1 21:39:07 2013 -0800

    AppOps: only apply app type filters to summary screen

    *) If buildState() is called for a single package, do
       not apply hide user/system app filters.
    *) Fixes show detail display when called via
       long press in privacyguard and an AppOp hide
       filter is ticked.

    Change-Id: If31d094fb989836ab6829daeefe820695032c0ed

Author: Diogo Ferreira <defer@cyngn.com>
Date:   Mon Jan 5 18:19:12 2015 +0000

    privacyguard: Add Superuser summary

    Adds superuser summary to the privacy guard "Advanced" menu, this
    is useful for auditing purposes. The tab is only visible when root
    for apps is enabled.

    Change-Id: I0b71c51d10e44e69102c311e526cdb1fde9bda26

Author: Danesh M <daneshm90@gmail.com>
Date:   Mon Mar 21 13:56:22 2016 -0700

    Settings : Fix default privacy guard preference

    Ensure we write to the correct table.
    CYNGNOS-2264

    Change-Id: I1260cf665080631e3e2ec19b371a79eee273c6d2

Author: Lars Greiss <kufikugel@googlemail.com>
Date:   Sat Apr 25 03:15:15 2015 +0300

    Launch app privacy settings when tapping on PG notification (2/2)

    Based on https://github.com/SlimRoms/packages_apps_Settings/commit/46bb1442aa96aad6890e3ce7b6f3c0466ababf25

    JIRA: CYAN-6077
    Change-Id: I8632e8c944c1d5d7ad2fb2a2276bae5fe2d4a0a0

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Mon Jan 12 00:09:26 2015 +0200

    Update privacy guard reset icon

    Change-Id: Ia636b08fea0d21c0185d053ecf601d1ddcf5a828

Author: jrizzoli <joey@cyanogenmoditalia.it>
Date:   Fri Apr 24 15:00:28 2015 +0200

    Settings: update dashboard icons

    * Lockscreen: drawable from quicktoggles
    * Performance: chip
    * Privacy: shield
    * Sounds: speaker

    Change-Id: I227778583d073c1d3fdfb727dcc32c949c535847
Signed-off-by: default avatarjrizzoli <joey@cyanogenmoditalia.it>

Author: blunden <blunden2@gmail.com>
Date:   Sat Dec 6 20:18:20 2014 +0100

    Update the Privacy category drawable

    Replace the current ones with new vector drawables

    Change-Id: I27a6778d876672c78469b886e2574baa149aad80

Author: Diogo Ferreira <defer@cyngn.com>
Date:   Mon Jan 5 17:56:53 2015 +0000

    PrivacyGuard: Tint the enabled icon

    The enabled icon was white and when enabled, the icon would get
    the exact same color as the background, rendering impossible to see.

    Change-Id: I4dc2b52cfca46abf2eff28a0b25918d42cf39f09

Author: nickdoherty81 <nickdoh81@gmail.com>
Date:   Mon Jan 5 00:07:56 2015 -0500

    Check boxes to Switches in PrivacyGuardPerfs

    Change-Id: I329df30a6a095a6a5f5829d8b627b00769e18685

Author: Diogo Ferreira <defer@cyngn.com>
Date:   Wed Jan 14 16:06:23 2015 +0000

    appops: Load the app list asynchronously

    The AppList is pretty big and it is loading in the UI thread. This
    is noticeable even on high-end chips and there is a definite possibility
    that it throws an ANR on lower-end ones.

    This patchset adds an asynchronous loader and updates the privacy guard
    to use it.

    Change-Id: I81f3fb64604af07a351f8cbdfffa7454389e2cee

Author: Adnan Begovic <adnan@cyngn.com>
Date:   Tue Jan 27 18:11:19 2015 -0800

    Settings: Fix off-by-one SectionIndexer in PrivacyGuard.

    Change-Id: If97876214d6f532ca4e5a09f09d881cd4fbf0231

Author: Adnan Begovic <adnan@cyngn.com>
Date:   Wed Jan 28 15:53:35 2015 -0800

    Settings: Fix inflate exception on search. Dynamically replace nested fragment.

       When PrivacyGuard is opened, the parent fragment would inflate the layout
       which contained a nested fragment. This is bad behavior. Since we couldn't
       keep track of the fragments lifecycle, the fragment we instantiated during
       inflation would cause an inflate exception if and when we toggled the search
       view within the current context.

       Mitigate the crash by programmatically replacing the fragment after instantiating it once.

       AndroidRuntime
              E  FATAL EXCEPTION: main
              E  Process: com.android.settings, PID: 12372
              E  android.view.InflateException: Binary XML file line #21: Error inflating class fragment
              E      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:763)
              E      at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
              E      at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
               ...
              E  Caused by: java.lang.IllegalArgumentException: Binary XML file line #21: Duplicate id 0x7f1001a2, tag nul
                 l, or parent id 0xffffffff with another fragment for com.android.settings.privacyguard.PrivacyGuardPrefs
              E      at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2120)
              E      at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:177)
              E      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:733)
              E      ... 25 more

    Change-Id: I6820ad7d35814f150eedf91140e21c0b8e23322b

Author: Steve Kondik <steve@cyngn.com>
Date:   Mon Mar 9 16:05:32 2015 +0000

    settings: Use consistent headers for Privacy Guard

     * Show "Privacy Guard" instead of "App ops" in advanced settings

    Change-Id: I98107ba3ad94ba22bbd4dc9e92ea97a36f664ab8

Author: Matt Garnes <matt@cyngn.com>
Date:   Fri May 15 15:55:44 2015 -0700

    Do not allow privacy guard for core system apps.

    Hide any applications that have the system UID as well as System UI from
    privacy guard. Enabling this on these core apps can have disastrous
    consequences, since many privacy guard authorization requests will queue
    up. This can cause the system process or System UI to be killed when
    they ANR while they wait at the end of a very long queue for the user to authorize them.

    By using privacy guard, you are trusting that the system will control
    and protect these permissions in the first place; there is no need to protect
    the system from itself.

    Change-Id: I478d6a6783a4c06fa7ad01a96c413290b232636c

Author: Gianmarco Reverberi <gianmarco.reverberi@gmail.com>
Date:   Tue Jun 2 19:30:45 2015 +0200

    PrivacyGuard: restore ListView position on resume, for real

    ListView gets reloaded each time the activity is resumed,
    so we have to restore the position after LoadManager finishes its job

    Change-Id: I8f05027aaf8ef85481ecb578efa2c2d2c6c6256d

Author: Roman Birg <roman@cyngn.com>
Date:   Wed Sep 9 12:05:38 2015 -0700

    Settings: persist privacy guard dialogs across rotates

    Ref: CYNGNOS-933

    Change-Id: I778ff0152dd4a1c0152dca68e82cc89a41f88508
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

Author: Steve Kondik <steve@cyngn.com>
Date:   Mon Sep 12 01:29:07 2016 -0700

    settings: Fix viewpager tabs not showing on AppOpsSummary

    Change-Id: I311c61559177ea733809f510f017ef613915f3d4

Author: Gabriele M <moto.falcon.git@gmail.com>
Date:   Wed Mar 15 22:05:46 2017 +0100

    AppOpsDetails: Check app permissions safely

    checkOp() throws a SecurityException when the application is not
    allowed to perform the given operation. Use  checkOpNoThrow() so
    that no exception is thrown. If the operation is not permitted,
    AppOpsManager.MODE_ERRORED will be returned and AppOpsDetails will
    treat it as MODE_IGNORED (i.e. don't allow).

    BUGBASH-52

    Change-Id: Ic3177a24ae52438594e65cd19e29a86c1ee299e8

Author: Gabriele M <moto.falcon.git@gmail.com>
Date: Sun Aug 6 13:08:51 2017 +0200

    Settings: Always show Privacy Guard permissions

    Enabling Privacy Guard for an app simply means switching a set of
    operations to MODE_ASK, independently on whether the application
    actually declared those ops (though a permission) or not. The
    framework keeps track only of the ops with a non-default value. As
    consequence, all the ops set by Privacy Guard that aren't declared
    by the app through its manifest are effectively lost when set to
    their default value and the settings won't show them.

    Never hide the Privacy Guard ops to provide a consistent UI.

    Change-Id: Iafcf058f5e2074982bf45f8c82ef8d027b9358f0

Author: Gabriele M <moto.falcon.git@gmail.com>
Date: Fri Sep 1 01:46:30 2017 +0200

    AppOpsState: Hide undeclared Privacy Guard OPs

    Since commit f02e0409
    ("Settings: Always show Privacy Guard permissions"), all the Privacy
    Guard OPs are shown independently on whether the application declared
    the associated permission or not. This solved the UI inconsistencies,
    but it's still confusing. Instead of always showing these special OPs,
    hide them, unless unless the application declared the associated
    permission or the OP doesn't have an associated permission.

    Note: if a Privacy Guard OP is not associated to any permission it
    will appear for every application with Privacy Guard enabled,
    bringing back the UI inconsistency solved with f02e0409.
    This doesn't happen with the current set of OPs.

    Change-Id: Iddc92b3547187e24140a328d50c5ac09bc1a7ccf

Author: Danny Baumann <dannybaumann@web.de>
Date:   Wed Feb 8 13:44:07 2017 +0100

    Improve layout of app ops details screen.

    Change-Id: I3ee30280f6542f2c01ba39c2f821094942b9e943

Author: Michael W <baddaemon87@gmail.com>
Date:   Fri Aug 11 15:47:05 2017 +0200

    AppOps: Redesign

    * To match other settings, overhaul the current view by
      converting it to a PreferenceScreen
    * While on it, fix bug with icons not shown if previous perm
      would have the same icon
    * Add some additional icons for permissions

    BUGBASH-621

    Change-Id: I38fc01e02cd1711ee943717c42af4f40c51d94a6

Author: Luca Stefani <luca020400@lineageos.org>
Date:   Sun Aug 13 21:05:23 2017 +0200

    AppOps: Switch to an HashMap

    * Remove now unneeded getDrawableForOp function

    Change-Id: Iefefd55797bee1ceebfcf7ab18bebaa9b56bdd19

Author: Gabriele M <moto.falcon.git@gmail.com>
Date:   Thu Aug 31 22:41:06 2017 +0200

    AppOpsDetails: Generate correct summary when changing list prefs

    MODE_ENTRIES are strings of numbers, not names.

    Change-Id: I749a808951d5359e92b6974714874f705c373342

Author: Michael W <baddaemon87@gmail.com>
Date:   Sat Nov 11 17:21:50 2017 +0100

    AppOps: Add icon for "Toggle cellular data"

    Change-Id: I2b2d7bcbf2eb97d5a97df3455daea32384333566

Author: Michael W <baddaemon87@gmail.com>
Date:   Sun Nov 12 15:03:25 2017 +0100

    AppOps: Add info if app doesn't request any blockable permissions

    * Instead of only showing a blank page, actually show an info
    * This makes the screen look like it's actually blank on
      purpose

    Change-Id: Ibae3ada4ecf8559c3000028f80ff5cf054410699

Author: Michael W <baddaemon87@gmail.com>
Date:   Sun Nov 19 12:06:27 2017 +0100

    AppOps: Refactor code

    * Functions should be short
    * Gain readability by moving around code

    Change-Id: I227aaa8e0b259555fb74d9b52c3a69d72638ef10

Author: Michael W <baddaemon87@gmail.com>
Date:   Thu Jan 11 22:36:00 2018 +0100

    AppOps: Add missing icons for alarm, bluetooth, stats, toast

    * Obviously missing, so adding them

    Change-Id: Ic36991db468fb2c2888c243971ac381d08ff60ff

Author: AdrianDC <radian.dc@gmail.com>
Date:   Fri Jan 1 15:21:52 2016 +0100

    Settings: Apps started on boot shortcut in memory settings

     * Implement an intent extra to retrieve a tab target
     * Use a tab identifer from apps_ops_categories_cm
        to make sure the selection is correct or ignored

    Change-Id: I79d963ecbadc624dc45a398387a348691318b6be
Signed-off-by: default avatarAdrianDC <radian.dc@gmail.com>

Author: Adrian DC <radian.dc@gmail.com>
Date:   Sat Aug 6 00:18:09 2016 +0200

    Settings: Show only one tab on PrivacyGuard direct access

     * Allow an intent request to a specific tab to be isolated,
        giving access only to the expected settings

     * "Apps started on boot" opens only Bootup
     * "Manage root accesses" opens only Root Access

     * Related to the following commits
        Ia5bc9d56fb11700b19d73336fad13c0a936091ff
        I79d963ecbadc624dc45a398387a348691318b6be

    Change-Id: I5a720fe2a8abe5fdf1a1b91c054d8b3a57d6cc5d
Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>

Author: Danny Baumann <dannybaumann@web.de>
Date:   Mon Sep 5 09:14:26 2016 +0200

    Fix AIOOBE with root access disabled.

    Page title and template array lengths got out of sync if root access was
    disabled. Make sure this doesn't happen anymore by combining titles and
    templates into a single list prior to filtering.

    Change-Id: I069db9b9925887d6d80592eabe93b33abeaf0fe8
    JIRA: CYAN-8028

Author: Michael W <baddaemon87@gmail.com>
Date:   Tue Jan 9 23:46:00 2018 +0100

    AppOpsDetails: Display all missing ops

    * Add a new template for the remaining ops
    * Set the visibility of all ops to true

    * Inspired by Gabriele M <moto.falcon.git@gmail.com>

    Change-Id: I4f160a995a294dfbfd3013bbd29c0a9c8766ff24

Change-Id: I407a2a9690fa912e8e232883e74a0d6a0d8d80aa
parent 920bcd8d
......@@ -1207,11 +1207,10 @@
</intent-filter>
</activity>
<!--
<activity android:name="Settings$AppOpsSummaryActivity"
android:label="@string/app_ops_settings"
android:label="@*lineageos.platform:string/privacy_guard_manager_title"
android:taskAffinity=""
android:enabled="false">
android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.settings.APP_OPS_SETTINGS" />
......@@ -1222,7 +1221,6 @@
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
android:value="com.android.settings.applications.AppOpsSummary" />
</activity>
-->
<activity android:name="Settings$BackgroundCheckSummaryActivity"
android:label="@string/background_check_title"
......@@ -1236,6 +1234,30 @@
android:value="com.android.settings.applications.BackgroundCheckSummary" />
</activity>
<!-- Still need a top-level activity for showing app ops details. Aliasing
trick is so the code that is now a fragment can still be called
AppOpsDetails. -->
<activity android:name=".applications.AppOpsDetailsTop"
android:label="@*lineageos.platform:string/privacy_guard_manager_title"
android:exported="true"
android:taskAffinity=""
android:excludeFromRecents="true"
android:parentActivityName="Settings$AppOpsSummaryActivity">
</activity>
<!-- Keep compatibility with old shortcuts. -->
<activity-alias android:name=".applications.AppOpsDetails"
android:label="@*lineageos.platform:string/privacy_guard_manager_title"
android:exported="true"
android:excludeFromRecents="true"
android:targetActivity=".applications.AppOpsDetailsTop">
<intent-filter>
<action android:name="android.settings.APP_OPS_DETAILS_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="package" />
</intent-filter>
</activity-alias>
<activity android:name="Settings$LocationSettingsActivity"
android:label="@string/location_settings_title"
android:icon="@drawable/ic_settings_location"
......
......@@ -20,6 +20,8 @@
*** get*();
}
-keep class com.android.settings.lineageos.*Settings
# Keep classes that may be inflated from XML.
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
......
<!--
Copyright (C) 2016 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:height="24.0dp"
android:width="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22A9,9 0 0,0 21,13A9,9 0 0,0 12,4M12.5,8H11V14L15.75,16.85L16.5,15.62L12.5,13.25V8M7.88,3.39L6.6,1.86L2,5.71L3.29,7.24L7.88,3.39M22,5.72L17.4,1.86L16.11,3.39L20.71,7.25L22,5.72Z" />
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M 12 3 v 9.28 c -0.47 -0.17 -0.97 -0.28 -1.5 -0.28 C 8.01 12 6 14.01 6 16.5 S 8.01 21 10.5 21 c 2.31 0 4.2 -1.75 4.45 -4 H 15 V 6 h 4 V 3 h -7 Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M 9 7 H 7 v 2 h 2 V 7 Z m 0 4 H 7 v 2 h 2 v -2 Z m 0 -8 c -1.11 0 -2 0.9 -2 2 h 2 V 3 Z m 4 12 h -2 v 2 h 2 v -2 Z m 6 -12 v 2 h 2 c 0 -1.1 -0.9 -2 -2 -2 Z m -6 0 h -2 v 2 h 2 V 3 Z M 9 17 v -2 H 7 c 0 1.1 0.89 2 2 2 Z m 10 -4 h 2 v -2 h -2 v 2 Z m 0 -4 h 2 V 7 h -2 v 2 Z m 0 8 c 1.1 0 2 -0.9 2 -2 h -2 v 2 Z M 5 7 H 3 v 12 c 0 1.1 0.89 2 2 2 h 12 v -2 H 5 V 7 Z m 10 -2 h 2 V 3 h -2 v 2 Z m 0 12 h 2 v -2 h -2 v 2 Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M14.88,16.29L13,18.17V14.41M13,5.83L14.88,7.71L13,9.58M17.71,7.71L12,2H11V9.58L6.41,5L5,6.41L10.59,12L5,17.58L6.41,19L11,14.41V22H12L17.71,16.29L13.41,12L17.71,7.71Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M12,1C8.14,1 5,4.14 5,8A7,7 0 0,0 12,15C15.86,15 19,11.87 19,8C19,4.14 15.86,1 12,1M12,3.15C14.67,3.15 16.85,5.32 16.85,8C16.85,10.68 14.67,12.85 12,12.85A4.85,4.85 0 0,1 7.15,8A4.85,4.85 0 0,1 12,3.15M11,5V8.69L14.19,10.53L14.94,9.23L12.5,7.82V5M4,16V24H6V21H18V24L22,20L18,16V19H6V16"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M17,9H7V7H17M17,13H7V11H17M14,17H7V15H14M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M13,2.05V5.08C16.39,5.57 19,8.47 19,12C19,12.9 18.82,13.75 18.5,14.54L21.12,16.07C21.68,14.83 22,13.45 22,12C22,6.82 18.05,2.55 13,2.05M12,19A7,7 0 0,1 5,12C5,8.47 7.61,5.57 11,5.08V2.05C5.94,2.55 2,6.81 2,12A10,10 0 0,0 12,22C15.3,22 18.23,20.39 20.05,17.91L17.45,16.38C16.17,18 14.21,19 12,19Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M 3 13 h 2 v -2 H 3 v 2 Z m 0 4 h 2 v -2 H 3 v 2 Z m 2 4 v -2 H 3 c 0 1.1 0.89 2 2 2 Z M 3 9 h 2 V 7 H 3 v 2 Z m 12 12 h 2 v -2 h -2 v 2 Z m 4 -18 H 9 c -1.11 0 -2 0.9 -2 2 v 10 c 0 1.1 0.89 2 2 2 h 10 c 1.1 0 2 -0.9 2 -2 V 5 c 0 -1.1 -0.9 -2 -2 -2 Z m 0 12 H 9 V 5 h 10 v 10 Z m -8 6 h 2 v -2 h -2 v 2 Z m -4 0 h 2 v -2 H 7 v 2 Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M 12 2 C 8.13 2 5 5.13 5 9 c 0 5.25 7 13 7 13 s 7 -7.75 7 -13 c 0 -3.87 -3.13 -7 -7 -7 Z m 0 9.5 c -1.38 0 -2.5 -1.12 -2.5 -2.5 s 1.12 -2.5 2.5 -2.5 s 2.5 1.12 2.5 2.5 s -1.12 2.5 -2.5 2.5 Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M18,6H13A2,2 0 0,0 11,8V10.28C10.41,10.62 10,11.26 10,12A2,2 0 0,0 12,14C13.11,14 14,13.1 14,12C14,11.26 13.6,10.62 13,10.28V8H16V16H8V8H10V6H8L6,6V18H18M20,20H4V4H20M20,2H4A2,2 0 0,0 2,4V20A2,2 0 0,0 4,22H20C21.11,22 22,21.1 22,20V4C22,2.89 21.11,2 20,2Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M2,5.27L3.28,4L20,20.72L18.73,22L12.73,16H9V14L9.79,13.06L2,5.27M23,12H17V10L20.39,6H17V4H23V6L19.62,10H23V12M9.82,8H15V10L13.54,11.72L9.82,8M7,20H1V18L4.39,14H1V12H7V14L3.62,18H7V20Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M12.0,22.0c1.1,0.0 2.0,-0.9 2.0,-2.0l-4.0,0.0c0.0,1.0 0.89,2.0 2.0,2.0zm6.0,-6.0l0.0,-5.0c0.0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4.0c0.0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.0,0.67 -1.5,1.5l0.0,0.68C7.63,5.36 6.0,7.92 6.0,11.0l0.0,5.0l-2.0,2.0l0.0,1.0l16.0,0.0l0.0,-1.0l-2.0,-2.0z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M 19.43 12.98 c 0.04 -0.32 0.07 -0.64 0.07 -0.98 s -0.03 -0.66 -0.07 -0.98 l 2.11 -1.65 c 0.19 -0.15 0.24 -0.42 0.12 -0.64 l -2 -3.46 c -0.12 -0.22 -0.39 -0.3 -0.61 -0.22 l -2.49 1 c -0.52 -0.4 -1.08 -0.73 -1.69 -0.98 l -0.38 -2.65 C 14.46 2.18 14.25 2 14 2 h -4 c -0.25 0 -0.46 0.18 -0.49 0.42 l -0.38 2.65 c -0.61 0.25 -1.17 0.59 -1.69 0.98 l -2.49 -1 c -0.23 -0.09 -0.49 0 -0.61 0.22 l -2 3.46 c -0.13 0.22 -0.07 0.49 0.12 0.64 l 2.11 1.65 c -0.04 0.32 -0.07 0.65 -0.07 0.98 s 0.03 0.66 0.07 0.98 l -2.11 1.65 c -0.19 0.15 -0.24 0.42 -0.12 0.64 l 2 3.46 c 0.12 0.22 0.39 0.3 0.61 0.22 l 2.49 -1 c 0.52 0.4 1.08 0.73 1.69 0.98 l 0.38 2.65 c 0.03 0.24 0.24 0.42 0.49 0.42 h 4 c 0.25 0 0.46 -0.18 0.49 -0.42 l 0.38 -2.65 c 0.61 -0.25 1.17 -0.59 1.69 -0.98 l 2.49 1 c 0.23 0.09 0.49 0 0.61 -0.22 l 2 -3.46 c 0.12 -0.22 0.07 -0.49 -0.12 -0.64 l -2.11 -1.65 Z M 12 15.5 c -1.93 0 -3.5 -1.57 -3.5 -3.5 s 1.57 -3.5 3.5 -3.5 s 3.5 1.57 3.5 3.5 s -1.57 3.5 -3.5 3.5 Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M 20 2 H 4 c -1.1 0 -1.99 0.9 -1.99 2 L 2 22 l 4 -4 h 14 c 1.1 0 2 -0.9 2 -2 V 4 c 0 -1.1 -0.9 -2 -2 -2 Z M 9 11 H 7 V 9 h 2 v 2 Z m 4 0 h -2 V 9 h 2 v 2 Z m 4 0 h -2 V 9 h 2 v 2 Z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M12.49,15.934h-2.373L9.24,21H6.966l0.89-5.066H5.051v-2.089h3.163l0.63-3.584H5.977V8.148h3.238 l0.902-5.141h2.261l-0.902,5.141h2.373l0.914-5.141h2.261l-0.902,5.141h2.719v2.113h-3.089l-0.63,3.584h2.78v2.089h-3.139L13.874,21 H11.6L12.49,15.934Z M10.488,13.845h2.36l0.63-3.584h-2.373L10.488,13.845z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0-.83-.67-1.5-1.5-1.5zM16 19H8V5h8v14z"/>
</vector>
<!--
Copyright (C) 2016 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="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="#FF000000">
<path
android:fillColor="#FF000000"
android:pathData="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"/>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2013, 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.
*/
-->
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:scrollbarStyle="@integer/preference_scrollbar_style">
<LinearLayout
android:id="@+id/all_details"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="5dip"
android:orientation="vertical">
<!-- App snippet -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:orientation="vertical">
<!-- Application snippet label, version and icon -->
<include
layout="@layout/app_item"
android:id="@+id/app_snippet" />
</LinearLayout>
<!-- Operations list -->
<LinearLayout
android:id="@+id/operations_section"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
</LinearLayout>
</LinearLayout>
</ScrollView>
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2008, 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.
*/
-->
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:paddingTop="8dip"
android:paddingBottom="8dip"
android:columnCount="3">
<ImageView
android:id="@+id/op_icon"
android:layout_width="@android:dimen/app_icon_size"
android:layout_height="@android:dimen/app_icon_size"
android:layout_column="0"
android:layout_row="0"
android:layout_rowSpan="2"
android:layout_marginEnd="8dip"
android:scaleType="centerInside"
android:contentDescription="@null" />
<TextView
android:id="@+id/op_name"
android:layout_column="1"
android:layout_row="0"
android:layout_gravity="fill_horizontal"
android:layout_marginTop="2dip"
android:singleLine="true"
android:ellipsize="marquee"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textAlignment="viewStart" />
<TextView
android:id="@+id/op_time"
android:layout_column="1"
android:layout_row="1"
android:layout_gravity="fill_horizontal|top"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textAlignment="viewStart" />
<Switch android:id="@+id/switchWidget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="8dip"
android:layout_column="2"
android:layout_row="0"
android:layout_rowSpan="2"
android:padding="8dip"
android:focusable="false"
android:clickable="true" />
</GridLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project
Copyright (C) 2017 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.
-->
<!-- Based off packages/apps/Settings/res/layout/preference_material_settings.xml
but with different paddings -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:background="?android:attr/activatedBackgroundIndicator"
android:clipToPadding="false">
<LinearLayout
android:id="@id/icon_frame"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="56dp"
android:gravity="start|center_vertical"
android:orientation="horizontal"
android:paddingTop="4dp"
android:paddingBottom="4dp">