summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/permission/ui
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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-223-59/+84
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix build breakAnthony Hugh2015-09-161-1/+1
| | | | | | | | | | | | Another bad merge. Util was changed to isWear, not isWatch Change-Id: If15036edbb09114a17fd5993c145433b5c274ec8
* | Build initial Permissions Settings UI page for WearAnthony Hugh2015-09-155-2/+598
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Permissions Watch settings UI port" into cw-e-devAnthony Hugh2015-09-164-0/+457
|\ \
| * | 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
* | | Changing layout to make button animations workVinod Krishnan2015-09-146-14/+141
|/ / | | | | | | | | | | | | | | | | | | | | - Fix the Permissions Dialogs for round layout - Show animation for the buttons - Also fixed the names ellipsis issue. - Fixed the theming of the dialogs. Bug: 23118402 Change-Id: I385c827ac41b06222334c36bfda2c70b346232a2
* | am 5d2d9baa: am f7fc0631: Merge "Show location permission toggle for ↵Svetoslav Ganov2015-08-312-3/+15
|\| | | | | | | | | | | | | location provider" into mnc-dev * commit '5d2d9baa01c06ff8f247419eb3b66e8e21844b28': Show location permission toggle for location provider
| * Merge "Show location permission toggle for location provider" into mnc-devSvetoslav Ganov2015-08-312-3/+15
| |\
| | * Show location permission toggle for location providerSvetoslav2015-08-282-3/+15
| | | | | | | | | | | | | | | | | | bug:23528665 Change-Id: Id3a0838c3421b56dcf47c86043bb51c670268d03
* | | am 5005cc47: am 79fe6c1c: Merge "Refresh permissions UI on fragment resume" ↵Svetoslav Ganov2015-08-291-1/+1
|\| | | | | | | | | | | | | | | | | | | | into mnc-dev * commit '5005cc47bd411539b2815d39b1e55fdb950f83af': Refresh permissions UI on fragment resume
| * | Merge "Refresh permissions UI on fragment resume" into mnc-devSvetoslav Ganov2015-08-281-1/+1
| |\ \ | | |/ | |/|
| | * Refresh permissions UI on fragment resumeSvet Ganov2015-08-231-1/+1
| | | | | | | | | | | | | | | | | | bug:23435039 Change-Id: I244d73d3482cc17447e5e673a461183e03bc67a6
* | | am 1e6cd17f: am 919d56f9: Merge "Always set permission policy to fixed" into ↵Ian Pedowitz2015-08-271-3/+3
|\| | | | | | | | | | | | | | | | | | | | mnc-dev * commit '1e6cd17f5abde2e6dd9a28021af5edc977c5b430': Always set permission policy to fixed
| * | Always set permission policy to fixedBenjamin Franz2015-08-251-3/+3
| | | | | | | | | | | | | | | Bug: 23408576 Change-Id: I981810de6f5b49b94371606cc5cf7baf51375485
* | | am cc893701: am bb27277d: Use actual app name in location dialog.Jeff Sharkey2015-08-221-1/+1
|\| | | | | | | | | | | | | | * commit 'cc893701a129ead00f2e753481fabae21153b1f2': Use actual app name in location dialog.
| * | Use actual app name in location dialog.Jeff Sharkey2015-08-211-1/+1
| | | | | | | | | | | | | | | Bug: 21805447 Change-Id: I394f40d0d8bce1541ec57cac7a60751b740aefaf
* | | am 7f4103b0: am 8dcea3bf: Show multi-permission UI in the requested order.Svet Ganov2015-08-221-8/+10
|\| | | | | | | | | | | | | | * commit '7f4103b04d6af92fd92d92f5526b73aa76fbd233': Show multi-permission UI in the requested order.
| * | Show multi-permission UI in the requested order.Svet Ganov2015-08-211-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apps can request several permissions at once but the UI was not shown in the request order. This is problematic since apps may show on board UI stating which permissions will be requested. Bug: 23314383 Change-Id: I0c59a741fb09e63bead0f76d4d337769d2dff387
* | | am af8c918e: am ab1e5900: Merge "Revert "Grant only requested permissions ↵Ian Pedowitz2015-08-222-21/+12
|\| | | | | | | | | | | | | | | | | | | | not the whole group."" into mnc-dev * commit 'af8c918e6a54c95d35f1e92cb16a4251e1ee7fb8': Revert "Grant only requested permissions not the whole group."
| * | Revert "Grant only requested permissions not the whole group."Ian Pedowitz2015-08-212-21/+12
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e899d8d48558a6d4a8f0498c38a623115aad2205. Bug: 23314383 Bug: 23397858 Change-Id: Ia928a4b24c60eae6b4fb16ebdbfa6b6787f6c3ae
* | | am 4a399b32: am d7b72885: Revert "Show multi-permission UI in the requested ↵Ian Pedowitz2015-08-221-10/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | order." * commit '4a399b3249a39c66108f7bed37c95bc4d43a92b2': Revert "Show multi-permission UI in the requested order."
| * | | Revert "Show multi-permission UI in the requested order."Ian Pedowitz2015-08-211-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit dda78230999da573318594c7cfcdbc738bab864e. Bug: 23314383 Bug: 23397858 Change-Id: I8d06936ad8a51299148f0a311da81d8868840e78
* | | | Implement base version of GrantPermissions dialogAnthony Hugh2015-08-213-0/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the Emerald release, we need to support the new permission APIs. This changelist adds a dialog for the Activity.requestPermissions() API so that users can request permissions. This check in is a functional version, but not polished. will need to be a follow up CL to add the correct animations and update the UI to the appropriate redlines. The implementation for the confirmation dialog is modeled after the one in the clockwork libs/Views folder. There are some tweaks to match the designed behavior of the permission dialog. When there's more time in the future, we should try to condense this to one implementation. This is a resubmit without the wearable-support lib. I will figure out how to get that referenced in the next UI pass. BUG: 23118402 Change-Id: Ib2fb94b356aa965b999b3e12726fda86928a963e
* | | | Merge "Revert "Implement base version of GrantPermissions dialog"" into cw-e-devAnthony Hugh2015-08-213-315/+0
|\ \ \ \
| * | | | Revert "Implement base version of GrantPermissions dialog"Anthony Hugh2015-08-213-315/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b7da1f5f9886ff8a4ad81b0d617d442c461ca1e5. We can't reference vendor from this package. Need to add the references manually. Change-Id: I3ee31de110f24014100ce804b0659055b26f963b
* | | | | Merge "Implement base version of GrantPermissions dialog" into cw-e-devAnthony Hugh2015-08-213-0/+315
|\| | | | | |/ / / |/| | |
| * | | Implement base version of GrantPermissions dialogAnthony Hugh2015-08-213-0/+315
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the Emerald release, we need to support the new permission APIs. This changelist adds a dialog for the Activity.requestPermissions() API so that users can request permissions. This check in is a functional version, but not polished. will need to be a follow up CL to add the correct animations and update the UI to the appropriate redlines. The implementation for the confirmation dialog is modeled after the one in the clockwork libs/Views folder. There are some tweaks to match the designed behavior of the permission dialog. When there's more time in the future, we should try to condense this to one implementation. BUG: 23118402 Change-Id: Ic90d37a2ce8a7adacb7c4e004b0a5260b624f5c8
* | | Show multi-permission UI in the requested order.Svet Ganov2015-08-201-8/+10
| |/ |/| | | | | | | | | | | | | | | | | | | Apps can request several permissions at once but the UI was not shown in the request order. This is problematic since apps may show on board UI stating which permissions will be requested. bug:23314383 Change-Id: Iffd0f4fd7df04aeece3995290a7798a559430304
* | Grant only requested permissions not the whole group.Svet Ganov2015-08-202-12/+21
|/ | | | | | | | | | | | The policy for an app requesting permissions is that only the requested permissions are granted not the whole groups to which these permissions belong. There was a regression where we granted the whole group not only the requested permissions. If an app has a permission in a group already granted, now per policy a subsequent request from the same group is followed by an auto grant. bug:23370436 Change-Id: Icce6377d60187f6f153d10d646cd8c9878dd6fab
* Fix issue #23115154: APR: NPE in PackageInstallerDianne Hackborn2015-08-111-0/+4
| | | | Change-Id: If89e603508e02cad781ee455b2149af1024bd443
* Do not show removed permissions in the UI - frameworkSvet Ganov2015-08-071-0/+5
| | | | | | bug:23043018 Change-Id: I32efe93f8c52924263b16d80e09fae1a0a6babf5
* Show warning when touches are being blocked by overlaysJason Monk2015-08-076-4/+121
| | | | | Bug: 22317719 Change-Id: I5f6526bcce382ae6fabe32d3f8842567d8dc8701
* Update permission icons to final versions - installerSvet Ganov2015-07-211-1/+2
| | | | | | bug:22383613 Change-Id: I40cb08df6b2cd01bc2db57b47062f8bd05ea673f
* Keep the permissions dialog width consistentJason Monk2015-07-201-1/+7
| | | | | Bug: 22532807 Change-Id: Ie89b4287094bc6525463c6238b53d8ee68395e38
* Remove the obsolete 'show legacy' option from permission screensSvet Ganov2015-07-164-72/+18
| | | | | | bug:22523221 Change-Id: I09b605c7689c7402942c02a2639f1f28c7ee0c54
* Add "show additional permissions" screen to app permissions for TV.Todd Volkert2015-07-146-91/+105
| | | | | | | | | | | | | This also cleans up some code: 1) Factor out isTelevision into Utils.isTelevision() and call it where we were previously inlining that code 2) Make AppPermissionsFragment work better with config changes and screen rotation changes (the extra screen wasn't working at all with such changes) b/22045242 Change-Id: I937eaa67f19f44b5e1a76a58e3fdd799ae36e73b
* Merge "Add animation to checkbox" into mnc-devJason Monk2015-07-141-2/+20
|\
| * Add animation to checkboxJason Monk2015-07-141-2/+20
| | | | | | | | | | Bug: 22356913 Change-Id: I7a1186b9cdeddf7da9d2cace0f24fa7734e245b9
* | Fix back arrow on additional permissionsJason Monk2015-07-131-0/+11
|/ | | | | Bug: 22446403 Change-Id: I76d74ad49bfa90ba1680284fa6950450a214bf0c
* Merge "Don't flash "No apps" while loading permissions screens on TV" into ↵Todd Volkert2015-07-114-16/+22
|\ | | | | | | mnc-dev
| * Don't flash "No apps" while loading permissions screens on TVTodd Volkert2015-07-104-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | This borrows from the work done in ag/722429, and: 1) makes it work for TV 2) fixes a bug in ag/722429 whereby we would show loading forever if preference count was 0 (as opposed to correctly showing "No apps" / "No permissions") b/22090283 Change-Id: I7e2d8a4b99f99e2d1a933a2ac87494e38d2f77b9
* | Properly label the permission request activity for accessibilitySvet Ganov2015-07-101-0/+2
|/ | | | | | bug:22129341 Change-Id: Ic296e44419388aff5d8b8e03c5c800364b44e44b
* Add "Show system apps" to "apps > permissions > [permission]" for TVTodd Volkert2015-07-092-32/+169
| | | | | | b/22045256 Change-Id: I5f3f9a87875f02f9ca11b8001515ad82c260919b
* Merge "Add all permissions screen" into mnc-devJason Monk2015-07-092-1/+231
|\