OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Add getVisualVoicemailPackageName()"
Chen Xu [Thu, 27 Apr 2017 17:46:02 +0000 (17:46 +0000)]
Merge "Add getVisualVoicemailPackageName()"

7 years agoMerge "RIL changes to allow the modem to query the framework for the key."
Pankaj Kanwar [Thu, 27 Apr 2017 17:41:56 +0000 (17:41 +0000)]
Merge "RIL changes to allow the modem to query the framework for the key."

7 years agoMerge "Limit btsnoop file size (3/8)"
Ajay Panicker [Thu, 27 Apr 2017 17:29:35 +0000 (17:29 +0000)]
Merge "Limit btsnoop file size (3/8)"

7 years agoMerge "Log: increase visibility of Log.TerribleFailure"
Mukesh Agrawal [Thu, 27 Apr 2017 16:40:48 +0000 (16:40 +0000)]
Merge "Log: increase visibility of Log.TerribleFailure"

7 years agoMerge "Better handle MSIM DDS changed event"
Brad Ebinger [Thu, 27 Apr 2017 16:38:46 +0000 (16:38 +0000)]
Merge "Better handle MSIM DDS changed event"

7 years agoRIL changes to allow the modem to query the framework for the key.
pkanwar [Sun, 19 Mar 2017 19:14:34 +0000 (12:14 -0700)]
RIL changes to allow the modem to query the framework for the key.

In order to support IMSI encryption, the modem needs to request the
framework for the public key of the Carrier. The framework will pass
2 fields back, the public key and a string (which is a key value pair
to be defined by the carrier).

BUG: 35606429
Test: manual
Change-Id: I609e4505508aa6bb5b442c09eb4c346106492361
Merged-In: I609e4505508aa6bb5b442c09eb4c346106492361

7 years agoMerge "AndroidRuntime: pipe down dalvik.vm.stack-trace-dir"
Narayan Kamath [Thu, 27 Apr 2017 15:26:50 +0000 (15:26 +0000)]
Merge "AndroidRuntime: pipe down dalvik.vm.stack-trace-dir"

7 years agoMerge "NsdManager: unit tests for argument validation"
Hugo Benichi [Thu, 27 Apr 2017 12:36:41 +0000 (12:36 +0000)]
Merge "NsdManager: unit tests for argument validation"

7 years agoMerge "NsdService: disentangle NativeDaemonConnector from ctor"
Hugo Benichi [Thu, 27 Apr 2017 12:30:20 +0000 (12:30 +0000)]
Merge "NsdService: disentangle NativeDaemonConnector from ctor"

7 years agoMerge "Update frameworks/base to new compiler filters."
Nicolas Geoffray [Thu, 27 Apr 2017 11:40:05 +0000 (11:40 +0000)]
Merge "Update frameworks/base to new compiler filters."

7 years agoNsdManager: unit tests for argument validation
Hugo Benichi [Tue, 25 Apr 2017 06:04:10 +0000 (15:04 +0900)]
NsdManager: unit tests for argument validation

Test: new tests pass.
Bug: 3701336933298084
Change-Id: Ia514d2bbd967d46fed54e379f319b572ade22c62

7 years agoNsdService: disentangle NativeDaemonConnector from ctor
Hugo Benichi [Mon, 24 Apr 2017 07:19:58 +0000 (16:19 +0900)]
NsdService: disentangle NativeDaemonConnector from ctor

This patch disentangles the creation of NativeDaemonConnector from the
creation of NsdService by introducing a wrapper type DaemonConnection.

This allows to mock this dependency in unit tests.

Test: enhanced previously introduced new tests.
Bug: 3701336933298084
Change-Id: I894b7cddfc509f86d0134d214c88c063b81b5e0a

7 years agoMerge "NsdService: bootstrap unit tests"
Hugo Benichi [Thu, 27 Apr 2017 05:22:52 +0000 (05:22 +0000)]
Merge "NsdService: bootstrap unit tests"

7 years agoLimit btsnoop file size (3/8)
Ajay Panicker [Tue, 18 Apr 2017 03:42:22 +0000 (20:42 -0700)]
Limit btsnoop file size (3/8)

Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Merged-In: I40d5da4c1b1c9b45908e5790d130f1c5e804c773
Change-Id: I40d5da4c1b1c9b45908e5790d130f1c5e804c773

7 years agoMerge "Allow Bluetooth CAP_SYS_NICE"
Treehugger Robot [Thu, 27 Apr 2017 00:01:53 +0000 (00:01 +0000)]
Merge "Allow Bluetooth CAP_SYS_NICE"

7 years agoMerge "Clarify some IpManager/ApfFilter debugging output."
Erik Kline [Wed, 26 Apr 2017 23:56:58 +0000 (23:56 +0000)]
Merge "Clarify some IpManager/ApfFilter debugging output."

