OSDN Git Service

android-x86/frameworks-base.git
5 years agoAdd back doc-comment-check-docs back to checkbuild.
Nan Zhang [Fri, 30 Nov 2018 19:43:31 +0000 (11:43 -0800)]
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

5 years agoMerge "Add gps_debug.conf module"
Anton Hansson [Thu, 29 Nov 2018 15:53:07 +0000 (15:53 +0000)]
Merge "Add gps_debug.conf module"

5 years agoMerge changes from topic "libcore-remaining-hiddenapi"
Treehugger Robot [Thu, 29 Nov 2018 15:20:12 +0000 (15:20 +0000)]
Merge changes from topic "libcore-remaining-hiddenapi"

* changes:
  Prevent hiddenapi entries being added for libcore related projects
  Remove remaining libcore entries from light greylist

5 years agoAdd gps_debug.conf module
Anton Hansson [Tue, 27 Nov 2018 12:10:30 +0000 (12:10 +0000)]
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)

5 years agoPrevent hiddenapi entries being added for libcore related projects
Paul Duffin [Wed, 28 Nov 2018 12:22:14 +0000 (12:22 +0000)]
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

5 years agoRemove remaining libcore entries from light greylist
Paul Duffin [Tue, 27 Nov 2018 15:37:58 +0000 (15:37 +0000)]
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

5 years agoMerge "Simpify logic in updateTcpBufferSizes"
Lucas Lin [Thu, 29 Nov 2018 08:29:30 +0000 (08:29 +0000)]
Merge "Simpify logic in updateTcpBufferSizes"

5 years agoMerge "Bluetooth: Fix NPE when accesing Manufacturer Data of invalid ScanRecord"
Jakub Pawlowski [Thu, 29 Nov 2018 07:21:01 +0000 (07:21 +0000)]
Merge "Bluetooth: Fix NPE when accesing Manufacturer Data of invalid ScanRecord"

5 years agoBluetooth: Fix NPE when accesing Manufacturer Data of invalid ScanRecord
Jakub Pawlowski [Wed, 28 Nov 2018 22:36:53 +0000 (23:36 +0100)]
Bluetooth: Fix NPE when accesing Manufacturer Data of invalid ScanRecord

Bug: 118805852
Test: compilation
Change-Id: I537bec61cd3e7df700cc972683458f977ff370b8

5 years agoSimpify logic in updateTcpBufferSizes
lucaslin [Wed, 28 Nov 2018 11:27:52 +0000 (19:27 +0800)]
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

5 years agoMerge "Remove USE_HWC2 usage"
John Reck [Thu, 29 Nov 2018 00:40:54 +0000 (00:40 +0000)]
Merge "Remove USE_HWC2 usage"

5 years agoMerge "Add health HAL to watchdog"
Yifan Hong [Wed, 28 Nov 2018 21:54:46 +0000 (21:54 +0000)]
Merge "Add health HAL to watchdog"

5 years agoRemove USE_HWC2 usage
John Reck [Wed, 28 Nov 2018 21:07:24 +0000 (13:07 -0800)]
Remove USE_HWC2 usage

It's always true now

Test: didn't
Change-Id: Ibefde5feaeaec8fb68cbc6ea1c019bf8b5e608bb

5 years agoMerge "add more comments in advanced calling URL"
Chen Xu [Wed, 28 Nov 2018 19:40:36 +0000 (19:40 +0000)]
Merge "add more comments in advanced calling URL"

5 years agoadd more comments in advanced calling URL
chen xu [Wed, 28 Nov 2018 07:00:50 +0000 (23:00 -0800)]
add more comments in advanced calling URL

Bug: 120071848
Test: Build
Change-Id: Idbcd32f965edf98204ad7b7cbacdca4291bc5687

5 years agoMerge "Implement physicalChannelConfig framework/base"
Pengquan Meng [Wed, 28 Nov 2018 19:34:46 +0000 (19:34 +0000)]
Merge "Implement physicalChannelConfig framework/base"

