378105 Commits

Author SHA1 Message Date
Etan Cohen
bd648ce246 [CM] Fix comments, add tests to TransportInfo API
Bug: 117605977
Test: atest NetworkCapabilitiesTest
Change-Id: I734ec56e44cd09d11ae81a856a53a26e1191b9a0
2018-12-11 15:00:10 -08:00
Shuo Qian
58ee538e62 Merge "Add Call redirection app in Telecom test-commands" 2018-12-11 19:43:00 +00:00
Treehugger Robot
a36a69a9e6 Merge "Add persist.zygote.core_dump property for coredumps" 2018-12-11 16:28:07 +00:00
Paul Duffin
15152e7d95 Merge "Switch last c.a.i18n.phonenumbers hiddenapi entries to annotations" 2018-12-11 13:26:09 +00:00
Junyu Lai
aff267369c Merge "VPN: Move package intent receiver to ConnectivityService." 2018-12-11 11:25:00 +00:00
Mathew Inwood
71e365023e Merge "Improve @UnsupportedAppUsage docs." 2018-12-11 11:19:23 +00:00
Treehugger Robot
9dfd13e7ea Merge "Revert "Revert "Schematize vold system properties""" 2018-12-11 11:04:01 +00:00
Lorenzo Colitti
37ddff0385 Merge "Enable checkstyle everywhere in frameworks/base." 2018-12-11 10:20:51 +00:00
junyulai
efb04d3660 VPN: Move package intent receiver to ConnectivityService.
Currently, PermissionMonitor listen to user add/remove and
package add/remove intent respectively, and so does VPN.
Thus, races might occurr between them.

This commit refactor VPN part by using ConnectivityService to
listen to intents and dispatch events to VPN.

Bug: 118811303
Test: 1. atest FrameworksNetTests
      2. manually add/remove package
      3. cts-tradefed run cts -m CtsHostsideNetworkTests

Change-Id: Id76fd77c5fcfb2b0e21f211f63f007b1ea1aa53f
2018-12-11 14:04:02 +08:00
Mark Chien
fad9571dc5 Merge "Upstream Configuration should also consider automatic configuration" 2018-12-11 04:27:43 +00:00
Hall Liu
f3935f0268 Merge changes from topic "acct-suggestion-1"
* changes:
  Add docs and more annotations
  Add PhoneAccountSuggestion class
2018-12-11 02:43:16 +00:00
Hall Liu
34d9e24008 Add docs and more annotations
Add docs to some constants in PhoneAccountSuggestion and add @TestApi
annotations to enable CTS testing for the new APIs.

Test: compiles
Bug: 111455117

Change-Id: I2b55a411ff4f0da37eefa0996f7316ea53bca41d
2018-12-10 18:41:01 -08:00
Pengquan Meng
61c09d128b Merge "Modify constructor of NetworkRegistrationState" 2018-12-11 02:26:19 +00:00
Jordan Liu
eebbd2b639 Merge "Return "" not "null"" 2018-12-11 01:12:38 +00:00
Treehugger Robot
5db6efa36d Merge "Fix to set physical address for IsConnectedToArcPort" 2018-12-11 01:01:20 +00:00
Xiangyu/Malcolm Chen
69a618fb5b Merge "Deactivate bundled opportunistic subscription." 2018-12-11 00:42:34 +00:00
Inseob Kim
5b1cc27cee Revert "Revert "Schematize vold system properties""
This reverts commit 2473b08b07ccd58978d4b0271dc22a770b9b8605.

Reason for revert: Fixed build breakage
sysprop_cpp and sysprop_java directly have been linking against
libprotobuf-cpp-full and do not set proto.type field, which could
cause ASAN error due to linking against both libproto version of full
and lite.

Change-Id: I96eb47444d7b6f6b5fef092efc1514fcdd6f33b6
Merged-In: I8e04f643197b6c8a60cc38c6979e41c5de3469f5
2018-12-11 00:23:07 +00:00
Pengquan Meng
73596cb5e9 Modify constructor of NetworkRegistrationState
This change the data specific constructor of NetworkRegistrationState to
make it adapt to the new NR indicators.