7 years agoMerge "Fix the notification issue shown on startForeground"
Suprabh Shukla [Wed, 26 Apr 2017 21:56:23 +0000 (21:56 +0000)]
Merge "Fix the notification issue shown on startForeground"

7 years agoAllow Bluetooth CAP_SYS_NICE
Philip Cuadra [Wed, 26 Apr 2017 20:49:37 +0000 (13:49 -0700)]
Allow Bluetooth CAP_SYS_NICE

Bluetooth needs CAP_SYS_NICE in order to make important threads use RT
scheduling policy.

Bug 37518404

Test: Play Bluetooth audio, confirm RT priority in systrace
Change-Id: I388ef78d1aaf3f5fe1aa901b48d76c5c992acacc
Merged-In: I0ee55a2f2cfd80cbb066d9c034bb85d8d85ba470

7 years agoAdd getVisualVoicemailPackageName()
Ta-wei Yen [Fri, 20 Jan 2017 20:11:40 +0000 (12:11 -0800)]
Add getVisualVoicemailPackageName()

Make NMR2 voicemail columns public

getVisualVoicemailPackageName() and the IS_OMTP_VOICEMAIL is used by
the voicemail UI to filter out voicemails not from the current visual
voicemail app, for example legacy telephony voicemails or previous
default dialer. These voicmails all represent the same source and are
likely duplicates.

BACKED_UP and RESTORED are used by the system dialer voicemail back
up and restore feature in NMR2. Since there are no API bump, it was
hidden and made public in this CL instead. See ag/1803794

ARCHIVED is used to prevent locally saved voicemails from being
deleted during a sync because it does not exist on the server.

Bug: 34463609
Fixes: 34463609
Bug: 32414216
Test: cts test android.provider.cts.VoicemailContractTest
    android.telephony.cts.VisualVoicemailServiceTest

Change-Id: Iec1e499e763ad92f4a822715b6022e9cbe557c11
Merged-in: Iec1e499e763ad92f4a822715b6022e9cbe557c11

7 years agoMerge "WifiManager: add updateInterfaceIpState"
Rebecca Silberstein [Wed, 26 Apr 2017 20:49:04 +0000 (20:49 +0000)]
Merge "WifiManager: add updateInterfaceIpState"

7 years agoFix the notification issue shown on startForeground
luozhanwei [Wed, 5 Apr 2017 05:30:53 +0000 (13:30 +0800)]
Fix the notification issue shown on startForeground

Install single APP in any user space except Owner user.
The APP will show a notification when call startForeground in Service Component with
Notification which without SmallIcon.
But when you click the notificaiton ,you can't go to the InstalledAppDetails Activity.

Bug:https://code.google.com/p/android/issues/detail?id=330486

Change-Id: I9545c37bf1a36515813cbf1124c82c1c0fc3ad21
Signed-off-by: luozhanwei <luozhanwei@xiaomi.com>
7 years agoMerge "Hide IpSecManager, IpSecTransform, and IpSecAlgorithm"
nharold [Wed, 26 Apr 2017 17:10:32 +0000 (17:10 +0000)]
Merge "Hide IpSecManager, IpSecTransform, and IpSecAlgorithm"

7 years agoMerge "Extend carrier configs for visual voicemail"
Chen Xu [Wed, 26 Apr 2017 16:42:09 +0000 (16:42 +0000)]
Merge "Extend carrier configs for visual voicemail"

7 years agoUpdate frameworks/base to new compiler filters.
Nicolas Geoffray [Tue, 25 Apr 2017 11:29:07 +0000 (12:29 +0100)]
Update frameworks/base to new compiler filters.

Also fix a merge issue with duplicated code.

bug:34715556
Test: build and boot aosp bullhead
Change-Id: I3b913878c83f708e752ec06f79bada1873213823

7 years agoAndroidRuntime: pipe down dalvik.vm.stack-trace-dir
Narayan Kamath [Tue, 25 Apr 2017 13:24:07 +0000 (14:24 +0100)]
AndroidRuntime: pipe down dalvik.vm.stack-trace-dir

Fall back to dalvik.vm.stack-trace-file if it doesn't exist.

Test: make
Test: manual testing with the property set / empty
Bug: 32064548

Change-Id: I23b4c7b26eda5d0fcaf6b976bf1e973a872555c7

7 years agoMerge "Improvements to ActivityManagerService stack dumping"
Narayan Kamath [Wed, 26 Apr 2017 12:01:15 +0000 (12:01 +0000)]
Merge "Improvements to ActivityManagerService stack dumping"

