377942 Commits

Author SHA1 Message Date
Nan Zhang
96bb1ba1f3 Add back doc-comment-check-docs back to checkbuild.
Test: m -j checkbuild, and build was failed as expected.
Bug: b/118815658 b/120229228
Change-Id: I3a8e869f22e5040a63208169203feec15b847f2f
2018-11-30 19:50:55 +00:00
Anton Hansson
20e6f31923 Merge "Add gps_debug.conf module" 2018-11-29 15:53:07 +00:00
Treehugger Robot
74c171b4da Merge changes from topic "libcore-remaining-hiddenapi"
* changes:
  Prevent hiddenapi entries being added for libcore related projects
  Remove remaining libcore entries from light greylist
2018-11-29 15:20:12 +00:00
Anton Hansson
b27f0fa222 Add gps_debug.conf module
Copy the gps_debug.conf from the device-specific folders to
a place closer to the code that uses it.

Bug: 112879252
Bug: 120066492
Test: make
Change-Id: I937e699cb9e891c511ca7b9f4740d45e19668c54
Merged-In: I937e699cb9e891c511ca7b9f4740d45e19668c54
Exempt-From-Owner-Approval: cp from internal
(cherry picked from commit 11905c6b2c8d2c7b3001cd913619d8b17c533ac1)
2018-11-29 09:48:44 +00:00
Paul Duffin
00537c15e8 Prevent hiddenapi entries being added for libcore related projects
The libcore related projects (see below) have been (mostly) switched
over to use UnsupportedAppUsage annotations, This change will prevent
entries for those projects being added to a config/hiddenapi-* file.

* libcore
* external/bouncycastle
* external/conscrypt
* external/icu
* external/okhttp
* external/libphonenumber - still has a couple of entries in
      config/hiddenapi-light-greylist.txt due to limitations in
      UnsupportedAppUsage/class2greylist.

Tested by attempting to upload the file with entries for libcore
projects and without those entries and checking that the behavior
is expected.

Test: see above
Bug: 117818301
Change-Id: I67a30b307e12e842b28cfb2160fab0029868fa06
2018-11-29 09:41:56 +00:00
Paul Duffin
900ab8acce Remove remaining libcore entries from light greylist
Removes the libcore entries that have been added since the previous
entries were removed. The entries are now specified using
UnsupportedAppUsage annotations.

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.

Test: see above
Bug: 117818301
Change-Id: Ie2ab636f61697664eced59969d12aa46103d96a1
2018-11-29 09:41:56 +00:00
Lucas Lin
08d5bca515 Merge "Simpify logic in updateTcpBufferSizes" 2018-11-29 08:29:30 +00:00
Jakub Pawlowski
658e6530ba Merge "Bluetooth: Fix NPE when accesing Manufacturer Data of invalid ScanRecord" 2018-11-29 07:21:01 +00:00
Jakub Pawlowski
4c2aa61202 Bluetooth: Fix NPE when accesing Manufacturer Data of invalid ScanRecord
Bug: 118805852
Test: compilation
Change-Id: I537bec61cd3e7df700cc972683458f977ff370b8
2018-11-29 07:20:53 +00:00
lucaslin
041a1afe1d Simpify logic in updateTcpBufferSizes
updateTcpBufferSizes() only need tcp buffer size as its
parameter. Also unify the logic to check default network
outside the function.

Bug: 120119769
Test: 1. Build pass.
      2. runtest frameworks-net

Change-Id: Iee9fec3efe7d5be5b590dd1c1f67ec5de636e613
2018-11-29 01:35:54 +00:00
John Reck
8757179e52 Merge "Remove USE_HWC2 usage" 2018-11-29 00:40:54 +00:00
Yifan Hong
80da7610e1 Merge "Add health HAL to watchdog" 2018-11-28 21:54:46 +00:00
John Reck
c77543022d Remove USE_HWC2 usage
It's always true now

Test: didn't
Change-Id: Ibefde5feaeaec8fb68cbc6ea1c019bf8b5e608bb
2018-11-28 13:07:24 -08:00
Chen Xu
194cd0d45a Merge "add more comments in advanced calling URL" 2018-11-28 19:40:36 +00:00
chen xu
83a8fb52e0 add more comments in advanced calling URL
Bug: 120071848
Test: Build
Change-Id: Idbcd32f965edf98204ad7b7cbacdca4291bc5687
2018-11-28 19:38:59 +00:00
Pengquan Meng
c291d32338 Merge "Implement physicalChannelConfig framework/base" 2018-11-28 19:34:46 +00:00
Adrian Salido
1c548e5c79 Merge "TouchLatency: make updates time based and add fps to ball mode" 2018-11-28 19:18:02 +00:00
vichang
81dc06e259 Merge "Fix warning in config/boot-image-profile.txt" 2018-11-28 18:34:32 +00:00
Victor Chang
e6b7c73b86 Fix warning in config/boot-image-profile.txt
The warning was caused by 6ea0cb0d65ee13b9c4014d56ccb4926ac49c6e4a