5 years agoMerge "TouchLatency: make updates time based and add fps to ball mode"
Adrian Salido [Wed, 28 Nov 2018 19:18:02 +0000 (19:18 +0000)]
Merge "TouchLatency: make updates time based and add fps to ball mode"

5 years agoMerge "Fix warning in config/boot-image-profile.txt"
vichang [Wed, 28 Nov 2018 18:34:32 +0000 (18:34 +0000)]
Merge "Fix warning in config/boot-image-profile.txt"

5 years agoFix warning in config/boot-image-profile.txt
Victor Chang [Wed, 28 Nov 2018 13:44:09 +0000 (13:44 +0000)]
Fix warning in config/boot-image-profile.txt

The warning was caused by 6ea0cb0d65ee13b9c4014d56ccb4926ac49c6e4a

Test: m droid
Change-Id: Icafd6b841778f3d1dd79b2f5f8b5b70e79c36621

5 years agoMerge "Track move of timezone classes to libcore.timezone"
Neil Fuller [Wed, 28 Nov 2018 15:23:48 +0000 (15:23 +0000)]
Merge "Track move of timezone classes to libcore.timezone"

5 years agoMerge "Remove unused ICU4C headers included in android.text"
vichang [Wed, 28 Nov 2018 15:21:01 +0000 (15:21 +0000)]
Merge "Remove unused ICU4C headers included in android.text"

5 years agoRemove unused ICU4C headers included in android.text
Victor Chang [Tue, 27 Nov 2018 16:30:36 +0000 (16:30 +0000)]
Remove unused ICU4C headers included in android.text

Bug: 117094880
Test: m
Merged-In: Ib3b7d5f7ec539dac61962fe17b4f834cd9035227
Change-Id: Ib3b7d5f7ec539dac61962fe17b4f834cd9035227

5 years agoMerge "Update LinkProperties to NetworkAgentInfo only when it's changed"
Lucas Lin [Wed, 28 Nov 2018 09:57:48 +0000 (09:57 +0000)]
Merge "Update LinkProperties to NetworkAgentInfo only when it's changed"

5 years agoMerge "Fix ShortcutService handling of locale change during device setup."
Sudheer Shanka [Wed, 28 Nov 2018 07:07:38 +0000 (07:07 +0000)]
Merge "Fix ShortcutService handling of locale change during device setup."

5 years agoUpdate LinkProperties to NetworkAgentInfo only when it's changed
lucaslin [Wed, 28 Nov 2018 04:51:55 +0000 (12:51 +0800)]
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

5 years agoMerge "Convert frameworks/base/services/tests to Android.bp"
Colin Cross [Wed, 28 Nov 2018 04:49:51 +0000 (04:49 +0000)]
Merge "Convert frameworks/base/services/tests to Android.bp"

5 years agoMerge "Data stall detection using DNS event"
Chiachang Wang [Wed, 28 Nov 2018 03:53:30 +0000 (03:53 +0000)]
Merge "Data stall detection using DNS event"

5 years agoImplement physicalChannelConfig framework/base
Pengquan Meng [Sat, 17 Nov 2018 00:02:39 +0000 (16:02 -0800)]
Implement physicalChannelConfig framework/base

Bug: 111453000
Test: atest FrameworksTelephonyTests
Merged-In: I390958aeed7182242d5623c10b6fd552ba35005a
Change-Id: I390958aeed7182242d5623c10b6fd552ba35005a

5 years agoMerge "Support set/get carrier id from ApnSetting"
Josh Hou [Wed, 28 Nov 2018 02:42:23 +0000 (02:42 +0000)]
Merge "Support set/get carrier id from ApnSetting"

5 years agoTouchLatency: make updates time based and add fps to ball mode
Adrian Salido [Tue, 27 Nov 2018 22:30:35 +0000 (14:30 -0800)]
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

