343875 Commits

Author SHA1 Message Date
nharold
af7435ca1f Merge "CellSignalStrength cleanup" 2018-02-01 21:03:55 +00:00
Treehugger Robot
a02d09a449 Merge "Added support for the new 1.2 data setup/deactivate API" 2018-02-01 20:10:36 +00:00
Brad Ebinger
d6d9ff3c2d 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
2018-02-01 16:38:36 +00:00
David Srbecky
ddd440b8a2 Merge "Propagate the "dalvik.vm.minidebuginfo" property to ART run-time." 2018-02-01 15:31:05 +00:00
Jack Yu
677cfaa2a0 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)
2018-02-01 03:26:10 -08:00
Hall Liu
8d584f0a91 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
2018-02-01 01:00:52 +00:00
Mohamed Abdalkader
304f4b5509 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
2018-01-31 14:55:42 -08:00
Benedict Wong
cb9cd96c50 Merge "Fix minor bugs with tunnel mode implementation" 2018-01-31 22:45:26 +00:00
Mohamed Abdalkader
904c1eca5f Unhide SMS over IMS APIs
While here add more constants for send sms result.

Test: manual
BUG:69846044
Merged-In: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
Change-Id: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
2018-01-31 13:18:45 -08:00
Nathan Harold
9d729c5304 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
2018-01-31 12:53:03 -08:00
Treehugger Robot
3b50dc3d34 Merge "Revert "Revert "Make AndroidRuntime only start the debugger for zygote forked apps.""" 2018-01-31 20:17:19 +00:00
Mohamed Abdalkader
7073c075fb Remove internal version of SMS apis
Test: manual
BUG=69846044
Merged-In: Ie084ea67c460c686bd587e4b36f8c1579517ea7f
Change-Id: Ie084ea67c460c686bd587e4b36f8c1579517ea7f
2018-01-31 11:55:39 -08:00
Mohamed Abdalkader
6e545d5892 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
2018-01-31 11:24:31 -08:00
Mohamed Abdalkader
967a952b34 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
2018-01-31 11:18:11 -08:00
David Brazdil
880839d2d1 Merge "Show hidden API warning once per process" 2018-01-31 18:35:00 +00:00
Hans Boehm
9a9e22fad4 Merge "Add reachabilityFence, remove ExemptionMechanism.finalize" 2018-01-31 18:20:05 +00:00
Alex Light
c50928b763 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
2018-01-31 17:03:20 +00:00
David Brazdil
b3cef78e8d Merge "Revert "Make AndroidRuntime only start the debugger for zygote forked apps."" 2018-01-31 11:24:15 +00:00
David Brazdil
ff5d60b268 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
2018-01-31 10:43:17 +00:00
hansson
2372af9cd8 Merge "Fix "zygote is killed by signal 1"" 2018-01-31 10:23:11 +00:00
Yohann Roussel
01e426d158 Merge "Add tests about MultiDex corruption recovering" 2018-01-31 09:57:44 +00:00
Treehugger Robot
262f84699e Merge "Used the better hash method provided by Objects" 2018-01-31 09:04:52 +00:00
David Brazdil
d960cc4a51 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
2018-01-31 08:03:29 +00:00
Benedict Wong
b8ef541cbc 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
2018-01-31 01:16:53 +00:00
Andreas Gampe
35dbf35b26 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
2018-01-31 01:04:00 +00:00
nharold
b6d5a85a9c Merge "Remove getIsimChallengeResponse" 2018-01-31 00:23:50 +00:00
Wenting Xiong
d58536800f 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
2018-01-30 15:13:21 -08:00
Holly Jiuyu Sun
04e5e63305 Merge "Only allow LPA to select ISD-R using iccTransmitApduBasicChannel" 2018-01-30 23:05:00 +00:00
Treehugger Robot
14513e0ea3 Merge "Update Docstring for SmsMessage.getOriginatingAddress" 2018-01-30 20:09:00 +00:00
Jack Yu
059aa39fab Used the better hash method provided by Objects
Test: Unit tests
Bug: 64132030
Change-Id: Ib0fa616b28df97caf5457fd9069fbd76a80b17cc
2018-01-30 12:02:27 -08:00
Alex Light
5cdf28f38b Merge "Make AndroidRuntime only start the debugger for zygote forked apps." 2018-01-30 19:55:28 +00:00
nharold
59fec059a9 Merge "Update hashCode in CellSignalStrength classes" 2018-01-30 19:52:36 +00:00
Tyler Gunn
acdb686635 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
2018-01-30 11:38:54 -08:00
Treehugger Robot
af5b90ff45 Merge "Prevent ArrayIndexOutOfBoundsException for some invalid sysui_nav_bar values" 2018-01-30 19:11:36 +00:00
nharold
8cabb012fa 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
2018-01-30 18:39:07 +00:00
Treehugger Robot
1dfa830bb0 Merge "Add handover permission, fill in some missing API gaps." 2018-01-30 18:33:27 +00:00
Treehugger Robot
90529d212a Merge "DropboxManager: Add err message if passing an invalid fd to addFile()" 2018-01-30 16:16:34 +00:00
Treehugger Robot
88d9ddd386 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
2018-01-30 14:54:25 +00:00
David Srbecky
156ed92c94 Propagate the "dalvik.vm.minidebuginfo" property to ART run-time.
Change-Id: I27e230fe91490defde4cc38ca8cbc3aa0765fed1
2018-01-30 14:37:37 +00:00
yuanhao
435e84b9fc 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>
2018-01-30 14:29:56 +00:00
Treehugger Robot
ba81a4d2a9 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
2018-01-30 14:22:00 +00:00
Paul Duffin
898e7de6c7 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
2018-01-30 13:01:30 +00:00
Paul Duffin
cc600d6d47 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
2018-01-30 12:39:09 +00:00
Paul Duffin
1116291cec 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
2018-01-30 12:39:09 +00:00
Paul Duffin
d00221cfc6 Use prebuilt android.test. stubs jars for app builds
(cherry picked from commit e144602d9c94d46b2da11d70f526d747b5e05750)

