OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Added new slot status related broadcast."
Amit Mahajan [Tue, 23 Jan 2018 19:24:04 +0000 (19:24 +0000)]
Merge "Added new slot status related broadcast."
am: cdc0a084d1

Change-Id: Ia81c5648a943bf1c13b1434b40dd09c6789a6576

6 years agoMerge changes from topic "multipath-datausage-backport"
Lorenzo Colitti [Tue, 23 Jan 2018 19:17:54 +0000 (19:17 +0000)]
Merge changes from topic "multipath-datausage-backport"
am: df984fae26

Change-Id: Ic29d71ade161434b6dea796a887f60b5587ca1d5

6 years agoAdd metered, roaming, and defaultNetwork info to NetworkTemplate.
Lorenzo Colitti [Tue, 23 Jan 2018 19:13:30 +0000 (19:13 +0000)]
Add metered, roaming, and defaultNetwork info to NetworkTemplate.
am: 0f9bce6883

Change-Id: I28e7f539fc5e0698cb8ef663aafae7a2cd579d68

6 years agoUnbreak frameworks-net tests broken by missing libutilscallstack.
Lorenzo Colitti [Tue, 23 Jan 2018 19:09:07 +0000 (19:09 +0000)]
Unbreak frameworks-net tests broken by missing libutilscallstack.
am: f7fab104f9

Change-Id: I3125e9276da6cbbae5ef490cf98583b31c4ad8d2

6 years agoDisable IpConnectivityMetricsTest.
Lorenzo Colitti [Tue, 23 Jan 2018 19:04:05 +0000 (19:04 +0000)]
Disable IpConnectivityMetricsTest.
am: b7a479c293

Change-Id: Iba9dad4001c6aa725285eee6df32f116c846532d

6 years agoAdd the defaultNetwork element to the netstats.proto.
Lorenzo Colitti [Tue, 23 Jan 2018 18:57:44 +0000 (18:57 +0000)]
Add the defaultNetwork element to the netstats.proto.
am: 9781f785bc

Change-Id: I725132a756baacbc42c573274f5687cf58225498

6 years agoAdd getDefaultNetwork to the NetworkStats public API.
Lorenzo Colitti [Tue, 23 Jan 2018 18:50:20 +0000 (18:50 +0000)]
Add getDefaultNetwork to the NetworkStats public API.
am: d5876bc438

Change-Id: Ifbe3d8ede39c87d64eee20adcfbdd92479d09e69

6 years agoMerge "Add support for UsbDeviceManager to talk to USB GADGET HAL"
Badhri Jagan Sridharan [Tue, 23 Jan 2018 18:36:01 +0000 (18:36 +0000)]
Merge "Add support for UsbDeviceManager to talk to USB GADGET HAL"
am: bf996dd479  -s ours

Change-Id: I174f0a10e4ecb76607ed5e92e60ebf3a9523e6d9

6 years agoMerge "Added new slot status related broadcast."
Treehugger Robot [Tue, 23 Jan 2018 18:00:00 +0000 (18:00 +0000)]
Merge "Added new slot status related broadcast."

6 years agoMerge changes from topic "multipath-datausage-backport"
Lorenzo Colitti [Tue, 23 Jan 2018 15:22:18 +0000 (15:22 +0000)]
Merge changes from topic "multipath-datausage-backport"

* changes:
  Support passing a template to NetworkStatsManager queries.
  Add metered, roaming, and defaultNetwork info to NetworkTemplate.
  Unbreak frameworks-net tests broken by missing libutilscallstack.
  Disable IpConnectivityMetricsTest.
  Add the defaultNetwork element to the netstats.proto.
  Add getDefaultNetwork to the NetworkStats public API.

6 years agoAdd metered, roaming, and defaultNetwork info to NetworkTemplate.
Lorenzo Colitti [Mon, 22 Jan 2018 02:54:46 +0000 (11:54 +0900)]
Add metered, roaming, and defaultNetwork info to NetworkTemplate.

This will allow data usage clients to query for and receive
callbacks on data usage matching these conditions.

Bug: 35142602
Test: atest FrameworksNetTests
Change-Id: I4d985a2734eeab7ee454c09cc2098b6b3c671c23
Merged-In: I4d985a2734eeab7ee454c09cc2098b6b3c671c23

6 years agoUnbreak frameworks-net tests broken by missing libutilscallstack.
Lorenzo Colitti [Mon, 22 Jan 2018 03:53:18 +0000 (12:53 +0900)]
Unbreak frameworks-net tests broken by missing libutilscallstack.

Test: atest FrameworksNetTest shows fewer failures
Change-Id: Ic6f2bc18e80d91226d8d49e047e3997ffc45e45a
Merged-In: Ic6f2bc18e80d91226d8d49e047e3997ffc45e45a

6 years agoDisable IpConnectivityMetricsTest.
Lorenzo Colitti [Mon, 22 Jan 2018 03:50:58 +0000 (12:50 +0900)]
Disable IpConnectivityMetricsTest.

