OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "MacAddress: Use SecureRandom and add a 46 bit randomized MAC generator"
Jong Wook Kim [Wed, 7 Feb 2018 02:06:07 +0000 (02:06 +0000)]
Merge "MacAddress: Use SecureRandom and add a 46 bit randomized MAC generator"

6 years agoMacAddress: Use SecureRandom and add a 46 bit randomized MAC generator
Jong Wook Kim [Thu, 1 Feb 2018 03:03:19 +0000 (19:03 -0800)]
MacAddress: Use SecureRandom and add a 46 bit randomized MAC generator

Use SecureRandom instead of Random since Random is time based and can
increase the chance of generating same MAC address across multiple
devices.

createRandomUnicastAddress should randomize all bits of the address,
except for locally assigned bit and unicast bit. The previous method
that only randomizes NIC and use Google Base OUI is renamed to
createRandomUnicastAddressWithGoogleBase.

Bug: 72450936
Test: runtest frameworks-net
Change-Id: Icda650638c2c1c9fd90d509a87e86347c0e05f2d

6 years agoMerge "Fix ANR due to long wait for synchronization lock"
Treehugger Robot [Wed, 7 Feb 2018 01:26:09 +0000 (01:26 +0000)]
Merge "Fix ANR due to long wait for synchronization lock"

6 years agoMerge "BootReceiver: changed deprecated Build.RADIO to Build.getRadioVerison to get...
Treehugger Robot [Wed, 7 Feb 2018 01:24:36 +0000 (01:24 +0000)]
Merge "BootReceiver: changed deprecated Build.RADIO to Build.getRadioVerison to get non-empty radio firmware version in SYSTEM_LAST_KMSG."

6 years agoMerge "Pin jarjar targets to java_version 1.8."
Tobias Thierer [Wed, 7 Feb 2018 00:16:04 +0000 (00:16 +0000)]
Merge "Pin jarjar targets to java_version 1.8."

6 years agoMerge "Update ServiceState to adapt NetworkService change."
Xiangyu/Malcolm Chen [Tue, 6 Feb 2018 21:32:31 +0000 (21:32 +0000)]
Merge "Update ServiceState to adapt NetworkService change."

6 years agoMerge "Revert "Check for location access on TelephonyRegistry""
Hall Liu [Tue, 6 Feb 2018 21:15:42 +0000 (21:15 +0000)]
Merge "Revert "Check for location access on TelephonyRegistry""

6 years agoMerge "Add strings and carrier config needed network service."
Treehugger Robot [Tue, 6 Feb 2018 20:57:25 +0000 (20:57 +0000)]
Merge "Add strings and carrier config needed network service."

6 years agoMerge "Add missing copyright messages"
Treehugger Robot [Tue, 6 Feb 2018 20:47:51 +0000 (20:47 +0000)]
Merge "Add missing copyright messages"

6 years agoAdd missing copyright messages
Colin Cross [Tue, 6 Feb 2018 19:10:25 +0000 (11:10 -0800)]
Add missing copyright messages

Bug: 72993971
Test: m sdkparcelables
Change-Id: I9fa422160c29ce3054748b2b8d1e26541a697a90

6 years agoRevert "Check for location access on TelephonyRegistry"
Hall Liu [Tue, 6 Feb 2018 18:13:36 +0000 (18:13 +0000)]
Revert "Check for location access on TelephonyRegistry"

This reverts commit 8d584f0a91b0709b28ebc64abf0a6063429c8d58.

Reason for revert: b/72967560

Change-Id: I9ca3c4a586e740a7b7d4cc5940ca8d4e4ebf3654

6 years agoMerge changes Ie05a1759,If3b6fc63
Treehugger Robot [Tue, 6 Feb 2018 15:02:06 +0000 (15:02 +0000)]
Merge changes Ie05a1759,If3b6fc63

* changes:
  Modify android.test.runner to use new mock APIs
  Add apis needed for android.test.legacy

6 years agoMerge "Correct inaccurate comments in build files"
Paul Duffin [Tue, 6 Feb 2018 13:39:46 +0000 (13:39 +0000)]
Merge "Correct inaccurate comments in build files"

6 years agoModify android.test.runner to use new mock APIs
Paul Duffin [Fri, 5 Jan 2018 13:52:17 +0000 (13:52 +0000)]
Modify android.test.runner to use new mock APIs

Previous change added some new public APIs to allow the
android.test.runner classes to be built against the public API stubs
rather than the internal classes. This change updates the
android.test.runner classes to use that new API.

This in turn is preparation for building an android.test.legacy library
that can be safely statically included in APKs.

Bug: 30188076
Test: make checkbuild

(cherry picked from commit 20af1df63f77f6b3ab12fd6221f581fe84182091)

Merged-In: I302626abb7e048ef0c3169e9a5209b85f2f87d34
Change-Id: Ie05a17598fcabc1189cacc912c01a25782ebd29c

