summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/widget
Commit message (Collapse)AuthorAgeFilesLines
* Lower minimum vertical range for data usage.Danny Baumann2016-01-111-1/+1
| | | | | | | | Both 50MB and 20MB are kinda arbitrary, but the latter provides a better overview for people with small data plans and/or at the beginning of a month. Change-Id: I99bd9e220592f0f7acdb00f40635dfc574b4e81b
* Update vertical axis bounds when resetting network policy.Danny Baumann2016-01-111-9/+11
| | | | | | Makes sure axis gets updated when entering app data usage details. Change-Id: I5a8573a1bcbab08da2c9eee4538b4e133008343c
* Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-071-0/+3
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/packages/apps/Settings into HEAD Android 6.0.1 release 3 Change-Id: If54bacef03fc826fd02ca48db5ef3a25c8fc7127
| * Clamp large data usage values.Jeff Sharkey2015-10-191-0/+3
| | | | | | | | | | | | | | | | | | Without clamping, they can wrap around to negative values and cause all sorts of havok. 1TB ought to be enough for anyone: that's 3Mbps for a solid month. Bug: 24555152 Change-Id: If92c87f9920c3f05cd3ff2cc6630b1bbb65335b8
* | Re-Implementation of Protected App SettingsVineet Patil2015-11-242-0/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Protected App [2/3] Protected Apps Settings -> Apps: - Added Receiver which can send in a call to PackageManager to toggle a components protected status. - Add Protected Apps activity (available from Apps fragment) - Reads from ApplicationInfo state - Requires Pattern Lock to view/modify protected apps - Updates Settings Secure DB with protected components - Support resetting protected apps pattern lock Change-Id: If07a7b69ac963ffae855621881e1944fc8754782 Protected Apps: - App Info for protected Apps doesn't allow Uninstall or Clear data - App Info menu item for launching into Protected Apps when looking at protected components - Prevent process dialog from getting dismissed on touch or back key (can cause odd behavior if cancelled mid-protect) Conflicts: src/com/android/settings/applications/InstalledAppDetails.java Change-Id: I64104d7ff3fbf9d8c393ebf262d4de0b28abbc5c Reset Pattern: - If user cancels while creating new pattern, old pattern is restored Change-Id: I55955b1ffadca2ba712c40c7d443c4fc4b0f528c Clean up protected apps code (1/2) - Work with actual ComponentNames instead of converting them between String and ComponentName all the time - Name protection state parameter in methods 'state' instead of 'protect', as a value of true actually means it's not protected. Also consistently use the respective constants for its values. - Some misc. cleanup Change-Id: I2855978c8aef3cfa14249e3398039c7cdd145ede Settings: Create a security fallback on protected apps. -- Allow a user to bypass pattern lock on protected apps by inputting their primary account information for the device. Conflicts: res/values/cm_dimens.xml res/values/cm_strings.xml Change-Id: I39e5a89a8699cfd2ffaba8aea2daa4f477f2cc9b settings: reset protected apps view instead of finish the activity Finish the app after resettings the account, will lead to the protected app selection without a valid pattern. Instead this should reset the pattern view to create a new pattern prior to go to protected apps. Change-Id: Ida41a29f4f8787940f803a23014a68a2f8beb969 Signed-off-by: Jorge Ruesga <jorge@ruesga.com> Settings: Don't show protected apps options in restricted profiles. Change-Id: I38c2e8fd3508d360f0e23703ce6c939f02f3714e JIRA: 4668 Issue: https://jira.cyanogenmod.org/browse/CYAN-4668 Follow normal lock screen convention - allow user to retry when creating pattern lock Change-Id: I6ad39b07b8de3de03146322b37b60e3f846093d1 Fix: Even when the list is entirely unchecked there may still be components which are still protected and need to cleared when Reset is triggered. https://jira.cyanogenmod.org/browse/BACON-679 https://jira.cyanogenmod.org/browse/CYAN-4835 Change-Id: Ifee3e8b87be39769aedfed0f9a5bda366c67ee45 ProtectedApps pattern lock for landscape mode. Change-Id: I9ef70a0e363d4d17510188d24f4742f458fba38e Launch Protected Apps Change-Id: I2dc2e1e05c1979118d5324c3c05adfcc6f7ee22a Protected Apps: update protected apps screens UI Change-Id: I2dd922956f8ffd9ed153c3d1aa1f9161a127e4c6 Remove unnecessary drawables for launching Protected Apps Change-Id: I58f471ef9d64c7ced79befbfc30b94d75a0085a2 ProtectedAppsReceiver: fix NPE when components are null * To reproduce: create a folder at Trebuchet, lock it and leave the screen Change-Id: I49a2e76fdaa3e375b0ea5aa2bb05eaa92528dd19 Protected Apps: Show state by component instead of by app Change-Id: Idbe1d69b376fc3f42980404d9448152f606e7f8e (cherry picked from commit 56e11c8640cb9e34d07eb11fb1b67f3283b2f6f6) Protected Apps: Increase hit target of the launch app button Change-Id: I38355aca37079d43975d287ee9d81c3a500c3575 (cherry picked from commit 47e8e46f53cdf4f536845d57cc383d3c5f0ca893) Protected Apps: Monitor unlock status Monitor the Activities unlock status so that we can rotate the screen in this activity without having to unlock again. Change-Id: I8feab5cb4d55c4df0d0d1475ab6646c046f01925 Protected Apps: add some side padding in app list view Change-Id: I2549fd8f8b662e2e2c542e67cbc20e6a366fba42 Conflicts: AndroidManifest.xml res/values/cm_dimens.xml res/values/cm_strings.xml res/values/strings.xml src/com/android/settings/applications/ApplicationsState.java src/com/android/settings/applications/InstalledAppDetails.java src/com/android/settings/applications/ManageApplications.java Conflicts: res/values/cm_dimens.xml Conflicts: res/values/cm_strings.xml . Change-Id: I065ac7965a8c7253ad67a20806201fe8fc6cec84
* | Settings: Squashed commit for expanded desktopKyrylo Mikos2015-11-111-1/+25
|/ | | | | | | | | | | | | | | | | | | | | | Settings: Bringup expanded desktop and implement per-user configuration. Change-Id: Ib673d278d23423fe6885c73f1eb3dd858633e5b6 Settings: Don't load per-app extdesk into memory if not USER_CONFIGURABLE. Change-Id: Iae4857e0cd95d75ae29222bb45a8fdcf0ff1ec48 Settings: Only save settings on destroy if we're user configurable. Change-Id: Ie459053b4614f818dfa19948709a3dd0fdb8f427 Settings: Fix off-by-one SectionIndexer in Expanded Desktop. Change-Id: I7bdd1081114b40cc2ab6372d16bb247401f83a86 Settings: Create default expanded desktop style fragment. Change-Id: Ia5bebb45a953c2a8efdffbab2ddcbfa3d3c3d486
* [Fingerprint] Fix link accessibilityMaurice Lam2015-09-243-0/+942
| | | | | | | | | | Copied ExploreByTouchHelper, LinkAccessibilityHelper and LinkTextView from setup wizard and switched fingerprint_settings_footer to use LinkTextView, so that users can navigate to the link in TalkBack mode. Bug: 24343933 Change-Id: I0ff0c054510dfef4263ea223cb0044a4bddf321f
* More storage UI updates.Jeff Sharkey2015-06-151-28/+8
| | | | | | | | | | | | | | | | | | Storage volumes now have headers with larger fonts and progress bars to show used versus free space. Updated Memory to use new formatting template, and Data Usage to use consistent display logic. Allocate a unique color for each private volume, and yell when a volume is running low on space. Update private volume details to launch into MediaStore-backed storage backends in a management mode, and only show detailed items when hosting emulated storage. Show details dialog about "Other" and user storage items. Shortcut into single private volume when it's the only device. Add real eject icon. Bug: 21756698, 20275574, 21326612 Change-Id: If3ecd1d912d3e709c09d3e4da24f368e04dd3f9d
* Ensure text is visible when choosing patternAdrian Roos2015-06-111-0/+1586
| | | | | Bug: 21639578 Change-Id: Ib948411b3087c752a36ed6f853915e59946c0988
* Fix some dark theme issues (Take 2)Jason Monk2015-06-041-3/+6
| | | | | | | | | | Now with visible lock patterns! Both light and dark! Bug: 21117509 Bug: 21077345 Bug: 21480587 Bug: 21621900 Change-Id: Ibcf822faf7cbc83be43d757e0a6a9432ef3346af
* Settings: Fabulous "Add rule" button.John Spurlock2015-04-161-0/+49
| | | | | Bug: 20064962 Change-Id: If7ff9d6cdfc61e5dd9e0d3bc4e2228c5fdaf9fa9
* Zen: Move zen mode preference to switch bar.John Spurlock2015-04-041-3/+31
| | | | | | | | | | - Add summary line support to SwitchBar. - Remove obsolete strings. - Wire up switchbar to zen mode w/ dialog prompt. - Remove obsolete callback pref helper. Bug: 20064962 Change-Id: Ifede00b5d43d441ccd94db96bd2796bc57d1a990
* Settings: Remove all unused imports.John Spurlock2015-03-183-6/+0
| | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* Move isolatable bluetooth code to SettingsLibJason Monk2015-02-051-3/+4
| | | | | | | | | | | | | | | Move the non-ui bluetooth control/tracking code to SettingsLib so that it can be shared with others. Mostly just move classes to frameworks/base/packages/SettingsLib, however a few things had to move around. - Dock handling had to move back to code still in settings - Local preference related code had to be moved back to settings - Added an error flow from SettingsLib to Settings Depends on I69fd888362c6dbb325f6113b32c4b15cc6a23a41 Bug: 19180466 Change-Id: Ie57fe26a27bbb0adc2ef69e042a05c7290c6a52a
* [WifiSetup] Add shadow below headerMaurice Lam2014-08-291-1/+2
| | | | | | | Added shadow for phone portrait and landscape layouts Bug: 17136887 Change-Id: I65dc01d7387812681bbc99d5cc9440714a72ff60
* [WifiSetup] Update illustrationMaurice Lam2014-08-271-17/+18
| | | | | | | | Update the illustration assets and make the tablet illustration always 256dp height according to mock. Bug: 17133710 Change-Id: I6d84bbb25a9f443e4eb6bf4c1002d8a1438029ef
* Set switch to the correct enabling stateLifu Tang2014-08-181-1/+1
| | | | | | - Fix b/16951708 Change-Id: I4f9a2a374a771fd353fca436a0d34644f9bc8320
* [WifiSetup] Use framework AutoMirroredMaurice Lam2014-08-151-8/+6
| | | | | | | | Use framework autoMirrored and override onResolveDrawables to propagate the layout direction to the drawables. Bug: 17047609 Change-Id: Ic4a764510e3a89c897d4e243f8fa2a690ac71899
* [WifiSetup] Update illustrationsMaurice Lam2014-08-141-0/+10
| | | | | | | | Update illustration assets and support for auto-mirroring for RTL languages. Bug: 16888091 Change-Id: I828a13558aff42f2ddb12b9afe123f463c4c1522
* Merge "[WifiSetup] Tablet landscape layout" into lmp-devMaurice Lam2014-07-232-44/+60
|\
| * [WifiSetup] Tablet landscape layoutMaurice Lam2014-07-232-44/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | Created setup_preference for sw600dp-land, modeled after template_with_header in Setup Wizard. Copied over wide illustration, which is again a placeholder and needs real graphics from UX. Renamed SetupWizardHeader to SetupWizardIllustration. Added aspectRatio attribute to SetupWizardIllustration that, will set the aspect ratio of the top padding. If 0 or not specified, padding will not be set. Bug: 16349429 Change-Id: Ic2623ee0c0ee8864383d22da006b418b8c371bf0
* | Data Usage, materialized!Jeff Sharkey2014-07-226-389/+102
| | | | | | | | | | | | | | | | | | | | | | | | Asset drop so Data Usage matches new Material spec. Removes time dimension sweeps, so we now summarize the entire visible axis. Fix time axis labels to not draw outside clip bounds. Remove pie chart. No more checkboxes in menus. Telephony items like roaming are moved back to cellular settings. Start wiring up multi-SIM support. Bug: 15760500, 16019700, 16289924, 16303795 Change-Id: Ie8f4821962319bb82ff4bc2f13f1f66ba1bdfe65
* | Stop using framework-private switch assetAlan Viverette2014-07-221-3/+0
|/ | | | | BUG: 16467249 Change-Id: I0829c3dea522cf59e0f92046ea7c6092d416ad4c
* Fix bug #16319697 ACTION_DEVICE_INFO_SETTINGS intent causes Settings app to ↵Fabrice Di Meglio2014-07-151-6/+21
| | | | | | | | crash - fix the way we are passing switchBarMarginStart / switchBarMarginEnd Change-Id: Ic6e67643be10877a74ae68075460fa5fd4cc5da1
* [WifiSetup] L layout updateMaurice Lam2014-07-093-63/+274
| | | | | | | | | Changed the layout based on the new design mocks. Copied over StickyHeaderListView and SetupWizardHeader. Currently using the generic illustration but will update to Wifi setup specific version once we get them. Change-Id: I22bdef8c9860d419be55938e1e4a6a682db5b7e8
* Fix bug #15897505 Talk back state shows "off" while the talk back is still ↵Fabrice Di Meglio2014-06-271-0/+5
| | | | | | | | | | enabled. - we were missing the update of the TextView from the SwitchBar so provide a new setCheckedInternal() method that is doing the TextView and Switch update at the same time Change-Id: I6dd9c472a386bb534a58fbf5cf82d9d01fa74f6c
* Fix bug #15939648 "Use TalkBack ?" is shown after orientation change even if ↵Fabrice Di Meglio2014-06-271-4/+8
| | | | | | | | | it was OFF before - prevent onSaveInstanceState() on the ToggleSwitch - fix missing setOnCheckedChangeListener() when restoring the SwitchBar state Change-Id: I818577004f142be46fa378389f264c7f37cfd7b8
* resolved conflicts for merge of f9360dbc to masterFabrice Di Meglio2014-06-121-8/+96
|\ | | | | | | Change-Id: I2e468d83a7ce5200c59f63b4362e7bee10d0a2eb
| * Make the SwitchBar appear immediatelyFabrice Di Meglio2014-06-121-8/+96
| | | | | | | | | | | | | | | | - change the way the SwitchBar is shown and hidden - save its state - remove the delay transition code Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
* | am 6ba7075a: Merge "Entire Switch bar should be a touch state" into ↵Fabrice Di Meglio2014-06-041-3/+17
|\ \ | |/ | | | | | | | | | | lmp-preview-dev * commit '6ba7075ae8afb1edc5cb7864bc71121c9992903f': Entire Switch bar should be a touch state
| * Entire Switch bar should be a touch stateFabrice Di Meglio2014-06-021-3/+17
| | | | | | | | | | | | | | | | | | | | - add click listener for toggling the Switch and its text - add Ripple background to the SwitchBar to make a nice Ripple when there is a click/touch See bug #15385724 Entire Switch bar should be a touch state Change-Id: I26ef77ace596029e9c3e1e17b153b54df4a9110e
* | Refactor setup wizard-related codeRussell Brenner2014-05-301-0/+63
| | | | | | | | | | | | | | | | | | | | Extracted setup-related code from WifiSettings, putting it into a new derived class, WifiSettingsForSetupWizard. Set taskAffinity to com.android.wizard, for alignment with other setup wizard-related tasks. Change-Id: If371f219dac5d3eff8f7899c16cc6f9475be47cf
* | This CL is not working (even after careful testing) but when I tried I was ↵Fabrice Di Meglio2014-05-282-40/+4
| | | | | | | | | | | | | | | | | | | | not completely ToT. Revert "Fix bug #15170508 When I initially load settings, all on/off toggles start in off position then move to on after pane loads" This reverts commit 1e52db8063a0be2254097b4d85527a91d141b505. Change-Id: I73bdfeba4a4b3e993e37cdae1e3733ffe272b9eb
* | Fix bug #15170508 When I initially load settings, all on/off toggles start ↵Fabrice Di Meglio2014-05-272-4/+40
|/ | | | | | | | | | | in off position then move to on after pane loads - refactor all the code that was using the Switch to control it thru the SwitchBar - start the Switch as View.GONE and make it View.VISIBLE when it is set as "enabled" or "checked" so that you dont see the Switch transition (it shows only with it final state) Change-Id: I382076bf3c819c530b5b2c06ca2429dfb2cdc6bf
* Use SwitchBar for Accessibility SettingsFabrice Di Meglio2014-05-152-3/+17
| | | | | | | | | | Deals with Talkback / Captions / Magnification Gestures - follow up CL to 41937766981423c9252e12e3319b2e7532739627 Related to bug #14898161 On/Off switches must move down from Action Bar Change-Id: Ibda0ed05b399f1b2b4464c5b22a3e9fd3d378867
* Code refactoringFabrice Di Meglio2014-05-151-0/+49
| | | | | | - move ToggleSwitch to the widget package Change-Id: Id277fc11c78363bf7d7b229ef9ae91c1ec5d6774
* Introduce SwitchBar widgetFabrice Di Meglio2014-05-141-0/+128
| | | | | | | | | | | | | - SwitchBar is a LinearLayout that containts a TextView and a Switch and is intended to replace all Switches that are put in the ActionBar as a custom view - use the new SwitchBar for WifiSetting only for now (a later CL will take care of all the other Setting that are using a Switch in the ActionBar) Related to bug #14898161 On/Off switches must move down from Action Bar Change-Id: I5e98dbe995bba8f440d08459e09ca3ac09d3464b
* Use java.util.Objects instead of internal APIKenny Root2013-12-131-3/+3
| | | | Change-Id: Ib0d797b3e7f2e4f831f52832776b64c0973880b3
* Update power widget icons and fix location behaviorDavid Christie2013-11-071-11/+17
| | | | | | Bug: 11242129 Change-Id: I29f5b4cf914ece4b0991229f384012eb66ba3820
* Switch to receiving LocationManager.MODE_CHANGED_ACTIONTom O'Neill2013-09-031-1/+1
| | | | | | | | - From LocationManager.PROVIDERS_CHANGED - Part of fix for b/10409275 Change-Id: I4030c8df4db942777d6035266a8ed7f18e458fb5
* Fixed the widget location toggle buttonLifu Tang2013-08-281-3/+17
| | | | | | - Fix b/10531669 Change-Id: Iba08d515119c42e5c4de4ee02d6dd8aea404fc69
* Switch to new location mode API recommended by API councilTom O'Neill2013-08-261-2/+3
| | | | | | - Part of b/10461763 fix Change-Id: I202ce4c817f24a1682796e92fed9cc3efcc31a81
* Update power widget to represent gps instead of location master.David Christie2013-08-211-5/+10
| | | | Change-Id: I62f701b612db2e31f9ad8b016dbf37ed7fd4ef26
* Switch location Settings and Power widget to use new Settings api.David Christie2013-08-201-3/+7
| | | | Change-Id: I06b7a2e21876a18d9ad42fda2a6c6d4c7b6add48
* Modify Power Widget Gps Icon To Represent Location.David Christie2013-08-081-26/+21
| | | | | | | Instead of directly controlling gps on/off, it will control master location switch on/off. Change-Id: I12a20fb77c12b5099172167821ff7ed00ba9ea7c
* Respect user restrictions about adding/removing accounts, sideloadingMaggie Benthall2013-03-271-1/+1
| | | | | | | | | | | | Hide or disable options in the settings app when the user is restricted from making changes. Remove "Add account" button from Settings menu, and "remove account" option from menu in AccountSyncSettings. Remove sideloading checkbox in SecuritySettings. Also handle replacement of UserManager.isShareLocationToggleAllowed() with hasUserRestriction, which takes a restriction key string. Change-Id: I34c74fd5aed8956ba00f92e3d3c657b608454dfe
* Remove guava dependency to speed up build.Jeff Sharkey2013-03-065-8/+7
| | | | Change-Id: I4cee4b6324e72e94c1241e10f3cdc507d65512cd
* Respect user restriction against toggling location sharing settings.Maggie Benthall2013-02-251-5/+13
| | | | Change-Id: I1e629129fc9b3b224d4f4402b56d904df9edc43f
* Follow API changes.Jeff Sharkey2012-12-111-4/+2
| | | | | Bug: 7333397 Change-Id: I72a27dbe02be376ec1c781955e930e87ea59b5a0
* Addressing issue where power control widget disappears issue 7205586Adam Cohen2012-09-211-12/+0
| | | | Change-Id: I6eea146d3819d3b35f1420e59d4ebdbc66041a9e