Deprecate Os methods that depend on Mutable*, replace with Int*Ref
This CL deprecates the remaining dependencies on android.util
in libcore, which is the last thing stopping android.util from
being dropped from libcore. This is a necessary step for adoption
of an OpenJDK 9 build toolchain because android.util already
exists in framework.
The affected methods live in android.system.Os. Two methods
(sendfile and waitpid) are part of the API; this CL deprecates
those and introduces replacements. Another method (ioctlInt)
is not part of the API; this CL replaces it rather than only
deprecating the old one.
The old methods depended on android.util.Mutable{Int,Long}.
Their replacements use new classes android.system.Int{32,64}Ref.
These names were chosen to indicate that these types are
suitable for C-style lower level system calls, but not for
other abstractions that specifically represent an int or long
in the Java language.
Test: Treehugger
Bug: 67901714
Change-Id: Ia19acf0927bea0fedfb003e49a926840d8d5ff21
6 files changed