summaryrefslogtreecommitdiff
path: root/core/java/android/os/FileObserver.java
Commit message (Collapse)AuthorAgeFilesLines
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-1/+1
| | | | | | | | | | | | | | | | | | | 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-1/+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/+1
| | | | | | | | | | 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
* Apply fixes for EfficientCollections.Jeff Sharkey2020-10-201-5/+8
| | | | | | | | | | Drop-in replacements suggested for inefficient collections. Also annotate a handful of places where we're unable to update. Bug: 155703208 Test: none Exempt-From-Owner-Approval: trivial refactoring Change-Id: I48b600508df8160ac9b40fea7afca974b2c972f6
* 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
* docs: Delete duplicate word.Nick Cook2019-11-271-1/+1
| | | | | Change-Id: I09fcceda7a7b0fd291c57a3005d4e027ecb99bcc bug: 145259639
* Add @UnsupportedAppUsage annotationsAndrei Onea2019-03-151-0/+3
| | | | | | | | | | | | | | | | For packages: android.os 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: I4ece0a3f37f88fc2508cb965092aed7cabc61819
* Add an @IntDef to indicate notify event types.Sudheer Shanka2019-02-261-6/+30
| | | | | | Fixes: 126354778 Test: n/a Change-Id: I965b8b75b6b1e25483bf83b1aea6ec192d055c8d
* Update FileObserver to be able to watch multiple files.Sudheer Shanka2019-01-271-24/+83
| | | | | | | Bug: 120879205 Test: atest cts/tests/tests/os/src/android/os/cts/FileObserverTest.java Test: atest frameworks/base/core/tests/coretests/src/android/os/FileObserverTest.java Change-Id: Ie1067c81dc502f2ad971e1f5d02be8baa319c3ad
* Clarify FileObserver docs for null value.Jeff Sharkey2016-08-231-2/+4
| | | | | | Change-Id: I7dc0b0d26220d6eb82f956a9860cfb6aeccfd12f Test: none Bug: 30511606
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-3/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* docs: resolve bugs from external trackerScott Main2013-01-081-1/+1
| | | | Change-Id: I680970ec63701197103f6c5ab55c25c736aa0519
* Comment-only change to add documentation for FileObserverDan Egnor2010-05-311-13/+67
| | | | Change-Id: Icd9bc65be020a23f78c8bcda78fc68e7d05c93b4
* Fix NPE in FileObserver when multiple events pile in for a defunctDan Egnor2010-02-081-64/+66
| | | | observer. Also, fix up some bogus whitespace (hard tabs, etc).
* DropBox logging of app & system server crashes.Dan Egnor2009-12-211-3/+1
| | | | | | | | | | | The crashes are also reported to the event log (and of course the main logcat, like they always have been). Ordinary Log.e(t,m,e) isn't dropboxed but there's a new Log.wtf() which always is. (Still @pending in this change.) Add a hook to IPowerManager to crash the system server on demand (only for apps with REBOOT permission, since it's basically a restart). This is not exposed in PowerManager, must be invoked directly -- mostly this is there so "Bad Behavior" in dev tools can do it.
* Only restore the bits for wallpapers that aren't built in.Joe Onorato2009-07-291-13/+26
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+146
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-146/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+146