7 years agoClarify some IpManager/ApfFilter debugging output.
Erik Kline [Fri, 21 Apr 2017 08:56:55 +0000 (17:56 +0900)]
Clarify some IpManager/ApfFilter debugging output.

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - "adb shell dumpsys wifi ipmanager" shows updated output
Bug: 34793131
Change-Id: I6dec135b97343943efb421ef7b2e84c4751dd5ea

7 years agoHide IpSecManager, IpSecTransform, and IpSecAlgorithm
Nathan Harold [Tue, 25 Apr 2017 21:21:52 +0000 (14:21 -0700)]
Hide IpSecManager, IpSecTransform, and IpSecAlgorithm

These classes, originally planned to be part of the
public API, are not ready for public consumption.
They are planned to be un-hidden in a future release.

Bug: 37681043
Test: make update-api and make
Change-Id: I8caccd3f8455341cb56a2256354eacbadedff047

7 years agoWifiManager: add updateInterfaceIpState
Rebecca Silberstein [Fri, 21 Apr 2017 18:20:56 +0000 (11:20 -0700)]
WifiManager: add updateInterfaceIpState

Add a call to WifiManager that allows ConnectivityService to
provide interface mode change updates.  Mode variables are also
added in this CL.

A corresponding CL will be added to WifiServiceImpl.

Fixed two checkstyle errors on imports.

Bug: 31466854
Test: make
Change-Id: Iccccd2643515a09fadb29f7b7e82697aaf994189

7 years agoLog: increase visibility of Log.TerribleFailure
mukesh agrawal [Mon, 17 Apr 2017 21:26:40 +0000 (14:26 -0700)]
Log: increase visibility of Log.TerribleFailure

The Log.setWtfHandler() provides a way to override
the default TerribleFailureHandler, so that we can
test that a piece of code reports as terrible
failure as expected.

Unfortunately, we can't actual use setWtfHandler()
at the moment. The problem is as follows:
1. The Log.setWtfHandler() method requires a
   Log.TerribleFailureHandler instance.
2. The Log.TerribleFailureHandler interface requires
   subclasses to implement a onTerribleFailure()
   method. The method requires a Log.TerribleFailure
   argument.
3. Log.TerribleFailure is a private inner class.

Given the above, classes outside of Log can't create
an appropriate argument to pass to Log.setWtfHandler().

To resolve this, we update the visibility of
Log.TerribleFailure to be the same as that of
Log.setWtfHandler(), and Log.TerribleFailureHandler.

Test: m -j32
Bug: 37425059
Change-Id: Ie646b931869582398d61495e367e0d36e767a3e3

7 years agoMerge "Create Public API which exposes if the device is in a state where simultaneous...
Pankaj Kanwar [Tue, 25 Apr 2017 23:30:51 +0000 (23:30 +0000)]
Merge "Create Public API which exposes if the device is in a state where simultaneous voice and data are possible."

7 years agoMerge "Add Error specifiers to the API."
Hall Liu [Tue, 25 Apr 2017 22:03:41 +0000 (22:03 +0000)]
Merge "Add Error specifiers to the API."

7 years agoMerge "Add VisualVoicemailService"
Chen Xu [Tue, 25 Apr 2017 21:54:51 +0000 (21:54 +0000)]
Merge "Add VisualVoicemailService"

7 years agoBetter handle MSIM DDS changed event
Brad Ebinger [Tue, 18 Apr 2017 18:43:42 +0000 (11:43 -0700)]
Better handle MSIM DDS changed event

On DSDS MSIM devices, when Default Data Subscription event
is received, the ImsService may choose to switch which
Slot ID is active.

This change better handles that switch and removes a
crash that was happening due to
ImsServiceProxy#getFeatureStatus getting called
circularly.

Bug: 37361882
Test: Run Telephony unit tests
Change-Id: Iaa29bba25f82e699c96b951b3b110568163e12d8

7 years agoCreate Public API which exposes if the device is in a state where simultaneous
pkanwar [Thu, 19 Jan 2017 20:24:19 +0000 (12:24 -0800)]
Create Public API which exposes if the device is in a state where simultaneous
voice and data are possible.

BUG: 32912296
Test: Not required.
Change-Id: If603aa37c774157f0a3af12ca4ac6bafad94340d
Merged-In: If603aa37c774157f0a3af12ca4ac6bafad94340d

7 years agoMerge "Bluetooth: expand comments on new PHY constants"
Treehugger Robot [Tue, 25 Apr 2017 19:36:35 +0000 (19:36 +0000)]
Merge "Bluetooth: expand comments on new PHY constants"

7 years agoMerge "Bluetooth: Add handler parameter to connectGatt"
Treehugger Robot [Tue, 25 Apr 2017 19:36:20 +0000 (19:36 +0000)]
Merge "Bluetooth: Add handler parameter to connectGatt"