Test: m droid
Change-Id: Icafd6b841778f3d1dd79b2f5f8b5b70e79c36621
2018-11-28 15:26:23 +00:00
Neil Fuller
d48dbc9a34 Merge "Track move of timezone classes to libcore.timezone" 2018-11-28 15:23:48 +00:00
vichang
19d489d8cf Merge "Remove unused ICU4C headers included in android.text" 2018-11-28 15:21:01 +00:00
Victor Chang
fb9335b886 Remove unused ICU4C headers included in android.text
Bug: 117094880
Test: m
Merged-In: Ib3b7d5f7ec539dac61962fe17b4f834cd9035227
Change-Id: Ib3b7d5f7ec539dac61962fe17b4f834cd9035227
2018-11-28 11:27:24 +00:00
Lucas Lin
4ca1b61a27 Merge "Update LinkProperties to NetworkAgentInfo only when it's changed" 2018-11-28 09:57:48 +00:00
Sudheer Shanka
742048924f Merge "Fix ShortcutService handling of locale change during device setup." 2018-11-28 07:07:38 +00:00
lucaslin
25a4ec3592 Update LinkProperties to NetworkAgentInfo only when it's changed
In previous design, it will always assign newLp to nai in
handleUpdateLinkProperties(). And Private dns configuration
will be missing when the same LinkProperties are updated
because the updated LinkProperties is not assigned back to
NetworkAgentInfo.

Bug: 118518971
Test: 1.Build pass.
      2.runtest frameworks-net

Change-Id: I405c8f29497fec438082a2cf30eb5c7b9497e1c4
2018-11-28 06:16:38 +00:00
Colin Cross
372fa2ed21 Merge "Convert frameworks/base/services/tests to Android.bp" 2018-11-28 04:49:51 +00:00
Chiachang Wang
33fe80f927 Merge "Data stall detection using DNS event" 2018-11-28 03:53:30 +00:00
Pengquan Meng
d24193dcf5 Implement physicalChannelConfig framework/base
Bug: 111453000
Test: atest FrameworksTelephonyTests
Merged-In: I390958aeed7182242d5623c10b6fd552ba35005a
Change-Id: I390958aeed7182242d5623c10b6fd552ba35005a
2018-11-27 19:44:17 -08:00
Josh Hou
72973de352 Merge "Support set/get carrier id from ApnSetting" 2018-11-28 02:42:23 +00:00
Adrian Salido
beefecc309 TouchLatency: make updates time based and add fps to ball mode
Make ball updates time based instead of based on number of onDraw calls.
Also adding fps count to see how often frames are being updated, make
the color of the ball based on fps. This helps notice when there are
possible janks or change in refresh rate.

Test: gradlew build and run manual test of TouchLatency app
Change-Id: Ic2c2eb0fbd9fb31dddeee3228d6ab971a4f7f5e8
2018-11-27 18:14:38 -08:00
Treehugger Robot
39736939fe Merge "Fix JE in RemoteFillService,Make sure onServiceConnected operation to be handled in same thread." 2018-11-28 02:04:17 +00:00
Ethon_Hu
10eacbf759 Fix JE in RemoteFillService,Make sure onServiceConnected operation to be handled in same thread.
Bug: 120040641
Test: Tested on Devices
Change-Id: Ie977426e29b551af1d25e5e1a4f440b8cc2726ab
Merged-In: Ie977426e29b551af1d25e5e1a4f440b8cc2726ab
Signed-off-by: Ethon_Hu <huyuxin3818@gmail.com>
2018-11-28 01:12:28 +00:00
Yifan Hong
e8ea522e7e Add health HAL to watchdog
Test: none
Bug: 119809588
Change-Id: Idb11c29789cecc1f6056b1bd6b59bb8f1124c801
2018-11-27 16:42:13 -08:00
Xiangyu/Malcolm Chen
c96a716a54 Merge "Migration of IRadio 1.3 types to 1.4." 2018-11-27 21:00:42 +00:00
Malcolm Chen
0e3b24f27c Migration of IRadio 1.3 types to 1.4.
To better test CBRS, we want IRadio 1.3 to be Android P plus CBRS
HAL interfaces, while 1.4 will be 1.3 plus all other Android Q
interfaces. So we are moving everything currently defined in
android.hardware.radio.V1_3 to android.hardware.radio.V1_4.