Bug: 111453000
Test: atest FrameworksTelephonyTests
Merged-In: I4e1f30ea8531a6a424c2c920c74257d4d673589d
Change-Id: I4e1f30ea8531a6a424c2c920c74257d4d673589d
2018-12-10 15:36:52 -08:00
Treehugger Robot
ee1720cffa Merge "Use getCompressedSizeLong to get correct size for 2G file" 2018-12-10 22:47:00 +00:00
Malcolm Chen
d86d02a281 Deactivate bundled opportunistic subscription.
When primary subscription is disabled, also deactivate
its bundled opportunistic subscription.

Bug: 118349116
Test: unittest
Change-Id: I04cb89b8cc2d03836878866d2975af186de42468
Merged-In: I04cb89b8cc2d03836878866d2975af186de42468
2018-12-10 14:02:58 -08:00
Pengquan Meng
8f9f382c9c Merge "Add 5G rat type" 2018-12-10 22:00:35 +00:00
Orion Hodson
2b71ad0a26 Add persist.zygote.core_dump property for coredumps
Enable core dumps for debuggable apps if the property is set.

Contributed by lu.wang@unisoc.com.

Bug: b/120485385
Test: boots
Change-Id: I68995bec552b8875490748ee5275488f65b00dbd
2018-12-10 21:02:46 +00:00
Jordan Liu
06dcff96e4 Merge "Add new key for carrier configuration version" 2018-12-10 20:23:09 +00:00
Treehugger Robot
3cfdb94845 Merge "hiddenapi-mappings: Hide ReferencesHidden errors" 2018-12-10 17:02:25 +00:00
Paul Duffin
352956b07e Switch last c.a.i18n.phonenumbers hiddenapi entries to annotations
Previous changes could not remove these entries as they are implicit
methods, i.e. are not present in the source, and so could not be
annotated. That is no longer true and so these entries can now be
removed.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Bug: 117818301
Bug: 119861512
Test: as above
Change-Id: Ic33c693f50cac011332c5ba5a5c0e2b6562e6ef8
2018-12-10 16:05:54 +00:00
Ivan Chiang
17f9b9bfb6 Merge "Expose Uri toSafeString api" 2018-12-10 14:32:36 +00:00
markchien
1be8d8fc9c Upstream Configuration should also consider automatic configuration
Tethering already support two type upstream configurations,
but hasTetherableConfiguration() only check legacy one.

Bug: 120533392
Test: -runtest frameworks-net
      -build, flash, booted

Change-Id: I986070fc009abcad17994b73858962f776b4c3f5
2018-12-10 13:24:05 +00:00
Mathew Inwood
f653d93567 Improve @UnsupportedAppUsage docs.
Add some words aimed at app developers, to help ensure that devs are
aware of the implications of using annotated members. Also add a link
to the public info on non-SDK interfaces, which includes a feature
request link.

Also use the term "non-SDK interface" in the docs as this is what is
used externally in the blog posts.

Test: m
Change-Id: I936e53082e308f484dfd42ba56a3575b78b6d3aa
2018-12-10 12:42:41 +00:00
Lorenzo Colitti
6bfffd68de Enable checkstyle everywhere in frameworks/base.
This was done in internal master in ag/5397886. Do it in AOSP as
well so we can benefit from checkstyle in AOSP as well.

Test: None
Change-Id: Ib00fc8d318e8127224846e0a69cb542178631437
Merged-In: I7d350c2bbb9fcd1019abd1addb035ce5e9e05acc
2018-12-10 18:23:09 +09:00
Junyu Lai
0882543a12 Merge "Refactoring of deleting stats in NetworkStats based on uids." 2018-12-10 05:15:28 +00:00
Luke Huang
9677dde14a Merge "Migrate INetd to stable aidl" 2018-12-10 03:07:08 +00:00
Treehugger Robot
422fa22456 Merge "Remove ScopedBytes use" 2018-12-09 19:36:28 +00:00
Treehugger Robot
4e780bd992 Merge "Increase the IpClientTest timeouts to reduce flake rate." 2018-12-09 04:23:19 +00:00
Etan Cohen
7f50b11c89 Merge "[CS] Add a generic transport-specific information API" 2018-12-09 03:53:44 +00:00
Shuo Qian
6987e27aa6 Merge "Frame EmergencyNumber notifier in TelephonyRegistry" 2018-12-08 05:11:22 +00:00
Tony Huang
72285d3eb2 Expose Uri toSafeString api
Expose toSafeString api as public and stand api.

