OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Revert "DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests...
Treehugger Robot [Thu, 11 Oct 2018 13:24:02 +0000 (13:24 +0000)]
Merge "Revert "DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests""

6 years agoMerge "Whitelist free short code batch for 2018 Q3"
Fabrício Ferracioli [Thu, 11 Oct 2018 13:06:16 +0000 (13:06 +0000)]
Merge "Whitelist free short code batch for 2018 Q3"

6 years agoMerge "[PT11] Move handleDeprecatedGlobalHttpProxy to ProxyTracker"
Treehugger Robot [Thu, 11 Oct 2018 12:50:17 +0000 (12:50 +0000)]
Merge "[PT11] Move handleDeprecatedGlobalHttpProxy to ProxyTracker"

6 years agoMerge "Remove unused import"
Neil Fuller [Thu, 11 Oct 2018 08:06:48 +0000 (08:06 +0000)]
Merge "Remove unused import"

6 years agoRevert "DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests"
Tadashi G. Takaoka [Thu, 11 Oct 2018 07:51:35 +0000 (07:51 +0000)]
Revert "DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests"

This reverts commit dee5a4dc2a5a6829e5509fc0e94903e30dcc238f.

Reason for revert: CLs on upstream branch are on hold.

Change-Id: I253294d080efdfd1dbf377812f12880e03dff1f6

6 years agoMerge "Refactor tetherGetStats by using stable aidl structure"
Luke Huang [Thu, 11 Oct 2018 05:58:22 +0000 (05:58 +0000)]
Merge "Refactor tetherGetStats by using stable aidl structure"

6 years agoMerge "Remove BluetoothDevice.ACTION_DISAPPEARED"
Treehugger Robot [Thu, 11 Oct 2018 03:32:10 +0000 (03:32 +0000)]
Merge "Remove BluetoothDevice.ACTION_DISAPPEARED"

6 years agoMerge "Make setAirplaneMode @SystemApi for SetupWizard."
Treehugger Robot [Thu, 11 Oct 2018 02:44:21 +0000 (02:44 +0000)]
Merge "Make setAirplaneMode @SystemApi for SetupWizard."

6 years agoRemove BluetoothDevice.ACTION_DISAPPEARED
Jack He [Thu, 11 Oct 2018 00:42:48 +0000 (17:42 -0700)]
Remove BluetoothDevice.ACTION_DISAPPEARED

This intent was never sent by the Bluetooth stack

Bug: 112115770
Test: make
Change-Id: I6c2b87529af7e6a7123cde8141fbdb9d1822ec9f
Merged-In: I6c2b87529af7e6a7123cde8141fbdb9d1822ec9f
(cherry picked from commit dd1c592fcd11e2bee25db0077da0ef3f59071d5d)

6 years agoMerge "Fix incorrect javadoc links"
Treehugger Robot [Wed, 10 Oct 2018 23:23:53 +0000 (23:23 +0000)]
Merge "Fix incorrect javadoc links"

6 years agoMerge changes from topic "aapt2-manifest-elements"
Treehugger Robot [Wed, 10 Oct 2018 22:29:57 +0000 (22:29 +0000)]
Merge changes from topic "aapt2-manifest-elements"

* changes:
  Remove workarounds for b/79755007
  AAPT2: Add the rest of supported manifest elements
  AAPT2: Add supported manifest elements

6 years agoMerge "Avoid hidden DataFormat.is24Hour field access"
Neil Fuller [Wed, 10 Oct 2018 22:12:56 +0000 (22:12 +0000)]
Merge "Avoid hidden DataFormat.is24Hour field access"

6 years agoMerge "Phone service state change atom."
Treehugger Robot [Wed, 10 Oct 2018 19:51:36 +0000 (19:51 +0000)]
Merge "Phone service state change atom."

6 years agoPhone service state change atom.
Yangster [Wed, 10 Oct 2018 00:09:02 +0000 (17:09 -0700)]
Phone service state change atom.

Background: BatteryStatsService tracks the phone scanning time metric. In Q,
we are migrating the dumpsys-based collection to the new infra. This CL is to
instrument the new logging mechanism.

Test: statsd test
FIX: b/116748990

Change-Id: I3cf5e0026bfc6f594c5f7b524f14b3a43b702afb