Bug: 117805040
Test: build and telephony unittest
Change-Id: I2c9bcf77ebfbda144bf184b43e196c1dd1ca466b
Merged-In: I2c9bcf77ebfbda144bf184b43e196c1dd1ca466b
2018-11-27 19:15:02 +00:00
Xiangyu/Malcolm Chen
542b99d8ac Merge "Fix telephony build" 2018-11-27 18:38:22 +00:00
Xiangyu/Malcolm Chen
103d515c80 Merge "Clean up SubMgr#getOpportunisticSubscriptions." 2018-11-27 18:01:58 +00:00
Treehugger Robot
669037f821 Merge "Remove com.android.okhttp.... classes from light grey list" 2018-11-27 17:31:14 +00:00
John Reck
c877f58a1a Fix telephony build
Correct permission tag format.

Test: make

Change-Id: I9db9ab609a924f786bb7031e6def86cbe2ac4c81
Merged-In: I9db9ab609a924f786bb7031e6def86cbe2ac4c81
2018-11-27 09:10:29 -08:00
Neil Fuller
b8383a10b9 Track move of timezone classes to libcore.timezone
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.

Bug: 119026403
Test: build only
Change-Id: Ic807977a85276b888362295d1d305effe33076fc
2018-11-27 14:44:59 +00:00
Neil Fuller
787e1ce12e Merge "Hand-edit boot-image-profile.txt to move classes" 2018-11-27 14:38:47 +00:00
Paul Duffin
d44e26bc69 Merge "Remove com.android.i18n.phonenumbers.... classes from light grey list" 2018-11-27 14:36:40 +00:00
Paul Duffin
ff296e75ce Merge "Make ext build against core.platform.api.stubs" 2018-11-27 14:33:04 +00:00
Misha Wagner
4314aef811 Merge "Fix issue in CpuTimePerUid where microseconds are used as milliseconds" 2018-11-27 14:12:59 +00:00
Paul Duffin
6cc41d5320 Remove com.android.i18n.phonenumbers.... classes from light grey list
Removes almost all the com.android.i18n.phonenumbers.... classes from
the light grey lists as they are now using UnsupportedAppUsage
annotation.

The only ones that are left are ...->values()... methods which are the
synthetic methods created by the compiler when compiling an enum class.
It is not currently possible to use annotations for those as they do
not exist in the source code, bug 119861512 tracks the changes.

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.

Test: see above
Bug: 117818301
Change-Id: Ifb8f243ca2e519fd9d0aca04722ae5155913e91e
2018-11-27 12:53:19 +00:00
Paul Duffin
ba4cee0b1c Make ext build against core.platform.api.stubs
The ext target needs to be switched from core_current to depending on
core.platform.api.stubs (the default when no sdk_version is specified
and no_frameworks_libs = true) as it statically includes
libphonenumber-platform which itself needs to depend on
core.platform.api.stubs as it needs access to the
dalvik.annotation.compat.UnsupportedAppUsage annotation.

Without this change modifying the libphonenumber-platform target to
depend on core.platform.api.stubs causes a build failure.

Tested by changing libphonenumber-platform target to depend on
core.platform.api.stubs and running make checkbuild.

Bug: 117818301
Test: see above
Change-Id: I2b9154d22b67aafb57493b41b527818c37212c34
2018-11-27 12:53:16 +00:00
Paul Duffin
e1e1e2849d Remove com.android.okhttp.... classes from light grey list
Removes all the com.android.okhttp.... classes from the light grey
lists as they are now using UnsupportedAppUsage annotation.

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.

Test: see above
Bug: 117818301

Change-Id: I4840dd010cd61023968af298946884c692736893
2018-11-27 12:09:25 +00:00
Neil Fuller
828d4a195c Hand-edit boot-image-profile.txt to move classes
Some classes have recently moved from libcore.util to libcore.timezone.

Bug: 120039104
Bug: 119026403
Test: build only
Change-Id: Ia1b4b9d096cbaeba85e7da032a4e6927b389b8f0
2018-11-27 11:52:06 +00:00
Chiachang Wang
7a70a7e0ed Data stall detection using DNS event
If dns resolver on a network get consecutively timeout then it
is a strong signal that the network is no longer usable.
Reevaluate the network once it's data stall suspected

Test: 1. runtest frameworks-net
      2. SettingsBackupTest passes
      2. Run on wifi w/o internet capability
Bug: 112653893, 113916551

Change-Id: I74287b174d933f97a91fa1529b1809856ac3b38d
2018-11-27 18:00:05 +08:00
Josh Hou
73ada28be9 Support set/get carrier id from ApnSetting
To align with using carrier id instead of mccmnc and mvno for APN
settings, add new public api setCarrierId and getCarrierId

Bug: 115709816
Test: run telephony unit test
Change-Id: Ia716a02dfa88996cb0539e34b411aab371ef8aa7
Merged-in: Ia716a02dfa88996cb0539e34b411aab371ef8aa7
2018-11-27 08:48:08 +00:00