summaryrefslogtreecommitdiff
path: root/core/java/android/os/StatFs.java
Commit message (Collapse)AuthorAgeFilesLines
* Don't suggest now-deprecated APIsChristopher Tate2020-12-101-1/+1
| | | | | | | | | Suggest getAvailableBlocksLong() instead of the now-deprecated getAvailableBlocks() method. Bug: 174799449 Test: m offline-sdk-docs Change-Id: I34a36e00c3d1a16898b0a6f0a21e4cab9feb0d02
* 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
* 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
* Add @UnsupportedAppUsage annotationsAndrei Onea2019-03-151-0/+2
| | | | | | | | | | | | | | | | 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
* Merge "Document the fact that StatFs.restat() and ctor can throw." am: ↵Tobias Thierer2017-04-051-0/+7
|\ | | | | | | | | | | | | | | 183c93f6a0 am: e11ed001dd am: a426851da0 Change-Id: Ife49443ed8e5e4e90723e4e46c0e8c48a6ee5547
| * Document the fact that StatFs.restat() and ctor can throw.Tobias Thierer2017-04-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | StatFs.restat() and the StatFs constructor can throw IllegalArgumentException. This was not previously documented; not all callers took this into account, for example: http://r.android.com/251290 This CL adds documentation to those methods. It also adds comments to two of the callers. Separately from this CL, we may in addition consider adding new API StatFs.checkedRestat() and StatFs.checkedCreate() or similar that throw IOException; we cannot change the existing constructor and method since they are public. Test: Checked that "make" still completed successfully. Change-Id: I6a0b3cb7718939408937c61de7c3b000b948fa59
* | We really want f_frsize and f_bavail.Jeff Sharkey2017-04-021-6/+6
|/ | | | | | | | | | | | It's confusing, but f_bsize is not the value you're looking for; the real block size is f_frsize. Fix all those bugs. Also, the vast majority of clients are interested in the usable disk space, not including reserved space. Test: builds, boots Bug: 36840579 Change-Id: Ib1470389afd49c14cab62282ec1e978ebb2c4791
* Track libcore.os' move to android.system.Elliott Hughes2014-04-281-4/+4
| | | | | | | (This is partial, but should cover everything in AOSP master except for the zygote.) Change-Id: I1042c99245765746a744c44e714095cb2c6cb75d
* resolved conflicts for merge of 4a59376d to stage-aosp-masterElliott Hughes2013-07-091-9/+9
|\ | | | | | | Change-Id: I0e40180b46dc58781c218b8d382299dab73d49cc
| * Track libcore API change.Elliott Hughes2013-07-091-9/+9
| | | | | | | | Change-Id: Ib818a7f21325c5f918bf497033a90d76b25ec9e7
* | Deprecate StatFs methods returning small values.Jeff Sharkey2013-04-191-14/+20
| | | | | | | | | | Bug: 8656794 Change-Id: Ic904bd1bc016ef48b5a304b7c68250afe23e98bc
* | Expose longer statfs values, add derived values.Jeff Sharkey2013-02-131-0/+50
|/ | | | | | | | | | Since fsblkcnt_t is 8 bytes, provide methods to access larger value instead of casting to int. This would start being an issue around 8TB filesystems. Also add convenience methods to calculate values in bytes. Change-Id: Ib924425d8d6d82785466f611ca71800cc1e952b6
* Use libcore Posix class for StatFs implementationKenny Root2012-08-161-34/+52
| | | | | | | Remove some JNI and duplicated functionality and use libcore's Posix class for the statfs function instead. Change-Id: Ic1e161dc10c18c2c6ee81d895a0efd8910086dbf
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+74
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-74/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+74