summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DateTimeSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* Settings: update time zone strings on date changeLuis Vidal2016-05-171-0/+13
| | | | | | | | | | | | | | If the user changes the date, most obvious case being from 1970, to a current date, and the user's selected Locale's country time zones have been changed (according to ICU), we must update the time zone strings in the system. Ref: CYNGNOS-453 Signed-off-by: Roman Birg <roman@cyngn.com> (cherry picked from commit 926c3b0a50e521368628ef0d9975c99fa4cd3480) Change-Id: I487c54cd4f933286c5004d24a3f8730ee2d4e4f6
* Modifications for changes to SettingsLibNeil Fuller2015-06-091-1/+1
| | | | | | | | See associated changes in frameworks/base for details. Bug: 19058953 Bug: https://code.google.com/p/android-developer-preview/issues/detail?id=2132 Change-Id: Ic3393df28dd63ca75b203d1d0430d69cab7c40de
* Move ZoneGetter into SettingsLibTony Mantler2015-05-281-37/+4
| | | | Change-Id: Ia998ae0bd7fc4c974e03df7c8fc380d98a3e71de
* log visibility of viewsChris Wren2015-03-271-0/+7
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Settings: Remove all unused imports.John Spurlock2015-03-181-1/+0
| | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* am 3dd51556: Merge "Remove vestigial "Choose date format" option."Elliott Hughes2014-11-171-48/+2
|\ | | | | | | | | * commit '3dd51556bcbf7addcc17d29dd360165ee7ede1ee': Remove vestigial "Choose date format" option.
| * Remove vestigial "Choose date format" option.Elliott Hughes2014-11-141-48/+2
| | | | | | | | | | | | | | | | | | | | Almost all of our date formatting goes via icu these days, so this is a no-op almost everywhere. (And should be a no-op everywhere soon.) There's no obvious way to fix it, so remove it. UI guidelines say we should use spelled out month names anyway. Bug: 18322220 Change-Id: Ic9e903eceab3c096426f313bf4ef3a38644774e1
* | Fix bug #15730311 Checkboxes on R side should update to Quantum/Material ↵Fabrice Di Meglio2014-10-131-7/+7
|/ | | | | | | | | | | | on/off switch Per UX request, use a Switch for: - Automatic date & time - Automatic time zone - Use 24-hour format Change-Id: Ie35816febe2469705446fdd2c703b52ff8b0929a
* Disable auto time checkbox if date/time locked down by DO.Sander Alewijnse2014-08-271-1/+13
| | | | | Bug:16948504 Change-Id: I2a2b21684e17639233cd8c0dad7d3b44c4a2bd26
* Revert "Revert "Set 24 hour pref. with ACTION_TIME_CHANGED.""Narayan Kamath2014-03-111-5/+5
| | | | | | This reverts commit 9ebc27c73e7096159024605a2c4ab1a4b3abbd83. Change-Id: Id440bd004fee696472aeec9eefa5732755b19627
* Revert "Set 24 hour pref. with ACTION_TIME_CHANGED."Narayan Kamath2014-02-271-5/+5
| | | | | | This reverts commit d5d9d373619de3437593763578854a83f5539306. Change-Id: I76eeb6f95a4cbbd241db1fb90528b4d91ddf7707
* Set 24 hour pref. with ACTION_TIME_CHANGED.Narayan Kamath2014-02-261-5/+5
| | | | | | Sent as a boolean extra EXTRA_TIME_PREF_24_HOUR_FORMAT. Change-Id: I7fbd59eacdeb298d046da950d7045f0bab53b462
* Fix time zone formatting in RTL locales.Elliott Hughes2013-09-181-5/+32
| | | | | | | This fixes ar, fa, and he/iw. Bug: 10231161 Change-Id: I31acc044443c026ba8b8e1967810f7aa476bcae7
* Use SimpleDateFormat for time zone formatting.Elliott Hughes2013-06-251-34/+5
| | | | | | There's no need to do time zone formatting manually. Change-Id: Ibef222d11d04a327e9ef64ddc48322558028555d
* Clamp date setting for the SetupWizard as well as Settings.Elliott Hughes2013-06-241-29/+23
| | | | | | | We fixed this for Settings in 7ccfa0614caeba8eba5d3040a90541a24fa1e6c9, but @sonymobile.com point out that it's still broken for SetupWizard. Change-Id: I59348200105246f3ed7c0892e5f19b901d3e95ac
* use date from 1970-01-01 to 2037-12-31 in DatePickerDialogSungmin Choi2013-03-131-0/+9
| | | | | | | | | | | | | | | | In case of using DatePickerDialog, user could select any date before 1970-01-01. However, the system clock cannot be set to a date before 1970-01-01. As a result, user couldn't select date before 1970-01-01. So, use date from 1970-01-01 to 2037-12-31 of DatePickerDialog. Steps to reproduce: 1. Settings -> Date & time 2. uncheck Automatic date & time 3. Set Date 4. choose any date before 1970 and Done Change-Id: I075b3fcaa86df1c314c85dd3dd85474a28b8c637
* am 0aa79c73: am 60977265: Merge "Use AlarmManager calls to set date/time, ↵Amith Yamasani2012-11-161-6/+7
|\ | | | | | | | | | | | | instead of SystemClock.setTime" into jb-mr1.1-dev * commit '0aa79c73948af7600f289928b18b3231d9679f81': Use AlarmManager calls to set date/time, instead of SystemClock.setTime
| * Use AlarmManager calls to set date/time, instead of SystemClock.setTimeAmith Yamasani2012-11-151-6/+7
| | | | | | | | | | | | | | | | This way secondary users' settings app can request the system server to set the time. Alarm driver cannot be opened as a secondary user. Bug: 7459635 Change-Id: I1ae1630dc448021d35280a297c5d9960f8e8fc2e
* | am f9a2f324: Merge "Changed the way that date format selector is shown."Amith Yamasani2012-11-011-0/+4
|\ \ | |/ |/| | | | | * commit 'f9a2f324d70cdbb4b0786f868ae01f99fe2734fb': Changed the way that date format selector is shown.
| * Changed the way that date format selector is shown.Fábio Silva2012-10-261-0/+4
| | | | | | | | | | | | | | | | Changed the way that date format selector is shown excluding ambiguity when day and month have same value. - i.e. 01/01/2012 (mm-DD-YYYY) and 01/01/2012 (DD-mm-YYYY) Now it displays 31/12/2012 for DD-mm-YYYY and 12/31/2012 for mm-DD-YYYY. Change-Id: I27434c9d5713491950d4f345dccf65d647d399cf
* | Correct settings namespace for auto time/tzChristopher Tate2012-09-121-6/+6
|/ | | | | | Bug 7148283 Change-Id: If585b16f5b6ea3046e64eb9c8355fa3c9fbeeada
* Stop using getDSTSavings.Elliott Hughes2012-09-061-25/+18
| | | | | | | | | The original code was actually correct, but code calling inDaylightTime and getDSTSavings directly is inherently suspect, so I want to clean up this false positive along with the real abusers. Bug: 6901488 Change-Id: I6c89e7aa29d88b81ed2c7fd6c915e0346b90a442
* Stop hard-coding sample 12- and 24-hour times.Elliott Hughes2012-09-061-0/+3
| | | | | Bug: 6881640 Change-Id: I6b0d6404b0299f9efa8fd12779799f703f1c764f
* Use the new isNetworkSupported api for wifi-onlyRobert Greenwalt2011-08-311-1/+1
| | | | | | | | Didn't have an API for this before so people used a hacked system property (ro.carrier) to determine if the device supported mobile data. Added new API and switching callsites. bug:5087537 Change-Id: Ibd799559be102a9e2fd552d1a23d1afbcf8f4614
* Bug AOSP 12476: Manual time setting resets seconds to 0.Gilles Debunne2011-07-281-0/+2
| | | | Change-Id: If24d25050b3537832c3229cd84205f3b6cef1989
* Change dummy calendar setting during locale changeKenny Root2011-06-121-1/+2
| | | | | | | | | | | If the timezone changed too far, the example date would be "1/1/yyyy+1" instead of "12/31/yyyy" Move the setting of the Calendar time to where the string is calculated to make sure we have the most up-to-date Locale. Bug: 4596841 Change-Id: I67a253a65b1ea03ee717945c5df819beb8515662
* use prefs-style layout for setup wizard date/time settings on non-xlarge screensFreeman Ng2011-06-061-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjusted the screen size test to fall back to phone version of DateTimeSettingsSetupWizard on large screens. I made the following changes from how the phone version works: 1. Some layout changes. (Tablet look, bigger margins.) 2. Use zone picker to select time zone. 3. Added isFirstRun boolean extra to hide the pref fields we don't need to see from setup wizard Furthermore, I made the following fixes to the existing phone flow (which had probably never yet been tried on a phone): 1. Added conditionals around access to some variables that only exist in the xlarge layout. 2. Implemented PreferenceFragment.OnPreferenceStartFragmentCallback in DateTimeSettingsSetupWizard in order to catch the user tapping on the timezone preference and show the time zone picker popup. (Note: for phones in ICS, we might want to launch the zone picker preferences style, like it would have been had this been a PreferenceActivity. Or maybe we should just create a separate DateTimeSettingsSetupWizardPhone activity that subclasses PreferencesActivity and doesn't need to play this trick.) Change-Id: Ib5774a005c9f44d730d86c13746d91eb712141cc
* Remove more entries not relevant to wifi-only devices.Amith Yamasani2011-03-011-1/+6
| | | | | | | | | | | | | Bug: 3488384 Bug: 3487976 Bug: 3488381 Removed Cell standby entry from Battery use screen. Removed Mobile signal strength from BatteryHistory screen. Added wifi IP address to About->Status Remove auto-timezone checkbox in Settings->Date & time Change-Id: I228721a3613b1aeb600026e42274337886552698
* removing explicit setting of time/date pciker dialogsSvetoslav Ganov2010-12-071-2/+0
| | | | Change-Id: Ic92a3de895735fc019ca506f904d63f23c82ec8f
* Bug fixes, UI flow improvements.Amith Yamasani2010-11-081-1/+4
| | | | | | Bug: 3173067 - Auto timezone checkbox out of sync with dependency Bug: 3175116 - Crash when launching Manage Accounts screen Move "Add Account" to a menu item from a button at the bottom.
* Add an Automatic Time Zone setting to Date & Time settings.Amith Yamasani2010-09-221-43/+50
| | | | | | User can now enable auto-time but disable auto-timezone, especially if we don't have NITZ time from the cell network (or wifi only) and only have NTP time that gives us date and time.
* Check null of getActivity() when needed.Daisuke Miyakawa2010-09-131-10/+20
| | | | | | | | | Some bloadcast is thrown when Activity isn't ready. onResume() correctly update time so we don't need to call updateTimeAndDateDisplay() when Activity is null. Change-Id: Iea8feaa1111bb87e66462ed0f95fde9d07f2c68d
* Implement DateTimeSetings for Setup Wizard XL.Daisuke Miyakawa2010-09-091-35/+37
| | | | | | | | | | Make the orientation "behind", as XL would require landscape. TODO: - Automatic Time Zone should be available. - Layout is immature: need to have better theme and layout xml. Change-Id: Iafe141223a227643ca774f4df5e5b7fde9520d31
* Fragmentize ZoneList, which is needed in DateTimeSettings refactoring.Daisuke Miyakawa2010-09-081-7/+5
| | | | | | | | | | | | | | | | | | - remove old ZonePicker and rename ZoneList to ZonePicker, as the name is really confusing (see LocalePicker) - Make the new ZonePicker fragment. - remove dependency toward "ZoneList" class. -- AndroidManifest.xml does not allow the other components to access ZoneList directly, so it would be ok to remove without using activity-alias. -- Noticed there is a significant code duplication between DateTimeSettings and DateTimeSettingsActivity. I'll work on it later. - add DateTimeSettingsSetupWizardXL class, which is not used yet, but will be in the near future. -- It is not recognized by AndroidManifest.xml Change-Id: Id26152a3d560f9e0bd84afdf3e1c5101f0e166b4
* Refactor settings top level activities to use fragments.Amith Yamasani2010-08-181-20/+20
| | | | | | | | | | | | | Added a base class SettingsPreferenceFragment from which the settings activities should be derived so that they can behave like fragments. It contains some commonly called utility methods and dialog conversion to DialogFragment. Some of the top-level activities can be launched directly without the left pane. Settings.java acts as a proxy activity that contains just that settings fragment without the left pane. There are still a lot of second and third level activities that need to be fragmentized. This is just the first pass to test the 2-pane layout.
* Make the Settings side of the date format settings more locale-aware.Eric Fischer2009-06-121-5/+15
| | | | | | | | | | | | | | | Remove the two formats that have a spelled-out month, since applications using this setting are trying to format numeric dates. Do not forcibly set the setting the first time you go into Date & Time -- let the setting remain null if it was null before. Add a choice corresponding to null to the list of format options. It will look like "Normal (12-31-2009)" in the list, and will cause the system to use whatever numeric format the locale calls for. For the other choices, feed them to the locale-aware formatter so they will appear with the punctuation that the locale calls for.
* Fix ANR caused by registering multiple listeners in DateTimeSettings.onCreate().Jim Miller2009-05-071-2/+3
|
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-131-1/+4
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+366
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-366/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+5
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-4/+2
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+363