This test has been failing for a while, and we are do not have
bandwidth to fix it during the next week.

Test: make -j64 FrameworksNetTests RUN_ERROR_PRONE=true
Test: atest FrameworksNetTests:IpConnectivityMetricsTest
Test: runtest -x frameworks/base/tests/net/java/com/android/server/connectivity/IpConnectivityMetricsTest.java
Change-Id: I59d73c1773e160a726996f3ab4ad20312decc127
Merged-In: I59d73c1773e160a726996f3ab4ad20312decc127

6 years agoAdd the defaultNetwork element to the netstats.proto.
Lorenzo Colitti [Fri, 19 Jan 2018 17:02:56 +0000 (02:02 +0900)]
Add the defaultNetwork element to the netstats.proto.

This is in its own commit because AOSP has diverged from internal
master.

Bug: 35142602
Test: builds, boots
Change-Id: I75fc85b961bc919e3d6c2adce6d6861c6f2c8379
Merged-In: I75fc85b961bc919e3d6c2adce6d6861c6f2c8379

6 years agoSupport passing a template to NetworkStatsManager queries.
Lorenzo Colitti [Mon, 22 Jan 2018 12:00:49 +0000 (21:00 +0900)]
Support passing a template to NetworkStatsManager queries.

Currently, NetworkStatsManager queries and callbacks only allow
selecting network traffic based on network identifiers:
networkType, subscriptionId and networkId.  The code ends up
converting these into a template under the hood.

Now that templates can express more fine-grained queries (e.g.,
select only roaming traffic, or select only traffic that's not
on the default network) add a hidden method to pass in a
template. This should have no security implications, as all the
access controls are performed in NetworkStatsService.

Bug: 35142602
Test: android.app.usage.cts.NetworkUsageStatsTest passes
Change-Id: Iab4afa26b34544299d2a9c501c1b0feb470e90a9
Merged-In: Iab4afa26b34544299d2a9c501c1b0feb470e90a9

6 years agoAdd getDefaultNetwork to the NetworkStats public API.
Lorenzo Colitti [Thu, 18 Jan 2018 16:12:58 +0000 (01:12 +0900)]
Add getDefaultNetwork to the NetworkStats public API.

This allows an app using the public API to know whether the
traffic in a particular bucket was on the default network
(i.e., the network was selected by the system), or not (i.e.,
the network was selected by the app).

Bug: 35142602
Test: builds, boots
Test: added coverage to NetworkUsageStatsTest CTS test, still passes
Change-Id: I9f6669908fa119743b9c0aa0c31a03e5ebafa7db
Merged-In: I9f6669908fa119743b9c0aa0c31a03e5ebafa7db

6 years agoMerge "Add support for UsbDeviceManager to talk to USB GADGET HAL"
Badhri Jagan Sridharan [Tue, 23 Jan 2018 03:09:27 +0000 (03:09 +0000)]
Merge "Add support for UsbDeviceManager to talk to USB GADGET HAL"

6 years agoAdded new slot status related broadcast.
Amit Mahajan [Fri, 19 Jan 2018 01:51:53 +0000 (17:51 -0800)]
Added new slot status related broadcast.

Test: none
Bug: 64131518
Merged-in: I0a5825a1d121dc22f042fd71598f58e064e9e2a2
Change-Id: I0a5825a1d121dc22f042fd71598f58e064e9e2a2

6 years agoMerge "Camera: remove NOT_PRESENT cameras"
Yin-Chia Yeh [Tue, 23 Jan 2018 02:12:57 +0000 (02:12 +0000)]
Merge "Camera: remove NOT_PRESENT cameras"
am: 174df238ac

Change-Id: I2c0dd5ccd8c8a165b568563051ad42dba6082792

6 years agoMerge "Remove obsolete NetworkStats.Entry constructor."
Lorenzo Colitti [Tue, 23 Jan 2018 02:08:18 +0000 (02:08 +0000)]
Merge "Remove obsolete NetworkStats.Entry constructor."
am: 1683b6968d

Change-Id: I72fe99d5e662a6a154f7b2d970c5926ee696e541

6 years agoMerge "Add broadcast action for carrier setup"
Qingxi Li [Tue, 23 Jan 2018 01:12:50 +0000 (01:12 +0000)]
Merge "Add broadcast action for carrier setup"
am: b60e42becd

Change-Id: I3bcde10528fc1fa722995e7666ee6faa7db1d0cd

6 years agoAdd support for UsbDeviceManager to talk to USB GADGET HAL
Badhri Jagan Sridharan [Fri, 12 Jan 2018 00:56:29 +0000 (16:56 -0800)]
Add support for UsbDeviceManager to talk to USB GADGET HAL

Till now, Init scripts(property tiggers) are used define the
operation that needs to be performed when a certain gadget
composition needs to be enabled. Based on the user preference,
usb service sets the sys.usb.config which triggers the
corresponding property triggers in init scripts and usbservice
polls on sys.usb.state to infer whether the property triggers
have completed executing.

