277672 Commits

Author SHA1 Message Date
Hall Liu
b64ac4c57a Add further Connection-side APIs for RTT (part 2)
Add methods and callbacks to facilitate local and remote RTT initiation
and termination in the middle of a call. Adds @hide Connection-side APIs
to communicate with the ConnectionService, as well as plumbing for
RemoteConnections.

Test: manual, through telecom testapps
Merged-In: Ia80604b7dff8586ff222dbccdbe55e91aab02178
Change-Id: Ia80604b7dff8586ff222dbccdbe55e91aab02178
2017-03-06 16:48:24 -08:00
Treehugger Robot
7f0300f1e2 Merge "getTransport checks interface and instance names." 2017-03-01 21:24:25 +00:00
Tyler Gunn
5a33057092 Merge "Support for showing self-managed calls in IncallService." 2017-03-01 20:32:56 +00:00
nharold
0dc62c6dd3 Merge changes from topic 'query-fplmn-sync'
* changes:
  Provide a public API for TelephonyManager.getForbiddenPlmns()
  Add support for querying Forbidden PLMNs
2017-03-01 20:25:17 +00:00
Treehugger Robot
32d763b0ed Merge "Add DUN to networkAttributes" 2017-03-01 19:25:39 +00:00
ashastry
3d5504724f Merge "Permit privileged system apps to send SMS without persisting." 2017-03-01 18:18:47 +00:00
Etan Cohen
eff6f4fc43 Merge "[AWARE] Add data-path security configuration (PMK)" 2017-03-01 17:39:15 +00:00
Tyler Gunn
81a28efd1b Merge "Support confirmation of international calls while on WFC only." 2017-03-01 16:08:40 +00:00
Etan Cohen
954111a252 [AWARE] Add data-path security configuration (PMK)
Add API to optionally provide a pairwise master key (PMK)
to configure security on a data-path.

Clarify the default API to mean open (unencrypted) data-path.

Bug: 33552694
Test: unit tests and integration (sl4a) tests
Change-Id: I43fe704547f2921b3207f215e42d253837aa04e9
2017-03-01 07:35:35 -08:00
Treehugger Robot
7645fa2816 Merge "Add API Surface for creating IpSec Transforms" 2017-03-01 14:05:48 +00:00
Erik Kline
355dbae680 Merge "Fix dead lock in Tethering state machine" 2017-03-01 11:40:03 +00:00
Treehugger Robot
dff6c5c30d Merge "Also test for additional NetworkCallback calls" 2017-03-01 10:55:35 +00:00
Erik Kline
1d3db32708 Also test for additional NetworkCallback calls
Specifcally:
    - onCapabilitiesChanged
    - onLinkPropertiesChanged
    - onNetworkSuspended

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131

Change-Id: Ie0f7c8ac21313b11980bb335c89ecde6fd8e311c
2017-03-01 18:24:36 +09:00
Nathan Harold
330e1089da Add API Surface for creating IpSec Transforms
This CL adds an API to set up an IPSec Security Association
and Security Policy to perform Transport-Mode and Tunnel-Mode encapuslation
of IP Packets.