5 years agoMerge "Fix JE in RemoteFillService,Make sure onServiceConnected operation to be handl...
Treehugger Robot [Wed, 28 Nov 2018 02:04:17 +0000 (02:04 +0000)]
Merge "Fix JE in RemoteFillService,Make sure onServiceConnected operation to be handled in same thread."

5 years agoFix JE in RemoteFillService,Make sure onServiceConnected operation to be handled...
Ethon_Hu [Tue, 27 Nov 2018 13:39:22 +0000 (21:39 +0800)]
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>
5 years agoAdd health HAL to watchdog
Yifan Hong [Wed, 28 Nov 2018 00:42:13 +0000 (16:42 -0800)]
Add health HAL to watchdog

Test: none
Bug: 119809588
Change-Id: Idb11c29789cecc1f6056b1bd6b59bb8f1124c801

5 years agoMerge "Migration of IRadio 1.3 types to 1.4."
Xiangyu/Malcolm Chen [Tue, 27 Nov 2018 21:00:42 +0000 (21:00 +0000)]
Merge "Migration of IRadio 1.3 types to 1.4."

5 years agoMigration of IRadio 1.3 types to 1.4.
Malcolm Chen [Sun, 25 Nov 2018 23:14:47 +0000 (15:14 -0800)]
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

5 years agoMerge "Fix telephony build"
Xiangyu/Malcolm Chen [Tue, 27 Nov 2018 18:38:22 +0000 (18:38 +0000)]
Merge "Fix telephony build"

5 years agoMerge "Clean up SubMgr#getOpportunisticSubscriptions."
Xiangyu/Malcolm Chen [Tue, 27 Nov 2018 18:01:58 +0000 (18:01 +0000)]
Merge "Clean up SubMgr#getOpportunisticSubscriptions."

5 years agoMerge "Remove com.android.okhttp.... classes from light grey list"
Treehugger Robot [Tue, 27 Nov 2018 17:31:14 +0000 (17:31 +0000)]
Merge "Remove com.android.okhttp.... classes from light grey list"

5 years agoFix telephony build
John Reck [Fri, 16 Nov 2018 23:46:02 +0000 (15:46 -0800)]
Fix telephony build

Correct permission tag format.

Test: make

Change-Id: I9db9ab609a924f786bb7031e6def86cbe2ac4c81
Merged-In: I9db9ab609a924f786bb7031e6def86cbe2ac4c81

5 years agoTrack move of timezone classes to libcore.timezone
Neil Fuller [Fri, 16 Nov 2018 21:46:33 +0000 (21:46 +0000)]
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

5 years agoMerge "Hand-edit boot-image-profile.txt to move classes"
Neil Fuller [Tue, 27 Nov 2018 14:38:47 +0000 (14:38 +0000)]
Merge "Hand-edit boot-image-profile.txt to move classes"

5 years agoMerge "Remove com.android.i18n.phonenumbers.... classes from light grey list"
Paul Duffin [Tue, 27 Nov 2018 14:36:40 +0000 (14:36 +0000)]
Merge "Remove com.android.i18n.phonenumbers.... classes from light grey list"

5 years agoMerge "Make ext build against core.platform.api.stubs"
Paul Duffin [Tue, 27 Nov 2018 14:33:04 +0000 (14:33 +0000)]
Merge "Make ext build against core.platform.api.stubs"

5 years agoMerge "Fix issue in CpuTimePerUid where microseconds are used as milliseconds"
Misha Wagner [Tue, 27 Nov 2018 14:12:59 +0000 (14:12 +0000)]
Merge "Fix issue in CpuTimePerUid where microseconds are used as milliseconds"

5 years agoRemove com.android.i18n.phonenumbers.... classes from light grey list
Paul Duffin [Wed, 21 Nov 2018 15:03:41 +0000 (15:03 +0000)]
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