6 years agoMerge "dex/TEST_MAPPING: referenced non-test modules"
Treehugger Robot [Wed, 10 Oct 2018 18:40:13 +0000 (18:40 +0000)]
Merge "dex/TEST_MAPPING: referenced non-test modules"

6 years agoMerge "Mark getInstallerPackageName @Nullable"
Treehugger Robot [Wed, 10 Oct 2018 18:13:28 +0000 (18:13 +0000)]
Merge "Mark getInstallerPackageName @Nullable"

6 years agoAvoid hidden DataFormat.is24Hour field access
Neil Fuller [Wed, 10 Oct 2018 18:13:19 +0000 (19:13 +0100)]
Avoid hidden DataFormat.is24Hour field access

DateFormat.is24Hour is not part of the CorePlatformApi but
DateFormat.set24HourTimePref(Boolean) is. Switch over.

Bug: 113148576
Test: build
Change-Id: I27103890f94cfe3679f386ea33b0450b453a7625

6 years agoRemove unused import
Neil Fuller [Wed, 10 Oct 2018 16:05:12 +0000 (17:05 +0100)]
Remove unused import

StructGroupReq is imported but not used.
The import can be removed.

Bug: 113148576
Test: build only
Change-Id: I6b2ec5eb3f6c6e298fcde8e47dfd0979f889ca1d

6 years agoMerge "Remove usage of StringFactory"
Treehugger Robot [Wed, 10 Oct 2018 16:05:20 +0000 (16:05 +0000)]
Merge "Remove usage of StringFactory"

6 years agoMerge "Remove dependency on internal libcore method"
Neil Fuller [Wed, 10 Oct 2018 15:12:21 +0000 (15:12 +0000)]
Merge "Remove dependency on internal libcore method"

6 years agoRemove usage of StringFactory
Neil Fuller [Wed, 10 Oct 2018 14:49:31 +0000 (15:49 +0100)]
Remove usage of StringFactory

Code outside of the runtime should not use StringFactory.
The java.lang.String API works fine.

Bug: 113148576
Test: build only
Change-Id: I2912e02265306dcd5c5923de019b2c376349ea29

6 years agoMerge "Switch test to TestIoUtils from IoUtils"
Neil Fuller [Wed, 10 Oct 2018 13:57:36 +0000 (13:57 +0000)]
Merge "Switch test to TestIoUtils from IoUtils"

6 years agoRemove dependency on internal libcore method
Neil Fuller [Wed, 10 Oct 2018 13:49:24 +0000 (14:49 +0100)]
Remove dependency on internal libcore method

The test already uses FileUtils.deleteContents() in several
places so the one usage of IoUtils.deleteContents() which is
functionally equivalent can be switched over to that instead.

Bug: 113148576
Test: build only
Change-Id: Ic5569c82701e89ae9178c1438caf1e8885861a76

6 years agoMake setAirplaneMode @SystemApi for SetupWizard.
Lorenzo Colitti [Tue, 9 Oct 2018 09:50:32 +0000 (18:50 +0900)]
Make setAirplaneMode @SystemApi for SetupWizard.

Expose ConnectivityManager#setAirplaneMode and the
NETWORK_SETUP_WIZARD permission so that SetupWizard can call
setAirplaneMode.

Delete setAirplaneMode from the greylist because the permissions
checks on it, since at least 2013, have been for a privileged
permission (CONNECTIVITY_INTERNAL) that normal apps don't have.

Test: m
Bug: 115302596
Change-Id: I28f24d32c4b4b386407e9e0e3514ea9f8854f4a8

6 years agoMerge "Remove ArcVideoBridge service from framework/base."
Treehugger Robot [Wed, 10 Oct 2018 03:06:40 +0000 (03:06 +0000)]
Merge "Remove ArcVideoBridge service from framework/base."

6 years agoMerge "Fixed the indentation"
Treehugger Robot [Wed, 10 Oct 2018 01:05:26 +0000 (01:05 +0000)]
Merge "Fixed the indentation"

6 years agoMark getInstallerPackageName @Nullable
Scott Kennedy [Wed, 10 Oct 2018 00:26:19 +0000 (17:26 -0700)]
Mark getInstallerPackageName @Nullable

Test: Just an annotation

Change-Id: Ida4f40e77abec2bbf3791a6b38fdb729f6083811