6 years agoCorrect inaccurate comments in build files
Paul Duffin [Wed, 31 Jan 2018 13:30:22 +0000 (13:30 +0000)]
Correct inaccurate comments in build files

Bug: 30188076
Test: make checkbuild
Change-Id: I3881e66a949bfc5fbc34db0a104ef7a6995abe35

6 years agoAdd apis needed for android.test.legacy
Paul Duffin [Fri, 22 Dec 2017 16:13:15 +0000 (16:13 +0000)]
Add apis needed for android.test.legacy

The long term goal of removing junit and dependent android.test classes
from the android.jar is the removal of the runtime libraries that
provide those classes. A key part of the strategy for migrating APKs off
the runtime libraries is the android.test.legacy library which APKs can
statically include in place of the runtime dependencies without having
to change their source code.

The longer term goal is for all tests to migrate from these classes
altogther and to use the Android Test Support Library instead but that
will require significant changes to the test source code.

In order for it to be safe to statically include android.test.legacy in
an APK it cannot use any internal APIs. This change adds the additional
classes and methods needed to the android.test.mock API library. The
additions are all marked as deprecated to try and avoid developers
from using them in new tests.

It also marks the AccountManager constructor used by MockAccountManager
with the android.annotation.MockApi so that it is included in the mock
stubs libraries against which the android.test.mock.stubs[-system]
libraries build.

Bug: 30188076
Test: make checkbuild

(cherry picked from commit 772b6923206a34e97c45bc48e7ad4bebfd3eae29)

Merged-In: I85417cc328cab898ab93b9b726648f4232555324
Change-Id: If3b6fc630df93a44e4c07ef769737a2ac3ebf476

6 years agoMerge "Frameworks: Mark tests"
Treehugger Robot [Tue, 6 Feb 2018 06:03:09 +0000 (06:03 +0000)]
Merge "Frameworks: Mark tests"

6 years agoMerge "Add function to change LE Tx Data Length"
Stanley Tng [Tue, 6 Feb 2018 01:02:33 +0000 (01:02 +0000)]
Merge "Add function to change LE Tx Data Length"

6 years agoUpdate ServiceState to adapt NetworkService change.
Malcolm Chen [Tue, 30 Jan 2018 01:09:21 +0000 (17:09 -0800)]
Update ServiceState to adapt NetworkService change.

SST is re-routed to get cellular registration states from
CellularNetworkService. Updating ServiceState to adapt that
change.

Bug: 64132030
Test: unittest
Change-Id: Ifd557ce50a4419ead6125cda29c79d331508448e
Merged-In: Ifd557ce50a4419ead6125cda29c79d331508448e

6 years agoAdd strings and carrier config needed network service.
Malcolm Chen [Mon, 29 Jan 2018 23:10:46 +0000 (15:10 -0800)]
Add strings and carrier config needed network service.

Add resource overlay and carrier config which will determine
which package / network services will be bound to.

Bug: 64132030
Test: regression tests
Change-Id: I5f515ec16b712e7be25f69e0e079d672227542b0
Merged-In: I5f515ec16b712e7be25f69e0e079d672227542b0

6 years agoPin jarjar targets to java_version 1.8.
Tobias Thierer [Mon, 5 Feb 2018 15:49:52 +0000 (15:49 +0000)]
Pin jarjar targets to java_version 1.8.

This CL pins the following make targets to java_version 1.8,
which is currently the default:
  framework-protos
  repackaged.android.test.base
  repackaged.android.test.mock
  repackaged.android.test.runner

For consistency, their dependencies,
  android.test.base
  android.test.mock
  android.test.runner
which contain .java source files, are also pinned to 1.8.

This is so that the two steps:
 a) update jarjar to support v53 class files
 b) support -target 1.9 in the rest of the toolchain
can be completed in any order, in future CLs. Before this CL,
they would have needed to be completed in order a), b).