5 years agoMake ext build against core.platform.api.stubs
Paul Duffin [Fri, 23 Nov 2018 12:19:49 +0000 (12:19 +0000)]
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

5 years agoRemove com.android.okhttp.... classes from light grey list
Paul Duffin [Wed, 21 Nov 2018 14:10:58 +0000 (14:10 +0000)]
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

5 years agoHand-edit boot-image-profile.txt to move classes
Neil Fuller [Tue, 27 Nov 2018 11:50:49 +0000 (11:50 +0000)]
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

5 years agoData stall detection using DNS event
Chiachang Wang [Tue, 27 Nov 2018 10:00:05 +0000 (18:00 +0800)]
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: 112653893113916551

Change-Id: I74287b174d933f97a91fa1529b1809856ac3b38d

5 years agoSupport set/get carrier id from ApnSetting
Josh Hou [Thu, 8 Nov 2018 06:10:58 +0000 (14:10 +0800)]
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

5 years agoMerge "Change expected default value of setPreferredData"
Xiangyu/Malcolm Chen [Tue, 27 Nov 2018 05:32:00 +0000 (05:32 +0000)]
Merge "Change expected default value of setPreferredData"

5 years agoMerge "PermissionMonitor: Move intent receiver to ConnectivityService."
Junyu Lai [Tue, 27 Nov 2018 01:48:59 +0000 (01:48 +0000)]
Merge "PermissionMonitor: Move intent receiver to ConnectivityService."

5 years agoMerge "Make MBMS group call API changes"
Hall Liu [Tue, 27 Nov 2018 01:06:55 +0000 (01:06 +0000)]
Merge "Make MBMS group call API changes"

5 years agoMerge "Clear calling identity in callback."
Xiangyu/Malcolm Chen [Tue, 27 Nov 2018 00:24:14 +0000 (00:24 +0000)]
Merge "Clear calling identity in callback."

5 years agoMerge "Remove parentSubId and define API to set groupSubId"
Xiangyu/Malcolm Chen [Tue, 27 Nov 2018 00:24:00 +0000 (00:24 +0000)]
Merge "Remove parentSubId and define API to set groupSubId"

5 years agoMerge "Track move of timezone classes to libcore.timezone"
Neil Fuller [Mon, 26 Nov 2018 23:04:33 +0000 (23:04 +0000)]
Merge "Track move of timezone classes to libcore.timezone"

5 years agoMerge "Expose ApnService as a SystemApi and use subId arg"
Jordan Liu [Mon, 26 Nov 2018 22:47:52 +0000 (22:47 +0000)]
Merge "Expose ApnService as a SystemApi and use subId arg"

5 years agoMake MBMS group call API changes
Hall Liu [Tue, 9 Oct 2018 01:23:53 +0000 (18:23 -0700)]
Make MBMS group call API changes

Change the API to respond to API council comments
See bug for details

Bug: 117145859
Test: CTS
Change-Id: I4342e6e95da57fbcd550c571357ff7bc1923b70a

5 years agoChange expected default value of setPreferredData
Malcolm Chen [Tue, 13 Nov 2018 04:13:29 +0000 (20:13 -0800)]
Change expected default value of setPreferredData

Change expected value from INVALID to DEFAULT_SUSCRIPTION_ID
when caller wants to change back to user setting.
Correct spelling.

Bug: 118491136
Test: unittest
Change-Id: I0c953ba654d5465f973db6e9c7f7bacd5db23831
Merged-In: I0c953ba654d5465f973db6e9c7f7bacd5db23831

5 years agoRemove parentSubId and define API to set groupSubId
Malcolm Chen [Thu, 1 Nov 2018 03:18:02 +0000 (20:18 -0700)]
Remove parentSubId and define API to set groupSubId

Bug: 118349116
Test: unittest
Change-Id: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
Merged-In: I539a67df8f30c2f58d87a3417f78fef8b43ff56d

