v3.19.2
Allowance for Doubtful Accounts (Detail) - Allowance for doubtful accounts - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2017
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period $ 397 $ 361 $ 409
Charged to costs and other 153 134 58
Write-offs (116) (98) (106)
Balance, end of period 434 397 361
Accounts receivable, net of allowance for doubtful accounts      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period 377 345  
Balance, end of period 411 377 345
Other Long-term Assets      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period 20 16  
Balance, end of period $ 23 $ 20 $ 16