This CL makes UsbHandler class abstract to make init scripts
based legacy implementation and HAL based implementation to
share the common logic. The legacy init script based logic is
implemented by UsbHandlerLegacy and HAL based logic is implemented
by UsbHandlerHal. The decision on which one to initialize is
made depending on whether the device has Gadget HAL impelemented.

Since HIDL supports asynch calbacks, usb state management is moved
to the message queue to avoid polling incase of HAL based
implementation.

To switch to a new configuration:
1. UsbService calls setCurrentUsbFunctions and queues
   MSG_SET_FUNCTIONS_TIMEOUT
2. If the  setCurrentUsbFunctionsCb arrives on time,
   then  MSG_SET_FUNCTIONS_TIMEOUT is cancelled and
   default functions are retried by queueing
   MSG_SET_DEFAULT_FUNCTIONS if SUCCESS is not signalled.
3. If MSG_SET_FUNCTIONS_TIMEOUT gets executed, then,
   default functions are retried by calling
   setEnabledFunctions(null, false, mUsbDataUnlocked);

Also, for HAL based implementation config_oemUsbModeOverride is no
longer needed as hal can take of enabling oem specific functions.

Bug: 63669128
Test: Tested usb gadget configuration for both cases:
1. When gadget hal is present
2. When gadget hal is not present
Change-Id: Ifcef464a0b97b265872696346a76162f8e84d6c0

6 years agoMerge "Camera: remove NOT_PRESENT cameras"
Treehugger Robot [Tue, 23 Jan 2018 00:52:00 +0000 (00:52 +0000)]
Merge "Camera: remove NOT_PRESENT cameras"

6 years agoMerge "Add NetworkTypeBitmask into public ApnSetting."
yuemingw [Tue, 23 Jan 2018 00:47:01 +0000 (00:47 +0000)]
Merge "Add NetworkTypeBitmask into public ApnSetting."
am: 278dd4ab90

Change-Id: I63be092c9f978cf0e0b029e6836d5f0b876831f6

6 years agoMerge "address carrier id api review feedback"
Chen Xu [Tue, 23 Jan 2018 00:42:06 +0000 (00:42 +0000)]
Merge "address carrier id api review feedback"
am: 2f6b2726e6

Change-Id: I40fb765e4c4eb844826ae8e305ddcc7ef1c281f4

6 years agoMerge "Remove obsolete NetworkStats.Entry constructor."
Lorenzo Colitti [Tue, 23 Jan 2018 00:15:15 +0000 (00:15 +0000)]
Merge "Remove obsolete NetworkStats.Entry constructor."

6 years agoMerge "Address comments and final cleanup from refcounting integration"
Benedict Wong [Mon, 22 Jan 2018 23:57:28 +0000 (23:57 +0000)]
Merge "Address comments and final cleanup from refcounting integration"
am: 222529d95c

Change-Id: Ie0bc2b81e09ee874ef848905bb486967a857c6d1

6 years agoMerge "Add broadcast action for carrier setup"
Treehugger Robot [Mon, 22 Jan 2018 23:55:49 +0000 (23:55 +0000)]
Merge "Add broadcast action for carrier setup"

6 years agoMerge "Add NetworkTypeBitmask into public ApnSetting."
Treehugger Robot [Mon, 22 Jan 2018 22:53:38 +0000 (22:53 +0000)]
Merge "Add NetworkTypeBitmask into public ApnSetting."

6 years agoMerge "address carrier id api review feedback"
Chen Xu [Mon, 22 Jan 2018 22:44:02 +0000 (22:44 +0000)]
Merge "address carrier id api review feedback"

6 years agoAdd broadcast action for carrier setup
Qingxi Li [Fri, 19 Jan 2018 20:24:05 +0000 (12:24 -0800)]
Add broadcast action for carrier setup

This broadcast action is sent by eSIM Manager to let the carrier app
know that the carrier setup is not completed.

Bug: 62639823
Test: TreeHugger
Merged-In: I88ac90cf679d5ec98aa7c0cf7bd9c96010597a1c
Change-Id: I88ac90cf679d5ec98aa7c0cf7bd9c96010597a1c

6 years agoaddress carrier id api review feedback
fionaxu [Fri, 5 Jan 2018 23:38:11 +0000 (15:38 -0800)]
address carrier id api review feedback

1. improve comments
2. change returned carrier name from String to CharSequence
3. change to AndroidCarrierId

Bug: 64131637
Bug: 71584605
Test: Manual
Change-Id: I412d53bb9d4955e1267300692e90ebfffd6818df
Merged-in: I412d53bb9d4955e1267300692e90ebfffd6818df

6 years agoMerge "Address comments and final cleanup from refcounting integration"
Benedict Wong [Mon, 22 Jan 2018 20:32:18 +0000 (20:32 +0000)]
Merge "Address comments and final cleanup from refcounting integration"