Bug: 72703434
Test: EXPERIMENTAL_USE_OPENJDK9=true USE_R8=true make checkbuild docs
      (in a client where CL http://r.android.com/596874 was reverted)

Change-Id: If78067294ae7ab78997aa109b0e08be427bdf0b8

6 years agoMerge changes from topic "ims_apis"
Brad Ebinger [Mon, 5 Feb 2018 19:09:25 +0000 (19:09 +0000)]
Merge changes from topic "ims_apis"

* changes:
  Modify ImsService API to accomodate compat
  Make ImsService API @SystemApi
  Integrate new MMTel APIs into the framework
  Integrate ImsCallSessionListener API changes

6 years agoAdd function to change LE Tx Data Length
Stanley Tng [Tue, 16 Jan 2018 18:39:32 +0000 (10:39 -0800)]
Add function to change LE Tx Data Length

As part of new SL4A tests for LE CoC to measure data throughput, this
commit adds a function to set the LE Tx Data Length parameter to its
maximum.

Test: Ran the new ACTS Tests for LE CoC (BleCocTest and BleCoc2ConnTest)
Bug: 70683224
Change-Id: Iea93f6cb9f4f7cc484f121afa158d7dae18d1ef1

6 years agoMerge "Update OWNER files for connectivity"
Hugo Benichi [Sun, 4 Feb 2018 23:18:52 +0000 (23:18 +0000)]
Merge "Update OWNER files for connectivity"

6 years agoMerge "Added data service configuration support"
Jack Yu [Sat, 3 Feb 2018 04:40:46 +0000 (04:40 +0000)]
Merge "Added data service configuration support"

6 years agoMerge "Added permission for binding data service"
Treehugger Robot [Sat, 3 Feb 2018 04:40:06 +0000 (04:40 +0000)]
Merge "Added permission for binding data service"

6 years agoMerge "Add function to update LE connection parameters"
Stanley Tng [Sat, 3 Feb 2018 01:36:03 +0000 (01:36 +0000)]
Merge "Add function to update LE connection parameters"

6 years agoMerge "Add DENSITY_440"
Treehugger Robot [Sat, 3 Feb 2018 00:03:57 +0000 (00:03 +0000)]
Merge "Add DENSITY_440"

6 years agoMerge "DO NOT MERGE volume shows when status bar is null"
Treehugger Robot [Fri, 2 Feb 2018 23:50:00 +0000 (23:50 +0000)]
Merge "DO NOT MERGE volume shows when status bar is null"

6 years agoMerge "Enable multiple active Ethernet interfaces"
Treehugger Robot [Fri, 2 Feb 2018 23:13:54 +0000 (23:13 +0000)]
Merge "Enable multiple active Ethernet interfaces"

6 years agoMerge "Add missing return statement in setTempFileRootDirectory"
Treehugger Robot [Fri, 2 Feb 2018 22:09:34 +0000 (22:09 +0000)]
Merge "Add missing return statement in setTempFileRootDirectory"

6 years agoAdded permission for binding data service
Jack Yu [Thu, 1 Feb 2018 00:40:33 +0000 (16:40 -0800)]
Added permission for binding data service

This is to make sure only the system can bind the data service.

Test: Manual
Bug: 64132030
Merged-In: Iaf4e4a604396ec37c83516f1d1f163614ef23c3d
Change-Id: Iaf4e4a604396ec37c83516f1d1f163614ef23c3d

6 years agoMerge "Use IntDef for BCD_EXTENDED_TYPE"
Pengquan Meng [Fri, 2 Feb 2018 21:32:11 +0000 (21:32 +0000)]
Merge "Use IntDef for BCD_EXTENDED_TYPE"

6 years agoMerge "Add NFC Transaction Event intent actions and extras"
Ruchi Kandoi [Fri, 2 Feb 2018 20:34:23 +0000 (20:34 +0000)]
Merge "Add NFC Transaction Event intent actions and extras"

6 years agoMerge "Rename MbmsDownloadSession#getDownloadStatus"
Hall Liu [Fri, 2 Feb 2018 20:01:12 +0000 (20:01 +0000)]
Merge "Rename MbmsDownloadSession#getDownloadStatus"

6 years agoDO NOT MERGE volume shows when status bar is null
Beverly [Thu, 1 Feb 2018 18:24:23 +0000 (13:24 -0500)]
DO NOT MERGE volume shows when status bar is null

Bug: 72627648
Test: VolumeDialogControllerImplTest
Change-Id: Ia766d19190d623aecad8d78ba7cbcd9dfbe01218

6 years agoAdd NFC Transaction Event intent actions and extras
Ruchi Kandoi [Fri, 2 Feb 2018 17:14:39 +0000 (09:14 -0800)]
Add NFC Transaction Event intent actions and extras

Bug: 72556384
Bug: 65127791
Test: Test App check for RF Events
Change-Id: I22f5e3d8dc11d518c96a74e54121e072caa6a18d

6 years agoMerge "Add ServiceSpecificExceptions for SecureElementService."
Ruchi Kandoi [Fri, 2 Feb 2018 16:43:11 +0000 (16:43 +0000)]
Merge "Add ServiceSpecificExceptions for SecureElementService."

6 years agoMerge "Return non-negetive value in getMobileStats method"
Treehugger Robot [Fri, 2 Feb 2018 04:22:34 +0000 (04:22 +0000)]
Merge "Return non-negetive value in getMobileStats method"

6 years agoUpdate OWNER files for connectivity
Hugo Benichi [Fri, 2 Feb 2018 03:48:55 +0000 (12:48 +0900)]
Update OWNER files for connectivity

Test: no functional change
Change-Id: I25276c769468c37970cb1915660fee29e589008c

6 years agoAdd ServiceSpecificExceptions for SecureElementService.
Ruchi Kandoi [Fri, 2 Feb 2018 00:15:25 +0000 (16:15 -0800)]
Add ServiceSpecificExceptions for SecureElementService.

Open Mobile API expects NoSuchElementException and IOException to be
thrown in certain scenarios. ServiceSpecificExceptions are added to
fulfil that.

Bug: 64994044
Test: Throw fake errors and test with sample app
Change-Id: Iec5a85a5444360616d0857817f71c721f26c53bc

6 years agoModify ImsService API to accomodate compat
Brad Ebinger [Wed, 24 Jan 2018 22:38:05 +0000 (14:38 -0800)]
Modify ImsService API to accomodate compat

Modifies the ImsService API to accomodate
the ImsService compat layer for older
vender implementations

Bug: 63987047
Test: Manual, Telephony unit tests
Merged-In: Ifb2870414e3d80ef114b3c5fa00c5c5e1aa80b05
Change-Id: Ifb2870414e3d80ef114b3c5fa00c5c5e1aa80b05

6 years agoMake ImsService API @SystemApi
Brad Ebinger [Mon, 22 Jan 2018 21:51:52 +0000 (13:51 -0800)]
Make ImsService API @SystemApi

Marks the ImsService API as @SystemAPI.

Bug: 63987047
Test: Build, Telephony unit tests
Merged-In: I10f8a09950be87cb166b718d1dcc2954fba872cb
Change-Id: I10f8a09950be87cb166b718d1dcc2954fba872cb

6 years agoIntegrate new MMTel APIs into the framework
Brad Ebinger [Tue, 16 Jan 2018 17:33:47 +0000 (09:33 -0800)]
Integrate new MMTel APIs into the framework

Performs the bulk of the work of:
1) Moving the old MMTel APIs to a hidden
.compat namespace to support older vendor
versions of the code.

