v3.5.0.2
Summary of Changes in Accumulated Other Comprehensive Income by Component (Detail) - USD ($)
$ in Millions
3 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Accumulated Other Comprehensive Income (Loss) [Line Items]    
Balance, beginning of period $ 71,997  
Net current period other comprehensive income (loss) 144 $ (784)
Balance, end of period 70,372 77,445
Derivatives    
Accumulated Other Comprehensive Income (Loss) [Line Items]    
Balance, beginning of period 352 590
Unrealized gains (losses), net of tax effects 35 161
Tax expense included in provision for income taxes 3 5
Amounts reclassified from accumulated other comprehensive income (72) (104)
Net current period other comprehensive income (loss) (37) 57
Balance, end of period 315 647
Derivatives | Revenue    
Accumulated Other Comprehensive Income (Loss) [Line Items]    
Reclassification adjustments for gains (75) (109)
Investments    
Accumulated Other Comprehensive Income (Loss) [Line Items]    
Balance, beginning of period 2,941 3,169
Unrealized gains (losses), net of tax effects 339 (566)
Tax expense included in provision for income taxes 138 3
Amounts reclassified from accumulated other comprehensive income (256) (5)
Net current period other comprehensive income (loss) 83 (571)
Balance, end of period 3,024 2,598
Investments | Other income (expense), net    
Accumulated Other Comprehensive Income (Loss) [Line Items]    
Reclassification adjustments for gains (394) (8)
Translation adjustments and other    
Accumulated Other Comprehensive Income (Loss) [Line Items]    
Balance, beginning of period (1,756) (1,237)
Net current period other comprehensive income (loss) 98 (270)
Balance, end of period (1,658) (1,507)
Accumulated other comprehensive income    
Accumulated Other Comprehensive Income (Loss) [Line Items]    
Balance, beginning of period 1,537 2,522
Net current period other comprehensive income (loss) 144 (784)
Balance, end of period $ 1,681 $ 1,738