summaryrefslogtreecommitdiff
path: root/core/java/android/preference/PreferenceScreen.java
Commit message (Collapse)AuthorAgeFilesLines
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-1/+2
| | | | | | | | | | | | | | | | | | | 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-2/+1
| | | | | | | | | 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-1/+2
| | | | | | | | | | 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
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-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: I534e3fd1305e2f4af076986770033478448a665c
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Deprecates framework Preference classesLouis Pullen-Freilich2018-11-191-0/+7
| | | | | | | | | The AndroidX Preference Library is the recommended way to build settings screens moving forward. Bug: b/114357488 Test: n/a Change-Id: I3b3bff2daf43d8239d8bf247a9c2acebbc6374eb
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-171-0/+4
| | | | | | | | | | | | | | | | For packages: android.preference This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I31a80552a66554d876edd01950df368c31239c2b
* Add titles to PreferenceFragments and PreferenceScreens for watches.Michael Kwan2016-07-261-4/+39
| | | | | | | | | | Preferences lack a title on watch type devices due to lack of ActionBar support. A custom ListView was added to use a custom wrapper adapter to add a persistent header view at the top of the ListView that developers would not be able to remove via the ListView API. Bug: 27962897 Change-Id: I6bccecf85592d9507e0c7a04c9a035617001e9ef
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-1/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* docs: add links to new Settings dev guideScott Main2012-07-261-0/+7
| | | | Change-Id: I04444ec0c4c1c278569b64f15cbbc7e8c1c623cd
* Fixes PreferenceScreen padding and scrollbar position.Amith Yamasani2012-04-301-2/+8
| | | | | | | | | | Bug: 6399996 Changed the scrollbarStyle for tablets Bug: 6405440 Inflate the listview from a layout with padding. Change-Id: I838bb073ee2f0e23ac7163cc632679278dbccf05
* Handle the case of Preference lists that have header views inserted at the top.Amith Yamasani2011-09-291-1/+6
| | | | | | | | | Without this change, wrong Preference is returned when you select one. Subtract the number of headers from the index before querying the adapter. Needed for: Bug: 5203189 Change-Id: Iba7277789ebbd7e3e9954931b1ea06c7e34f3c15
* Launch nested preferences with the same theme as parent activity.Amith Yamasani2011-09-231-5/+6
| | | | | Bug: 5351628 Change-Id: Id67b81558bc6e010d6f024cdb8117424aa6b62f0
* Fixing memory leak in PreferenceScreen.Mathias Jeppsson2011-01-181-3/+8
| | | | | | | | | | Every time the PreferenceScreen is displayed a new ListView is created and bound to the adapter. As the same adapter is used during the lifetime of PreferenceScreen and the listviews never gets unbound, the adapter will contain a list of unused views. The old view should be unbound from adapter when we create a new view. Change-Id: I13e2d0dc79c8ff79b58efa650653e3f84c6e53c5
* Make the doc for PreferenceScreen aware of PreferenceFragment.Daisuke Miyakawa2010-08-131-1/+2
| | | | | | | | This class has existed from before, so the doc does not mention PreferenceFragment but only PreferenceActivity, while actually the class can be used via PreferenceFragment. Change-Id: Ie3756f7ff260cff829eff31a6ba99260c681bc2d
* Add facility to switch to new fragments from preferences.Dianne Hackborn2010-08-031-1/+1
| | | | Change-Id: I009315b59cf81b4962e9c5a4490f0f82743ed64a
* Fix the nested preferences title. Again.Amith Yamasani2009-06-261-1/+1
| | | | Made a mistake when refactoring just before checkin. ! ?
* Add title to nested preference screens.Amith Yamasani2009-06-171-2/+10
| | | | Fixes #1894381
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+252
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-252/+0
|
* auto import from //branches/cupcake/...@132569The Android Open Source Project2009-02-201-1/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-20/+21
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+252