Bug: 119153962
Test: atest UriTest
Change-Id: Id9da309193c1e175e5fc795570687735c7722689
2018-12-08 04:35:23 +00:00
sqian
6dcf8879cb Add Call redirection app in Telecom test-commands
Bug: 64959558
Test: Treehugger
Change-Id: I15cb3b766c4c5fbef4e50824ccda0f3328643cf9
2018-12-07 19:36:27 -08:00
Seongho Kim
73273e0caa Return "" not "null"
Some models such as LDU, WIFI do not have "gsm.version.baseband",
which should return "null" when it is called.
However it returns "" not "null"

Bug: 120685535
Test: Self-Test
Change-Id: Idc1363d45a0ece3a35f46da287e21015ac1387af
2018-12-08 01:34:04 +00:00
sqian
bf165bc25d Frame EmergencyNumber notifier in TelephonyRegistry
Test: Treehugger
Bug: 112657134
Change-Id: I9e2e0348b8e0e9ac473db354023a242087fbb2c3
Merged-In: I9e2e0348b8e0e9ac473db354023a242087fbb2c3
(cherry picked from commit bdc5a733b76d25dab0393a3d4bfa823dc53121e7)
2018-12-07 17:09:39 -08:00
Adrian Roos
9bdbd30ca8 hiddenapi-mappings: Hide ReferencesHidden errors
The hidden API mapping is generated from sources that are not
API and the ReferencesHidden rule is therefore not needed.

Bug: 119556446
Test: mm hiddenapi-mappings
Change-Id: Ifc9efdaadeb0e61d2643230a36df930b21c0ecf4
2018-12-07 22:09:52 +00:00
Pengquan Meng
6b849c2acd Add 5G rat type
This add a new rat type for 5G.

Bug: 111453000
Test: build
Merged-In: I57366a1a9f61278cf752c25d54a1af1830bf4575
Change-Id: I57366a1a9f61278cf752c25d54a1af1830bf4575
2018-12-07 21:44:58 +00:00
Jack Yu
4f65edeaac Merge "Cleaned up dead code" 2018-12-07 21:36:48 +00:00
Michele Berionne
8ac8bd28f4 Add new key for carrier configuration version
Add new key to retrieve the carrier configuration version, so that it
can be displayed to the user.

Bug: 116527591
Test: Verified compilation.
Change-Id: I43a07faa41a925d8928d9c1fa59b9a01d08eb815
2018-12-07 13:12:34 -08:00
Jack Yu
b3206eeb94 Cleaned up dead code
Cleaned up dead code for CleanupDataConnection and
CleanupAllDataConnections. Also renamed the internal
version.

There is no logic change in this change.

Test: Unit tests and telephony sanity tests
Bug: 73659459
Merged-In: I3c9ed9502960c3f743f41078089cfff611cd96b0
Change-Id: I3c9ed9502960c3f743f41078089cfff611cd96b0
(cherry picked from commit 746d10446c77218b430e31ae0fcc0d0925bd45fc)
2018-12-07 11:38:55 -08:00
Etan Cohen
ca9fb56ee4 [CS] Add a generic transport-specific information API
Add a generic transport-specific information container interface and
access methods. These can be used by a network factory to pass transport
(bearer)-specific network parameters to the app.

Bug: 117605977
Test: atest frameworks/base/tests/net/java/android/net (+new unit tests)
Change-Id: Ib7c83b677e1c02a2212265719813e648b0c9cc1b
2018-12-07 17:37:48 +00:00
Paul Duffin
0a2a1e0e2d Merge "UnsupportedAppUsage - support implicit member signatures" 2018-12-07 12:24:47 +00:00
Anthony Stange
6ee45c6f14 Merge "Revert "Schematize vold system properties"" 2018-12-07 12:04:56 +00:00
Anthony Stange
2473b08b07 Revert "Schematize vold system properties"
This reverts commit 7bc31dc162dd6c97eeb4d85058a079a74bd8777b.

Reason for revert: Breaking aosp_master build.

Change-Id: I34a5e9889c17e3454a0a86deabcec3c192a3da52
2018-12-07 11:43:03 +00:00
Treehugger Robot
08d4eb174d Merge "FRP: save password quality in DPM.resetPassword" 2018-12-07 11:09:41 +00:00
Luke Huang
734c4cea3c Migrate INetd to stable aidl
Del the linking of old lib file and add new one.

Test: runtest frameworks-net passes
Change-Id: I7258f7c51718ff5f07e7bfe301b6c5f242b9da5a
2018-12-07 10:40:45 +00:00