6 years agoMerge "Add VisibleForTesting to create TelephonyRegistryTest."
Xiangyu/Malcolm Chen [Wed, 10 Oct 2018 00:36:39 +0000 (00:36 +0000)]
Merge "Add VisibleForTesting to create TelephonyRegistryTest."

6 years agodex/TEST_MAPPING: referenced non-test modules
Simran Basi [Tue, 9 Oct 2018 18:12:36 +0000 (11:12 -0700)]
dex/TEST_MAPPING: referenced non-test modules

TreeHugger can only dereference test modules from test mapping.
This change fixes this particular TEST_MAPPING file to target
FrameworksServicesTest for package com.android.server.pm.dex

Bug: 117497435
Test: atest local run & TreeHugger run, verify the right tests runs.
Change-Id: If8731275b492c7788329de08ac09a9f6437de54a

6 years agoFixed the indentation
Jack Yu [Tue, 9 Oct 2018 23:24:23 +0000 (16:24 -0700)]
Fixed the indentation

Test: Build
Change-Id: Id8a30734c1e4607b0396e0a985ab46502d8723b9

6 years agoMerge "Add READ_PRIVILEGED_PHONE_STATE to used permissions"
Michael Groover [Tue, 9 Oct 2018 23:07:13 +0000 (23:07 +0000)]
Merge "Add READ_PRIVILEGED_PHONE_STATE to used permissions"

6 years agoMerge "Convert PrintSpooler to Android.bp"
Treehugger Robot [Tue, 9 Oct 2018 21:50:40 +0000 (21:50 +0000)]
Merge "Convert PrintSpooler to Android.bp"

6 years agoAdd VisibleForTesting to create TelephonyRegistryTest.
Malcolm Chen [Tue, 28 Aug 2018 03:38:29 +0000 (20:38 -0700)]
Add VisibleForTesting to create TelephonyRegistryTest.

Bug: 113305153
Test: unittest
Change-Id: Ie59b2da76fbc813ce011d4d0ab3ff533a6006e14
Merged-In: Ie59b2da76fbc813ce011d4d0ab3ff533a6006e14

6 years agoMerge "libandroidfw: introduce ExecuteBinary (POSIX only)"
Treehugger Robot [Tue, 9 Oct 2018 21:43:38 +0000 (21:43 +0000)]
Merge "libandroidfw: introduce ExecuteBinary (POSIX only)"

6 years agoMerge "libandroidfw: move ConfigDescription from aapt2 to libandroidfw"
Treehugger Robot [Tue, 9 Oct 2018 21:43:38 +0000 (21:43 +0000)]
Merge "libandroidfw: move ConfigDescription from aapt2 to libandroidfw"

6 years agoMerge changes from topic "idmap2-prerequisites"
Treehugger Robot [Tue, 9 Oct 2018 21:43:38 +0000 (21:43 +0000)]
Merge changes from topic "idmap2-prerequisites"

* changes:
  AssetManager2: optionally keep non-matching configs
  AAPT2: optionally keep resources without default value
  libandroidfw: add resource ID iterator

6 years agoAssetManager2: optionally keep non-matching configs
Mårten Kongstad [Mon, 11 Jun 2018 12:11:33 +0000 (14:11 +0200)]
AssetManager2: optionally keep non-matching configs

AssetManager2 maintains a set of configurations [as specified in the
resource blob] compatible with the currently set configuration [as
specified via SetConfiguration]. This helps optimize future resource
lookups by limiting the set of configurations to iterate over.

However, when creating idmaps, all configurations must be considered,
including those not compatible with the currently set configuration. Add
an optional flag to SetApkAssets to disable the optimization described
above.

Test: manual (will be tested by upcoming idmap2 implementation)
Change-Id: I7526a323ddf90e2f2f49c36e8c110a2cec25357e

6 years agoMerge "More descriptions on SubscriptionController#setPreferredData"
Xiangyu/Malcolm Chen [Tue, 9 Oct 2018 18:18:11 +0000 (18:18 +0000)]
Merge "More descriptions on SubscriptionController#setPreferredData"

6 years agoMerge "Add Call Redirection Default Application in Settings"
Treehugger Robot [Tue, 9 Oct 2018 18:06:05 +0000 (18:06 +0000)]
Merge "Add Call Redirection Default Application in Settings"