6 years agoMerge "Debug: Add attachJvmtiAgent with classloader"
Andreas Gampe [Mon, 22 Jan 2018 19:48:28 +0000 (19:48 +0000)]
Merge "Debug: Add attachJvmtiAgent with classloader"
am: 940c0341f0

Change-Id: I0c9179b373040e7d4f54a5ad9835d14624012999

6 years agoMerge "Rename create/delete transform methods"
Benedict Wong [Mon, 22 Jan 2018 19:44:43 +0000 (19:44 +0000)]
Merge "Rename create/delete transform methods"
am: 7ee26e72cf

Change-Id: I76576d1f3193fcbb3680fb29893cf696ea7a41fe

6 years agoMerge "Debug: Add attachJvmtiAgent with classloader"
Treehugger Robot [Mon, 22 Jan 2018 18:22:07 +0000 (18:22 +0000)]
Merge "Debug: Add attachJvmtiAgent with classloader"

6 years agoMerge "Rename create/delete transform methods"
Benedict Wong [Mon, 22 Jan 2018 17:57:15 +0000 (17:57 +0000)]
Merge "Rename create/delete transform methods"

6 years agoAdd NetworkTypeBitmask into public ApnSetting.
yuemingw [Mon, 22 Jan 2018 17:32:09 +0000 (17:32 +0000)]
Add NetworkTypeBitmask into public ApnSetting.

Sync with aosp/556766.
Moved from ag/3477310.

Bug: 68208293
Test: manual
Change-Id: I04b901c46b7bbce4ed7d52895fcc904fb713fb69

6 years agoRemove obsolete NetworkStats.Entry constructor.
Lorenzo Colitti [Sun, 21 Jan 2018 14:00:55 +0000 (23:00 +0900)]
Remove obsolete NetworkStats.Entry constructor.

The only caller is telephony code, and it's being fixed in this
topic.

Bug: 35142602
Test: builds, boots
Change-Id: Ia77a1c2c297037f311c2355610c206cd8e3192c4

6 years agoMerge "Multi-A2DP support - add a new internal API to suppress Audio Noisy intent"
Pavlin Radoslavov [Sun, 21 Jan 2018 00:26:11 +0000 (00:26 +0000)]
Merge "Multi-A2DP support - add a new internal API to suppress Audio Noisy intent"
am: 7e3b1832c4

Change-Id: I4b75e8565dc0b80d6ca3825e87370a72c726bd25

6 years agoMerge "Multi-A2DP support - add a new internal API to suppress Audio Noisy intent"
Treehugger Robot [Sat, 20 Jan 2018 23:30:34 +0000 (23:30 +0000)]
Merge "Multi-A2DP support - add a new internal API to suppress Audio Noisy intent"

6 years agoMulti-A2DP support - add a new internal API to suppress Audio Noisy intent
Pavlin Radoslavov [Sat, 20 Jan 2018 02:20:04 +0000 (18:20 -0800)]
Multi-A2DP support - add a new internal API to suppress Audio Noisy intent

The new API setBluetoothA2dpDeviceConnectionStateSuppressNoisyIntent()
is similar to the existing setBluetoothA2dpDeviceConnectionState()
except that it takes one extra argument that indicates whether the
AudioManager.ACTION_AUDIO_BECOMING_NOISY intent will be sent:

  setBluetoothA2dpDeviceConnectionStateSuppressNoisyIntent(
      ..., boolean suppressNoisyIntent)

This API is needed so the Active A2DP Sink device can be changed
while audio is streaming, and the audio continues playing on the new
Active Device.

Bug: 69269748
Test: Manual: multiple connected A2DP devices, and selecting each as
      the Active Device.

Change-Id: I75766a58d9e6b42b3ce68bd9ad3a7a72ca5a1023
(cherry picked from commit 82e06463f2571a06286f9da0bf3ad5a0e58461a2)

6 years agoMerge "Generate new API signatures from doclava"
David Brazdil [Sat, 20 Jan 2018 11:23:49 +0000 (11:23 +0000)]
Merge "Generate new API signatures from doclava"
am: fa208b4226

Change-Id: Iae4cc67435b84c868a446dc7ac16a618656bbdbb

6 years agoMerge "Generate new API signatures from doclava"
David Brazdil [Sat, 20 Jan 2018 10:06:22 +0000 (10:06 +0000)]
Merge "Generate new API signatures from doclava"

6 years agoMerge "Add CARD_ID in SubscriptionInfo database"
yinxu [Sat, 20 Jan 2018 09:47:20 +0000 (09:47 +0000)]
Merge "Add CARD_ID in SubscriptionInfo database"
am: 6745e15d17

Change-Id: I3df57fc50d9e928d74c50b2b99fde63e757e7e78

6 years agoMerge "Add CARD_ID in SubscriptionInfo database"
Treehugger Robot [Sat, 20 Jan 2018 08:28:24 +0000 (08:28 +0000)]
Merge "Add CARD_ID in SubscriptionInfo database"