2) Replace the compat MMTel APIs with the
new ImsService APIs and integrate them
into existing code.

This is one of two CLs, this CL
integrates the new APIs, the next CL
creates the compat layer in telephony
to translate the .compat APIs to the new
APIs to allow Telephony to work with
older versions of the API.

Before commit, the corresponding vendor
changes will have to be submitted as well.

Bug: 63987047
Test: Telephony Unit tests
Merged-In: Icc9ecfdad000f42399beeac142083e62962c12d3
Change-Id: Icc9ecfdad000f42399beeac142083e62962c12d3

6 years agoIntegrate ImsCallSessionListener API changes
Brad Ebinger [Thu, 11 Jan 2018 18:27:43 +0000 (10:27 -0800)]
Integrate ImsCallSessionListener API changes

Integrates the ImsCallSessionListener API changes.
This involves:

1) Moving the ImsCallSessionListener to the
android.telephony.ims namespace.
2) Creating a compat layer between the old
IImsCallSessionListener AIDL and the new one
for vendors using the old implementation.
3) Modify ImsCallSession to only use
setListener to set ImsCallSessionListener
(other method was never used in our code).

Test: Telephony Unit Tests, Manual IMS Tests
Bug: 63987047
Merged-In: I4378c0b1d68ff4f5f21815c81af52c03a66f81c5
Change-Id: Id0cc43e9c97abb6f2776d8ad1cf599353b71e4b7

6 years agoAdd function to update LE connection parameters
Stanley Tng [Thu, 4 Jan 2018 23:42:25 +0000 (15:42 -0800)]
Add function to update LE connection parameters

As part of new SL4A tests for LE CoC to measure data throughput
performance, this commit will add a function to enable the CoC Facade
to modify the LE Connection Parameters especially the Connection
Intervals.

Test: Ran the new ACTS Tests for LE CoC
Bug: 70683224
Change-Id: Ie071b09a44d68fe063198a39eb788c434b092442

6 years agoMerge "Check for location access on TelephonyRegistry"
Hall Liu [Thu, 1 Feb 2018 23:05:22 +0000 (23:05 +0000)]
Merge "Check for location access on TelephonyRegistry"

6 years agoAdded data service configuration support
Jack Yu [Thu, 1 Feb 2018 22:50:53 +0000 (14:50 -0800)]
Added data service configuration support

Added the resource overlay and carrier config support for
data service binding package configuration.

Test: Telephony sanity tests
Bug: 64132030
Change-Id: I3d64e6c0a5f86b6a4953eb611ee6828153a8b12d

6 years agoMerge "Add call recording tone support."
Tyler Gunn [Thu, 1 Feb 2018 22:38:55 +0000 (22:38 +0000)]
Merge "Add call recording tone support."

6 years agoMerge "Add carrier config option to show call barring UI in CallSettings"
Jordan Liu [Thu, 1 Feb 2018 22:35:38 +0000 (22:35 +0000)]
Merge "Add carrier config option to show call barring UI in CallSettings"

6 years agoAdd missing return statement in setTempFileRootDirectory
Hall Liu [Fri, 5 Jan 2018 20:08:51 +0000 (12:08 -0800)]
Add missing return statement in setTempFileRootDirectory

Return without setting the local temp file root if the middleware
reports a failure.

Test: cts
Change-Id: I5e8ea1f7941a7157d88536925f681044d26ef540

6 years agoUse IntDef for BCD_EXTENDED_TYPE
Pengquan Meng [Thu, 1 Feb 2018 21:39:44 +0000 (13:39 -0800)]
Use IntDef for BCD_EXTENDED_TYPE