7 years agoMerge "Bluetooth: document status value in PHY read/update"
Treehugger Robot [Tue, 25 Apr 2017 19:20:40 +0000 (19:20 +0000)]
Merge "Bluetooth: document status value in PHY read/update"

7 years agoBluetooth: expand comments on new PHY constants
Jakub Pawlowski [Fri, 21 Apr 2017 11:26:12 +0000 (04:26 -0700)]
Bluetooth: expand comments on new PHY constants

Bug: 37544152
Test: the all-knowing eyes of the reviewers
Change-Id: I8f5a756a204fe90960700e1dc42f64824d3b844a

7 years agoBluetooth: document status value in PHY read/update
Jakub Pawlowski [Tue, 25 Apr 2017 15:07:11 +0000 (08:07 -0700)]
Bluetooth: document status value in PHY read/update

Bug: 37544152
Test: none
Change-Id: I2bac468f833c73cd282b1dac80b6553917996604

7 years agoBluetooth: Add handler parameter to connectGatt
Jakub Pawlowski [Fri, 21 Apr 2017 10:49:00 +0000 (03:49 -0700)]
Bluetooth: Add handler parameter to connectGatt

Bug: 37544152
Test: sl4a GattReadTest GattWriteTest
Change-Id: I043dfefaafe9f3700418f2c855c52aac3644310f

7 years agoMerge "Provide an API to make USSD calls and read the responses."
Pankaj Kanwar [Tue, 25 Apr 2017 16:08:25 +0000 (16:08 +0000)]
Merge "Provide an API to make USSD calls and read the responses."

7 years agoImprovements to ActivityManagerService stack dumping
Brian Carlstrom [Mon, 20 Mar 2017 00:43:12 +0000 (17:43 -0700)]
Improvements to ActivityManagerService stack dumping

- Deduplicate code in DumpStackFileObserver, ensure consistent behavior at addition use site
- Fix bug in DumpStackFileObserver where closed state was not reset
- Align TRACE_DUMP_TIMEOUT_MS with frameworks/native/cmds/dumpstate/utils.cpp
- Fallback to Debug.dumpNativeBacktraceToFileTimeout on timeout
- Share timeout constant with other Debug.dumpNativeBacktraceToFileTimeout caller

Test: Insert 1s sleep in system/bt/btif/src/bluetooth.cc is_profile to trigger ANR
Test: Insert hang into art/runtime/signal_catcher.cc after "reacting to signal"
Bug: 35962833

(cherry picked from commit beed965c25d6996ed0f7947bf8a569ca4489f79e)

Merged-In: I6b5cc3f106f1e2b49400e382b8ad71ddbd4685f3
Change-Id: Ia2024bfa54a15a57821958d69b442d0bc9985eb6

7 years agoMerge "[AWARE] Add UID checking to WifiAwareNetworkSpecifier"
Etan Cohen [Tue, 25 Apr 2017 13:21:35 +0000 (13:21 +0000)]
Merge "[AWARE] Add UID checking to WifiAwareNetworkSpecifier"

7 years agoNsdService: bootstrap unit tests
Hugo Benichi [Mon, 24 Apr 2017 02:35:06 +0000 (11:35 +0900)]
NsdService: bootstrap unit tests

Test: new tests part of $ runtest frameworks-net
Bug: 3701336933298084
Change-Id: Ief45f838268380b4b2a128390fbf34d55a3b922b

7 years agoAdd VisualVoicemailService
Ta-wei Yen [Fri, 16 Dec 2016 20:17:30 +0000 (12:17 -0800)]
Add VisualVoicemailService

VisualVoicemailService can be implemennted by the default dialer to
provide a visual voicemail client similar to the OMTP visual voicemail
spec.

Other APIs such as the SMS filter and hidden text SMS sending are made
public and consolidated into the service interface.

Test: make. CTS tests in a follow up CL
Change-Id: Ib5e9aa15fc098f4c13b15e5dbecf9ab646e0e400
Merged-in: Ib5e9aa15fc098f4c13b15e5dbecf9ab646e0e400

7 years agoExtend carrier configs for visual voicemail
Ta-wei Yen [Tue, 17 Jan 2017 21:52:10 +0000 (13:52 -0800)]
Extend carrier configs for visual voicemail

This CL make the hidden config values in N MR1 public.

Test: constant changes
Bug: 34132192
Change-Id: Iff3f98a01ccd59edd809e5c7de0cdb445dee4d35
Merged-in: Iff3f98a01ccd59edd809e5c7de0cdb445dee4d35

7 years agoAdd Error specifiers to the API.
Robert Greenwalt [Sat, 22 Apr 2017 03:30:14 +0000 (20:30 -0700)]
Add Error specifiers to the API.

Intend to make an mbms/ErrorCodes.java file or something to contain the
constants.

Test: none yet
Change-Id: Ic6554079e4cd38a8fd4afb100aeef86fbc06a42f

