This commit swaps some internal details of libcore for some abstractions on dedicated "internal facing" APIs. This reduces the number of internal APIs used. There is an associated change in libcore/ Bug: 111055375 Test: build / boot Change-Id: Idddada1922701bd15475c840eaa76c505e545d33