6 years agoMerge "Add rtmitchell to AAPT2 OWNERS"
Treehugger Robot [Tue, 9 Oct 2018 17:06:50 +0000 (17:06 +0000)]
Merge "Add rtmitchell to AAPT2 OWNERS"

6 years agoMerge "Add yanglu@ and yaochen@ to the proto owner list."
Treehugger Robot [Tue, 9 Oct 2018 16:37:25 +0000 (16:37 +0000)]
Merge "Add yanglu@ and yaochen@ to the proto owner list."

6 years agoAAPT2: optionally keep resources without default value
Mårten Kongstad [Mon, 11 Jun 2018 12:13:37 +0000 (14:13 +0200)]
AAPT2: optionally keep resources without default value

Teach "aapt2 link" about a new flag --no-resource-removal. When given,
aapt2 will not filter out resources that lack default values. This is
useful mostly when building overlay packages that define resources for
non-default configurations, such as only for values-sv.

Test: manual: build package with resource only in values-vs, verify apk with aapt2 dump
Change-Id: Idc513bcb3f43bbff7f073163562c3dfccdb9bc9b
Merged-In: Idc513bcb3f43bbff7f073163562c3dfccdb9bc9b

6 years agoMore descriptions on SubscriptionController#setPreferredData
Malcolm Chen [Tue, 25 Sep 2018 03:00:08 +0000 (20:00 -0700)]
More descriptions on SubscriptionController#setPreferredData

Bug: 115550764
Test: build
Change-Id: I25c3f89a3c3f8e8e6475221885d995bcb5684da4
Merged-In: I25c3f89a3c3f8e8e6475221885d995bcb5684da4

6 years agoAdd Call Redirection Default Application in Settings
sqian [Mon, 8 Oct 2018 22:15:41 +0000 (15:15 -0700)]
Add Call Redirection Default Application in Settings

Bug: 64959558
Test: compile
Change-Id: Iddac4d5b202db5a88aa82fd9ea4df89544b94b71

6 years agoMerge "Add isManualNetworkSelectionAllowed api to telephonyManager"
Pengquan Meng [Mon, 8 Oct 2018 22:16:52 +0000 (22:16 +0000)]
Merge "Add isManualNetworkSelectionAllowed api to telephonyManager"

6 years agoMerge "Make isUsableSubIdValue public"
Shuo Qian [Mon, 8 Oct 2018 20:42:00 +0000 (20:42 +0000)]
Merge "Make isUsableSubIdValue public"

6 years agoMerge "statsd: Add AID mappings for iorapd"
Treehugger Robot [Mon, 8 Oct 2018 20:12:59 +0000 (20:12 +0000)]
Merge "statsd: Add AID mappings for iorapd"

6 years agoFix incorrect javadoc links
Tor Norbye [Wed, 3 Oct 2018 07:28:21 +0000 (09:28 +0200)]
Fix incorrect javadoc links

Test: make offline-sdk-docs
Bug: b/116163454
Change-Id: I55de1f71d443713b033ee63fd191bd34b3a52fd2

6 years agoAdd isManualNetworkSelectionAllowed api to telephonyManager
Pengquan Meng [Wed, 3 Oct 2018 19:22:10 +0000 (12:22 -0700)]
Add isManualNetworkSelectionAllowed api to telephonyManager

Bug: 111453847
Test: build
Merged-In: Icdd60ab03fee4b2e7a08dda3c5c127a19ecac7ce
Change-Id: Icdd60ab03fee4b2e7a08dda3c5c127a19ecac7ce

6 years agoAdd READ_PRIVILEGED_PHONE_STATE to used permissions
Michael Groover [Mon, 8 Oct 2018 16:39:24 +0000 (09:39 -0700)]
Add READ_PRIVILEGED_PHONE_STATE to used permissions

Bug: 110099294
Test: cts-tradefed run cts -m CtsTelephonyTestCases -t android.telephony.cts.TelephonyManagerTest
Change-Id: I13fec3d397c200ce92883883c96c07007e823efe

6 years agolibandroidfw: move ConfigDescription from aapt2 to libandroidfw
Mårten Kongstad [Wed, 20 Jun 2018 06:46:41 +0000 (08:46 +0200)]
libandroidfw: move ConfigDescription from aapt2 to libandroidfw

This is to allow idmap2 to access ConfigDescription.