7 years agoProvide an API to make USSD calls and read the responses.
pkanwar [Mon, 7 Nov 2016 04:11:45 +0000 (20:11 -0800)]
Provide an API to make USSD calls and read the responses.

Test: will be added in a subsequent CL.
Bug: 30973910
Change-Id: Ibf622e154f3f987be547f4f85e15891d4e382118

7 years agoMerge "Check Bluetooth app id instead of uid"
Treehugger Robot [Mon, 24 Apr 2017 23:30:51 +0000 (23:30 +0000)]
Merge "Check Bluetooth app id instead of uid"

7 years agoCheck Bluetooth app id instead of uid
Amith Yamasani [Mon, 24 Apr 2017 18:30:19 +0000 (11:30 -0700)]
Check Bluetooth app id instead of uid

Fixes the crash on user switches.

Change-Id: If0c003011bd014b437ef5c8bee24a27b68be88d9
Fixes: 37617840
Test: manual - add a user

7 years agoMerge "Provide an API to make USSD calls and read the responses."
Pankaj Kanwar [Mon, 24 Apr 2017 19:52:32 +0000 (19:52 +0000)]
Merge "Provide an API to make USSD calls and read the responses."

7 years agoProvide an API to make USSD calls and read the responses.
pkanwar [Sat, 15 Oct 2016 02:40:13 +0000 (19:40 -0700)]
Provide an API to make USSD calls and read the responses.

Test: will be added in a subsequent CL.
Bug: 30973910
Change-Id: Ic1214330ddf6846973d8bd28ee6ff1d28ae8c852
Merged-In: Ic1214330ddf6846973d8bd28ee6ff1d28ae8c852

7 years agoMerge "Get rid of the IAdvertiserCallabck"
Treehugger Robot [Mon, 24 Apr 2017 17:37:51 +0000 (17:37 +0000)]
Merge "Get rid of the IAdvertiserCallabck"

7 years agoMerge "Deprecate internal Calendar methods."
Joachim Sauer [Mon, 24 Apr 2017 15:44:02 +0000 (15:44 +0000)]
Merge "Deprecate internal Calendar methods."

7 years agoGet rid of the IAdvertiserCallabck
Jakub Pawlowski [Wed, 19 Apr 2017 12:44:34 +0000 (05:44 -0700)]
Get rid of the IAdvertiserCallabck

Bug: 30622771
Test: none
Change-Id: I2c55f96e71cd3be67f88201ab07c91730cd85971

7 years agoMerge "Move byte logics from ApfFilter into BitsUtil"
Hugo Benichi [Mon, 24 Apr 2017 06:39:37 +0000 (06:39 +0000)]
Merge "Move byte logics from ApfFilter into BitsUtil"

7 years agoMerge "Add BitUtils bit packing methods (Connectivity metrics: add transports pretty...
Hugo Benichi [Sun, 23 Apr 2017 23:35:52 +0000 (23:35 +0000)]
Merge "Add BitUtils bit packing methods (Connectivity metrics: add transports pretty printing)"

7 years agoMerge "Remove unused network management RPCs"
Robin Lee [Sat, 22 Apr 2017 21:59:55 +0000 (21:59 +0000)]
Merge "Remove unused network management RPCs"

7 years agoMerge "Second pass of eMBMS api."
Hall Liu [Sat, 22 Apr 2017 01:53:11 +0000 (01:53 +0000)]
Merge "Second pass of eMBMS api."

7 years agoMove byte logics from ApfFilter into BitsUtil
Hugo Benichi [Thu, 12 Jan 2017 06:31:05 +0000 (15:31 +0900)]
Move byte logics from ApfFilter into BitsUtil

This patch extracts into BitUtils byte manipulation helper methods
and unsigned type manipulation helper methods from ApfFilter into
an independent and reusable structure.

Test: $ runtest frameworks-net
Change-Id: I0f33af10457a63dbde5983f14353a79b8cd877d9

7 years agoAdd BitUtils bit packing methods (Connectivity metrics: add transports pretty printing)
Hugo Benichi [Wed, 22 Mar 2017 09:29:58 +0000 (18:29 +0900)]
Add BitUtils bit packing methods (Connectivity metrics: add transports pretty printing)

This patch is a partial cherry-pick from commit
df456e13a1127e3c8594b1d22ea4a9b3dca67a4b for the BitUtils and
NetworkCapabilities classes.

Bug: 34901696
Test: none

(cherry picked from commit df456e13a1127e3c8594b1d22ea4a9b3dca67a4b)

Merged-In: Id04f9080e7f75608deeb49306aec34941e71794c
Change-Id: I64eae49f646365b7cd1683a689315fe03bf0bdd9