6 years agoCamera: remove NOT_PRESENT cameras
Yin-Chia Yeh [Tue, 2 Jan 2018 19:17:58 +0000 (11:17 -0800)]
Camera: remove NOT_PRESENT cameras

So hot plug cameras won't stay forever in
device status map.

Change-Id: I0290ff2eccb3d48a0f72c48f32a97909d20623ad

6 years agoMerge "Make LTE signal bar thresholds customizable with carrier configuration"
Jordan Liu [Fri, 19 Jan 2018 21:29:10 +0000 (21:29 +0000)]
Merge "Make LTE signal bar thresholds customizable with carrier configuration"
am: 8fb3bdc36f

Change-Id: Icf95b62e2828de2175b2c9767741138c507c0e5b

6 years agoMerge "Make LTE signal bar thresholds customizable with carrier configuration"
Jordan Liu [Fri, 19 Jan 2018 20:39:43 +0000 (20:39 +0000)]
Merge "Make LTE signal bar thresholds customizable with carrier configuration"

6 years agoMerge "Add Tunnel Interface APIs to IpSecManager"
nharold [Fri, 19 Jan 2018 20:08:38 +0000 (20:08 +0000)]
Merge "Add Tunnel Interface APIs to IpSecManager"
am: 08d07aec50

Change-Id: I4186bdf52cc1c2c8927ca1a0dd61b71fae236e1a

6 years agoMerge "Add Tunnel Interface APIs to IpSecManager"
nharold [Fri, 19 Jan 2018 19:43:17 +0000 (19:43 +0000)]
Merge "Add Tunnel Interface APIs to IpSecManager"

6 years agoMake LTE signal bar thresholds customizable with carrier configuration
Kitta Koutarou [Fri, 1 Dec 2017 10:19:49 +0000 (19:19 +0900)]
Make LTE signal bar thresholds customizable with carrier configuration

Move config_lteDbmThresholds to KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY
to control the LTE signal bar thresholds by carrier configuration.

Test: manual - Checked that the LTE signal bar thresholds can be
controlled by carrier config.
Test: auto - Confirmed that run
ServiceStateTrackerTest#testSignalStrength and it has no problem.
Bug: 70698348
Change-Id: Ia613663956ff00fbf299dcf69113733eae5a3458
Merged-In: Ia613663956ff00fbf299dcf69113733eae5a3458

6 years agoRename create/delete transform methods
Benedict Wong [Thu, 18 Jan 2018 22:38:16 +0000 (14:38 -0800)]
Rename create/delete transform methods

CreateTransportModeTransform and DeleteTransportModeTransform are both
agnostic as far as which mode of transform it creates/deletes. As such,
to facilitate the implementation of tunnel mode, this patch renames them
to CreateTransform and DeleteTransform, along with all test names.

Bug: 63588681
Test: frameworks/base unit tests and CTS tests run, passed
Change-Id: I1f015eb7ad0e85fca966658a9402485ca2b44091

6 years agoMerge changes Id8776d14,Ifa291c62,I5ea9d200
Lorenzo Colitti [Fri, 19 Jan 2018 16:30:17 +0000 (16:30 +0000)]
Merge changes Id8776d14,Ifa291c62,I5ea9d200
am: c48f4cb7f1

Change-Id: I7a0b01cba8bdee67cffabddacb4ff5f4591cbc34

6 years agoMerge changes Id8776d14,Ifa291c62,I5ea9d200
Treehugger Robot [Fri, 19 Jan 2018 14:48:52 +0000 (14:48 +0000)]
Merge changes Id8776d14,Ifa291c62,I5ea9d200

* changes:
  Track and persist in stats whether traffic is on the default network.
  Add the default network to NetworkStats and NetworkStatsCollection.
  Pass all default networks to NetworkStatsService

6 years agoTrack and persist in stats whether traffic is on the default network.
Lorenzo Colitti [Thu, 18 Jan 2018 16:12:04 +0000 (01:12 +0900)]
Track and persist in stats whether traffic is on the default network.

This change adds the defaultNetwork to the ident based on current
system networking state, and persists that value to flash.

Bug: 35142602
Test: runtest frameworks-net
Test: downloaded files using default/non-default networks while watching dumpsys netstats
Change-Id: Id8776d149b2977548a9eb455ad4926af55e25aba

6 years agoAdd the default network to NetworkStats and NetworkStatsCollection.
Lorenzo Colitti [Thu, 18 Jan 2018 16:05:20 +0000 (01:05 +0900)]
Add the default network to NetworkStats and NetworkStatsCollection.

This allows us to maintain NetworkStats entries that track
whether the traffic was on the default network.

At the moment, the stats collection code always passes in
DEFAULT_NETWORK_NO. However, this value is a no-op, since it is
not persisted to disk. Only the ident, the uid/set/tag, and the
packet/byte/operation counters are persisted.