5 years agoClear calling identity in callback.
Malcolm Chen [Wed, 17 Oct 2018 01:18:51 +0000 (18:18 -0700)]
Clear calling identity in callback.

In SubscriptionManager, when onSubscriptionsChanged is called
when opportunistic subscriptions change, clear calling identity.
Otherwise mExecutor is executed with phone process identity
which can be a security issue.

Test: build
Bug: 117794788
Change-Id: I766cdc89f0421265cab00dc40d53f355deb7b92b
Merged-In: I766cdc89f0421265cab00dc40d53f355deb7b92b

5 years agoMerge "Add CarrierConfig to hide Preset APN setting details"
Youming Ye [Mon, 26 Nov 2018 21:14:14 +0000 (21:14 +0000)]
Merge "Add CarrierConfig to hide Preset APN setting details"

5 years agoConvert frameworks/base/services/tests to Android.bp
Colin Cross [Tue, 20 Nov 2018 17:46:47 +0000 (09:46 -0800)]
Convert frameworks/base/services/tests to Android.bp

See build/soong/README.md for more information.

Bug: 119809391
Test: atest FrameworksServicesTests FrameworksMockingServicesTests FrameworksUiServicesTests
Change-Id: Id28d25cc36df47e2f533ae878fb0d2745164fbfb
Merged-In: Id28d25cc36df47e2f533ae878fb0d2745164fbfb
(cherry picked from commit 35be4249e2372915f1ce481d9bb384a3c4a4da68)

5 years agoMerge "Fix the behavior of keyguard bouncer in a corner case"
Lucas Dupin [Mon, 26 Nov 2018 10:12:05 +0000 (10:12 +0000)]
Merge "Fix the behavior of keyguard bouncer in a corner case"

5 years agoMerge changes from topic "xfrmi-support"
Benedict Wong [Mon, 26 Nov 2018 03:04:16 +0000 (03:04 +0000)]
Merge changes from topic "xfrmi-support"

* changes:
  Cleanup and update comments SA mark disabling comments
  Add XFRM-I support to IpSecService
  Disable attempted updating of SA marks

5 years agoMerge "Add Entitlement Manger to encapsulate provisioning mechanics"
Treehugger Robot [Mon, 26 Nov 2018 02:17:29 +0000 (02:17 +0000)]
Merge "Add Entitlement Manger to encapsulate provisioning mechanics"

5 years agoMerge "Create AppComponentFactory.instantiateClassLoader API"
David Brazdil [Thu, 22 Nov 2018 11:09:15 +0000 (11:09 +0000)]
Merge "Create AppComponentFactory.instantiateClassLoader API"

5 years agoMerge "Update public API after libcore InMemoryDexClassLoader change"
David Brazdil [Thu, 22 Nov 2018 10:09:19 +0000 (10:09 +0000)]
Merge "Update public API after libcore InMemoryDexClassLoader change"

5 years agoTrack move of timezone classes to libcore.timezone
Neil Fuller [Fri, 16 Nov 2018 21:14:13 +0000 (21:14 +0000)]
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
Exempt-From-Owner-Approval: Trivial import change
Merged-In: Ie90c219799cbf9601a22a2d972c09e3d94fc0c43
Change-Id: Ie90c219799cbf9601a22a2d972c09e3d94fc0c43
(cherry picked from commit 164394db8e7d3671ee035c19d23263cbcab623a0)

5 years agoCleanup and update comments SA mark disabling comments
Benedict Wong [Thu, 22 Nov 2018 05:24:55 +0000 (21:24 -0800)]
Cleanup and update comments SA mark disabling comments

This commit cleans up and upates comments with regard to changes in
aosp/721999, clarifying the restrictions and potential pitfalls we would
see with regards to IPsec tunnel mode without updatable SAs.

Bug: 111854872
Test: Compiles, comment-only change
Change-Id: I07b0063987463c1a3cf42e112839a31739947c80