Bug:72762748
Test: unit test

Change-Id: I33c26b671f6e824ae100d2d5049402cdbade8237

6 years agoRename MbmsDownloadSession#getDownloadStatus
Hall Liu [Sat, 16 Dec 2017 03:46:43 +0000 (19:46 -0800)]
Rename MbmsDownloadSession#getDownloadStatus

Rename and change signature/behavior to match up with middleware
vendor's expectations

Test: run CTS tests
Change-Id: If18acff5631cfc0473c342e9250973866e960d69

6 years agoMerge "Add CarrierConfig to displaying HD audio indicator for GSM/CDMA calls"
Treehugger Robot [Thu, 1 Feb 2018 21:18:53 +0000 (21:18 +0000)]
Merge "Add CarrierConfig to displaying HD audio indicator for GSM/CDMA calls"

6 years agoMerge "CellSignalStrength cleanup"
nharold [Thu, 1 Feb 2018 21:03:55 +0000 (21:03 +0000)]
Merge "CellSignalStrength cleanup"

6 years agoMerge "Added support for the new 1.2 data setup/deactivate API"
Treehugger Robot [Thu, 1 Feb 2018 20:10:36 +0000 (20:10 +0000)]
Merge "Added support for the new 1.2 data setup/deactivate API"

6 years agoMerge changes from topics "ims_sms_sms_ready", "ims_sms_rm_internal_sms", "ims_sms_disp"
Brad Ebinger [Thu, 1 Feb 2018 16:38:36 +0000 (16:38 +0000)]
Merge changes from topics "ims_sms_sms_ready", "ims_sms_rm_internal_sms", "ims_sms_disp"

* changes:
  Add and trigger onReady API for SMS over IMS.
  Unhide SMS over IMS APIs
  Remove internal version of SMS apis
  Move Sms API to proper MMTelFeature class
  Add unique id for sms APIs to be able to trigger correct smstracker

6 years agoMerge "Propagate the "dalvik.vm.minidebuginfo" property to ART run-time."
David Srbecky [Thu, 1 Feb 2018 15:31:05 +0000 (15:31 +0000)]
Merge "Propagate the "dalvik.vm.minidebuginfo" property to ART run-time."

6 years agoAdded support for the new 1.2 data setup/deactivate API
Jack Yu [Wed, 31 Jan 2018 08:33:20 +0000 (00:33 -0800)]
Added support for the new 1.2 data setup/deactivate API

Added support for the 1.2 IRadio APIs that support IWLAN handover.

Test: Telephony sanity tests
Bug: 64132030
Merged-In: I8c962bb45bc4d42610faa32f0ee36080e8e6cb65
Change-Id: I8c962bb45bc4d42610faa32f0ee36080e8e6cb65
(cherry picked from commit 08063d6c1bb64d2b65fe08bfc04d00f3f0fc856f)

6 years agoCheck for location access on TelephonyRegistry
Hall Liu [Thu, 23 Nov 2017 01:38:15 +0000 (17:38 -0800)]
Check for location access on TelephonyRegistry

When sending outbound callbacks on CELL_INFO and CELL_LOCATION, check to
make sure that the user has authorized us and the receiving app to get
information on their location.

Bug: 69637693
Test: manual: telephony testapp
Change-Id: Ib4c8c6a9765f504823016e538dd46768d1032792

6 years agoBootReceiver: changed deprecated Build.RADIO to Build.getRadioVerison to get non...
Siyuan Zhou [Wed, 20 Dec 2017 19:38:12 +0000 (11:38 -0800)]
BootReceiver: changed deprecated Build.RADIO to Build.getRadioVerison to get non-empty radio firmware version in SYSTEM_LAST_KMSG.

Test: Manually verified on Pixel 2 XL, Nexus 5X and 6P devices.
BUG:70934228
Change-Id: I40da7e659619e06587409c6b83c655b46bcbd5b2

6 years agoAdd and trigger onReady API for SMS over IMS.
Mohamed Abdalkader [Tue, 23 Jan 2018 21:09:00 +0000 (13:09 -0800)]
Add and trigger onReady API for SMS over IMS.

Test: manual test that normal code path is fine since this code path is
not yet exercisable.
BUG=69846044
Merged-In: Icb15ca4aa6606fba641f6270dca5e0e06fc4466a
Change-Id: Icb15ca4aa6606fba641f6270dca5e0e06fc4466a

6 years agoMerge "Fix minor bugs with tunnel mode implementation"
Benedict Wong [Wed, 31 Jan 2018 22:45:26 +0000 (22:45 +0000)]
Merge "Fix minor bugs with tunnel mode implementation"

6 years agoUnhide SMS over IMS APIs
Mohamed Abdalkader [Tue, 23 Jan 2018 17:56:31 +0000 (09:56 -0800)]
Unhide SMS over IMS APIs

While here add more constants for send sms result.

Test: manual
BUG:69846044
Merged-In: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
Change-Id: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59

