summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/permission/ui/wear
Commit message (Collapse)AuthorAgeFilesLines
* Set USER_FIXED for all non-granted permissions as long as one in the groupShijian Li2017-01-231-0/+23
| | | | | | | | | | is changed. This only applies to individually controlled permission group. Test: Manually test on a local build. Bug: 34561693 Change-Id: I24f83a56d4011253ed2aa78dd0613021dfe56136
* Partial cherry-pick changes on permission model change.Shijian Li2017-01-191-1/+1
| | | | | | | | | | | | Meanwhile, aligned with handheld logic that revoking individually controlled permission is marked as user fixed. The original commit id I1d6cbc478c789e7680f41b92b9f3fa2504576ecd. Test: Manual test on a local build. Bug: 34440353 Change-Id: Ie3bb75225246eefef954926f94295181f4daebd0
* Merge "Don't set USER_FIXED when revoking a permission inside Settings -> ↵TreeHugger Robot2017-01-091-1/+1
|\ | | | | | | App." into cw-f-dev
| * Don't set USER_FIXED when revoking a permission inside Settings -> App.Shijian Li2017-01-091-1/+1
| | | | | | | | | | | | Test: Manually tested on a permission test apk. Bug: 34157400 Change-Id: Ia2ce3ac6c567f869535ec92a896c6d0fd9ec6318
* | Add refresh logic for individually controlled permission in onResume.Shijian Li2017-01-091-3/+14
|/ | | | | | Test: Manually test with a testing apk. Bug: 34157556 Change-Id: I78ffbfa2fbbff14fb05242d7979cd226b1725ba7
* Expand all permissions when permissions in a group are individually managed.Shijian Li2017-01-031-53/+106
| | | | | | | | | Test: Manually tested on sawshark_sw where WRITE_CONTACTS and READ_CONTACTS are shown separately for Android Wear App. Also tested on sawshark where only one "Contacts" group shown on behalf of WRITE_CONTACTS and READ_CONTACTS. Bug: 33856934 Change-Id: I299c54e38236d039204a01d8113f427b1fc71c43
* Display support dialog for locked permissions.Matt McKeon2016-11-041-1/+34
| | | | | | BUG=32427299 Change-Id: I04c229919c24c09131244fc8acb2c64d8902bc80
* Update permissions UI to match new watch UI.Michael Kwan2016-10-119-1472/+83
| | | | | | Bug: 29250733 Bug: 31779188 Change-Id: I814db5f94bdb840b04c5e8d9e12b565cfcd5fbc1
* Add basic accessibility to Wear permissions dialogErik Wolsheimer2016-07-281-1/+4
| | | | | BUG: 30067232 Change-Id: I98ff09ce150d8c597ec7f4b1f1b86ec0997e7c02
* Cleanup of the PackageInstaller API - PackageInstallerSvet Ganov2016-04-211-4/+2
| | | | | | | | | The PackageInstaller app manages side-loading apps as well as permission management. It should be updatable, hence should rely on system APIs to talk to the platform. This is the first step of defining an API boundary. Change-Id: I37aea1e5cc3195b8b636af6790af45fe5a9765cd
* Merge "Update deny button in permission warning dialogs" into nyc-devSvetoslav Ganov2016-03-231-1/+1
|\
| * Update deny button in permission warning dialogsSvet Ganov2016-03-221-1/+1
| | | | | | | | | | | | bug:23899558 Change-Id: I37bf080d54fc4fff5dfcc9f8240b95c82fed56d2
* | Show No permissions, if there are no permissionsVinod Krishnan2016-03-182-15/+24
| | | | | | | | Change-Id: I285e326994268fc5b561e4a445ac2af326a64397
* | Support app install from a content URISvet Ganov2016-03-051-2/+1
|/ | | | | | bug:24079113 Change-Id: Ide1aa1667370f6b8d00ff269ef28992589656e9a
* No overlay when permissions shown - package installerSvet Ganov2016-02-201-6/+0
| | | | | | bug:26973205 Change-Id: Ibae1b971ceb1ea0d831435b9d5166482199e9184
* Button bar animating when it isn't supposed toAnthony Hugh2015-11-021-1/+1
| | | | | | | | There was an incorrect calculation for determining when the content was occluded by the button bar or not. BUG: 25164689 Change-Id: I121f6e0232da2d1536e0fbbf697e00a4f9c1841f
* Fix out of bounds exceptionAnthony Hugh2015-10-282-11/+21
| | | | | | | | | | | | | | | | | | It looks like the cached index had become invalid at some point. It's unclear why, but the logs suggest that a bunch of Home services crashed. Rather than cache the index within the Activity, I have changed the code to send the index along with the dialog activity launch. This way when the dialog returns, the index will be saved within the callback. The index should be enough because the permission set should not change for the app between screens and the permission set is alphabetized. BUG: 25334674 Change-Id: I8f9189960aa7fc9b09cc25f594397523550ac626
* Fix Permissions Dialog animationsAnthony Hugh2015-10-211-4/+36
| | | | | | | | | Make handler run on UI thread to avoid race conditions. Update some logic to prevent animation from running when it shouldn't be. BUG: 24954323 Change-Id: Ia1635cbb3c9128080a8e4a9c3ce6ee935c4d957e
* Reduce the top padding when message isn't at top.Danny Epstein2015-10-201-1/+2
| | | | | | | | If either the page number or an icon is shown above the message, reduce the top padding on round screens. Bug: 24961379 Change-Id: Iec9193e3bbdd8ac607743cd0010f2331edbebc81
* Add top padding to grant permission content.Danny Epstein2015-10-191-1/+1
| | | | | | | | | Add top padding to the content inside the scroll view for the grant permission dialog so that you can read the beginning of the text on round watches. Bug: 24961379 Change-Id: I9311fbaabd72bd8f8aee4f71845c1ae11bfeab8c
* Modifies wear Permission title height to avoid clippingAlex Hills2015-10-131-1/+1
| | | | | | | | | | | | We were explicitly setting the height of the permission screen title, which wasn't 100% guaranteed to work in all languages. This change sets minHeight (to maintain UI consistency) instead, and changes the height to wrap_content to enable it to expand further if necessary. Bug:24774285 Bug:24391658 Change-Id: Icf25ad6a176537b0f34a30f53220c73fccec2d24
* Permissions redline fixesAnthony Hugh2015-10-051-49/+98
| | | | | | | | | | | | This fixes the button bar animation to work on round devices and also fixes the max height animation to make sure the vertical button layout animates to max height when there are only two buttons. Also adjust some redlines like margins on the buttons and updated some files that were missing our licensing header. Change-Id: Ifad4d0f92605be04db2d3c991b4e8a26eadb4b14
* Merge "Add enabled/disabled icons for permissions on Wear" into cw-e-devAnthony Hugh2015-09-251-2/+48
|\
| * Add enabled/disabled icons for permissions on WearAnthony Hugh2015-09-231-2/+48
| | | | | | | | | | | | | | | | | | | | | | | | Adds proper enabled/disabled icons for permissions on Wear and adds the logic to flip between the two states when the permissions are toggled. BUG: 24132450 BUG: 24131441 BUG: 24277624 BUG: 24131983 Change-Id: Ie654c84fe3d648e47a76142a6f82c4348bb7fc0c
* | Fix CTS test by renaming button ids to matchAnthony Hugh2015-09-241-4/+4
|/ | | | | BUG: 24264373 Change-Id: I9f04ff68dcd11f48df9331abf2f1775c95f31f99
* Merge "Add new dialog for warning confirmations" into cw-e-devAnthony Hugh2015-09-233-24/+151
|\
| * Add new dialog for warning confirmationsAnthony Hugh2015-09-233-24/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change updates the Wear warning dialog for when users try to change permissions for system apps and apps that are targeting old SDKs. Because Wear does not have a common dialog yet, I needed to create a new activity to hold our confirmation view. Changes: - Update logic to show Wear confirmation screen instead of using AlertDialog - Added WarningConfirmationActivity - Change font size for confirmation dialog - Make ConfirmationViewHandler support hiding one of the 3 vertical buttons - rename grant_permissions.xml to more generic confirmation_dialog BUG: 24132857 Change-Id: Id225e663f0a2cd7b99fb177f780a6a3d0da15214
* | MNC Perms: Button bar animate to max half window heightVinod Krishnan2015-09-221-3/+9
|/ | | | | | | | | | - Make sure that the button bar only animates to half way (max). - Also make the buttons scrollable Bug: 24265941 Bug: 24208967 Change-Id: I68d01c72658c0e7aff35b899b638da123c44d62e
* Update Grant Permissions dialog to redlinesAnthony Hugh2015-09-222-1/+286
| | | | | | | | | | | | Changes: - Refactor the ViewHandler a bit to be more generic. This should help with another upcoming Wear dialog. - Update assets for buttons - Add deny asset - Fix margins and other UI number tweaks BUG: 24133550 Change-Id: I330bdf3217fa5c554f71d9105a0475106b6f3e12
* Permissions Settings UI updatesAnthony Hugh2015-09-174-51/+57
| | | | | | | | | | | | | Changes: - Moved non-system permission groups to the end of the list - Updated "disabled" look to match non-center looked - Fixed state string alpha to match other alphas when not centered - Minor code clean ups BUG: 24132393 BUG: 24132470 BUG: 24131983 Change-Id: I65a64d59e6fff8e0cbdaaa3da4e4a79987d6e624
* Build initial Permissions Settings UI page for WearAnthony Hugh2015-09-154-1/+589
| | | | | | | | | | | | | | | | | | | | This is a first pass to build a functional settings UI page for Permissions on Android Wear. The user flow is a little different than the phone version, so there are some nuances that need to be adjusted from the normal flow. I have forked off of the AppPermissionsFragment and created a Wear version for us to use. Rather than try to link the Wearable-Support lib into AOSP code, I have made a duplicate of the few files I needed. This change adds a Wear layout version of the Settings UI page. The UI is fully functional for most cases, but there are some tweaks still needed for full parity. The tweaks are primarily around UI and special edge case functions. BUG: 23080561 Change-Id: I8477f6b966cacaae9e77aa0fb61b4b1e621a9ead
* Permissions Watch settings UI portAnthony Hugh2015-09-154-0/+457
This CL contains all the UI elements needed to build the Wear version of the Settings UI for permissions. The actual implementation for the Wear version of SettingsUI will be done in a follow up bug. This is basically a straight port from our Settings app and wearable-support lib. I tweaked two strings and changed the package paths to make it easier to group the files together. BUG: 23080561 Change-Id: I6d72d29dd1926ad07d63f85b52ccf9f72ff70df1