5 years agoMerge "integrate carrier id to carrier config"
Chen Xu [Thu, 22 Nov 2018 05:06:55 +0000 (05:06 +0000)]
Merge "integrate carrier id to carrier config"

5 years agoFix ShortcutService handling of locale change during device setup.
peter.zhang [Mon, 9 Apr 2018 03:03:03 +0000 (11:03 +0800)]
Fix ShortcutService handling of locale change during device setup.

On AndroidO MR1 gms pac, change language at WelcomeActivity UI of SetupWizard when first boot,
after boot completed, enter the launcher and then long press some apps's icon, the  shortcuts
show  language resource strings.

Because of ShortcutUser.mKnownLocales not initialized yet, so ShortcutService do nothing when
handling LOCALE_CHANGED broadcast.

Bug: 77759135
Test: 1. make services and do factory reset. All apps can show correct language resource strings
after changing language in WelcomActivity UI of SetupWizard.
2.run com.android.server.pm.ShortcutManagerTest[1-10]:All(1,3-10) pass except 2, the 2 failure is
no matter with this patch.

Change-Id: If235d23d3a4c50f4120674601f853081571c672e

5 years agointegrate carrier id to carrier config
chen xu [Mon, 12 Nov 2018 03:01:50 +0000 (19:01 -0800)]
integrate carrier id to carrier config

add carrierId and preciseCarrierId in CarrierIdentifier
which will be passed to carrier service to decide which carrier
info to look up

Bug: 110559381
Change-Id: I1b4a44dd32148ebdf5aa437c5938cb89656c27c2
Merged-in: I1b4a44dd32148ebdf5aa437c5938cb89656c27c2

5 years agoAdd CarrierConfig to hide Preset APN setting details
taiki tsutsumi [Mon, 2 Jul 2018 08:15:42 +0000 (17:15 +0900)]
Add CarrierConfig to hide Preset APN setting details

Add new key to hide Preset APN setting details. When the key is set to
true, Preset APN is still shown and selectable in APN list, however,
user cannot enter APN editor view. It means details of Preset APN will
be hidden from user.

Test: manual - check Preset APN setting details are hidden
Bug: 115453290
Change-Id: I8a5c6f92f876d349b304acf89b4ffab86ff3f24b

5 years agoMerge "Fix deleting legacy key blobs"
Treehugger Robot [Wed, 21 Nov 2018 22:29:33 +0000 (22:29 +0000)]
Merge "Fix deleting legacy key blobs"

5 years agoMerge "Framework: Remove some methods from boot image profile"
Andreas Gampe [Wed, 21 Nov 2018 22:25:22 +0000 (22:25 +0000)]
Merge "Framework: Remove some methods from boot image profile"

5 years agoMerge "Added OWNERS to Shell and hook to make sure it's developed on AOSP."
Felipe Leme [Wed, 21 Nov 2018 22:14:14 +0000 (22:14 +0000)]
Merge "Added OWNERS to Shell and hook to make sure it's developed on AOSP."

5 years agoAdded OWNERS to Shell and hook to make sure it's developed on AOSP.
Felipe Leme [Wed, 26 Sep 2018 18:07:30 +0000 (11:07 -0700)]
Added OWNERS to Shell and hook to make sure it's developed on AOSP.

Bug: none
Test: none

Change-Id: I1f6f554cf98c78d1ab8a1e820d485a37238230f5

5 years agoMerge "HFP: Send caller ID in +CLIP command (1/4)"
Treehugger Robot [Wed, 21 Nov 2018 20:21:19 +0000 (20:21 +0000)]
Merge "HFP: Send caller ID in +CLIP command (1/4)"

5 years agoMerge "Expose ImsMmTelManager APIs as SystemApi"
Brad Ebinger [Wed, 21 Nov 2018 18:59:33 +0000 (18:59 +0000)]
Merge "Expose ImsMmTelManager APIs as SystemApi"