6 years agoCellSignalStrength cleanup
Nathan Harold [Tue, 30 Jan 2018 03:05:29 +0000 (19:05 -0800)]
CellSignalStrength cleanup

Remove a few duplicated initialization methods
in the CellSignalStrength classes. They were
either not being used or were trivially refactored
in to their respective constructors.

Bug: 72742517
Test: compilation
Change-Id: I7115eace62dc0b6d59ea25deedaf5a0d0f270496

6 years agoMerge "Revert "Revert "Make AndroidRuntime only start the debugger for zygote forked...
Treehugger Robot [Wed, 31 Jan 2018 20:17:19 +0000 (20:17 +0000)]
Merge "Revert "Revert "Make AndroidRuntime only start the debugger for zygote forked apps."""

6 years agoRemove internal version of SMS apis
Mohamed Abdalkader [Mon, 22 Jan 2018 23:43:37 +0000 (15:43 -0800)]
Remove internal version of SMS apis

Test: manual
BUG=69846044
Merged-In: Ie084ea67c460c686bd587e4b36f8c1579517ea7f
Change-Id: Ie084ea67c460c686bd587e4b36f8c1579517ea7f

6 years agoMove Sms API to proper MMTelFeature class
Mohamed Abdalkader [Sat, 13 Jan 2018 00:37:08 +0000 (16:37 -0800)]
Move Sms API to proper MMTelFeature class

- while here remove unnecessary call to ackSms from
  SmsImplBase as this is handled by ImsSmsDispatcher

Test: None, APIs not exercised yet.
BUG=69846044
Merged-In: Iec4bbd07a67502dbbfb2142a7bc95f51be0cb377
Change-Id: Iec4bbd07a67502dbbfb2142a7bc95f51be0cb377

6 years agoAdd unique id for sms APIs to be able to trigger correct smstracker
Mohamed Abdalkader [Fri, 12 Jan 2018 19:52:31 +0000 (11:52 -0800)]
Add unique id for sms APIs to be able to trigger correct smstracker

In old APIs the SmsTracker itself was being passed to the RIL
and onSendComplete the tracker's pending intent was triggered
and then the updated messageRef was used as the id.

Instead of passing the tracker, passing a unique id to be used
for the lifetime of the message.

Doing same thing for receiving flow.

Test: None, APIs not exercised yet.
BUG=69846044
Merged-In: Id19f854e2c48649db8f2031ee4f49cdac331451c
Change-Id: Id19f854e2c48649db8f2031ee4f49cdac331451c

6 years agoMerge "Show hidden API warning once per process"
David Brazdil [Wed, 31 Jan 2018 18:35:00 +0000 (18:35 +0000)]
Merge "Show hidden API warning once per process"

6 years agoMerge "Add reachabilityFence, remove ExemptionMechanism.finalize"
Hans Boehm [Wed, 31 Jan 2018 18:20:05 +0000 (18:20 +0000)]
Merge "Add reachabilityFence, remove ExemptionMechanism.finalize"

6 years agoRevert "Revert "Make AndroidRuntime only start the debugger for zygote forked apps.""
Alex Light [Wed, 31 Jan 2018 16:47:29 +0000 (16:47 +0000)]
Revert "Revert "Make AndroidRuntime only start the debugger for zygote forked apps.""

This reverts commit ff5d60b268dfd848c236b62ae241370a68aae39f.

Reason for revert: Fixed issue breaking go/art-build.

Bug: 72400560
Test: Build
Change-Id: Ie8943068302bec02d149917ccf738c0d935f8fe0

6 years agoMerge "Revert "Make AndroidRuntime only start the debugger for zygote forked apps.""
David Brazdil [Wed, 31 Jan 2018 11:24:15 +0000 (11:24 +0000)]
Merge "Revert "Make AndroidRuntime only start the debugger for zygote forked apps.""

6 years agoRevert "Make AndroidRuntime only start the debugger for zygote forked apps."
David Brazdil [Wed, 31 Jan 2018 07:36:35 +0000 (07:36 +0000)]
Revert "Make AndroidRuntime only start the debugger for zygote forked apps."

This reverts commit daf17d415c1a99c515ffa75f3ec3bb0fb87627fe.

Reason for revert: Topic broke go/art-build. Reverting as ART Sheriff.

Change-Id: I913dcb82532d448116b0c60d98a91b9b7442d5c9

6 years agoMerge "Fix "zygote is killed by signal 1""
hansson [Wed, 31 Jan 2018 10:23:11 +0000 (10:23 +0000)]
Merge "Fix "zygote is killed by signal 1""

6 years agoMerge "Add tests about MultiDex corruption recovering"
Yohann Roussel [Wed, 31 Jan 2018 09:57:44 +0000 (09:57 +0000)]
Merge "Add tests about MultiDex corruption recovering"

6 years agoMerge "Used the better hash method provided by Objects"
Treehugger Robot [Wed, 31 Jan 2018 09:04:52 +0000 (09:04 +0000)]
Merge "Used the better hash method provided by Objects"