A future change will add defaultNetwork to the ident and start
persisting it.

Bug: 35142602
Test: runtest frameworks-net
Change-Id: Ifa291c62c0fa389b88e5561086a29dcd7cee2253

6 years agoMerge "Added new SIM state related broadcasts."
Amit Mahajan [Fri, 19 Jan 2018 07:47:21 +0000 (07:47 +0000)]
Merge "Added new SIM state related broadcasts."
am: 0fc9900802

Change-Id: I10b5f7a9307012e1097712acd36a91c5f6969c11

6 years agoPass all default networks to NetworkStatsService
Lorenzo Colitti [Thu, 18 Jan 2018 15:50:48 +0000 (00:50 +0900)]
Pass all default networks to NetworkStatsService

This will allow NetworkStatsService to treat traffic on these
networks differently from traffic where the app selects a network
that is not the default.

Bug: 35142602
Test: runtest frameworks-net
Change-Id: I5ea9d200d9fb153490c6108bb9390bf152f297da

6 years agoDebug: Add attachJvmtiAgent with classloader
Andreas Gampe [Tue, 16 Jan 2018 23:11:29 +0000 (15:11 -0800)]
Debug: Add attachJvmtiAgent with classloader

Add classloader support to android.os.Debug.attachJvmtiAgent. For
the original version without a given classloader, look up the
application's main classloader.

Bug: 65016018
Bug: 70901841
Test: m
Test: cts-tradefed run commandAndExit cts-dev
Change-Id: I649b6883e05dc2f75073fe1f978423f6a7b880df

6 years agoMerge "Added new SIM state related broadcasts."
Treehugger Robot [Fri, 19 Jan 2018 04:25:12 +0000 (04:25 +0000)]
Merge "Added new SIM state related broadcasts."

6 years agoMerge "Fixing app compat issue b/72143978"
Ian Pedowitz [Fri, 19 Jan 2018 04:13:00 +0000 (04:13 +0000)]
Merge "Fixing app compat issue b/72143978"
am: 8353a39ecc

Change-Id: I4ca60a29aec20f08c65d85b03a080a19d03c7345

6 years agoMerge "HIDL: Check error value."
Steven Moreland [Fri, 19 Jan 2018 03:15:30 +0000 (03:15 +0000)]
Merge "HIDL: Check error value."
am: 898137f817

Change-Id: I838c21cc0c423d41e980a360967a2773238dff81

6 years agoMerge "Fixing app compat issue b/72143978"
Treehugger Robot [Fri, 19 Jan 2018 02:38:33 +0000 (02:38 +0000)]
Merge "Fixing app compat issue b/72143978"

6 years agoMerge "HIDL: Check error value."
Treehugger Robot [Fri, 19 Jan 2018 01:41:08 +0000 (01:41 +0000)]
Merge "HIDL: Check error value."

6 years agoMerge "Add ability to override subscriber capabilities."
Jeff Sharkey [Fri, 19 Jan 2018 01:04:32 +0000 (01:04 +0000)]
Merge "Add ability to override subscriber capabilities."
am: d6cd4b241a

Change-Id: Id035d437e9b297ba70ba9231f6cfdd44e5b9c257

6 years agoFixing app compat issue b/72143978
Ian Pedowitz [Fri, 19 Jan 2018 00:24:11 +0000 (16:24 -0800)]
Fixing app compat issue b/72143978

Revert "Remove obsolete workaround."

This reverts commit 5e48241a95b843c10f96c57d8544af9d04807218.

Bug: 72143978
Bug: 24465209
Test: Tested failing case on sailfish, reverted back all CL's since
Test: 3471433 for b/24465209 and apps open

6 years agoMerge "Fix <Report Audio Status> update"
Dan Zhang [Thu, 18 Jan 2018 23:59:12 +0000 (23:59 +0000)]
Merge "Fix <Report Audio Status> update"
am: 1d5e2c3c37

Change-Id: Iac3e1fe3f93c376ccc35e29d611067fb0ad8a8fc

6 years agoMerge "Add ability to override subscriber capabilities."
Jeff Sharkey [Thu, 18 Jan 2018 23:58:30 +0000 (23:58 +0000)]
Merge "Add ability to override subscriber capabilities."

6 years agoMerge "Fix OTP performance with no Vendor ID device"
Dan Zhang [Thu, 18 Jan 2018 23:09:43 +0000 (23:09 +0000)]
Merge "Fix OTP performance with no Vendor ID device"
am: 6ecaac4c9f

Change-Id: I776ac55ca48cb9d463f4abe087c71b362ce5327d

6 years agoMerge "Fix NPE by pressing Volume Up/Down"
Dan Zhang [Thu, 18 Jan 2018 23:06:49 +0000 (23:06 +0000)]
Merge "Fix NPE by pressing Volume Up/Down"
am: fca5ee0bb8

