summaryrefslogtreecommitdiff
path: root/core/java/android/widget/DatePickerSpinnerDelegate.java
Commit message (Collapse)AuthorAgeFilesLines
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-5/+6
| | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
* Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang2020-10-281-6/+5
| | | | | | | | | This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-271-5/+6
| | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
* Remove libcore.icu.ICU usage in android.text.format.DateFormatVictor Chang2020-07-061-3/+1
| | | | | | | | | The methods can be implemented with ICU4J directly. Bug: 160606356 Test: atest android.text.format.DateFormatTest Test: atest CtsTextTestCases:android.text.format.cts.DateFormatTest Change-Id: I3d5f639a94026c599b487563c95bf9d165adfeec
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-091-1/+1
| | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I41e12e425284e74561c6b61663241df364ae54a1 Merged-In: I41e12e425284e74561c6b61663241df364ae54a1
* Always use Context.getSystemService() to get IMMYohei Yukawa2018-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a preparation to deprecate the following two methods. * InputMethodManager#getInstance() * InputMethodManager#peekInstance() Since we soon need to stop relying on the current per-process InputMethodManager singleton model to fully support multi-display, those two methods really need to be deprecated. With this CL, framework code no longer depends on InputMethodManager#peekInstance(), which is also marked as deprecated in this CL. InputMethodManager#getInstance() is a bit tricky because it also works as a constructor of such a per-process singleton instance. Remaining two call-sites of this method will be migrated in a subsequent CL. This is a mechanical refactoring, which in theory should have no observable logical behavior difference. There could be a small performance regression, but it is basically not avoidable to correctly support multi-display scenarios. Bug: 115891476 Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases Test: atest CtsWidgetTestCases:android.widget.cts.EditTextTest Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest Test: atest FrameworksCoreTests:com.android.internal.inputmethod Test: atest FrameworksServicesTests:com.android.server.textservices Change-Id: I5db31491f3d47d3ad4a621e956995135c72e007b
* Greylist requested hidden APIDavid Brazdil2018-08-211-0/+6
| | | | | | | | | | Greylist APIs from public requests which used to be off-limits because the classes were not discovered by Doclava. Bug: 79904498 Bug: 79902686 Test: N/A Change-Id: If6678bed5c2da076f97e3de7ff0bc4e7ebaf1965
* Improved autofill support on DatePicker and TimePicker:Felipe Leme2017-08-151-0/+1
| | | | | | | | | | | | | - Save autofilled value so UI is properly highlighted. - Notify TimePicker listener just once. Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases Test: cts-tradefed run commandAndExit cts-dev -m CtsWidgetTestCases -t android.widget.cts.DatePickerTest Test: cts-tradefed run commandAndExit cts-dev -m CtsWidgetTestCases -t android.widget.cts.TimePickerTest Fixes: 37098837 Change-Id: I38d64c107f6059b94c92676ea37681006474f519
* Disable state save/restore for inflated date/time picker viewsAdam Powell2017-05-231-1/+2
| | | | | | | | | | | | Fix a bug where the internal date/time picker views reused view IDs causing state save/restore bugs when placed within AlertDialogs and other places. Since the pickers already save/restore their state at a higher level leaving this enabled was redundant. Bug 32654446 Test: manual Change-Id: I3df2fc932ac5296ab6eb0a5013dddef8d1117635
* Added auto-fill support for DatePicker and TimePicker.Felipe Leme2017-03-011-0/+4
| | | | | | | | | | | | Also fixed some getAutoFillType() implementations to return null when the view is disabled. Bug: 33550221 Bug: 35840787 Test: CtsAutoFillServiceTestCases (with new tests) pass Test: m update-api Change-Id: I46acc1fb106cf2153515cc1c9567b34cfabd1c62
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-2/+2
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* DatePicker A11Y fix time announced for date widgetsAndrei Stingaceanu2016-06-161-11/+0
| | | | | | | | | | | | | | | | | * introduced a new method (getFormattedCurrentDate) which formats the date for all DatePickerDelegates * implemented (moved) onPopulateAccessibilityEvent in the AbstractDatePickerDelegate thus all announcements for date pickers use the same format * note: added FORMAT_SHOW_WEEKDAY to the current format because I find the information valuable E.g: * Before: "Thu Jun 16 11:49:14 GMT+01:00 2016" * Now: "Thursday, 16 June 2016" Bug: 29099922 Change-Id: I94447067f10659747ae310f9e07cf3f487c97e05
* Merge "Fix DatePicker.setMin/MaxDate()" into nyc-devAlan Viverette2016-05-251-2/+4
|\
| * Fix DatePicker.setMin/MaxDate()Alan Viverette2016-05-251-2/+4
| | | | | | | | | | | | | | Previously it would only allow year changes, which... doesn't make sense. Bug: 28953902 Change-Id: I9b15b96662d9d496e11fb426ff23f14b26e90800
* | Use ICU's Calendar class in date picker & related classesAlan Viverette2016-05-251-1/+1
|/ | | | | | | Also organizes imports. Bug: 28756630 Change-Id: I4e59c4b35c88edd94ff4b2945ad9feb2a4bd0022
* Refactor DatePickerDialog constructors to avoid early callbackAlan Viverette2016-04-011-0/+1
| | | | | Bug: 27475444 Change-Id: I2536f969ca734f3977163305c1d33ee0e2e222fc
* Use Holo date/time picker layouts on very small screensAlan Viverette2016-03-011-0/+652
If the screen is smaller than "small" then use the Holo picker layouts. Unifies the SavedState between delegates so that we can seamlessly transition between them during configuration changes. Pushes the DatePickerSpinnerDelegate up to the same level as the calendar delegate. Bug: 27239893 Change-Id: Ida4dc2748d38bd766ae93d12aef15e963921939c