Test: libandroidfw_tests
Test: aapt2_tests
Change-Id: I54210bbbd8dad5903cb7100807df977efa394ad5
Merged-In: I54210bbbd8dad5903cb7100807df977efa394ad5

6 years agoAdd yanglu@ and yaochen@ to the proto owner list.
Yangster [Mon, 8 Oct 2018 16:24:43 +0000 (09:24 -0700)]
Add yanglu@ and yaochen@ to the proto owner list.

Test: cts

Change-Id: I6ad0ced33ec8f0a8fa6e832fbae30828e20fb609

6 years agoMerge "Respect extractNativeLibs in natively bridged environments"
Dimitry Ivanov [Mon, 8 Oct 2018 14:50:08 +0000 (14:50 +0000)]
Merge "Respect extractNativeLibs in natively bridged environments"

6 years agoMerge "Fix UsbDeviceManager null object reference"
Treehugger Robot [Mon, 8 Oct 2018 07:44:48 +0000 (07:44 +0000)]
Merge "Fix UsbDeviceManager null object reference"

6 years agoMerge "Wire up the stopRtt API"
Hall Liu [Sat, 6 Oct 2018 00:49:14 +0000 (00:49 +0000)]
Merge "Wire up the stopRtt API"

6 years agoMerge "Fix incorrect API comments of getSubId()"
Pengquan Meng [Sat, 6 Oct 2018 00:13:01 +0000 (00:13 +0000)]
Merge "Fix incorrect API comments of getSubId()"

6 years agostatsd: Add AID mappings for iorapd
Igor Murashkin [Fri, 5 Oct 2018 23:25:21 +0000 (16:25 -0700)]
statsd: Add AID mappings for iorapd

Bug: 117295673
Change-Id: Ie0c7a7bf823159492259ac1ec6680b45784afb84

6 years agoMerge "Add Parcelable EmergencyNumber and APIs"
Shuo Qian [Fri, 5 Oct 2018 22:29:36 +0000 (22:29 +0000)]
Merge "Add Parcelable EmergencyNumber and APIs"

6 years agoFix incorrect API comments of getSubId()
Pengquan Meng [Fri, 5 Oct 2018 05:42:06 +0000 (22:42 -0700)]
Fix incorrect API comments of getSubId()

getSubid() return the SubscriptionManager#getDefaultSubscriptionId()
when TelephonyManager created without the subId.

Bug: 111453847
Test: Build
Merged-In: I8e38ef43b5f23bbedc4d584df78c12f250b88fcc
Change-Id: I8e38ef43b5f23bbedc4d584df78c12f250b88fcc

6 years agoMake isUsableSubIdValue public
sqian [Wed, 12 Sep 2018 23:31:17 +0000 (16:31 -0700)]
Make isUsableSubIdValue public

Rename subId to subscriptionId

Bug: 113072551
Test: Treehugger
Change-Id: I54303bab4d40d6168332d0263e9de1603205bb75

6 years agoMerge "Add finer grained call fail reasons."
Tyler Gunn [Fri, 5 Oct 2018 20:35:55 +0000 (20:35 +0000)]
Merge "Add finer grained call fail reasons."

6 years agoMerge changes I10c01f2b,Ie05bc535
Yan Yan [Fri, 5 Oct 2018 17:38:41 +0000 (17:38 +0000)]
Merge changes I10c01f2b,Ie05bc535

* changes:
  Check to ensure UDP-encap is used only for IPv4
  Add UDP encapsulation tests for IpSecService.

6 years agoMerge "Refine frameworks/base/services/tests/runtest.py"
Howard Chen [Fri, 5 Oct 2018 17:03:59 +0000 (17:03 +0000)]
Merge "Refine frameworks/base/services/tests/runtest.py"

6 years agoMerge "statsd: Add missing AIDs to UidMap"
Treehugger Robot [Fri, 5 Oct 2018 16:52:11 +0000 (16:52 +0000)]
Merge "statsd: Add missing AIDs to UidMap"

6 years agoMerge "DO NOT MERGE Synchronize ZenModeControllerImpl callbacks"
Treehugger Robot [Fri, 5 Oct 2018 15:38:39 +0000 (15:38 +0000)]
Merge "DO NOT MERGE Synchronize ZenModeControllerImpl callbacks"

6 years agoWhitelist free short code batch for 2018 Q3
Fabrício Ferracioli [Fri, 5 Oct 2018 13:41:49 +0000 (10:41 -0300)]
Whitelist free short code batch for 2018 Q3