5 years agoFix deleting legacy key blobs
Janis Danisevskis [Tue, 6 Nov 2018 22:14:05 +0000 (14:14 -0800)]
Fix deleting legacy key blobs

Since the keystore alias prefix USERSKEY was deprecated
Credentials.deleteUserKeyTypeForAlias tried to delete key the
remaining prefix first and if that failed tried to delete the
legacy prefix.
However, KeyStore.delete returns true if the key was deleted or
did not exist. So the first call to delete would return true
whether the key existed or not and the legacy alias would never be
deleted.

This patch introduces a new flavor of KeyStore.delete, that returns an
error code instead of a boolean. The caller can now distinguish
the nature of the failure. Credentials.deleteUserKeyTypeForAlias now
checks this return code and attempts to delete the legacy variant if
KEY_NOT_FOUND was returned.

Bug: 117818447
Change-Id: Ifae1f3dbb07d85d94f430ead2cdd3e39d22436a4

5 years agoAdd XFRM-I support to IpSecService
Benedict Wong [Thu, 6 Sep 2018 18:31:25 +0000 (11:31 -0700)]
Add XFRM-I support to IpSecService

This change adds support for XFRM-I to all IpSecService netd calls.
Fallback logic is in netd, and thus both VTI and XFRM-I parameters are
always passed down to IpSecService.

Bug: 78589502
Test: All java, CTS tests passing
Change-Id: Ie4186f0ad7e50763b21831f6fa411b5ee436de78

5 years agoDisable attempted updating of SA marks
Benedict Wong [Thu, 26 Jul 2018 01:46:19 +0000 (18:46 -0700)]
Disable attempted updating of SA marks

SA marks are never updated during the UPDSA call. This change disables
the attempts to update the specified SAs, ensuring that the config
stored in IpSecService matches that of the allocated kernel resources.

Bug: 111854872
Test: Unit, CTS tests passing
Change-Id: Ic1fb862c8021ffa260c3e262ec698d8af0a826d9

5 years agoMerge "API for retrieving time zone IDs by country"
Neil Fuller [Wed, 21 Nov 2018 15:18:27 +0000 (15:18 +0000)]
Merge "API for retrieving time zone IDs by country"

5 years agoUpdate public API after libcore InMemoryDexClassLoader change
David Brazdil [Wed, 21 Nov 2018 11:17:38 +0000 (11:17 +0000)]
Update public API after libcore InMemoryDexClassLoader change

Bug: 35458580
Test: compiles
Change-Id: I7debcedac0a6e8b2cfaa8b2dca5f88aebdd32910

5 years agoFix issue in CpuTimePerUid where microseconds are used as milliseconds
Misha Wagner [Fri, 16 Nov 2018 13:19:54 +0000 (13:19 +0000)]
Fix issue in CpuTimePerUid where microseconds are used as milliseconds

KernelUidCpuTimeReader reads microseconds, but they are written to a
millisecond field in atoms.proto. Introduced in ag/3693225.

See google3 change: cl/222044203

Test: build
Bug: 119853118
Change-Id: I170e996aa852e28a246a98226677907bb3560371

5 years agoMerge "Nat-related commands porting"
Luke Huang [Wed, 21 Nov 2018 08:52:13 +0000 (08:52 +0000)]
Merge "Nat-related commands porting"

5 years agoMerge "Convert bootanimation to Android.bp"
Treehugger Robot [Wed, 21 Nov 2018 04:05:58 +0000 (04:05 +0000)]
Merge "Convert bootanimation to Android.bp"

5 years agoPermissionMonitor: Move intent receiver to ConnectivityService.
junyulai [Thu, 1 Nov 2018 09:16:31 +0000 (17:16 +0800)]
PermissionMonitor: Move 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 PermissionMonitor part by using
ConnectivityService to listen to intents and dispatch events
to PermissionMonitor.

