Summary of Changes in Accumulated Other Comprehensive Income by Component (Detail) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
Mar. 31, 2016
Mar. 31, 2015
Mar. 31, 2016
Mar. 31, 2015
Accumulated Other Comprehensive Income (Loss) [Line Items]        
Accumulated other comprehensive income (loss), beginning of period     $ 2,522  
Translation adjustments and other, net of tax effects of $3, $(174), $(18), and $(432) $ 7 $ (438) (339) $ (909)
Net current period other comprehensive income (loss) (285) 401 (277) 967
Net current period other comprehensive income (loss) 345 125 (66) (295)
Accumulated other comprehensive income (loss), end of period 1,840 3,471 1,840 3,471
Derivatives        
Accumulated Other Comprehensive Income (Loss) [Line Items]        
Accumulated other comprehensive income (loss), beginning of period 598 597 590 31
Unrealized gains (losses), net of tax effects of $(19), $25, $24, and $37 (125) 559 158 1,251
Tax expense included in provision for income taxes 11 4 26 6
Amounts reclassified from accumulated other comprehensive income (160) (158) (435) (284)
Net current period other comprehensive income (loss) (285) 401 (277) 967
Accumulated other comprehensive income (loss), end of period 313 998 313 998
Derivatives | Revenue        
Accumulated Other Comprehensive Income (Loss) [Line Items]        
Reclassification adjustments for gains included in revenue (171) (162) (461) (290)
Investments        
Accumulated Other Comprehensive Income (Loss) [Line Items]        
Accumulated other comprehensive income (loss), beginning of period 2,758 3,111 3,169 3,531
Unrealized gains, net of tax effects of $217, $133, $34, and $47 402 245 64 83
Tax expense included in provision for income taxes 31 65 70 205
Amounts reclassified from accumulated other comprehensive income (57) (120) (130) (378)
Net current period other comprehensive income (loss) 345 125 (66) (295)
Accumulated other comprehensive income (loss), end of period 3,103 3,236 3,103 3,236
Investments | Other income (expense), net        
Accumulated Other Comprehensive Income (Loss) [Line Items]        
Reclassification adjustments for gains included in other income (expense), net (88) (185) (200) (583)
Translation Adjustments and Other        
Accumulated Other Comprehensive Income (Loss) [Line Items]        
Accumulated other comprehensive income (loss), beginning of period (1,583) (325) (1,237) 146
Translation adjustments and other, net of tax effects of $3, $(174), $(18), and $(432) 7 (438) (339) (909)
Accumulated other comprehensive income (loss), end of period $ (1,576) $ (763) $ (1,576) $ (763)