Change-Id: I2f35ed23478b10339a9924593411e02da77207ec

6 years agoMerge "Fix illegal volume value issue"
Dan Zhang [Thu, 18 Jan 2018 23:03:28 +0000 (23:03 +0000)]
Merge "Fix illegal volume value issue"
am: 20443a8dbb

Change-Id: I94140f9e65e74df17053aa8824569ed8df2637a1

6 years agoAdded new SIM state related broadcasts.
Amit Mahajan [Sat, 13 Jan 2018 01:40:29 +0000 (17:40 -0800)]
Added new SIM state related broadcasts.

Test: Basic telephony sanity and unit tests
Bug: 64131518
Merged-in: Ie3d157e79a7040c161b9038c875a4a4f49d535ff
Change-Id: Ie3d157e79a7040c161b9038c875a4a4f49d535ff

6 years agoMerge "Fix <Report Audio Status> update"
Dan Zhang [Thu, 18 Jan 2018 22:16:39 +0000 (22:16 +0000)]
Merge "Fix <Report Audio Status> update"

6 years agoMerge "Fix OTP performance with no Vendor ID device"
Dan Zhang [Thu, 18 Jan 2018 22:16:23 +0000 (22:16 +0000)]
Merge "Fix OTP performance with no Vendor ID device"

6 years agoMerge "Fix NPE by pressing Volume Up/Down"
Dan Zhang [Thu, 18 Jan 2018 22:15:39 +0000 (22:15 +0000)]
Merge "Fix NPE by pressing Volume Up/Down"

6 years agoMerge "Fix illegal volume value issue"
Dan Zhang [Thu, 18 Jan 2018 21:50:10 +0000 (21:50 +0000)]
Merge "Fix illegal volume value issue"

6 years agoAdd ability to override subscriber capabilities.
Jeff Sharkey [Thu, 18 Jan 2018 13:01:59 +0000 (22:01 +0900)]
Add ability to override subscriber capabilities.

In a future set of CLs, NPMS will offer to override a handful of
capabilities on a per-subId basis.  Define a no-op version of the
interface to make it easier to add new methods in the future.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: bit FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DataConnectionTest
Bug: 64133169
Change-Id: I03dfd98463861f0338c4174e8d8a88c300ea5b55

6 years agoMerge "Add config_supportBluetoothPersistedState."
Arthur Hsu [Thu, 18 Jan 2018 21:12:08 +0000 (21:12 +0000)]
Merge "Add config_supportBluetoothPersistedState."
am: 524fe66549

Change-Id: I17c56fa8a5b5a984e26591d1e0e830a1c54fa28e

6 years agoMerge "Add config_supportBluetoothPersistedState."
Arthur Hsu [Thu, 18 Jan 2018 19:38:32 +0000 (19:38 +0000)]
Merge "Add config_supportBluetoothPersistedState."

6 years agoAdd config_supportBluetoothPersistedState.
Arthur Hsu [Thu, 11 Jan 2018 19:05:11 +0000 (11:05 -0800)]
Add config_supportBluetoothPersistedState.

Add a config to indicate whether a device supports Bluetooth persisted
state and defaulted to true. In ARC++, Bluetooth adapter state can be
out-of-sync from its container if the user changes it before the
container being available.

When set to false, this config prevents Android to auto start the
Bluetooth. ARC++ will set this to false and sync Bluetooth state later
with Android.

Related CL is ag/931281

Bug: 6241362569965109
Test: On sailfish, Bluetooth on/off correctly and state persisted across reboot
Change-Id: Ie298929eb6b882108a12e8b95f61e3c9f8eb63ea

6 years agoMerge "Added APIs for Connection-oriented channels"
Stanley Tng [Thu, 18 Jan 2018 17:59:19 +0000 (17:59 +0000)]
Merge "Added APIs for Connection-oriented channels"
am: e1992384e0

Change-Id: If7cb99a59aee8640f6dddd96f2388e2a5284df45

6 years agoMerge "Added APIs for Connection-oriented channels"
Treehugger Robot [Thu, 18 Jan 2018 16:42:33 +0000 (16:42 +0000)]
Merge "Added APIs for Connection-oriented channels"

6 years agoGenerate new API signatures from doclava
David Brazdil [Tue, 16 Jan 2018 15:03:20 +0000 (15:03 +0000)]
Generate new API signatures from doclava

Doclava now generates API signatures of classes and their members
which are not part of the public SDK. Adjust the arguments passed
to Doclava to enable that feature.

Bug: 64382372
Test: m
Change-Id: I47de683dd2b00fce73b82581a13fbe1013ef625f

6 years agoMerge "Javadoc fixes to Time"
Neil Fuller [Thu, 18 Jan 2018 10:26:13 +0000 (10:26 +0000)]
Merge "Javadoc fixes to Time"
am: b3c2efc615

Change-Id: I9793670f518d15fc42caa01a519c33e451998a77