Bug: 30188076
Test: tapas Launcher3
Change-Id: I48864d48098cfa02e15a6eaf8e4d6b53afc5b56c
Merged-In: If632c39c9d98d89d597d410ebc7973903c9fa91e
2018-01-30 12:39:09 +00:00
Paul Duffin
bee7cce828 Add android.test.legacy target
Adds a library that builds against the public API and so can be safely
statically included into applications to avoid them having to depend
on the android.test.base and android.test.runner runtime libraries.

(cherry picked from commit a70f66cb5e40105d4b0ec535f011eea83a38c86a)

Bug: 30188076
Test: make checkbuild
Change-Id: Ibd8cb61d00a65dbcf630672706323e42d82e6ba2
Merged-In: Iae7e3c64392e11035322092ed8e194740ba2d321
2018-01-30 12:39:09 +00:00
Paul Duffin
6b8b7e04ef Build stubs against SDK and clear local variables
The stubs need to be built against the current SDK where possible and
not the internal modules.

(cherry picked from commit d41d847c83c598082a6572f38d0d40f5dee427ef)

Bug: 30188076
Test: delete stub files and remake targets
Change-Id: I9b46a4e2be341fed7e5b33bbf1a80d88c5486ae6
Merged-In: Id724c16e56d1e8fe7f61cfafe7f11ea27e01e659
2018-01-30 12:39:09 +00:00
Paul Duffin
09336b5618 Use prebuilt android.test.base.jar for app builds
(cherry picked from commit 1f090a8d66126a936e40f0e872c5fe5b655fa335)

Bug: 30188076
Test: make checkbuild
Change-Id: I09a70f3e79d0935394332870613b96c653af5e85
Merged-In: I1d7e705baf5728e7a034f3bd32746de3a1d3cd78
2018-01-30 12:38:47 +00:00
Treehugger Robot
4db2d4690e Merge "Add odm sepolicy support to SELinuxMMAC.java" 2018-01-30 08:11:53 +00:00
Treehugger Robot
ab5ac7814b Merge "Remove undefined all-aidl-files-under" 2018-01-30 03:22:21 +00:00