Bug: 118811303
Test: 1. atest FrameworksNetTests
      2. manually add/remove package

Change-Id: I6e45b5870d5b1300cad252d25bdb4da78f9bf70e

5 years agoMerge "Move hidden APIs into system APIs"
Jack Yu [Wed, 21 Nov 2018 02:40:30 +0000 (02:40 +0000)]
Merge "Move hidden APIs into system APIs"

5 years agoMerge "BluetoothDevice.ACTION_UUID requires BLUETOOTH_ADMIN"
Treehugger Robot [Wed, 21 Nov 2018 01:58:32 +0000 (01:58 +0000)]
Merge "BluetoothDevice.ACTION_UUID requires BLUETOOTH_ADMIN"

5 years agoMerge "Enable the Debug Logs for Hearing Aids Profile"
Treehugger Robot [Wed, 21 Nov 2018 01:20:02 +0000 (01:20 +0000)]
Merge "Enable the Debug Logs for Hearing Aids Profile"

5 years agoExpose ImsMmTelManager APIs as SystemApi
Brad Ebinger [Fri, 9 Nov 2018 01:41:54 +0000 (17:41 -0800)]
Expose ImsMmTelManager APIs as SystemApi

Bug: 116493310
Bug: 112538960
Bug: 112866475
Test: Telephony unit tests
Change-Id: I698d9ab6000dc2e2e9be8d614e94d59b3a8e3028

5 years agoMerge "Check in P dark greylist"
David Brazdil [Tue, 20 Nov 2018 18:49:34 +0000 (18:49 +0000)]
Merge "Check in P dark greylist"

5 years agoMerge "Fix a use-after-free found by HWAsan."
Peter Collingbourne [Tue, 20 Nov 2018 18:22:36 +0000 (18:22 +0000)]
Merge "Fix a use-after-free found by HWAsan."

5 years agoMerge "WM: Guard against released surfaces in forced rotator"
Treehugger Robot [Tue, 20 Nov 2018 17:56:32 +0000 (17:56 +0000)]
Merge "WM: Guard against released surfaces in forced rotator"

5 years agoCheck in P dark greylist
David Brazdil [Tue, 13 Nov 2018 14:58:31 +0000 (14:58 +0000)]
Check in P dark greylist

Test: m appcompat
Change-Id: If4d7377631c1e8c1194a7bd70814b663d9af17fb

5 years agoWM: Guard against released surfaces in forced rotator
Vishnu Nair [Tue, 20 Nov 2018 16:01:57 +0000 (08:01 -0800)]
WM: Guard against released surfaces in forced rotator

Fixes: 119470176
Test: Rotate phone with cutout enabled, verify cutout overlay is still properly synchornized and SystemUI does not crash.
(cherry picked from commit dcb24ca47138219f41b730af8cdcd2db8f553562)

Merged-In: Ibce67ccede8f114b82779a74853e43b3abe44c55
Change-Id: Ibce67ccede8f114b82779a74853e43b3abe44c55

5 years agoAPI for retrieving time zone IDs by country
Neil Fuller [Wed, 3 Oct 2018 12:59:29 +0000 (13:59 +0100)]
API for retrieving time zone IDs by country

New method has been requested by Setup Wizard.

Test: CTS: run cts-dev -m CtsUtilTestCases -t android.util.cts.TimeUtilsTest
Bug: 116544863
Merged-In: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
Change-Id: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
(cherry picked from commit f9bb2d8f020c2c7815359cae8dc8255fd8e9d1de)

5 years agoAdd Entitlement Manger to encapsulate provisioning mechanics
markchien [Wed, 18 Jul 2018 06:29:20 +0000 (14:29 +0800)]
Add Entitlement Manger to encapsulate provisioning mechanics

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

bug: 111490073

Change-Id: I4f67f8679ab91b5c463fc349f5f21aee08bd943e