v3.19.1

Fair Value (Tables) | 9 Months Ended
--- | ---
Apr. 27, 2019
Fair Value Disclosures [Abstract] |
Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis | Assets and liabilities measured at fair value on a recurring basis were as follows (in millions):
| APRIL 27, 2019 FAIR VALUE MEASUREMENTS |  | JULY 28, 2018 FAIR VALUE MEASUREMENTS
| Level 1 |  | Level 2 |  | Total Balance |  | Level 1 |  | Level 2 |  | Total Balance
Assets: |  |  |  |  |  |  |  |  |  |  |
Cash equivalents: |  |  |  |  |  |  |  |  |  |  |
Money market funds | $ | 8,283 |  |  | $ | — |  |  | $ | 8,283 |  |  | $ | 6,890 |  |  | $ | — |  |  | $ | 6,890 |
Available-for-sale debt investments: |  |  |  |  |  |  |  |  |  |  |
U.S. government securities | — |  |  | 1,452 |  |  | 1,452 |  |  | — |  |  | 7,275 |  |  | 7,275 |
U.S. government agency securities | — |  |  | 263 |  |  | 263 |  |  | — |  |  | 727 |  |  | 727 |
Non-U.S. government and agency securities | — |  |  | — |  |  | — |  |  | — |  |  | 208 |  |  | 208 |
Corporate debt securities | — |  |  | 21,232 |  |  | 21,232 |  |  | — |  |  | 27,364 |  |  | 27,364 |
U.S. agency mortgage-backed securities | — |  |  | 1,440 |  |  | 1,440 |  |  | — |  |  | 1,435 |  |  | 1,435 |
Equity investments: |  |  |  |  |  |  |  |  |  |  |
Marketable equity securities | 5 |  |  | — |  |  | 5 |  |  | 605 |  |  | — |  |  | 605 |
Derivative assets | — |  |  | 36 |  |  | 36 |  |  | — |  |  | 2 |  |  | 2 |
Total | $ | 8,288 |  |  | $ | 24,423 |  |  | $ | 32,711 |  |  | $ | 7,495 |  |  | $ | 37,011 |  |  | $ | 44,506 |
Liabilities: |  |  |  |  |  |  |  |  |  |  |
Derivative liabilities | $ | — |  |  | $ | 20 |  |  | $ | 20 |  |  | $ | — |  |  | $ | 74 |  |  | $ | 74 |
Total | $ | — |  |  | $ | 20 |  |  | $ | 20 |  |  | $ | — |  |  | $ | 74 |  |  | $ | 74 |
Fair Value Measurements, Nonrecurring | The following table presents gains and losses on assets that were measured at fair value on a nonrecurring basis (in millions):
| TOTAL GAINS (LOSSES) FOR THE THREE MONTHS ENDED |  | TOTAL GAINS (LOSSES) FOR THE NINE MONTHS ENDED
| April 27, 2019 |  | April 28, 2018 |  | April 27, 2019 |  | April 28, 2018
Non-marketable equity securities and equity method investments | $ | (3 | ) |  | $ | (17 | ) |  | $ | 3 |  |  | $ | (56 | )
Purchased intangible assets (impaired) | — |  |  | (1 | ) |  | — |  |  | (1 | )
Property held for sale—land and buildings | — |  |  | — |  |  | — |  |  | 20 |
Total gains (losses) for nonrecurring measurements | $ | (3 | ) |  | $ | (18 | ) |  | $ | 3 |  |  | $ | (37 | )

X
- Definition Tabular disclosure of assets and liabilities by class, including financial instruments measured at fair value that are classified in shareholders' equity, if any, that are measured at fair value on a nonrecurring basis in periods after initial recognition (for example, impaired assets). Disclosures may include, but are not limited to: (a) the fair value measurements recorded and the reasons for the measurements and (b) the level within the fair value hierarchy in which the fair value measurements are categorized in their entirety (levels 1, 2, 3). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (bbb) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19190-110258 + Details
Name: | us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_FairValueDisclosuresAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19190-110258 + Details
Name: | us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration