Commit Graph

5839 Commits

Author SHA1 Message Date
Mathew Inwood
d5bea5e112 [automerger skipped] Merge "Limit access to suspected false positives." am: aeda49d185 am: 350a598d1a
am: 75f3441060  -s ours

Change-Id: I976150f79cc66d83c9c49b19c2d3228c71ffe3f4
2019-01-02 05:16:06 -08:00
Mathew Inwood
75f3441060 Merge "Limit access to suspected false positives." am: aeda49d185
am: 350a598d1a

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1
2019-01-02 05:00:54 -08:00
Mathew Inwood
350a598d1a Merge "Limit access to suspected false positives."
am: aeda49d185

Change-Id: Ib24456aaad850d5aee46dd242513840511942536
2019-01-02 04:48:33 -08:00
Mathew Inwood
bdfc1fcb7a Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 14:26:35 +00:00
Mathew Inwood
de679608ef Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 11:50:04 +00:00
Chalard Jean
0b601607a6 Merge "[PT17] Small cleanup of PacManager" am: 6da845e999 am: 2d0084fd8f
am: 130e23f3f0

Change-Id: I9e4cf1680ec719bc1fab9df36ad08229401da1eb
2018-12-25 03:29:16 -08:00
Chalard Jean
130e23f3f0 Merge "[PT17] Small cleanup of PacManager" am: 6da845e999
am: 2d0084fd8f

Change-Id: I7feead64e6fd1c4a02ccaaf4a76f1ad684887e72
2018-12-25 03:18:54 -08:00
Chalard Jean
2d0084fd8f Merge "[PT17] Small cleanup of PacManager"
am: 6da845e999

Change-Id: If5c8f840adaa9dd13e5cf95aedc782913aee9179
2018-12-25 03:08:21 -08:00
Chalard Jean
6da845e999 Merge "[PT17] Small cleanup of PacManager" 2018-12-25 10:55:10 +00:00
Paul Hu
5cc9d59a78 Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs" am: 6f8696cf67 am: 77dfb10a6f
am: dec63b8473

Change-Id: I65cd4c326a1fe64c09b131f1b1924f12e522a664
2018-12-21 07:57:58 -08:00
Paul Hu
dec63b8473 Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs" am: 6f8696cf67
am: 77dfb10a6f

Change-Id: Ic641472bab2e5aa7b443caaac13deae260c3902d
2018-12-21 07:48:38 -08:00
Paul Hu
77dfb10a6f Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs"
am: 6f8696cf67

Change-Id: Ib1f7c272192bf4a6b44d0d7c47267ec0fe0317d6
2018-12-21 07:37:22 -08:00
Paul Hu
6f8696cf67 Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs" 2018-12-21 15:21:03 +00:00
Junyu Lai
8696e8921f Merge "Deprecate NetworkInfo" am: 84a764b1f4 am: 3b1eb0acc4
am: 5d1d75f1ce

Change-Id: Iefce7f71ac10d0b9c96ce7d6af345e96880cfa1c
2018-12-21 02:28:11 -08:00
Junyu Lai
5d1d75f1ce Merge "Deprecate NetworkInfo" am: 84a764b1f4
am: 3b1eb0acc4

Change-Id: Ia646a8754bcd5ef62573e3b1730df3987bf9fd15
2018-12-21 02:16:39 -08:00
Junyu Lai
3b1eb0acc4 Merge "Deprecate NetworkInfo"
am: 84a764b1f4

Change-Id: I4ac76b4bb3edb85e22440c8bfa4f0979c42c0cbd
2018-12-21 02:06:09 -08:00
Junyu Lai
84a764b1f4 Merge "Deprecate NetworkInfo" 2018-12-21 09:56:39 +00:00
Chalard Jean
d5e95119ad [PT17] Small cleanup of PacManager
Test: runtest
Change-Id: I94a10cbae7f2d87bd8a68ae4f9972a728f4942c3
2018-12-20 18:25:22 +09:00
junyulai
9826e7f292 Deprecate NetworkInfo
Currently NetworkInfo is used by Apps to get information of
network. However, to get such information, Apps need to poll
NetworkInfo frequently from ConnectivityService.

In order to increase the stability and reduce the maintain
effort, all functionalities provided by NetworkInfo are targeted
to be replaced or removed entirely.

Apps should use ConnectivityManager.NetworkCallback instead, to
get faster and more detailed updates from connectivity changes.

Or, apps could use getNetworkCapabilities or getLinkProperties
to get information synchronously, but should not mix the
callbacks and synchronous methods together.

Bug: 113629330
Test: atest FrameworksNetTests
Change-Id: Ie8faf620958c3fa0a4a2f233b35b825de0e99ffc
2018-12-20 16:36:10 +08:00
jiayanhong
37428e5ac9 Merge "Fixed toString() printing error" am: 9952ebd7d5 am: 50b52d9db8
am: 07ad89f002

Change-Id: Ia75eefba3ec6ca4fbc7aaf7c5aee362d33fba9d4
2018-12-19 10:16:43 -08:00
jiayanhong
07ad89f002 Merge "Fixed toString() printing error" am: 9952ebd7d5
am: 50b52d9db8

Change-Id: Ia28e56d8a6b76247d552bcdbf43ef71ac80e313e
2018-12-19 10:06:58 -08:00
jiayanhong
50b52d9db8 Merge "Fixed toString() printing error"
am: 9952ebd7d5

Change-Id: Id0f5d70a4549480fbb192628ce41796e4da04ad7
2018-12-19 09:54:46 -08:00
Treehugger Robot
9952ebd7d5 Merge "Fixed toString() printing error" 2018-12-19 17:39:58 +00:00
Paul Duffin
d32813abe0 Merge "Add InetAddresses class to API" am: 2f8a9b2c4d am: 18b313b077
am: b1d6edf06c

Change-Id: I6149da91b9bc2403f1764cfcc4a4f92758c13b26
2018-12-18 11:50:36 -08:00
Paul Duffin
b1d6edf06c Merge "Add InetAddresses class to API" am: 2f8a9b2c4d
am: 18b313b077

Change-Id: I3e745599be0f81decfe416a71503dc784a895a48
2018-12-18 11:09:15 -08:00
Ken Chen
2b09897f66 Merge "Remove 'hasDns' parameter" am: fa9ee4fad7 am: b2afafdb9c
am: cfd06c2074

Change-Id: Id10bcc14ad837b8a358e8be70f36a6cfc94620ab
2018-12-18 11:08:50 -08:00
Ken Chen
cfd06c2074 Merge "Remove 'hasDns' parameter" am: fa9ee4fad7
am: b2afafdb9c

Change-Id: I43080dc7922ab6b8b1c61f7a2542dd8cead45bc5
2018-12-18 10:50:11 -08:00
Paul Duffin
18b313b077 Merge "Add InetAddresses class to API"
am: 2f8a9b2c4d

Change-Id: If821b32c686fd603035050c09598384796f72fb2
2018-12-18 10:44:07 -08:00
Ken Chen
b2afafdb9c Merge "Remove 'hasDns' parameter"
am: fa9ee4fad7

Change-Id: I7efc2ff04cf65420b02ddf2cf7a13b640e37ef77
2018-12-18 10:38:59 -08:00
Paul Duffin
2f8a9b2c4d Merge "Add InetAddresses class to API" 2018-12-18 14:11:04 +00:00
Ken Chen
fa9ee4fad7 Merge "Remove 'hasDns' parameter" 2018-12-18 11:17:27 +00:00
paulhu
058120dbc2 Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs
These methods are marked to @UnsupportedAppUsage APIs since
Android Q. But some system apps still need them to set/get
necessary network or request information. Hence, make them to be
public or system APIs.

Bug: 120448492
Test: atest FrameworksNetTests
Change-Id: I95a44daef5615e290b40d0796ca183b88ad8a63f
2018-12-18 08:39:49 +00:00
Paul Duffin
70c2193096 Add InetAddresses class to API
Adds methods needed by app developers to avoid them having to call
non-SDK APIs.

Test: tests added to cts
Bug: 78686891
Change-Id: Ic0eadfdab2b111d5ca4becb753f4fe3557806433
2018-12-17 11:53:33 +00:00
Mark Chien
357f650628 Merge "Track default upstream when system is ready" am: 82abb83a17 am: 75bc65666e
am: db3357dc76