6 years agoShow hidden API warning once per process
David Brazdil [Wed, 31 Jan 2018 07:59:17 +0000 (07:59 +0000)]
Show hidden API warning once per process

In order to not spam users with warning toasts, add a boolean flag
that guards the displaying of a warning message about hidden API
usage and is set after the first time a message is shown.

Bug: 64382372
Test: manual
Change-Id: If7ea995ddf4727a15eccf55dad42ef7775b1fc91

6 years agoFix minor bugs with tunnel mode implementation
Benedict Wong [Wed, 24 Jan 2018 23:31:39 +0000 (15:31 -0800)]
Fix minor bugs with tunnel mode implementation

This change makes sure tunnel mode transforms are properly activated
upon construction, and corrects bugs with how policy selectors were being
generated for tunnel mode policies. Specifically, the source/destination could
not be empty strings, even for cases where an empty selector was desired.

Bug: 72457770
Test: GTS tests run
Change-Id: I9a9f64c34b07883a02a5c996614f958486d214fc

6 years agoFrameworks: Mark tests
Andreas Gampe [Sat, 27 Jan 2018 04:41:17 +0000 (20:41 -0800)]
Frameworks: Mark tests

Add @Ignore and @Test to make Errorprone happy.

Bug: 72076216
Test: m javac-check RUN_ERROR_PRONE=true
Test: atest ConnectivityServiceTest
Test: atest WifiManagerTest
Change-Id: Id2423c545eccaa768203faf86e14d0a558d927cd

6 years agoMerge "Remove getIsimChallengeResponse"
nharold [Wed, 31 Jan 2018 00:23:50 +0000 (00:23 +0000)]
Merge "Remove getIsimChallengeResponse"

6 years agoFix ANR due to long wait for synchronization lock
Gurpreet Ghai [Wed, 10 Aug 2016 09:44:40 +0000 (15:14 +0530)]
Fix ANR due to long wait for synchronization lock

Use Case: Repeated BT ON/OFF

Failure: ANR occurs due to UI wait for long time waiting
to acquire thread lock.

Steps: Repeated BT ON/OFF

Root Cause: The synchronized function that updates state
also read paired devices as an additional operation. When
the number of devices is cached list is large, the block
time for other threads waiting for same lock tends to
increase causing ANR.

Fix: Limited the synchronized block to the part where
actual update of local state takes place.

Test: SNS Testing

Bug: 35412140

Change-Id: I69ff9f8a032b3772bf3d048d8db70181319ad31d

6 years agoAdd carrier config option to show call barring UI in CallSettings
Wenting Xiong [Fri, 12 Aug 2016 10:28:37 +0000 (18:28 +0800)]
Add carrier config option to show call barring UI in CallSettings

Some operators require to add Call Barring setting UI to CallSetting,
so add a new CarrierConfig value to customize this.

Bug: 30845125
Test: Manual
Change-Id: I5d80508afd8216f04f443c5a9e0dd83d5247788f

6 years agoMerge "Only allow LPA to select ISD-R using iccTransmitApduBasicChannel"
Holly Jiuyu Sun [Tue, 30 Jan 2018 23:05:00 +0000 (23:05 +0000)]
Merge "Only allow LPA to select ISD-R using iccTransmitApduBasicChannel"

6 years agoMerge "Update Docstring for SmsMessage.getOriginatingAddress"
Treehugger Robot [Tue, 30 Jan 2018 20:09:00 +0000 (20:09 +0000)]
Merge "Update Docstring for SmsMessage.getOriginatingAddress"

6 years agoUsed the better hash method provided by Objects
Jack Yu [Tue, 30 Jan 2018 20:02:27 +0000 (12:02 -0800)]
Used the better hash method provided by Objects

Test: Unit tests
Bug: 64132030
Change-Id: Ib0fa616b28df97caf5457fd9069fbd76a80b17cc

6 years agoMerge "Make AndroidRuntime only start the debugger for zygote forked apps."
Alex Light [Tue, 30 Jan 2018 19:55:28 +0000 (19:55 +0000)]
Merge "Make AndroidRuntime only start the debugger for zygote forked apps."

6 years agoMerge "Update hashCode in CellSignalStrength classes"
nharold [Tue, 30 Jan 2018 19:52:36 +0000 (19:52 +0000)]
Merge "Update hashCode in CellSignalStrength classes"

6 years agoAdd call recording tone support.
Tyler Gunn [Mon, 29 Jan 2018 22:30:52 +0000 (14:30 -0800)]
Add call recording tone support.

Adding carrier configuration option to specify whether the carrier requires
the incall recording tone be played.
Added phone account extra used in Telephony to communicate this to
Telecom.
Added permission pregrant for Telecom for MODIFY_AUDIO_ROUTING; this is
needed as Telecom listening to the AudioRecordingConfiguration callback
from the audio framework.  It needs the permission so that it can be
informed of the package names of recording apps.