7 years agoMerge changes I5187d17c,I49a76582
Hugo Benichi [Sat, 22 Apr 2017 00:34:07 +0000 (00:34 +0000)]
Merge changes I5187d17c,I49a76582

* changes:
  ConnectivityService: regroup bool <-> int conversions
  ConnectivityService: move reportNetworkConnectivity to handler

7 years agoMerge "NsdManager: add unit tests"
Hugo Benichi [Sat, 22 Apr 2017 00:31:27 +0000 (00:31 +0000)]
Merge "NsdManager: add unit tests"

7 years agoMerge "Remove default public ctor from RttModifyStatus"
Treehugger Robot [Sat, 22 Apr 2017 00:01:50 +0000 (00:01 +0000)]
Merge "Remove default public ctor from RttModifyStatus"

7 years agoMerge "Mark Restricted APN connections as restricted."
Treehugger Robot [Fri, 21 Apr 2017 23:12:51 +0000 (23:12 +0000)]
Merge "Mark Restricted APN connections as restricted."

7 years agoMark Restricted APN connections as restricted.
Robert Greenwalt [Mon, 10 Apr 2017 21:32:23 +0000 (14:32 -0700)]
Mark Restricted APN connections as restricted.

If anything unrestricted is bundled in the whole thing has to be
unrestricted (we can't restrict based on destination or intent)
but the NOT_METERED flag wasn't taken into account.

This wasn't a problem before because telephony set that statically
and late, but a change caused it to be marked NOT_METERED earlier
which exposed this bug.

bug: 37208956
Merged-In: I7b7a1c38621ce0ecde8cf041e82b1ebb7a9c6f15
Test: new NetworkCapabilitiesTest.  Fails without fix, works with.
Change-Id: I86c1b2854413a94662aa53e697d32380695ab9ac

7 years agoMerge "Use Vpn rules (not firewall) for always-on VPN"
Treehugger Robot [Fri, 21 Apr 2017 21:53:14 +0000 (21:53 +0000)]
Merge "Use Vpn rules (not firewall) for always-on VPN"

7 years agoRemove default public ctor from RttModifyStatus
Hall Liu [Fri, 21 Apr 2017 21:33:12 +0000 (14:33 -0700)]
Remove default public ctor from RttModifyStatus

Test: builds
Bug: 37515063
Change-Id: I1e573d945b48e28d12621078cc8f37eb076d9ee3

7 years agoMerge "Bluetooth: improve getLeMaximumAdvertisingDataLength comment"
Jakub Pawlowski [Fri, 21 Apr 2017 20:28:44 +0000 (20:28 +0000)]
Merge "Bluetooth: improve getLeMaximumAdvertisingDataLength comment"

7 years agoBluetooth: improve getLeMaximumAdvertisingDataLength comment
Jakub Pawlowski [Fri, 21 Apr 2017 11:59:55 +0000 (04:59 -0700)]
Bluetooth: improve getLeMaximumAdvertisingDataLength comment

Bug: 37534792
Test: none
Change-Id: Ieff71356aceb0e2a4c6e81d9053f854448e0c927

7 years ago[AWARE] Add UID checking to WifiAwareNetworkSpecifier
Etan Cohen [Tue, 4 Apr 2017 00:42:34 +0000 (17:42 -0700)]
[AWARE] Add UID checking to WifiAwareNetworkSpecifier

Wifi Aware networks are per app - i.e. a requestor gets
a dedicated network. Change verifies that the only the
original requestor matches the created network (using UID).

Bug: 36053921
Test: Integration (sl4a) tests
Change-Id: I4ff3994731dd7ccb88e2bea333d1e6905b136f02

7 years agoMerge "Use SubscriptionId instead of SubId"
Jordan Liu [Fri, 21 Apr 2017 18:17:51 +0000 (18:17 +0000)]
Merge "Use SubscriptionId instead of SubId"

7 years agoMerge "Fix error message: getAllowedCarriers"
Treehugger Robot [Fri, 21 Apr 2017 16:23:33 +0000 (16:23 +0000)]
Merge "Fix error message: getAllowedCarriers"

7 years agoMerge "Clarify IControlsTethering LOCAL_ONLY state name"
Erik Kline [Fri, 21 Apr 2017 08:59:30 +0000 (08:59 +0000)]
Merge "Clarify IControlsTethering LOCAL_ONLY state name"

7 years agoConnectivityService: regroup bool <-> int conversions
Hugo Benichi [Fri, 21 Apr 2017 06:07:12 +0000 (15:07 +0900)]
ConnectivityService: regroup bool <-> int conversions

This patch cleanups conversion of boolean values to ints when reading
configuration values or sending Messages whose arg1 or arg2 has boolean
semantics.

Test: runtest frameworks-net
Change-Id: I5187d17cd746486f63b1c410d191c30edd93ff6f

7 years agoConnectivityService: move reportNetworkConnectivity to handler
Hugo Benichi [Thu, 6 Apr 2017 08:22:18 +0000 (17:22 +0900)]
ConnectivityService: move reportNetworkConnectivity to handler

This patch moves reportNetworkConnectivity onto the handler of
ConnectivityService.

This allows:
  - to inspect NetworkAgentInfo on the ConnectivityService handler,
    which is always more correct than doing so on a Binder thread.
  - to improve locking policies around NetworkAgentInfo.

Test: $ runtest frameworks-net
Bug: 3711961936902662
Change-Id: I49a765826e65c29a1995242290e5e7544112c94e

7 years agoNsdManager: add unit tests
Hugo Benichi [Mon, 17 Apr 2017 06:27:52 +0000 (15:27 +0900)]
NsdManager: add unit tests

This prepares some refactoring and the addition of a timeout to
resolveService.

Test: new tests pass
Bug: 3701336933298084
Change-Id: Ie8277bd5983278507bfa70495b4ce7d13895b24b

7 years agoClarify IControlsTethering LOCAL_ONLY state name
Erik Kline [Thu, 20 Apr 2017 13:59:16 +0000 (22:59 +0900)]
Clarify IControlsTethering LOCAL_ONLY state name

Test: as follows
    - build
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - manually starting tethering shows Settings and icon updates
Bug: 31466854
Bug: 32163131

Change-Id: I1f45511f00aca37480f894be4a9a004f1a3b35d7

7 years agoMerge "Add BitUtils (from "Support multiple filters per association request")"
Hugo Benichi [Fri, 21 Apr 2017 01:58:14 +0000 (01:58 +0000)]
Merge "Add BitUtils (from "Support multiple filters per association request")"

7 years agoMerge "Allow the Bluetooth MAC address to be updated asynchronously (2/3)"
Treehugger Robot [Fri, 21 Apr 2017 01:16:31 +0000 (01:16 +0000)]
Merge "Allow the Bluetooth MAC address to be updated asynchronously (2/3)"

7 years agoAllow the Bluetooth MAC address to be updated asynchronously (2/3)
Stanley Tng [Tue, 18 Apr 2017 05:35:45 +0000 (22:35 -0700)]
Allow the Bluetooth MAC address to be updated asynchronously (2/3)

There are intermittent issues where either the returned Bluetooth
MAC address to Java framework is uninitialized or this address update
arrives too late. This fix will do 2 things:
(1) Returns error when MAC address is unavailable in the native code.
(2) Updates the MAC address later by adding a new broadcast event.

Test: Check address for these cases: factory reset, system reboot, and
Bluetooth re-enable.
Bug: 36709382

Change-Id: I09720193e38fdf9139e1bb146f8e1847e2b65b1a

7 years agoMerge "Validates Intrinsic Blur only takes 2D Allocations"
Yang Ni [Thu, 20 Apr 2017 22:37:20 +0000 (22:37 +0000)]
Merge "Validates Intrinsic Blur only takes 2D Allocations"

7 years agoSecond pass of eMBMS api.
Robert Greenwalt [Tue, 6 Dec 2016 00:33:32 +0000 (16:33 -0800)]
Second pass of eMBMS api.

Updating Streaming apis.  Adding midwear aidl files.
Updating Download apis.
Making it Compile..

Test: none yet
Change-Id: I3f44ef3f6690274af1dc2002bc02e6668fe23248

7 years agoMerge "Convert libinputservice to Android.bp"
Treehugger Robot [Thu, 20 Apr 2017 17:59:45 +0000 (17:59 +0000)]
Merge "Convert libinputservice to Android.bp"

7 years agoUse SubscriptionId instead of SubId
Jordan Liu [Thu, 20 Apr 2017 17:11:57 +0000 (10:11 -0700)]
Use SubscriptionId instead of SubId

Update the api to use SubscriptionId instead of SubId.

Fixes: 35766624
Test: Existing unit tests pass
Change-Id: I6f99da3bf533cab74f5ec81aac4f62e63d55378a
Merged-In: I6f99da3bf533cab74f5ec81aac4f62e63d55378a

7 years agoMerge "DO NOT MERGE. SystemUI: Display RAT icon when data is off"
Treehugger Robot [Thu, 20 Apr 2017 16:39:36 +0000 (16:39 +0000)]
Merge "DO NOT MERGE. SystemUI: Display RAT icon when data is off"

7 years agoMerge "Switch to WifiManager.{start,stop}SoftAp()"
Treehugger Robot [Thu, 20 Apr 2017 15:37:29 +0000 (15:37 +0000)]
Merge "Switch to WifiManager.{start,stop}SoftAp()"

7 years agoDO NOT MERGE. SystemUI: Display RAT icon when data is off
Wenting Xiong [Tue, 7 Feb 2017 11:12:27 +0000 (19:12 +0800)]
DO NOT MERGE. SystemUI: Display RAT icon when data is off

Introduce customization and implementation to display RAT icon in status
bar even when data is off. Since some carriers require, this feature is
necessary.

Test: Test with simulated RIL
Bug: 28805511
Change-Id: I412a407b8bcfeb9b3caf265bc7e0331a88433725

7 years agoMerge "Add local-only hotspot info into tether state change broadcast"
Treehugger Robot [Thu, 20 Apr 2017 12:47:53 +0000 (12:47 +0000)]
Merge "Add local-only hotspot info into tether state change broadcast"

7 years agoMerge "ConnectivityManager: remove obsolete callback types"
Hugo Benichi [Thu, 20 Apr 2017 12:38:27 +0000 (12:38 +0000)]
Merge "ConnectivityManager: remove obsolete callback types"

7 years agoDeprecate internal Calendar methods.
Joachim Sauer [Thu, 20 Apr 2017 11:00:39 +0000 (12:00 +0100)]
Deprecate internal Calendar methods.

These methods suffer from a potential integer overflow that can't be
fixed without changing their signature as described at
http://bugs.icu-project.org/trac/ticket/11632.

Since they could be overridden, we need to deprecate them for at least
one release before changing/removing them.

Bug: 30300853
Test: m checkbuild && m offline-sdk-referenceonly-docs
Change-Id: I07e14de697c1551b8d99fbd5af2a56a498226e66

7 years agoAdd local-only hotspot info into tether state change broadcast
Erik Kline [Mon, 17 Apr 2017 07:47:23 +0000 (16:47 +0900)]
Add local-only hotspot info into tether state change broadcast

Test: as follows
    - build
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - manually starting tethering shows Settings and icon updates
Bug: 31466854
Bug: 32163131

Change-Id: I938074587dfeec221c5cdb43a392802ad3fc3589

7 years agoMerge "Make tetherChangePermission to be secured for AppOps permission"
Erik Kline [Thu, 20 Apr 2017 04:28:52 +0000 (04:28 +0000)]
Merge "Make tetherChangePermission to be secured for AppOps permission"

7 years agoMerge "ConnectivityManager: unify prety printing of callback types."
Hugo Benichi [Thu, 20 Apr 2017 04:28:43 +0000 (04:28 +0000)]
Merge "ConnectivityManager: unify prety printing of callback types."

7 years agoConvert libinputservice to Android.bp
Colin Cross [Thu, 20 Apr 2017 00:00:07 +0000 (17:00 -0700)]
Convert libinputservice to Android.bp

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

Test: m -j checkbuild
Change-Id: I3cd2bb05ec89c40ebd1240e352a19f99d00dc114
Merged-In: I3cd2bb05ec89c40ebd1240e352a19f99d00dc114
(cherry picked from commit 3fc8f2df3098a5bb8191cca43b4dc4cf3bba160b)

7 years agoAdd BitUtils (from "Support multiple filters per association request")
Eugene Susla [Fri, 24 Feb 2017 02:24:39 +0000 (18:24 -0800)]
Add BitUtils (from "Support multiple filters per association request")

This patch is a cherry-pick of the BitUtils class from commit
36e866b8e0ec08e45b5e7fbc65aeeb3a9bb7b11e.

(cherry picked from commit 36e866b8e0ec08e45b5e7fbc65aeeb3a9bb7b11e)

Test: none
Change-Id: Iaf33929f6841db273a92d650e84287bf2964fa3d
Merged-In: I0a978787551a1ee5750ec5544b241d3bbfed5a7c

7 years agoConnectivityManager: remove obsolete callback types
Hugo Benichi [Thu, 23 Mar 2017 13:40:44 +0000 (22:40 +0900)]
ConnectivityManager: remove obsolete callback types

This patch also:
  - suppresses callback triggers from ConnectivityService for these
    obsolete callback types.
  - marginally refactors callCallbackForRequest().

Test: runtest frameworks-net
Change-Id: Idfb75640732943c599de4975f252f706d21ad594

7 years agoConnectivityManager: unify prety printing of callback types.
Hugo Benichi [Wed, 22 Mar 2017 08:07:57 +0000 (17:07 +0900)]
ConnectivityManager: unify prety printing of callback types.

And also remove some small code duplication (checkNotNull).

Test: built, flashed, runtest frameworks-net
Change-Id: Id6c13bca9d12f70b88806032e0a4fa198efbedc6

7 years agoMerge "Expose LE advertiser address for easier PTS tests (1/6)"
Jakub Pawlowski [Wed, 19 Apr 2017 21:33:43 +0000 (21:33 +0000)]
Merge "Expose LE advertiser address for easier PTS tests (1/6)"