summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Merge "Add mechanism for determining if apps are system apps" into cw-e-devAnthony Hugh2015-10-302-3/+26
|\
| * Add mechanism for determining if apps are system appsAnthony Hugh2015-10-272-3/+26
| | | | | | | | | | | | | | | | This is being added to help identify system apps so that the UI can filter on that type. BUG: 24955055 Change-Id: I8d843bae2d81329009c8cda8c25355d08ab9d1d7
* | 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
* am 6986f29b: Auto grant permissions in an already granted group.Svetoslav Ganov2015-10-151-2/+18
|\ | | | | | | | | * commit '6986f29bb93a6aaaeaaddcab081d0e0afd7082e8': Auto grant permissions in an already granted group.
| * Auto grant permissions in an already granted group.Svetoslav Ganov2015-10-151-2/+18
| | | | | | | | | | | | bug:24074183 Change-Id: Iad6f9b7d5b83d0b0121796891bcd069658995a47
* | am 86f1ee8c: Revert "Auto grant permissions in an already granted group."Ian Pedowitz2015-10-151-18/+2
|\| | | | | | | | | * commit '86f1ee8c2db04d37d48f25a60086e5a27a812fb9': Revert "Auto grant permissions in an already granted group."
| * Revert "Auto grant permissions in an already granted group."Ian Pedowitz2015-10-151-18/+2
| | | | | | | | | | | | This reverts commit c7e595a22c11247b3e6b0fbfa324542321ab9d14. Change-Id: I0a319ef590e9c0f830af470155213677bed684f4
* | am c7e595a2: Auto grant permissions in an already granted group.Svetoslav2015-10-151-2/+18
|\| | | | | | | | | * commit 'c7e595a22c11247b3e6b0fbfa324542321ab9d14': Auto grant permissions in an already granted group.
| * Auto grant permissions in an already granted group.Svetoslav2015-10-151-2/+18
| | | | | | | | | | | | | | bug:24074183 Change-Id: I8eb4e4c76ed27721b04e09ae009ddd2daec1e0b1 (cherry picked from commit ecc46fe0ce772338786cb9e23cb872189e6a285c)
* | Merge "MNC Perms: Missed some cases for package installation" into cw-e-devVinod Krishnan2015-10-131-48/+64
|\ \
| * | MNC Perms: Missed some cases for package installationVinod Krishnan2015-10-131-48/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - If {Companion App was targeting M, Companion was running L, watch is running M, watch app is targeting M}, we were not installing the app before this fix. - If {Companion App was targeting M, Companion was running M, watch is running M, watch app is targeting M}, we were not installing the app before this fix. Bug: 24813602 Bug: 23378733 Change-Id: I96f06adad2372517e57467d4af8d87dcb6068445
* | | 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-052-50/+99
| | | | | | | | | | | | | | | | | | | | | | | | 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 "Block Install Intent for Wear devices" into cw-e-devVinod Krishnan2015-10-012-2/+27
|\ \
| * | Block Install Intent for Wear devicesVinod Krishnan2015-09-282-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - We did not support this feature on Android Wear before - The impact is unknown. For example, the Setting for UNKNOWN_SOURCES is not implemented in Android Wear Settings App. Bug: 24336381 Change-Id: I0fb4006d4769291c872e8f21407383a7c4a77b93
* | | 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-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
* | Merge "Build initial Permissions Settings UI page for Wear" into cw-e-devErik Wolsheimer2015-09-166-2/+599
|\ \
| * | Build initial Permissions Settings UI page for WearAnthony Hugh2015-09-156-3/+599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Fix build breakAnthony Hugh2015-09-151-1/+2
|/ / | | | | | | | | | | Referenced wrong R Change-Id: Ic4157964a09dd65cada2efd5fc213bd3089b0b4a
* | Merge "Permissions Watch settings UI port" into cw-e-devAnthony Hugh2015-09-169-0/+2772
|\ \
| * | Permissions Watch settings UI portAnthony Hugh2015-09-159-0/+2772
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am b6e35d1c: am 30707bb7: Use unique preference key.Svet Ganov2015-09-152-8/+8
|\ \ \ | | |/ | |/| | | | | | | * commit 'b6e35d1c5efeec22481f4912a7e422daad601fbc': Use unique preference key.
| * | Use unique preference key.Svet Ganov2015-09-122-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The UI code was wrongly using UID as the key - it is not unique - resulting in keeping only one app per UID in the UI and not showing permission controls for the other apps in this UID. This change uses the unique package plus UID as the preference key. bug:23937944 Change-Id: I859afcf3ec8efdcb62d0e9dacd19f771436da084
* | | Merge "Add an API for getting list of all apps that have runtime perms" into ↵Vinod Krishnan2015-09-142-21/+77
|\ \ \ | | | | | | | | | | | | cw-e-dev
| * | | Add an API for getting list of all apps that have runtime permsVinod Krishnan2015-09-142-21/+77
| | |/ | |/| | | | | | | | | | | | | | | | | | | Bug: 23819535 - Used for Android Wear Change-Id: Ie42ce04453cb0cd7d2cf292065bbb1891fffbfa9
* / | Changing layout to make button animations workVinod Krishnan2015-09-1411-26/+182
|/ / | | | | | | | | | | | | | | | | | | | | - 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
* | Redo Move ClockworkPackageInstaller functionality here"Vinod Krishnan2015-09-093-0/+964
| | | | | | | | | | | | This reverts commit 5b26c2e64ceeaa1e71436b36a28f53100e358ed8. Change-Id: I88fa09f87023a7c1b2aac3100cfbdce6283de770
* | Revert "Move ClockworkPackageInstaller functionality here"Griff Hazen2015-09-083-964/+0
| | | | | | | | | | | | | | | | Breaking ub-wear-dinar/ub-wear-master builds This reverts commit aa4368cafc3c92b33a99c3fbe0e6af08d7e092e4. Change-Id: Ib22189891e9cd9eef61cdaa5ac329d05ab9783e8
* | Move ClockworkPackageInstaller functionality hereVinod Krishnan2015-09-043-0/+964
| | | | | | | | | | | | | | | | | | - The code is being moved from https://cs.corp.google.com/#android/vendor/google_clockwork/packages/PackageInstaller/src/com/google/android/clockwork/packageinstaller/ Bug: 22411517 Change-Id: If6a0b7f49530176a6cff6b76ee6eff44ba822547
* | am ab4bb65e: am 3c44cc54: Display properly runtime permissions without a ↵Svetoslav2015-09-022-15/+3
|\| | | | | | | | | | | | | corresponding app op. * commit 'ab4bb65e30cfc7323dc7dfab8f370c7452956962': Display properly runtime permissions without a corresponding app op.
| * Display properly runtime permissions without a corresponding app op.Svetoslav2015-09-012-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | We added the GET_ACCOUNTS permission to the contacts group but it does not have an app op. The UI code was written with the assumption that all runtime permissions have an app op and was not showing the contacts group if the only requested permission from that group was GET_ACCOUNTS. bug:23726958 Change-Id: Iad5493297901c3f1144f4d58a3dad3f022c593a1
* | am 5d2d9baa: am f7fc0631: Merge "Show location permission toggle for ↵Svetoslav Ganov2015-08-316-9/+23
|\| | | | | | | | | | | | | 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-316-9/+23
| |\
| | * Show location permission toggle for location providerSvetoslav2015-08-286-9/+23
| | | | | | | | | | | | | | | | | | bug:23528665 Change-Id: Id3a0838c3421b56dcf47c86043bb51c670268d03
* | | am 954f5f2e: am 711f8a17: Merge "Revert "Show location permission group, ↵Svetoslav Ganov2015-08-311-4/+2
|\| | | | | | | | | | | | | | | | | | | | even when fixed."" into mnc-dev * commit '954f5f2ed1c7ff288ba9f4686bdee93860d02720': Revert "Show location permission group, even when fixed."
| * | Merge "Revert "Show location permission group, even when fixed."" into mnc-devSvetoslav Ganov2015-08-311-4/+2
| |\|
| | * Revert "Show location permission group, even when fixed."Svetoslav Ganov2015-08-281-4/+2
| | | | | | | | | | | | | | | | | | This reverts commit 3c093f94a82a7b013dd93edf3f5811aa3763af4b. Change-Id: I28e5597390df3abfdde6e4f8c46d0350028392c8
* | | 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