6 years agoMerge "Javadoc fixes to Time"
Neil Fuller [Thu, 18 Jan 2018 09:18:27 +0000 (09:18 +0000)]
Merge "Javadoc fixes to Time"

6 years agoMerge "Add APIs to EuiccCardManager."
Holly Jiuyu Sun [Thu, 18 Jan 2018 04:01:59 +0000 (04:01 +0000)]
Merge "Add APIs to EuiccCardManager."
am: a5bc474e2c

Change-Id: Ib0653ef73bb59f5dba2396bde20d1f29b107da86

6 years agoMerge "Add "not congested" network capability."
Jeff Sharkey [Thu, 18 Jan 2018 03:58:13 +0000 (03:58 +0000)]
Merge "Add "not congested" network capability."
am: ffaddf73de

Change-Id: I02ea25610df63b40547c3114c0f9a9ef59560e90

6 years agoMerge "Add basic resolution of Private DNS hostname"
Erik Kline [Thu, 18 Jan 2018 03:54:50 +0000 (03:54 +0000)]
Merge "Add basic resolution of Private DNS hostname"
am: a3bf36f050

Change-Id: I9ce3476d80b05c140a02aaf1c21d4da2a68a8909

6 years agoMerge "Add APIs to EuiccCardManager."
Holly Jiuyu Sun [Thu, 18 Jan 2018 03:32:22 +0000 (03:32 +0000)]
Merge "Add APIs to EuiccCardManager."

6 years agoMerge "Add "not congested" network capability."
Jeff Sharkey [Thu, 18 Jan 2018 03:28:34 +0000 (03:28 +0000)]
Merge "Add "not congested" network capability."

6 years agoMerge "Add public API methods for private DNS."
Lorenzo Colitti [Thu, 18 Jan 2018 03:21:02 +0000 (03:21 +0000)]
Merge "Add public API methods for private DNS."
am: aacb56a7c0

Change-Id: If2bdfb05fcb235888bf272e4cfddb14619fc3f78

6 years agoMerge "Add basic resolution of Private DNS hostname"
Treehugger Robot [Thu, 18 Jan 2018 02:44:53 +0000 (02:44 +0000)]
Merge "Add basic resolution of Private DNS hostname"

6 years agoMerge "Added internal API getMaxConnectedAudioDevices()"
Pavlin Radoslavov [Thu, 18 Jan 2018 02:10:31 +0000 (02:10 +0000)]
Merge "Added internal API getMaxConnectedAudioDevices()"
am: 877cbe1dc2

Change-Id: Ifb7b28f3993e3d8967886bdff006bcd2679d3277

6 years agoMerge "Add public API methods for private DNS."
Lorenzo Colitti [Thu, 18 Jan 2018 01:17:17 +0000 (01:17 +0000)]
Merge "Add public API methods for private DNS."

6 years agoMerge "Reland: Move zygote's seccomp setup to post-fork"
Victor Hsieh [Thu, 18 Jan 2018 01:15:05 +0000 (01:15 +0000)]
Merge "Reland: Move zygote's seccomp setup to post-fork"
am: 7839672e22

Change-Id: I93275a50938ed1514fc690fe2e1390054748d361

6 years agoMerge "Bluetooth in band ring"
Joseph Pirozzo [Thu, 18 Jan 2018 01:02:14 +0000 (01:02 +0000)]
Merge "Bluetooth in band ring"
am: dbfaf31357

Change-Id: I24b9169afc67e376a22c99f8a1ae7117549401f8

6 years agoMerge "Added internal API getMaxConnectedAudioDevices()"
Treehugger Robot [Thu, 18 Jan 2018 00:46:57 +0000 (00:46 +0000)]
Merge "Added internal API getMaxConnectedAudioDevices()"

6 years agoAdd APIs to EuiccCardManager.
Holly Jiuyu Sun [Fri, 22 Dec 2017 02:44:59 +0000 (18:44 -0800)]
Add APIs to EuiccCardManager.

The CL contains parts of the EuiccCard APIs. getEid() is sync. All the
other APIs are async.
Move ResetOptions from EuiccCard to EuiccCardManager.
The other APIs will be added in a follow-up CL.

Bug: 38206971
Test: test on phone
Change-Id: Iba098ee779b8ea4e244e0e4cf7318139666cc94b

6 years agoAdd Tunnel Interface APIs to IpSecManager
Nathan Harold [Thu, 18 Jan 2018 00:09:24 +0000 (16:09 -0800)]
Add Tunnel Interface APIs to IpSecManager

Add a new interface and a new management object,
IpSecTunnelInterface to the IpSecManager surface.
This object will be used to control IPsec tunnels.

-Add IpSecTunnelInterface object
-Add methods to create and use an IpSecTunnelInterface
-Update the IpSecTransform builder to create Tunnel
 mode IpSecTransform objects (usable with an IpSecTunnel)

Bug: 36033193
Test: compilation
Change-Id: Ib6948b12c15c93674234dc36288058ae44435b90