Change-Id: I72c041051f3bd1735a438f8ce7ded83cf26136f9
2018-12-13 15:35:04 -08:00
Mark Chien
db3357dc76 Merge "Track default upstream when system is ready" am: 82abb83a17
am: 75bc65666e

Change-Id: I36d2eb778603ea68cca43bfe9103b25ab8bb4d37
2018-12-13 14:42:04 -08:00
Xin Li
f14887fe2c [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" am: 891b57de32 -s ours am: 194bd24f09 -s ours
am: 02380802b7  -s ours

Change-Id: I10c1e303d19836aaaa2d5991925fe8a93fbc0791
2018-12-13 14:19:37 -08:00
Mark Chien
75bc65666e Merge "Track default upstream when system is ready"
am: 82abb83a17

Change-Id: I7febc52d94c1249b76608853d5cc142cdb8ad9df
2018-12-13 14:07:28 -08:00
Xin Li
ca19f55a31 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master am: 77a7dfeb84 -s ours am: 067326b823 -s ours
am: 96cbec0c58  -s ours

Change-Id: I998a4f2c8509815cf75e0b03e51831b325fbbea5
2018-12-13 13:54:36 -08:00
Xin Li
02380802b7 [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" am: 891b57de32 -s ours
am: 194bd24f09  -s ours

Change-Id: I4988e15e6b919c6d237706dc578631c1cf9cc1fa
2018-12-13 13:01:05 -08:00
Xin Li
194bd24f09 [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"
am: 891b57de32  -s ours

Change-Id: I7710a0b1a5ba1bf7acd45d694818aec91853e546
2018-12-13 12:47:28 -08:00
Xin Li
96cbec0c58 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master am: 77a7dfeb84 -s ours
am: 067326b823  -s ours

Change-Id: Icf77675866d843c8d6d5cc30ea1a5f1d8f0cfba7
2018-12-13 12:16:11 -08:00
Xin Li
067326b823 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
am: 77a7dfeb84  -s ours

Change-Id: I60ae19c5ff7d5de669fac1ebd93d48283d9f27d8
2018-12-13 11:18:53 -08:00
markchien
08e007ee9c [automerger skipped] Merge "DO NOT MERGE fix some linkproperties configs missing" into pi-dev am: 688dc83a8e -s ours
am: 2be392783e  -s ours

Change-Id: I603a39040319b1008c4bf46927768c6888816a2a
2018-12-13 10:40:59 -08:00
Mark Chien
82abb83a17 Merge "Track default upstream when system is ready" 2018-12-13 13:28:08 +00:00
markchien
529577b410 Track default upstream when system is ready
Start tracking default upstream from boot.This is useful for
entitlement refine in following change. EntitlementManager can
decide if it needs to process entitlement provisioning before
tethering started.

Test: -atest FrameworksNetTests
      -build, flash, booted
      -manually turnoff/on tethering with different upstream
bug: 111490073

Change-Id: I8fdbd64c52f26b5363693bb5bd8050930e8ea961
2018-12-13 19:01:51 +08:00
markchien
2be392783e [automerger skipped] Merge "DO NOT MERGE fix some linkproperties configs missing" into pi-dev
am: 688dc83a8e  -s ours

Change-Id: I6e34e781d1289e06c148fb2537e5608f3f007971
2018-12-12 22:01:55 -08:00
Treehugger Robot
891b57de32 Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" 2018-12-13 05:45:20 +00:00
Etan Cohen
1457e13e50 Merge "[CM] Fix comments, add tests to TransportInfo API" am: 4060bc1480 am: 4e20619d98
am: b03827647f

Change-Id: I0a81b7b48bb02da202dd7feaa1440801b794ce67
2018-12-11 22:22:36 -08:00
Etan Cohen
b03827647f Merge "[CM] Fix comments, add tests to TransportInfo API" am: 4060bc1480
am: 4e20619d98

Change-Id: I54556ea99992fbc0105bc2012c3d423e88c60764
2018-12-11 22:09:54 -08:00
Etan Cohen
4e20619d98 Merge "[CM] Fix comments, add tests to TransportInfo API"
am: 4060bc1480

Change-Id: Idd668efdd1fe65754228041f23f3a91148aa38d6
2018-12-11 21:54:25 -08:00