Test: Manually enabled for local carrier and confirmed that recording
tone plays to remote party when a recording app is started on the device.
Bug: 64138141

Change-Id: I1ab521b79cbeeb4ff4dcbf83de7c17c539637bdc

6 years agoMerge "Prevent ArrayIndexOutOfBoundsException for some invalid sysui_nav_bar values"
Treehugger Robot [Tue, 30 Jan 2018 19:11:36 +0000 (19:11 +0000)]
Merge "Prevent ArrayIndexOutOfBoundsException for some invalid sysui_nav_bar values"

6 years agoMerge changes from topic "cherry-pick-cell-keepalive"
nharold [Tue, 30 Jan 2018 18:39:07 +0000 (18:39 +0000)]
Merge changes from topic "cherry-pick-cell-keepalive"

* changes:
  Rework KeepalivePacketData for Compatibility with Cell
  Add Constants for NATT Keepalive to RILConstants
  Relocate KeepalivePacketData to frameworks/base

6 years agoMerge "Add handover permission, fill in some missing API gaps."
Treehugger Robot [Tue, 30 Jan 2018 18:33:27 +0000 (18:33 +0000)]
Merge "Add handover permission, fill in some missing API gaps."

6 years agoMerge "DropboxManager: Add err message if passing an invalid fd to addFile()"
Treehugger Robot [Tue, 30 Jan 2018 16:16:34 +0000 (16:16 +0000)]
Merge "DropboxManager: Add err message if passing an invalid fd to addFile()"

6 years agoMerge changes Ied54c246,I0ea83bc8,Ibd8cb61d
Treehugger Robot [Tue, 30 Jan 2018 14:54:25 +0000 (14:54 +0000)]
Merge changes Ied54c246,I0ea83bc8,Ibd8cb61d

* changes:
  Create test-legacy/ for android.test.legacy target
  Add android.test.legacy.jar to SDK build
  Add android.test.legacy target

6 years agoPropagate the "dalvik.vm.minidebuginfo" property to ART run-time.
David Srbecky [Tue, 30 Jan 2018 14:37:37 +0000 (14:37 +0000)]
Propagate the "dalvik.vm.minidebuginfo" property to ART run-time.

Change-Id: I27e230fe91490defde4cc38ca8cbc3aa0765fed1

6 years agoFix "zygote is killed by signal 1"
yuanhao [Mon, 15 Jan 2018 07:37:02 +0000 (15:37 +0800)]
Fix "zygote is killed by signal 1"

Ignore the signal SIGHUP in Zygote and all its forks.

Bug:71965619
Test: manual

Change-Id: I7987bb044d97ae21ec27beca6e9aefcbe77197f5
Signed-off-by: yuanhao <yuanhao@xiaomi.com>
6 years agoMerge changes I59bd6ec5,I48864d48,I9b46a4e2,I09a70f3e
Treehugger Robot [Tue, 30 Jan 2018 14:22:00 +0000 (14:22 +0000)]
Merge changes I59bd6ec5,I48864d48,I9b46a4e2,I09a70f3e

* changes:
  Build test-runner/tests
  Use prebuilt android.test. stubs jars for app builds
  Build stubs against SDK and clear local variables
  Use prebuilt android.test.base.jar for app builds

6 years agoCreate test-legacy/ for android.test.legacy target
Paul Duffin [Tue, 30 Jan 2018 13:01:30 +0000 (13:01 +0000)]
Create test-legacy/ for android.test.legacy target

The android.test.legacy (and legacy-android-test) target depends on
code from both test-base/ and test-runner/ and do not really belong
in either folder.

Having a separate folder will also provide a convenient place for
the artifacts needed to publish android.test.legacy to
maven.google.com.

Bug: 30188076
Test: make checkbuild
Change-Id: Ied54c24694b3167fcf9075a3157e92ec53b8f636

6 years agoBuild test-runner/tests
Paul Duffin [Mon, 11 Dec 2017 15:13:08 +0000 (15:13 +0000)]
Build test-runner/tests

Previous change e254526f0fe5d22681555bd4a00b7ee96fee1dc1 inadvertently
removed the line to include the tests/Android.mk file.

(cherry picked from commit 006b7a2b760b89211b9530804118a8333cee314b)

Bug: 30188076
Test: make checkbuild
Change-Id: I59bd6ec5d317eb6306642974902e4c061e594aa8
Merged-In: Ia0ba14a70d2232d464420265a7a5f9c4dde3661b

6 years agoAdd android.test.legacy.jar to SDK build
Paul Duffin [Fri, 26 Jan 2018 15:10:36 +0000 (15:10 +0000)]
Add android.test.legacy.jar to SDK build

This is needed in order to create a prebuilts version of this JAR that
can be used for unbundled builds.

Bug: 30188076
Test: wait for pi-release build and check

(cherry picked from commit af06ed42b5316a12b0c37d4296cc86cb112d0021)

Change-Id: I0ea83bc88b6107f4154a9ca02f13b7c8cb367fea