OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Move IPlatformCompat.aidl definition to framework.jar"
Anna Trostanetski [Thu, 15 Aug 2019 19:34:09 +0000 (19:34 +0000)]
Merge "Move IPlatformCompat.aidl definition to framework.jar"

5 years agoMerge "Move telephony/cdma/ classes into appropriate package."
satayev [Thu, 15 Aug 2019 17:29:37 +0000 (17:29 +0000)]
Merge "Move telephony/cdma/ classes into appropriate package."

5 years agoMerge "DO NOT MERGE - Merge pie-platform-release (PPRL.190801.002) into master"
Treehugger Robot [Thu, 15 Aug 2019 06:13:48 +0000 (06:13 +0000)]
Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190801.002) into master"

5 years agoMove IPlatformCompat.aidl definition to framework.jar
atrost [Wed, 14 Aug 2019 15:13:56 +0000 (16:13 +0100)]
Move IPlatformCompat.aidl definition to framework.jar

There are non-app process usecases in framework code that need to have
access to this API.
Created a new package android.compat in frameworks/base/core following
previous definition of android.compat.Compatibility for app processes
(http://cs/android/libcore/luni/src/main/java/android/compat/Compatibility.java).

Bug: 137769727
Test: m
Change-Id: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f
Merged-In: Ifc1b97ad40c2baf65a86169e101acfa72e3aae5f

5 years agoMerge "API: Explicitly track incompatibilities with previous API versions"
Adrian Roos [Wed, 14 Aug 2019 14:39:18 +0000 (14:39 +0000)]
Merge "API: Explicitly track incompatibilities with previous API versions"

5 years agoMerge "Get resource based on subId for multi-SIM"
Chiachang Wang [Wed, 14 Aug 2019 10:56:27 +0000 (10:56 +0000)]
Merge "Get resource based on subId for multi-SIM"

5 years agoMove telephony/cdma/ classes into appropriate package.
Artur Satayev [Fri, 2 Aug 2019 15:40:26 +0000 (16:40 +0100)]
Move telephony/cdma/ classes into appropriate package.

Not changing the java packages, but rather moving the source location. This allows running metalava on them.

Test: m
Change-Id: I3b46644361239d85818dd885f461dfc94de49dca

5 years agoGet resource based on subId for multi-SIM
Chiachang Wang [Tue, 13 Aug 2019 13:02:40 +0000 (21:02 +0800)]
Get resource based on subId for multi-SIM

The resource loading is done based on the last SIM to come up
which is not a deterministic design. Thus, update the way to get
the resource based on the subId.

Test: atest FrameworksNetTests
Test: manually test with avoid bad wifi feature supported sim
Bug: 138956509
Change-Id: Ib5b085d97103889600773d269e03b939c29ca47d

5 years agoDO NOT MERGE - Merge pie-platform-release (PPRL.190801.002) into master
Xin Li [Tue, 13 Aug 2019 23:36:37 +0000 (16:36 -0700)]
DO NOT MERGE - Merge pie-platform-release (PPRL.190801.002) into master

Bug: 139369544
Change-Id: I835905a51836e7218f0be8c25335b9548ae6b2d3

5 years agoMerge "Modify RCS UCE APIs to use AIDL Interfaces."
Brad Ebinger [Tue, 13 Aug 2019 22:46:18 +0000 (22:46 +0000)]
Merge "Modify RCS UCE APIs to use AIDL Interfaces."

5 years agoMerge "Prevent Infinite Recursion in Telecom Sessions"
Brad Ebinger [Tue, 13 Aug 2019 17:10:53 +0000 (17:10 +0000)]
Merge "Prevent Infinite Recursion in Telecom Sessions"

5 years agoSnap for 5674421 from ae0c2eeba3f60c62f63ec83b63d9c0593a0430fe to pi-platform-release
android-build-team Robot [Tue, 13 Aug 2019 16:25:34 +0000 (16:25 +0000)]
Snap for 5674421 from ae0c2eeba3f60c62f63ec83b63d9c0593a0430fe to pi-platform-release

Change-Id: I5b1dc16c0696ce8452f8798e68fe417d7533c5df

5 years agoMerge "Don't allow upstream if entitlement don't know any downstream"
Mark Chien [Tue, 13 Aug 2019 09:36:16 +0000 (09:36 +0000)]
Merge "Don't allow upstream if entitlement don't know any downstream"

5 years agoDon't allow upstream if entitlement don't know any downstream
markchien [Fri, 9 Aug 2019 13:43:38 +0000 (21:43 +0800)]
Don't allow upstream if entitlement don't know any downstream

In case tethering donwstream is setup but don't ask EntitlementManager
to run provisioning. Cellular upstream should not be allowed if
EntilementManager don't have any donwstream record.

Bug: 134649258
Test: -build, flash, boot
      -manual test with carrier SIM
Change-Id: I609722c79f0a45a1c2164d39721ef5883e436feb

5 years agoPrevent Infinite Recursion in Telecom Sessions
Brad Ebinger [Thu, 8 Aug 2019 21:23:05 +0000 (14:23 -0700)]
Prevent Infinite Recursion in Telecom Sessions

There looks to be a case where infinite recursion
is occuring when printing information about
Telecom Sessions. Set a reasonable limit of
iterations and throw a warning when this condition
occurs to better track down a root cause.

Bug: 139045282
Test: atest TelecomUnitTests:SessionTest
Merged-In: Iae69c5db070c5e58ae5d37c12d1c4df027138611
Change-Id: Iae69c5db070c5e58ae5d37c12d1c4df027138611

5 years agoMerge "Add documentation for Locked Messages"
Leland Miller [Mon, 12 Aug 2019 23:42:56 +0000 (23:42 +0000)]
Merge "Add documentation for Locked Messages"

5 years agoMerge "SurfaceControl: Fix captureLayers JNI"
Brad Ebinger [Mon, 12 Aug 2019 17:46:33 +0000 (17:46 +0000)]
Merge "SurfaceControl: Fix captureLayers JNI"

5 years agoAPI: Explicitly track incompatibilities with previous API versions
Adrian Roos [Mon, 12 Aug 2019 15:47:39 +0000 (17:47 +0200)]
API: Explicitly track incompatibilities with previous API versions

Bug: 139128921
Test: make checkapi
Change-Id: I1f17b57705e2f7350b55ab278e06fc4e988771ff

5 years agoMerge "Fix reference leak on TvInputHardwareManager"
Sungsoo Lim [Mon, 12 Aug 2019 04:02:56 +0000 (04:02 +0000)]
Merge "Fix reference leak on TvInputHardwareManager"

5 years agoMerge "Fix a lock issue in AudioPortEventHandler"
Treehugger Robot [Mon, 12 Aug 2019 01:22:58 +0000 (01:22 +0000)]
Merge "Fix a lock issue in AudioPortEventHandler"

5 years agoSurfaceControl: Fix captureLayers JNI
Robert Carr [Tue, 9 Apr 2019 14:42:02 +0000 (07:42 -0700)]
SurfaceControl: Fix captureLayers JNI

Missed a call-point in last refactoring.

Bug: 135965618
Bug: 130211665
Bug: 133054270
Test: Manual
Merged-In: I43fa93eea7d79f5b773497e3bb65750866eca2cb
Change-Id: I43fa93eea7d79f5b773497e3bb65750866eca2cb
(cherry picked from commit bf9298f1c9b848ff0db4ae0be3913ad531bafa9e)

5 years agoMerge "Add klhyun@ to media OWNERS"
Treehugger Robot [Fri, 9 Aug 2019 14:04:34 +0000 (14:04 +0000)]
Merge "Add klhyun@ to media OWNERS"

5 years agoFix a lock issue in AudioPortEventHandler
Kyeongkab.Nam [Tue, 6 Aug 2019 01:29:01 +0000 (10:29 +0900)]
Fix a lock issue in AudioPortEventHandler

It used "this" as a lock object to guard mListeners. but "this" is
pointing to mHandler in handler thread.
This causes the IndexOutOfBoundsException.

bug: 138951761
Test: manual
Change-Id: I826c7c68ecff4fc0d39addd3d56bc989e00848bc

5 years agoMerge "Fix statsd ASAN failure"
Yi Kong [Thu, 8 Aug 2019 22:09:48 +0000 (22:09 +0000)]
Merge "Fix statsd ASAN failure"

5 years agoFix statsd ASAN failure
Yi Kong [Thu, 8 Aug 2019 00:02:22 +0000 (17:02 -0700)]
Fix statsd ASAN failure

If tagId is not found in kAllPullAtomInfo map, StatsPuller will read
outside of the object. Add a condition check to gracefully handle
unrecognised tagId and fix the ASAN failure.

Bug: 139037732
Test: boot aosp_x86-eng
Change-Id: Ic62b89866dbec82f05e6f8e6afca9b312f44a801
Merged-In: I5db561c4223efc4ef6b1441490d319cc6ec8afc7
Exempt-From-Owner-Approval: trivial change, owner OOO.

5 years agoMerge "Use String8 for UTF16 to UTF8 conversion."
Elliott Hughes [Thu, 8 Aug 2019 19:12:04 +0000 (19:12 +0000)]
Merge "Use String8 for UTF16 to UTF8 conversion."

5 years agoUse String8 for UTF16 to UTF8 conversion.
Elliott Hughes [Thu, 8 Aug 2019 16:36:14 +0000 (09:36 -0700)]
Use String8 for UTF16 to UTF8 conversion.

This is the only actual user of libcutils' jstring.h.

Test: treehugger
Change-Id: I0444d42e5a3ca57de3bffca48aa265f267c3d4dc

5 years agoMerge "Stop showing disclosure UI when isDisclosureEnabled is false."
Rajeev Kumar [Thu, 8 Aug 2019 15:42:51 +0000 (15:42 +0000)]
Merge "Stop showing disclosure UI when isDisclosureEnabled is false."

5 years agoMerge "Fix interfaceVersion in DhcpServerCallbacks"
Treehugger Robot [Thu, 8 Aug 2019 12:41:51 +0000 (12:41 +0000)]
Merge "Fix interfaceVersion in DhcpServerCallbacks"

5 years agoMerge "Notify the ART runtime when boot is complete."
Nicolas Geoffray [Thu, 8 Aug 2019 11:58:06 +0000 (11:58 +0000)]
Merge "Notify the ART runtime when boot is complete."

5 years agoMerge "Upload platform compat config generated from framework target."
Anna Trostanetski [Thu, 8 Aug 2019 10:54:02 +0000 (10:54 +0000)]
Merge "Upload platform compat config generated from framework target."

5 years agoFix interfaceVersion in DhcpServerCallbacks
Remi NGUYEN VAN [Thu, 8 Aug 2019 08:45:24 +0000 (17:45 +0900)]
Fix interfaceVersion in DhcpServerCallbacks

The getInterfaceVersion method was missed when freezing the AIDL
interface version.
This causes Q devices to return 0 instead of 3 on this interface.

Bug: 139110717
Test: toggle tethering, dumpsys network_stack version
Change-Id: If587cc9ead4191b9c2ad2ae65473bd89e7c37b5c

5 years agoNotify the ART runtime when boot is complete.
David Srbecky [Mon, 5 Aug 2019 14:43:34 +0000 (15:43 +0100)]
Notify the ART runtime when boot is complete.

Needed for jit-zygote performance improvements.

Test: device boots
Bug: 119800099
Change-Id: I1e46f49d94440384473430d8afebe29fbee9c68e

5 years agoAdd klhyun@ to media OWNERS
Kyunglyul Hyun [Thu, 8 Aug 2019 06:27:26 +0000 (15:27 +0900)]
Add klhyun@ to media OWNERS

Test: N/A
Change-Id: I4328217199581fcb181f74a5c3baabd3a9148136

5 years agoMerge "Added disallowed APN types configuration support"
Jack Yu [Thu, 8 Aug 2019 04:16:30 +0000 (04:16 +0000)]
Merge "Added disallowed APN types configuration support"

5 years agoStop showing disclosure UI when isDisclosureEnabled is false.
Rajeev Kumar [Tue, 6 Aug 2019 19:02:47 +0000 (12:02 -0700)]
Stop showing disclosure UI when isDisclosureEnabled is false.

Bug: 137395050
Change-Id: Ic7768f7d3306f5d9d5c5c988afda4e8710c4ccd0
Test: Manual tests

5 years agoModify RCS UCE APIs to use AIDL Interfaces.
Brad Ebinger [Thu, 6 Dec 2018 00:12:23 +0000 (16:12 -0800)]
Modify RCS UCE APIs to use AIDL Interfaces.

Integrate AIDL backend into RCS UCE APIs.

Test: Telephony Unit Tests
Change-Id: I7a1af154676797ce5adf7b037c883827f4085d52

5 years agoMerge "Fix StorageManagerService linkToDeath more than one time when vold/storaged...
Jeff Sharkey [Wed, 7 Aug 2019 16:02:59 +0000 (16:02 +0000)]
Merge "Fix StorageManagerService linkToDeath more than one time when vold/storaged died."

5 years agoMerge "Remove obsolete methods from DumpstateListener implementations"
Nandana Dutt [Wed, 7 Aug 2019 13:45:36 +0000 (13:45 +0000)]
Merge "Remove obsolete methods from DumpstateListener implementations"

5 years agoMerge "API updated for ICU4J 64.2"
vichang [Wed, 7 Aug 2019 10:38:20 +0000 (10:38 +0000)]
Merge "API updated for ICU4J 64.2"

5 years agoMerge "Update API signature file to reflect the correct logp nullability"
Aurimas Liutikas [Tue, 6 Aug 2019 17:45:39 +0000 (17:45 +0000)]
Merge "Update API signature file to reflect the correct logp nullability"

5 years agoRemove obsolete methods from DumpstateListener implementations
Nandana Dutt [Fri, 14 Jun 2019 13:26:10 +0000 (14:26 +0100)]
Remove obsolete methods from DumpstateListener implementations

Note that with the new Bugreporting API, SystemServer is the only
expected DumpstateListener implementation. Once we fully migrate Shell
app, we can remove the implementation in BugreportService as well.

BUG: 128980174
Test: bugreport from power menu, observe progress bar

Change-Id: I40d654a70bd9ceb3a29f8a0113b85616100f4ee9
Merged-In: I40d654a70bd9ceb3a29f8a0113b85616100f4ee9

5 years agoUpdate API signature file to reflect the correct logp nullability
Aurimas Liutikas [Tue, 6 Aug 2019 13:26:37 +0000 (06:26 -0700)]
Update API signature file to reflect the correct logp nullability

A matching patch to the fix in java.util.logging.Logging nullability.
See https://android-review.googlesource.com/c/platform/libcore/+/1096198/

Test: make -j update-api
Change-Id: I0b653de474b6162764cfa711eb967aada4c0ee50

5 years agoMerge "Extract test utilities for ConnectivityService"
Treehugger Robot [Tue, 6 Aug 2019 11:04:36 +0000 (11:04 +0000)]
Merge "Extract test utilities for ConnectivityService"

5 years agoMerge "Add carrier config for data roaming notification"
Xiangyu/Malcolm Chen [Tue, 6 Aug 2019 06:04:47 +0000 (06:04 +0000)]
Merge "Add carrier config for data roaming notification"

5 years agoAdd carrier config for data roaming notification
Jordan Liu [Tue, 23 Jul 2019 22:52:08 +0000 (15:52 -0700)]
Add carrier config for data roaming notification

This config, when enabled, shows the user a notification when the device
switches to data roaming and the user has data roaming on.

Bug: 133358875
Test: manual
Change-Id: Ia091575ff0fa7e02f0c6a98bae0e66ef73beff81
Merged-In: Ia091575ff0fa7e02f0c6a98bae0e66ef73beff81

5 years agoMerge "Add a documentation in EmergencyNumber#getNumber"
Shuo Qian [Tue, 6 Aug 2019 01:56:32 +0000 (01:56 +0000)]
Merge "Add a documentation in EmergencyNumber#getNumber"

5 years agoMerge "Adds better logging for ImsFeature features"
Brad Ebinger [Tue, 6 Aug 2019 00:27:04 +0000 (00:27 +0000)]
Merge "Adds better logging for ImsFeature features"

5 years agoAdd a documentation in EmergencyNumber#getNumber
sqian [Thu, 11 Jul 2019 21:42:37 +0000 (14:42 -0700)]
Add a documentation in EmergencyNumber#getNumber

If the number starts with a carrier prefix, the
 carrier prefix is configured in
 {@link CarrierConfigManager#KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY}.

This is important because it provides a solid reference for Apps to
strip the prefix, which they may not prefer to display.

Bug: 137225076
Test: Treehugger
Change-Id: I1f6bd74f1d6eb86fe3326246e0ddb08b9cf7ac11
Merged-In: I1f6bd74f1d6eb86fe3326246e0ddb08b9cf7ac11
(cherry picked from commit 552a58ae51e4f8ef1a0bcefe9a475b4511454c17)

5 years agoMerge "Added the min match system config for loose phone numbers comparison"
Hui Yu [Mon, 5 Aug 2019 21:41:56 +0000 (21:41 +0000)]
Merge "Added the min match system config for loose phone numbers comparison"

5 years agoAdded the min match system config for loose phone numbers comparison
Taesu Lee [Tue, 28 May 2019 10:05:06 +0000 (19:05 +0900)]
Added the min match system config for loose phone numbers comparison

Specific min match is required for each country.

Test: atest PhoneNumberUtilsTest

Change-Id: I7f9e9ad824d44f2ebf8367beb6ec337e3eb3a8ad
Merged-In: I7f9e9ad824d44f2ebf8367beb6ec337e3eb3a8ad
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Bug:134246556

5 years agoMerge "Fix dependency on APK used by test"
Treehugger Robot [Mon, 5 Aug 2019 21:04:28 +0000 (21:04 +0000)]
Merge "Fix dependency on APK used by test"

5 years agoMerge "Add documentation in TelephonyManager#getNetworkCountryIso"
Shuo Qian [Mon, 5 Aug 2019 20:17:53 +0000 (20:17 +0000)]
Merge "Add documentation in TelephonyManager#getNetworkCountryIso"

5 years agoMerge "Clean up duplicated uses-permission"
Treehugger Robot [Mon, 5 Aug 2019 19:40:28 +0000 (19:40 +0000)]
Merge "Clean up duplicated uses-permission"

5 years agoMerge "[view compiler] Remove dex_builder_test.cc"
Treehugger Robot [Mon, 5 Aug 2019 16:34:46 +0000 (16:34 +0000)]
Merge "[view compiler] Remove dex_builder_test.cc"

5 years agoUpload platform compat config generated from framework target.
atrost [Mon, 5 Aug 2019 11:22:18 +0000 (12:22 +0100)]
Upload platform compat config generated from framework target.

Add compat-changeid-annotation-processor and upload the generated compat
config using the platform_compat_config rule.
Make both libcore and framework compat configs required for framework to
make sure they get onto the device. Libcore will be removed once the
config is uploaded to APEX.

Test: flashed device locally, config files found and read by
com.android.server.compat.CompatConfig.
Bug: 138222363

Change-Id: Ie04fde8b4b18e7e34d95257f5ef8ca78d5076b4f

5 years agoMerge "Fix broken Javadoc links in frameworks/base"
Treehugger Robot [Sat, 3 Aug 2019 01:37:45 +0000 (01:37 +0000)]
Merge "Fix broken Javadoc links in frameworks/base"

5 years agoAdd documentation in TelephonyManager#getNetworkCountryIso
sqian [Thu, 1 Aug 2019 22:45:48 +0000 (15:45 -0700)]
Add documentation in TelephonyManager#getNetworkCountryIso

In multi-sim, returns a shared emergency network country iso
 from other subscription if the subscription used to create the
 TelephonyManager doesn't camp on a network due to some reason
 (e.g. pin/puk locked), or sim is absent in the corresponding slot.

Test: unit test
Bug: 137236159
Bug: 137235431
Change-Id: I311e690d1f79ebefbc068c486d9bed814c129aab
Merged-In: I311e690d1f79ebefbc068c486d9bed814c129aab
(cherry picked from commit 8ab9550f86c10ccb86353f59790ce2b5d329f716)

5 years agoFix broken Javadoc links in frameworks/base
Aurimas Liutikas [Fri, 2 Aug 2019 22:40:29 +0000 (15:40 -0700)]
Fix broken Javadoc links in frameworks/base

Test: running metalava with syntax check enabled.
Change-Id: I13ec355b591b0ae3cfb5009794b1ed844d27cba8

5 years agoMerge "Fix null pointer exception of calling NetworkInfo.mState.name()"
Chalard Jean [Fri, 2 Aug 2019 19:56:10 +0000 (19:56 +0000)]
Merge "Fix null pointer exception of calling NetworkInfo.mState.name()"

5 years agoMerge "Add graphicsstats.proto owner"
John Reck [Fri, 2 Aug 2019 17:26:07 +0000 (17:26 +0000)]
Merge "Add graphicsstats.proto owner"

5 years agoAdded disallowed APN types configuration support
Jack Yu [Fri, 28 Jun 2019 23:42:37 +0000 (16:42 -0700)]
Added disallowed APN types configuration support

The change added the configuration support for disallowed APN
types for WWAN or WLAN transport. This is to meet carrier policy
that certain traffic for APN types are not allowed on given
transport.

Bug: 135551751
Test: Manual + unit tests
Merged-in: I63c44d1e774b7491929406929e1a5a556db9515a
Change-Id: I63c44d1e774b7491929406929e1a5a556db9515a
(cherry picked from commit ac9a731d270552957641f15a5b58450003d5b964)

5 years ago[view compiler] Remove dex_builder_test.cc
Eric Holk [Fri, 2 Aug 2019 16:32:02 +0000 (09:32 -0700)]
[view compiler] Remove dex_builder_test.cc

This test is problematic because it links against libdexfile and we would like
to remove this dependency. All of the functionality covered by this test is also
tested more thoroughly by the on-device dex-builder-test, so there's no reason
to test it here as well.

Change-Id: Ie45d4a1c99668b68476168fc072a220fa5db3695

5 years agoMerge "Fix lint error getSystemService for EuiccManager"
Brad Ebinger [Thu, 1 Aug 2019 22:06:44 +0000 (22:06 +0000)]
Merge "Fix lint error getSystemService for EuiccManager"

5 years agoAdd documentation for Locked Messages
Nagaraja [Wed, 22 May 2019 10:27:59 +0000 (15:57 +0530)]
Add documentation for Locked Messages

Test: None, documentation only.
Bug: 124791757
Change-Id: I5e0005547dbf47d2b0b3b5de4f1f9486f0385736

5 years agoMerge "Fix the race between entitlement start/stop"
Mark Chien [Thu, 1 Aug 2019 10:38:46 +0000 (10:38 +0000)]
Merge "Fix the race between entitlement start/stop"

5 years agoExtract test utilities for ConnectivityService
Remi NGUYEN VAN [Thu, 13 Jun 2019 07:12:02 +0000 (16:12 +0900)]
Extract test utilities for ConnectivityService

The utilities help using ConnectivityService in tests, and will be used
to write integration tests for ConnectivityService.

Test: atest FrameworksNetTests
Change-Id: Ie895ad05139cd5768d3d8a9bd5589d72571f47e6

5 years agoFix the race between entitlement start/stop
markchien [Fri, 19 Jul 2019 09:28:04 +0000 (17:28 +0800)]
Fix the race between entitlement start/stop

For very quickly hotspot OFF/ON, there is race between tethering
start entitlement from Settings and stop entitlement from wifi's
intent broadcast. Entitlement would only be started when Settings
call #startTethering(). But there are two points that tethering
would stop entitlement. One is #stopTethering() from Settings.
Another one is wifi tell tethering that it is shuting down.

In this change, second point of stop entitlement is removed to avoid
this race problem. Entitlement may have chance that do not be stopped
(e.g. network reset). This is not great but the behavior is the same
as P.
TODO: Don't reply on caller to stop entitlement. Refactor the design
to call #stopProvisioningIfNeeded when IpServer leaving TETHERED state.
TODO: mWifiTetherRequested may also suffer this race condition.

Bug: 137034691
Test: -build, flash, boot
      -atest FrameworkNetTests
      -Enable hotspot with entitlement supported SIM,
       then changing the AP band.

Change-Id: I63f858356b4543b5bdda41d03e45adc944b86da3

5 years agoMerge "Fix the reference leak on RemoteCallbackList"
Dan Zhang [Thu, 1 Aug 2019 05:03:03 +0000 (05:03 +0000)]
Merge "Fix the reference leak on RemoteCallbackList"

5 years agoMerge changes from topic "ims_cc"
Treehugger Robot [Thu, 1 Aug 2019 04:35:50 +0000 (04:35 +0000)]
Merge changes from topic "ims_cc"

* changes:
  ims: API to update ims carreir configs
  CarrierConfig: get configs by prefix
  Add new carrier config for supporting WPS over IMS

5 years agoMerge changes I9350ec13,I809d9191,I235f727d,I1930f3ba
Josh Gao [Thu, 1 Aug 2019 04:02:46 +0000 (04:02 +0000)]
Merge changes I9350ec13,I809d9191,I235f727d,I1930f3ba

* changes:
  SharedMemory: use fdsan to protect our fd.
  Revert "Revert "SharedMemory: break Cleaner reference cycle.""
  Revert "SharedMemory: break Cleaner reference cycle." Bug: 138422309
  GraphicsStatService: fix double close.

5 years agoims: API to update ims carreir configs
Dheeraj Shetty [Fri, 24 May 2019 17:59:44 +0000 (10:59 -0700)]
ims: API to update ims carreir configs

Add a new API in IImsConfig to update carrier
configs for ims.

Bug: 125484786
Test: Build
Change-Id: Id4577b46df514f7948a1d7b1ca58c12abf93b744

5 years agoCarrierConfig: get configs by prefix
Dheeraj Shetty [Fri, 24 May 2019 01:22:05 +0000 (18:22 -0700)]
CarrierConfig: get configs by prefix

Get configs using the prefix of components like gps, wifi or ims.
Add a new ims class for configs related to ims stack.

Bug: 132286782
Test: Build

Change-Id: Ib20ac3b3c55156913284268439102fba7e96dad7

5 years agoAdd new carrier config for supporting WPS over IMS
andychou [Wed, 8 May 2019 15:24:08 +0000 (23:24 +0800)]
Add new carrier config for supporting WPS over IMS

Some carriers allow WPS over IMS but carrier not allow.
Add a carrier config and dial WPS call over IMS or CS per config value

Bug: 131917532
Test: Override Carrier Config and test WPS over IMS or CS
Change-Id: Idb698b12ba08086584e1883cc61e31f924ae42cb
Merged-In: Idb698b12ba08086584e1883cc61e31f924ae42cb

5 years agoSharedMemory: use fdsan to protect our fd.
Josh Gao [Fri, 26 Jul 2019 20:42:58 +0000 (13:42 -0700)]
SharedMemory: use fdsan to protect our fd.

Bug: http://b/138422309
Test: booted, saw the GraphicsStatsService fd misacquisition
Change-Id: I9350ec13e523e1bf86797a1231769d890f277008

5 years agoRevert "Revert "SharedMemory: break Cleaner reference cycle.""
Josh Gao [Wed, 31 Jul 2019 19:29:11 +0000 (12:29 -0700)]
Revert "Revert "SharedMemory: break Cleaner reference cycle.""

This commit was reverted in Q because it broke things, but we want it in
master.

This reverts commit c36d0765a25d4701980738dc3e2053f19eb3d6b8.

Change-Id: I809d9191eee4909d265d2864ebd523f262f6bb61
Test: treehugger

5 years agoRevert "SharedMemory: break Cleaner reference cycle."
Adam Seaton [Fri, 26 Jul 2019 17:13:18 +0000 (17:13 +0000)]
Revert "SharedMemory: break Cleaner reference cycle."
Bug: 138422309

This reverts commit 390d9e6a1806626eb521d55a36b1578d28714cc8.

Reason for revert: crashes documented in b/138422309

Change-Id: I235f727d0fe87c09f6f05dddcae7759bab64dfd8
Merged-In: I235f727d0fe87c09f6f05dddcae7759bab64dfd8
(cherry picked from commit b16411f83aee0847fec77d79fb4e98b2e3fa8828)

5 years agoMerge "[view compiler] Cleanup: Delete duplicate LayoutValidationVisitor::VisitStartTag"
Treehugger Robot [Wed, 31 Jul 2019 22:03:46 +0000 (22:03 +0000)]
Merge "[view compiler] Cleanup: Delete duplicate LayoutValidationVisitor::VisitStartTag"

5 years agoAdd graphicsstats.proto owner
John Reck [Wed, 31 Jul 2019 22:03:15 +0000 (15:03 -0700)]
Add graphicsstats.proto owner

Test: none
Change-Id: I761e9fdbd49991741d785712e6ba6c3578707be7

5 years agoMerge "BGDexopt: Have a single run for primary and secondary dexes"
Andreas Gampe [Wed, 31 Jul 2019 21:48:36 +0000 (21:48 +0000)]
Merge "BGDexopt: Have a single run for primary and secondary dexes"

5 years agoMerge "Remove product_is_iot."
Elliott Hughes [Wed, 31 Jul 2019 21:37:09 +0000 (21:37 +0000)]
Merge "Remove product_is_iot."

5 years agoRemove product_is_iot.
Elliott Hughes [Tue, 30 Jul 2019 15:46:10 +0000 (08:46 -0700)]
Remove product_is_iot.

Test: treehugger
Change-Id: I975f86999e4e40c06d6239fbc63e200042d37cc4
Merged-In: I975f86999e4e40c06d6239fbc63e200042d37cc4

5 years agoMerge "[view compiler] Add DexBuilder support for getting and setting instance fields"
Treehugger Robot [Wed, 31 Jul 2019 18:57:32 +0000 (18:57 +0000)]
Merge "[view compiler] Add DexBuilder support for getting and setting instance fields"

5 years agoBGDexopt: Have a single run for primary and secondary dexes
Andreas Gampe [Fri, 26 Jul 2019 20:31:43 +0000 (13:31 -0700)]
BGDexopt: Have a single run for primary and secondary dexes

Reintegrate both categories into one function. This allows
the completion of downgrading before optimizing.

Refactor slightly for code reuse.

Test: m
Change-Id: I3b18b23b333bcbf57328b6ba33a1b93e9d7db6cf

5 years ago[view compiler] Cleanup: Delete duplicate LayoutValidationVisitor::VisitStartTag
Eric Holk [Wed, 31 Jul 2019 18:07:51 +0000 (11:07 -0700)]
[view compiler] Cleanup: Delete duplicate LayoutValidationVisitor::VisitStartTag

Change-Id: I9f83b2a5d61e92dee9cded239626dcaa0ebb1993

5 years agoMerge "Add getSlotId API for ImsFeature and docs changes"
Brad Ebinger [Wed, 31 Jul 2019 17:59:53 +0000 (17:59 +0000)]
Merge "Add getSlotId API for ImsFeature and docs changes"

5 years agoGraphicsStatService: fix double close.
Josh Gao [Fri, 26 Jul 2019 20:47:11 +0000 (13:47 -0700)]
GraphicsStatService: fix double close.

MemoryFile closes its file descriptor by itself, or would have, if its
Cleaner didn't have a reference cycle. Dup its fd instead of acquiring
it directly.

Bug: http://b/138422309
Test: booted
Change-Id: I1930f3ba47f332c075177d1b34df2371b92d1a1c

5 years agoFix null pointer exception of calling NetworkInfo.mState.name()
Yintang Gu [Tue, 18 Jun 2019 06:24:32 +0000 (14:24 +0800)]
Fix null pointer exception of calling NetworkInfo.mState.name()

Remove setting nai.networkInfo as null temporarily to identify the new
created NetworkAgent, avoiding timing issue triggered by constructor
NetworkInfo(null).

Bug: 135569043
Test: Mannual test, network can work normally
Change-Id: I123ef9e97df2bccdd9528c0e894283c66d053890

5 years agoMerge "Fix job persistence & re-inflation"
Treehugger Robot [Tue, 30 Jul 2019 23:39:04 +0000 (23:39 +0000)]
Merge "Fix job persistence & re-inflation"

5 years agoFix job persistence & re-inflation
Christopher Tate [Fri, 5 Apr 2019 22:51:42 +0000 (15:51 -0700)]
Fix job persistence & re-inflation

We were persisting jobs' battery-not-low constraints but were not
properly restoring that constraint when the job was inflated at boot.
This could result in a runtime bootloop (!) if the job had no other
constraints, requiring a factory reset to restore the device to
usability.

We now:

* properly inflate the battery-not-low constraint;
* persist & inflate the storage-not-low constraint, which previously was
being stripped entirely and could result in a similar crash-at-boot;
* ignore the job rather than crash the system if one is inflated into
a non-viable state; and
* formally test previously-untested constraint persistence

Bug: 130012063
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/job/JobStoreTest.java
Test: atest CtsJobSchedulerTestCases
Test: JobStoreTest with forced throw in JobInfo.Builder#build()
Change-Id: Ia3ab1eb16aeaa85336409368b4340622cec19f4c
Merged-In: Ia3ab1eb16aeaa85336409368b4340622cec19f4c

5 years ago[view compiler] Add DexBuilder support for getting and setting instance fields
Eric Holk [Tue, 30 Jul 2019 21:47:06 +0000 (14:47 -0700)]
[view compiler] Add DexBuilder support for getting and setting instance fields

Bug: 111895153
Change-Id: I5fa2936501c79e30a66f3863b76229ec83433928

5 years agoMerge "Convert more of frameworks/base/packages to Android.bp"
Treehugger Robot [Tue, 30 Jul 2019 21:45:33 +0000 (21:45 +0000)]
Merge "Convert more of frameworks/base/packages to Android.bp"

5 years agoMerge "BGDexopt: Clean up ordering"
Andreas Gampe [Tue, 30 Jul 2019 19:45:24 +0000 (19:45 +0000)]
Merge "BGDexopt: Clean up ordering"

5 years agoMerge "Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available."
Treehugger Robot [Tue, 30 Jul 2019 17:56:26 +0000 (17:56 +0000)]
Merge "Get native wakelock stats from SystemSuspend if /sys/class/wakeup not available."

5 years agoMerge "Add helpers to check whether the BluetoothCodecConfig instance is selectable"
Treehugger Robot [Tue, 30 Jul 2019 02:28:52 +0000 (02:28 +0000)]
Merge "Add helpers to check whether the BluetoothCodecConfig instance is selectable"

5 years agoConvert more of frameworks/base/packages to Android.bp
Colin Cross [Wed, 24 Jul 2019 22:53:15 +0000 (15:53 -0700)]
Convert more of frameworks/base/packages to Android.bp

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

Bug: 122332340
Test: m InputDevices MtpDocumentsProvider SimAppDialog
Change-Id: I851b819030a1da6091f5d6125a228bb01a99011b
Merged-In: I851b819030a1da6091f5d6125a228bb01a99011b

5 years agoAdd getSlotId API for ImsFeature and docs changes
Brad Ebinger [Tue, 23 Jul 2019 23:43:25 +0000 (16:43 -0700)]
Add getSlotId API for ImsFeature and docs changes

Test: Manual
Change-Id: Ie8fdf191b863105fad4751df7d7de61858b75f32

5 years agoMerge "Add APIs for ImsService RCS UCE implementation"
Brad Ebinger [Mon, 29 Jul 2019 20:10:38 +0000 (20:10 +0000)]
Merge "Add APIs for ImsService RCS UCE implementation"

5 years agoMerge "Change coverage dump to specify the output file instead of directory."
Oliver Nguyen [Mon, 29 Jul 2019 17:37:30 +0000 (17:37 +0000)]
Merge "Change coverage dump to specify the output file instead of directory."

5 years agoMerge "Add Key mapping to CEC_KEYCODE_SOUND_SELECT"
Amy Zhang [Mon, 29 Jul 2019 17:32:08 +0000 (17:32 +0000)]
Merge "Add Key mapping to CEC_KEYCODE_SOUND_SELECT"