Included 21 numbers to the free shor codes for the following countries: Nigeria, Portugal, New
Zealand, United Kingdom and France.

Test: Tested with a Brazilian SIM card from Vivo, by changing the
original Brazil country code line to an invalid country and pushing a
new file to the phone for each country added identified as BR. Messages
should be sent to the added numbers without any warning.

BUG: 111393528

Change-Id: I270163bb89f82d9c78d3f2858bca42a69f16a309
Signed-off-by: Fabrício Ferracioli <fferracioli@google.com>
6 years agoMerge "[PT10] Move loadGlobalProxy into ProxyTracker."
Chalard Jean [Fri, 5 Oct 2018 09:07:12 +0000 (09:07 +0000)]
Merge "[PT10] Move loadGlobalProxy into ProxyTracker."

6 years agoMerge "Swap libcore annotations for framework versions"
Neil Fuller [Fri, 5 Oct 2018 08:09:13 +0000 (08:09 +0000)]
Merge "Swap libcore annotations for framework versions"

6 years ago[PT11] Move handleDeprecatedGlobalHttpProxy to ProxyTracker
Chalard Jean [Fri, 8 Jun 2018 05:24:49 +0000 (14:24 +0900)]
[PT11] Move handleDeprecatedGlobalHttpProxy to ProxyTracker

This contains a significant logic change : it will load the
deprecated proxy settings synchronously instead of on the next
run loop. I think this is okay because it would happen almost
immediately anyway, and there is nothing in ConnectivityService
that might be changing this setting in the mean time. As for
the possibility that this was executed in the handler because
of possible disk access, I want to point out that the
loadGlobalProxy method that now calls this was already doing
those same similar accesses.

Test: runtest
Change-Id: Idc6f260e2a337689dc274eb758eb00f6a31089bb

6 years ago[PT10] Move loadGlobalProxy into ProxyTracker.
Chalard Jean [Fri, 8 Jun 2018 03:47:42 +0000 (12:47 +0900)]
[PT10] Move loadGlobalProxy into ProxyTracker.

Test: runtest
Change-Id: Id1c57ebb575c8742310be4822ec6e3fa03f487c3

6 years agoAdd Parcelable EmergencyNumber and APIs
sqian [Sat, 8 Sep 2018 04:01:26 +0000 (21:01 -0700)]
Add Parcelable EmergencyNumber and APIs

Test: unit test
Bug: 112657134
Change-Id: If926291e3f6fb6d2a3acd3d28d2ead85fbf01364

6 years agoSwap libcore annotations for framework versions
Neil Fuller [Thu, 4 Oct 2018 21:37:18 +0000 (22:37 +0100)]
Swap libcore annotations for framework versions

Swap libcore nullability annotations for android.annotation
equivalents.

Bug: 113148576
Test: build
Change-Id: Ie571062779e9bdf3890f6fcbd99be905aaf1adf9

6 years agostatsd: Add missing AIDs to UidMap
Igor Murashkin [Thu, 4 Oct 2018 21:30:48 +0000 (14:30 -0700)]
statsd: Add missing AIDs to UidMap

Change-Id: I29f52727d344755a0c465105eb3a2c81b2bec700

6 years agoMerge "Clean cherry-pick 'Fix getApnTypesBitmaskFromString in ApnSetting'"
Cassie Han [Thu, 4 Oct 2018 20:35:07 +0000 (20:35 +0000)]
Merge "Clean cherry-pick 'Fix getApnTypesBitmaskFromString in ApnSetting'"

6 years agoClean cherry-pick 'Fix getApnTypesBitmaskFromString in ApnSetting'
Cassie [Sat, 29 Sep 2018 00:35:47 +0000 (17:35 -0700)]
Clean cherry-pick 'Fix getApnTypesBitmaskFromString in ApnSetting'

Bug: 116363528
Test: Maunal test
Change-Id: Ie2fda3fe4e2519f652e0a04dde058be748208bd5
Merged-In: Ie2fda3fe4e2519f652e0a04dde058be748208bd5

6 years agoMerge "New Permission for Call Redirection service"
Shuo Qian [Thu, 4 Oct 2018 19:03:13 +0000 (19:03 +0000)]
Merge "New Permission for Call Redirection service"