Bug: 30984788
Bug: 34811752
Test: 34812052, 34811227
Change-Id: Ic9f63c7bb366302a24baa3e1b79020210910ac0a
2017-02-28 22:01:20 -08:00
Yifan Hong
2cbce4ad87 getTransport checks interface and instance names.
Bug: 35219444
Test: hidl_test
Test: camera, soundtrigger works on marlin
Test: video playback works on marlin
Change-Id: I4d714d2576588cbd9a30d9687e992d34ee0db6d4
2017-02-28 20:35:50 -08:00
Treehugger Robot
2006bfc9ad Merge "Fix memory-leak warnings from the static analyzer" 2017-03-01 01:45:52 +00:00
Hall Liu
22af0f3377 Merge "Add @hide to RttAudioMode IntDef" 2017-03-01 00:51:38 +00:00
George Burgess IV
18f307aed3 Fix memory-leak warnings from the static analyzer
Warnings:
frameworks/base/core/jni/android_view_InputChannel.cpp:145:5: warning:
Potential memory leak
jobject serverChannelObj =
android_view_InputChannel_createInputChannel(env,
^~~~~~~~~~~~~~~~~~~~~~~~
frameworks/base/core/jni/android_view_InputChannel.cpp:151:5: warning:
Potential memory leak
jobject clientChannelObj =
android_view_InputChannel_createInputChannel(env,
^~~~~~~~~~~~~~~~~~~~~~~~

The warnings were complaining about that we might leak
nativeInputChannel, in android_view_InputChannel_createInputChannel,
since we're allocating it as an arg and not always putting it somewhere.

Bug: None
Test: Builds without warnings
Change-Id: I62163adee5d420ad78c8d4c74aafefc8a58f765b
2017-03-01 00:08:04 +00:00
Hall Liu
07094df24a Add @hide to RttAudioMode IntDef
IntDefs apparently require an @hide annotation to avoid breaking CTS
tests. Adding it here.

Change-Id: Ifd748b55e68091132571df7e74fdb797bd6a83fc
Test: CTS
Fix: 35808951
2017-02-28 15:18:31 -08:00
Brad Ebinger
b987777f20 Merge "Send the IMS_SERVICE_UP intent when it is STATE_READY" 2017-02-28 22:44:56 +00:00
Tyler Gunn
ef5a401b7e Support confirmation of international calls while on WFC only.
Add new carrier config which enables a confirmation message when the user
dials an international number while on WFC only.

Add new @hide PhoneNumberUtils method which is used to determine if a
number dialed is an international number.

Test: Manual, unit.
Bug: 33272455
Merged-In: Ia7ffe10eee7d782ddc3355db616af0a48f19556e
Change-Id: Ia7ffe10eee7d782ddc3355db616af0a48f19556e
2017-02-28 13:08:22 -08:00
Andre Eisenbach
17cb857301 Merge "Bluetooth: fix enable log: display 24h time" 2017-02-28 19:04:13 +00:00
Marie Janssen
6837ead33d Bluetooth: fix enable log: display 24h time
Test: adb bugreport at 1pm, observe 13:xx:yy instead of 01:xx:yy
Change-Id: I172dcc63f0f43563ec692349a9434f63c55eac25
2017-02-28 19:02:21 +00:00
Brad Ebinger
e0a7345c6a Send the IMS_SERVICE_UP intent when it is STATE_READY
The ImsService must send the IMS_SERVICE_UP intent when it
signals that it is in the STATE_READY state and
IMS_SERVICE_DOWN when it is STATE_INITIALIZING or
STATE_NOT_AVAILABLE.

Also, add READ_PRIVILEGED_PHONE_STATE check

Bug: 35736451
Test: Unit tests added in frameworks/opt/telephony
Change-Id: I03d4398cf7008cf8c51b78d99eb029aa99c63f62
2017-02-28 10:56:14 -08:00
Treehugger Robot
924878a752 Merge "Setting for RecommendedNetworkEvaluator cache TTL" 2017-02-28 17:05:45 +00:00
Treehugger Robot
ef64558393 Merge "Move seccomp policy logic to bionic" 2017-02-28 15:36:08 +00:00
Amin Shaikh
21496f6ee1 Setting for RecommendedNetworkEvaluator cache TTL
Bug: 19948759
Bug: 33694078
Test: runtest frameworks-core
Change-Id: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
Merged-In: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
2017-02-27 21:49:05 -08:00
Nathan Harold
6a7c9333b9 Provide a public API for TelephonyManager.getForbiddenPlmns()
Bug: 33296073
Test: none
Change-Id: I4f1bce663669c18098755c386456e6e9687a3cfb
2017-02-27 16:34:40 -08:00
Nathan Harold
f56cd70734 Add support for querying Forbidden PLMNs
Bug: 32277497
Test: Verified via public API for: missing SIM and working SIM
Change-Id: Ib7838a4be81853ef336e4f3d527c483b49cd2167
2017-02-27 16:01:57 -08:00
Brad Ebinger
3e64003641 Merge "Adds read/modify permission checks to ImsService" 2017-02-27 21:19:18 +00:00
Etan Cohen
f81911bcd2 Merge "[AWARE] Remove (hide) sendMessage with retryCount API" 2017-02-27 18:33:35 +00:00
Paul Lawrence
08b93c1e97 Move seccomp policy logic to bionic
Test: Make sure builds, runs, seccomp policy still applied
Bug: 35720753
Change-Id: Ieb09dd88cf070d4b4f1277d1a88d0ce250bb05b4
2017-02-27 09:35:18 -08:00
Paul Lawrence
4ebce43b37 Merge "Revert "Move seccomp policy logic to bionic"" 2017-02-27 16:39:12 +00:00
Paul Lawrence
be0d6a6890 Revert "Move seccomp policy logic to bionic"
This reverts commit 48c30ef529543c9bbd1b55f9e05c666b3ffeb7c6.

Reverting build-breaking change

Change-Id: Iad6270e51cb1ead0efbd52c2dfcc6d2118931e4e
2017-02-27 16:35:53 +00:00
Paul Lawrence
7ed4ca9032 Merge "Move seccomp policy logic to bionic" 2017-02-27 16:09:39 +00:00
Tyler Gunn
89e7a888be Merge "Fix videoStateToString for audio/paused state." 2017-02-27 02:55:25 +00:00
Tyler Gunn
050e5ddb4f Merge "Format Japanese numbers using national format when in Japan." 2017-02-27 02:48:11 +00:00
Treehugger Robot
e091985bb5 Merge "Added a settings for CMAS message broadcast" 2017-02-25 01:13:29 +00:00
Chen Xu
fcb37ffc60 Merge "move ACTION_CARRIER_SETUP intent to public api" 2017-02-25 01:05:30 +00:00
Etan Cohen
7c9c4785fc [AWARE] Remove (hide) sendMessage with retryCount API
Remove the sendMessage(..., retryCount) API (the version
without retryCount) remains. Baseline API already retries
transmissions (at the PHY/MAC layers) - no reason to add
framework-layer retries.

Bug: 35755823
Test: unit tests and integration (sl4a) tests
Change-Id: I49d8bd1e836c09d56f3a9343313f5647eac5c32d
2017-02-24 14:17:51 -08:00
Treehugger Robot
79faa72eee Merge "Mark oemhook related APIs @Deprecated." 2017-02-24 20:40:23 +00:00
Abhijith Shastry
ea6b189486 Permit privileged system apps to send SMS without persisting.
The system app needs to have MODIFY_PHONE_STATE permission.

BUG: 35325136
Test: API visibility change
Change-Id: Ifbe2bfa590ce4acd59bba19610f11a473806b2ef
2017-02-24 12:36:03 -08:00
Josh Gao
5bf8540194 Merge "Open /data/anr/traces.txt with O_APPEND." 2017-02-24 20:17:23 +00:00
Josh Gao
6443a858a6 Open /data/anr/traces.txt with O_APPEND.
Should fix selinux denial:
    audit(0.0:7893): avc: denied { write } for path="/data/anr/traces.txt" dev="sda35" ino=679938 scontext=u:r:crash_dump:s0 tcontext=u:object_r:anr_data_file:s0 tclass=file permissive=0

Bug: 35727090
Test: none
Change-Id: I5c131ca1ee48ed00934a9aa7c611ee35fc4f9f2a
2017-02-24 12:15:15 -08:00
Eric Laurent
70bc4a8036 Merge "Load hyphenation patterns for Bulgarian and Church Slavonic" 2017-02-24 19:36:29 +00:00
Mukesh Agrawal
22e43471ed Merge "StateMachine: add getLogRecMaxSize()" 2017-02-24 19:26:48 +00:00
Roozbeh Pournader
e626fb53e2 Load hyphenation patterns for Bulgarian and Church Slavonic
Patterns for Bulgarian (bg) and Church Slavonic (cu) are now loaded
too.

Also make changes to fontchain_lint.py, so it knows the script for Bulgarian
and Church Slavonic is Cyrillic.

Test: make -j works and creates .hyb files for bg and cu
Change-Id: I0586f6c49380279ef88fe952b5cfd2d3594c5524
2017-02-24 11:23:48 -08:00
fionaxu
6a5ac3b922 move ACTION_CARRIER_SETUP intent to public api
As per CDD: The "android.*" namespace for intent constants is reserved for public
Android API in AOSP. (Whether public to the full SDK, @SystemApi or
defined in AOSP support libraries.)
ACTION_CARRIER_SETUP intent is generally useful for carrier privileged
apps which is unbundled carrier apps, thus move to public APIs

Bug: 33679956
Test: Manual
Change-Id: I202398f868d35e7e9046e7cc41330a3c26dca0b0
Merged-in: Ie2b5d072406513f04676210d08c43d91623c3cd2
2017-02-24 10:34:07 -08:00
Treehugger Robot
2f40b2b302 Merge "Update api for InMemoryDexClassLoader" 2017-02-24 18:32:22 +00:00
Alex Light
c5f58e8fab Update api for InMemoryDexClassLoader
We changed the base class for InMemoryDexClassLoader to be
BaseDexClassLoader.

Test: m -j40 droid

Change-Id: Ibf9f8996a8b9a2feebbd42ec864fd1b08027a6ab
2017-02-24 08:22:41 -08:00