6 years agoAdd rtmitchell to AAPT2 OWNERS
Ryan Mitchell [Thu, 4 Oct 2018 18:54:29 +0000 (11:54 -0700)]
Add rtmitchell to AAPT2 OWNERS

Per talks with Svet, it is time I became a co-owner of AAPT2 with
toddke. I look forward to continuing to support and improve AAPT2.

Change-Id: I3a0f1c8a708abc41045b95dc958dbeb96a5160ff

6 years agoCheck to ensure UDP-encap is used only for IPv4
evitayan [Fri, 23 Mar 2018 00:53:08 +0000 (17:53 -0700)]
Check to ensure UDP-encap is used only for IPv4

This commit checks if UDP-encapsulation is used
for unsupported address family and throws
IllegalArgumentException when it happens.

Bug: 74213459
Test: Tests added in testCreateTransportModeTransformWithEncap
      and testCreateTunnelModeTransformWithEncap.
      Command: runtest frameworks-net
      Verified on taimen.
Change-Id: I10c01f2bad6aca23430849ea9ef6c1eb157ae131

6 years agoMerge "startop: Add iorapd binder integration test"
Treehugger Robot [Thu, 4 Oct 2018 17:46:47 +0000 (17:46 +0000)]
Merge "startop: Add iorapd binder integration test"

6 years agoAdd UDP encapsulation tests for IpSecService.
evitayan [Thu, 22 Mar 2018 20:42:07 +0000 (13:42 -0700)]
Add UDP encapsulation tests for IpSecService.

This commit adds tests to ensure that IpSecService properly
handles UDP-encapsulation transforms correctly.

Bug: 76110065
Test: Added: testCreateTransportModeTransformWithEncap,
             testCreateTunnelModeTransformWithEncap.
      Command: runtest frameworks-net
      Verified on taimen.
Change-Id: Ie05bc5354266806c2d03b0b3d73a4696a89eccf2

6 years agoMerge "Add AndroidTest file for ExtServices"
Ian Kasprzak [Thu, 4 Oct 2018 15:38:01 +0000 (15:38 +0000)]
Merge "Add AndroidTest file for ExtServices"

6 years agoMerge "Rename EXTRA_E_CALL to EXTRA_EMERGENCY_CALL."
Tyler Gunn [Thu, 4 Oct 2018 15:21:51 +0000 (15:21 +0000)]
Merge "Rename EXTRA_E_CALL to EXTRA_EMERGENCY_CALL."

6 years agoRespect extractNativeLibs in natively bridged environments
dimitry [Thu, 4 Oct 2018 13:57:14 +0000 (15:57 +0200)]
Respect extractNativeLibs in natively bridged environments

The extractNativeLibs property was ignored by the package installer
for environments with native bridge. This is not neccessary since
native bridge implementations are required to support
open-directly-from-apk feature and in this respect are not different
from environments without native bridge.

Bug: http://b/116854266
Test: cts-tradefed run singleCommand cts --skip-preconditions -m CtsJniTestCases
Change-Id: I9ea7397183d7ebe2c00e461b95d188b15b51eca2

6 years agoSwitch test to TestIoUtils from IoUtils
Neil Fuller [Tue, 2 Oct 2018 14:29:33 +0000 (15:29 +0100)]
Switch test to TestIoUtils from IoUtils

Remove a dependency on a private platform API method.

Bug: 113148576
Test: Run test
Change-Id: Iaf5bd2853b3f9d496b6450c4ffd16992fe645be2

6 years agoRefactor tetherGetStats by using stable aidl structure
Luke Huang [Wed, 26 Sep 2018 06:53:42 +0000 (14:53 +0800)]
Refactor tetherGetStats by using stable aidl structure

Use stable aidl structure instead of persistbundle

Test: runtest frameworks-net passes
Test: manual testing of tetherGetStats function works

Change-Id: I6835541d450446ba7993ac9f5b783d34229b79cb

6 years agoMerge "Delay global alerts by 1s for high thresholds"
Treehugger Robot [Thu, 4 Oct 2018 08:17:11 +0000 (08:17 +0000)]
Merge "Delay global alerts by 1s for high thresholds"

6 years agolibandroidfw: introduce ExecuteBinary (POSIX only)
Mårten Kongstad [Thu, 27 Sep 2018 11:32:30 +0000 (13:32 +0200)]
libandroidfw: introduce ExecuteBinary (POSIX only)

Introduce a wrapper around fork and exec.

Test: make libandroidfw_tests
Change-Id: Iff0de5319bb6bb101a3fbef6413dfb4e77198f11

6 years agoDelay global alerts by 1s for high thresholds
Chalard Jean [Wed, 22 Aug 2018 01:21:26 +0000 (10:21 +0900)]
Delay global alerts by 1s for high thresholds

By skipping updates if an alert is already scheduled, this avoids firing
the global alert too often on devices with high transfer speeds and high
quota.

Test: with tethering watching videos. Also runtest frameworks-net
Bug: 117243748
Change-Id: Idce6059832db7a0e4a7117bbb3e424ec62ae3b21

6 years agoMerge "startop: Add iorap parcelables for AIDL interfaces"
Treehugger Robot [Thu, 4 Oct 2018 01:13:47 +0000 (01:13 +0000)]
Merge "startop: Add iorap parcelables for AIDL interfaces"

6 years agoMerge "Send hostname and MTU options in DHCP ACK/OFFER"
Remi NGUYEN VAN [Thu, 4 Oct 2018 01:08:19 +0000 (01:08 +0000)]
Merge "Send hostname and MTU options in DHCP ACK/OFFER"

6 years agoMerge "MTP: Add OWNERS for MTP functionality"
Treehugger Robot [Thu, 4 Oct 2018 00:48:39 +0000 (00:48 +0000)]
Merge "MTP: Add OWNERS for MTP functionality"

6 years agoMerge "New carrier config enhanced_4g_lte_title_variant_int"
Clown SHEN [Thu, 4 Oct 2018 00:07:19 +0000 (00:07 +0000)]
Merge "New carrier config enhanced_4g_lte_title_variant_int"

6 years agoAdd AndroidTest file for ExtServices
Julia Reynolds [Tue, 21 Aug 2018 16:35:45 +0000 (12:35 -0400)]
Add AndroidTest file for ExtServices

Test: make
Bug: 111475013117228643
Change-Id: Id649a1ed2109dee87bb8c61c3a161efe99c5e457
Merged-In: Id649a1ed2109dee87bb8c61c3a161efe99c5e457
(cherry picked from commit cfd2692a94503753bf9abcffdb40ed2de682dd41)

6 years agoConvert PrintSpooler to Android.bp
Colin Cross [Wed, 3 Oct 2018 21:43:43 +0000 (14:43 -0700)]
Convert PrintSpooler to Android.bp

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

Bug: 80095087
Test: atest PrintSpoolerOutOfProcessTests
Change-Id: I9d641b9c480745ccee323aa0f758cd6a146e0638

6 years agoMerge "Renamed get network registration states API"
Jack Yu [Wed, 3 Oct 2018 21:35:57 +0000 (21:35 +0000)]
Merge "Renamed get network registration states API"

6 years agoMerge "Fix ImsManager callback called once registered"
Youming Ye [Wed, 3 Oct 2018 20:15:35 +0000 (20:15 +0000)]
Merge "Fix ImsManager callback called once registered"

6 years agoMerge "Add SapProfile to LocalBluetoothProfileManager (1/2)"
Treehugger Robot [Wed, 3 Oct 2018 18:04:28 +0000 (18:04 +0000)]
Merge "Add SapProfile to LocalBluetoothProfileManager (1/2)"

6 years agoDO NOT MERGE Synchronize ZenModeControllerImpl callbacks
Beverly [Tue, 2 Oct 2018 13:22:56 +0000 (09:22 -0400)]
DO NOT MERGE Synchronize ZenModeControllerImpl callbacks

Test: manual
Bug: 115688927
Change-Id: Ib47913c7b5522c40405fadd97d570d5f197f71dc

6 years agoMerge "Disable the buginfo dialog on AndroidTV"
Nandana Dutt [Wed, 3 Oct 2018 15:39:22 +0000 (15:39 +0000)]
Merge "Disable the buginfo dialog on AndroidTV"

6 years agoMerge "Bugreport: Fix SystemUI service from being dumped twice 1/2"
Nandana Dutt [Wed, 3 Oct 2018 15:35:56 +0000 (15:35 +0000)]
Merge "Bugreport: Fix SystemUI service from being dumped twice 1/2"