OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Telephony(MSIM): Default NW mode property for each slot"
Pengquan Meng [Thu, 8 Mar 2018 19:12:13 +0000 (19:12 +0000)]
Merge "Telephony(MSIM): Default NW mode property for each slot"
am: 27c64aaf3c

Change-Id: Iabd4ed14da42f5fb141606d63be5ed73f3df642a

6 years agoMerge "Bump version for OtaDexoptService"
Mathieu Chartier [Thu, 8 Mar 2018 18:12:54 +0000 (18:12 +0000)]
Merge "Bump version for OtaDexoptService"
am: de1a963e52

Change-Id: I49beb8aabbae6a4a06d1a9c360bdcefd47a5b187

6 years agoMerge "Telephony(MSIM): Default NW mode property for each slot"
Pengquan Meng [Thu, 8 Mar 2018 17:56:28 +0000 (17:56 +0000)]
Merge "Telephony(MSIM): Default NW mode property for each slot"

6 years agoMerge "Bump version for OtaDexoptService"
Mathieu Chartier [Thu, 8 Mar 2018 17:07:15 +0000 (17:07 +0000)]
Merge "Bump version for OtaDexoptService"

6 years agoMerge "Add new 'explicit GC' policy to StrictMode."
Pete Gillin [Thu, 8 Mar 2018 12:51:56 +0000 (12:51 +0000)]
Merge "Add new 'explicit GC' policy to StrictMode."
am: 121eb58ab4

Change-Id: Ice5b3c97fb7a791b2623df8e2de6c2669b920b19

6 years agoMerge "Add new 'explicit GC' policy to StrictMode."
Pete Gillin [Thu, 8 Mar 2018 10:55:00 +0000 (10:55 +0000)]
Merge "Add new 'explicit GC' policy to StrictMode."

6 years agoMerge "Initialize mWcdmaRscpAsu and fix invalid value for asu"
Jordan Liu [Thu, 8 Mar 2018 01:04:53 +0000 (01:04 +0000)]
Merge "Initialize mWcdmaRscpAsu and fix invalid value for asu"
am: 36886b6f15

Change-Id: Ie5bf6391fc967283cd705cb9437ba302649a48c8

6 years agoMerge "Initialize mWcdmaRscpAsu and fix invalid value for asu"
Jordan Liu [Wed, 7 Mar 2018 23:41:41 +0000 (23:41 +0000)]
Merge "Initialize mWcdmaRscpAsu and fix invalid value for asu"

6 years agoMerge "Minor clean-up in NetworkCapabilities"
Pavel Maltsev [Wed, 7 Mar 2018 23:00:53 +0000 (23:00 +0000)]
Merge "Minor clean-up in NetworkCapabilities"
am: 539f85a18d

Change-Id: Ic70f545a4886461f38f1af934600f4e1afe0179f

6 years agoMerge "Add logic for passing down CompactDex generation flag"
Mathieu Chartier [Wed, 7 Mar 2018 21:23:27 +0000 (21:23 +0000)]
Merge "Add logic for passing down CompactDex generation flag"
am: b5fb7e91d8

Change-Id: Ia2f2e6b97c19a20c57a98c4191df0e631b342ae6

6 years agoMerge "Minor clean-up in NetworkCapabilities"
Treehugger Robot [Wed, 7 Mar 2018 21:06:59 +0000 (21:06 +0000)]
Merge "Minor clean-up in NetworkCapabilities"

6 years agoMerge "API Documentation and Constant cleanup."
Tyler Gunn [Wed, 7 Mar 2018 20:43:04 +0000 (20:43 +0000)]
Merge "API Documentation and Constant cleanup."
am: 8882c55b21

Change-Id: I9b29ba9beb91005dfd0df267d9ca21b0e858abad

6 years agoMerge "Add logic for passing down CompactDex generation flag"
Mathieu Chartier [Wed, 7 Mar 2018 19:53:18 +0000 (19:53 +0000)]
Merge "Add logic for passing down CompactDex generation flag"

6 years agoMerge "Store package restriction settings at shutdown"
Tetsutoki Shiozawa [Wed, 7 Mar 2018 19:51:26 +0000 (19:51 +0000)]
Merge "Store package restriction settings at shutdown"
am: 888c45b484

Change-Id: I97ad69e56c6a3c32f9d530aed933b98a61d6daa4

6 years agoMerge "API Documentation and Constant cleanup."
Treehugger Robot [Wed, 7 Mar 2018 19:33:52 +0000 (19:33 +0000)]
Merge "API Documentation and Constant cleanup."

6 years agoMerge "Address the API review comments."
yinxu [Wed, 7 Mar 2018 19:02:46 +0000 (19:02 +0000)]
Merge "Address the API review comments."
am: 322ff16301

Change-Id: I4892b391672b0f125d47d9ddec02c1645d7cb2d3

6 years agoMerge "Store package restriction settings at shutdown"
Treehugger Robot [Wed, 7 Mar 2018 18:46:18 +0000 (18:46 +0000)]
Merge "Store package restriction settings at shutdown"

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
Anton Hansson [Wed, 7 Mar 2018 18:37:54 +0000 (18:37 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
am: 13310fef6e

Change-Id: Idbd6c7575b15c68a34c75ae6e5a5dd5418cfab82

6 years agoMerge "Ensure start of call properties are propagated to RemoteConnection."
Tyler Gunn [Wed, 7 Mar 2018 17:54:30 +0000 (17:54 +0000)]
Merge "Ensure start of call properties are propagated to RemoteConnection."
am: ecb46b610c

Change-Id: I9e7e28c7197d8d002bb5d8956ef4624ac70cb24b

6 years agoMerge "Address the API review comments."
Treehugger Robot [Wed, 7 Mar 2018 17:40:20 +0000 (17:40 +0000)]
Merge "Address the API review comments."

6 years agoBump version for OtaDexoptService
Mathieu Chartier [Wed, 7 Mar 2018 17:29:21 +0000 (09:29 -0800)]
Bump version for OtaDexoptService

Bug: 63756964
Bug: 74245837
Test: manual
Change-Id: I750e38a02710347a03783b820816eda6958ba0c6

6 years agoAdd logic for passing down CompactDex generation flag
Mathieu Chartier [Wed, 7 Mar 2018 02:28:22 +0000 (18:28 -0800)]
Add logic for passing down CompactDex generation flag

In the cases where we are not install, boot, or first boot, pass down
the flag to generate CompactDex.

Bug: 63756964
Bug: 74245837
Test: manual
Change-Id: I4a2ff9383251e67b260cff5ec8a326c7a4f7faca

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
Anton Hansson [Wed, 7 Mar 2018 16:46:58 +0000 (16:46 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible."

6 years agoMerge "Ensure start of call properties are propagated to RemoteConnection."
Tyler Gunn [Wed, 7 Mar 2018 15:22:58 +0000 (15:22 +0000)]
Merge "Ensure start of call properties are propagated to RemoteConnection."

6 years agoframeworks/base: Set LOCAL_SDK_VERSION where possible.
Anton Hansson [Fri, 23 Feb 2018 12:57:51 +0000 (12:57 +0000)]
frameworks/base: Set LOCAL_SDK_VERSION where possible.

This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Exempt-From-Owner-Approval: Global cleanup
Change-Id: I66b515d98d03264dbb893b7c55ba7bdddfb447a1
Merged-In: I26458e41ecb84de91ac9a356a5d4bafb44f463c1
Merged-In: I938efe7a2359302cbf4d5d6f786f963044e1bbbd
Merged-In: I72ce7f1c6242ddf9a5b36075761f3f1f1138cea1

6 years agoMerge "Remove com.android.internal{.util} from generated documentation."
Tobias Thierer [Wed, 7 Mar 2018 14:39:05 +0000 (14:39 +0000)]
Merge "Remove com.android.internal{.util} from generated documentation."
am: 29da54462d

Change-Id: Ibdd68ab3b14e7c0280e2474248398e375e806088

6 years agoMerge "Remove com.android.internal{.util} from generated documentation."
Treehugger Robot [Wed, 7 Mar 2018 11:43:35 +0000 (11:43 +0000)]
Merge "Remove com.android.internal{.util} from generated documentation."

6 years agoStore package restriction settings at shutdown
Tetsutoki Shiozawa [Wed, 25 Nov 2015 14:02:36 +0000 (23:02 +0900)]
Store package restriction settings at shutdown

Symptom:
Disabled package was re-enabled by restarting a device.

Root cause:
PMS postpones storing the package restriction settings in 10
seconds by design. When a package gets disabled right before
shutdown, PMS fails to store the last changes.

Solution:
Store package restriction settings at shutdown.

BUG: 73447744
Change-Id: I4fe76c1f003e51653304cfaeaa5129d84803ce1e

6 years agoInitialize mWcdmaRscpAsu and fix invalid value for asu
takeshi tanigawa [Wed, 7 Mar 2018 07:54:12 +0000 (16:54 +0900)]
Initialize mWcdmaRscpAsu and fix invalid value for asu

Initialize mWcdmaRscpAsu in the constructor.
Update an invalid value of asu from -1 to 255.

Test: auto - Passed SignalStrengthTest
Bug: 71329173
Change-Id: Ic6c03fa3c405377b23159038a1e23a45ba87239c

6 years agoMerge "Update SignalStrength to use ASU for TD-SDCMA"
nharold [Wed, 7 Mar 2018 03:12:01 +0000 (03:12 +0000)]
Merge "Update SignalStrength to use ASU for TD-SDCMA"
am: 4068e8e6ae

Change-Id: Iac579d6eb416b6aca260b0f4e79f311b059d8466

6 years agoMerge "Update the Bluetooth Active Device state in the Device Manager"
Pavlin Radoslavov [Wed, 7 Mar 2018 02:41:19 +0000 (02:41 +0000)]
Merge "Update the Bluetooth Active Device state in the Device Manager"
am: 5b2fe53ab7

Change-Id: I5928ddaea907e0beca598cdb4f1507a0930ea592

6 years agoMerge "Update SignalStrength to use ASU for TD-SDCMA"
nharold [Wed, 7 Mar 2018 02:05:34 +0000 (02:05 +0000)]
Merge "Update SignalStrength to use ASU for TD-SDCMA"

6 years agoMerge "Fix Telecom dumpsys timestamps"
Hall Liu [Wed, 7 Mar 2018 01:52:15 +0000 (01:52 +0000)]
Merge "Fix Telecom dumpsys timestamps"
am: c364ff38cb

Change-Id: Ife3272aa55bdbdc01971221017962b150106bdba

6 years agoMerge "Update the Bluetooth Active Device state in the Device Manager"
Treehugger Robot [Wed, 7 Mar 2018 01:02:50 +0000 (01:02 +0000)]
Merge "Update the Bluetooth Active Device state in the Device Manager"

6 years agoMerge "Fix Telecom dumpsys timestamps"
Hall Liu [Wed, 7 Mar 2018 00:46:19 +0000 (00:46 +0000)]
Merge "Fix Telecom dumpsys timestamps"

6 years agoMerge "Remove toString() for CarrierIdentifier."
Holly Jiuyu Sun [Wed, 7 Mar 2018 00:39:56 +0000 (00:39 +0000)]
Merge "Remove toString() for CarrierIdentifier."
am: e33b9f6234

Change-Id: I6cbae2674c56f5cd99a6c7814f22dc9e8563d974

6 years agoUpdate the Bluetooth Active Device state in the Device Manager
Pavlin Radoslavov [Wed, 7 Feb 2018 00:14:00 +0000 (16:14 -0800)]
Update the Bluetooth Active Device state in the Device Manager

The Bluetooth Active Device state should be updated for all
CachedBluetoothDevice entries.
This should be done inside CachedBluetoothDeviceManager in SettingsLib
instead of BluetoothDeviceUpdater in the Settings app.

Also:
 * Added a new CachedBluetoothDeviceManagerTest.java unit test
 * Added a new method CachedBluetoothDevice.isActiveDevice()
   for testing.

Bug: 72316092
Test: Manual - two headsets and switching the active device
      Unit tests - "make RunSettingsLibRoboTests -j 40"
Change-Id: Ic3fbf667c66ed2de8e5c3352bc1ffd829a9052cf
Merged-In: Ic3fbf667c66ed2de8e5c3352bc1ffd829a9052cf
(cherry picked from commit c285d559fa8f0d597e8d5f1c8176dbb187e2d6ac)

6 years agoMerge "Remove toString() for CarrierIdentifier."
Holly Jiuyu Sun [Tue, 6 Mar 2018 23:16:54 +0000 (23:16 +0000)]
Merge "Remove toString() for CarrierIdentifier."

6 years agoFix Telecom dumpsys timestamps
Hall Liu [Tue, 6 Mar 2018 22:20:37 +0000 (14:20 -0800)]
Fix Telecom dumpsys timestamps

Change the dumpsys timestamps to use java.time for processing and always
log events with local timezone that was in effect at the time the event
happened.

Bug: 74250969
Test: manual, run dumpsys
Change-Id: Ie53cff4400be1528b3224bd556536a689ef22c8c

6 years agoMerge "Customize the WCDMA signal strength based on RSCP"
Jordan Liu [Tue, 6 Mar 2018 20:31:20 +0000 (20:31 +0000)]
Merge "Customize the WCDMA signal strength based on RSCP"
am: c2925aff38

Change-Id: I226f147316121a982526e4aa4111e9ed41215757

6 years agoMerge "Obtain cellular related battery statistics"
Siddharth Ray [Tue, 6 Mar 2018 20:08:15 +0000 (20:08 +0000)]
Merge "Obtain cellular related battery statistics"
am: 4b0172bcb6

Change-Id: I364d329e92a6bd92ce601d34c94a92c91f09eb38

6 years agoMerge "Accounts: Fix TokenCache maps access"
Andreas Gampe [Tue, 6 Mar 2018 20:03:33 +0000 (20:03 +0000)]
Merge "Accounts: Fix TokenCache maps access"
am: b06de7892a

Change-Id: Idb4409a7ac83326f178a176364c4a08b3716b64c

6 years agoMerge "Update the RTT features constant."
Eric Erfanian [Tue, 6 Mar 2018 19:58:14 +0000 (19:58 +0000)]
Merge "Update the RTT features constant."
am: c18b175d87

Change-Id: Ic4419be53f3390336a5b95abe34a03944b3437e4

6 years agoMerge "Camera: Fix map access"
Andreas Gampe [Tue, 6 Mar 2018 19:45:39 +0000 (19:45 +0000)]
Merge "Camera: Fix map access"
am: 8796d95475

Change-Id: Ife74759ff109b1b885420db408e6a6e0c3bb1388

6 years agoMerge "Allow null subscriberId in NetworkStatsManager."
Remi NGUYEN VAN [Tue, 6 Mar 2018 19:37:13 +0000 (19:37 +0000)]
Merge "Allow null subscriberId in NetworkStatsManager."
am: 6bd13af46a

Change-Id: I900ac14224284fc3a1422e8791bc54d6a9ee77ba

6 years agoMerge "Connectivity: Fix map access"
Andreas Gampe [Tue, 6 Mar 2018 19:20:32 +0000 (19:20 +0000)]
Merge "Connectivity: Fix map access"
am: be04ebd707

Change-Id: I3c1fea926fda1d70e38746378191100bb825758f

6 years agoUpdate SignalStrength to use ASU for TD-SDCMA
Nathan Harold [Sat, 3 Mar 2018 04:02:41 +0000 (20:02 -0800)]
Update SignalStrength to use ASU for TD-SDCMA

The HAL for Radio 1.2 uses -TD-SDCMA rather than
ASU RSCP for the signal strength for TD-SCDMA. This
change updates the HAL to use the new ASU-range
input.

Bug: 74202653
Test: runtest frameworks-telephony
Change-Id: Iab37ca19daf12179933cef580f248c3ef8258b98

6 years agoMerge "Customize the WCDMA signal strength based on RSCP"
Jordan Liu [Tue, 6 Mar 2018 18:54:56 +0000 (18:54 +0000)]
Merge "Customize the WCDMA signal strength based on RSCP"

6 years agoMerge "Obtain cellular related battery statistics"
Treehugger Robot [Tue, 6 Mar 2018 18:19:20 +0000 (18:19 +0000)]
Merge "Obtain cellular related battery statistics"

6 years agoMerge "Accounts: Fix TokenCache maps access"
Treehugger Robot [Tue, 6 Mar 2018 17:45:25 +0000 (17:45 +0000)]
Merge "Accounts: Fix TokenCache maps access"

6 years agoMerge "Update the RTT features constant."
Treehugger Robot [Tue, 6 Mar 2018 16:07:16 +0000 (16:07 +0000)]
Merge "Update the RTT features constant."

6 years agoMerge "Camera: Fix map access"
Treehugger Robot [Tue, 6 Mar 2018 16:04:24 +0000 (16:04 +0000)]
Merge "Camera: Fix map access"

6 years agoRemove com.android.internal{.util} from generated documentation.
Tobias Thierer [Mon, 5 Mar 2018 22:55:32 +0000 (22:55 +0000)]
Remove com.android.internal{.util} from generated documentation.

com.android.internal.* is meant to be hidden from documentation,
but most of it is erroneously not hidden via @hide or -hidePackage
directives; why documentation is currently generated for Predicate
but not other classes from com.android.internal.util, and why some
but not all classes from that package show up in package-level
documentation (package-summary.html), is not currently understood.

There appears to be a behavior difference between OpenJDK 8 and
OpenJDK 9's javadoc that results in additional classes showing up
in package-summary.html. This CL fixes this by adding -hidePackage
directives for com.android.internal{.util}; other sub-packages of
com.android.internal do not currently show up in documentation and
are not touched by this CL.

Test: Patched this CL into the internal-master branch and ran:
      USE_R8=true EXPERIMENTAL_USE_OPENJDK9=true make offline-sdk-docs
      Checked that this removes all documentation for com.*
      (com.android.internal.util was the only com.* package for which
      documentation was previously generated).
      In other words: Before this CL, [1] existed, but after
      this CL, the entire directory subtree [2] does not exist.
Test: Checked that Predicate was already missing from stubs before this
      CL. In other words, [3] already did not exist before this CL.

[1] out/target/common/docs/offline-sdk/reference/com/android/internal/util/Predicate.html
[2] out/target/common/docs/offline-sdk/reference/com
[3] out/target/common/obj/JAVA_LIBRARIES/android_system_stubs_current_intermediates/classes/com

Bug: 69736344
Bug: 69736236

Change-Id: I3243e2820348c338a54e42c72d29bed71389a6c4

6 years agoAdd new 'explicit GC' policy to StrictMode.
Pete Gillin [Thu, 15 Feb 2018 17:17:27 +0000 (17:17 +0000)]
Add new 'explicit GC' policy to StrictMode.

This change adds the policy but offers no public way to enable it. A
follow-up change will expose the detect/permit methods in the API and
change detectAll to enable it.

This new policy can only be triggered through the libcore BlockGuard API.

Bug: 3400644
Test: cts-tradefed run cts-dev -m CtsLibcoreTestCases
Test: cts-tradefed run cts-dev -m CtsOsTestCases
Change-Id: I2e7f34ce010c78d6a5a7ac85512c045bfb13d204
Merged-In: Ieebe4db747902246968d6382bbc9cee0e539af85

6 years agoMerge "Minor cleanups to NetworkStats interface tracking."
Lorenzo Colitti [Tue, 6 Mar 2018 07:28:20 +0000 (07:28 +0000)]
Merge "Minor cleanups to NetworkStats interface tracking."
am: 6455e31b76

Change-Id: I84aad4b9815196e0362d6adba34359a260853f46

6 years agoMerge "Add an app-ops check when registering for location"
Hall Liu [Tue, 6 Mar 2018 07:17:02 +0000 (07:17 +0000)]
Merge "Add an app-ops check when registering for location"
am: b376f02260

Change-Id: I5a41e4080088ac1a62d67f18649ca44ddf0eed9c

6 years agoMerge "Allow null subscriberId in NetworkStatsManager."
Remi NGUYEN VAN [Tue, 6 Mar 2018 06:52:35 +0000 (06:52 +0000)]
Merge "Allow null subscriberId in NetworkStatsManager."

6 years agoCamera: Fix map access
Andreas Gampe [Tue, 6 Mar 2018 01:30:50 +0000 (17:30 -0800)]
Camera: Fix map access

Found by Errorprone.

Bug: 73288226
Test: m javac-check-SmartCamera RUN_ERROR_PRONE
Change-Id: I6f6105f5d4a6ed5d28262bcdcd83764e6e8d5544

6 years agoMerge "Connectivity: Fix map access"
Treehugger Robot [Tue, 6 Mar 2018 05:39:39 +0000 (05:39 +0000)]
Merge "Connectivity: Fix map access"

6 years agoAllow null subscriberId in NetworkStatsManager.
Remi NGUYEN VAN [Mon, 5 Mar 2018 09:14:56 +0000 (18:14 +0900)]
Allow null subscriberId in NetworkStatsManager.

Use a MATCH_MOBILE_WILDCARD template to avoid filtering by
subscriberId when querying statistics from NetworkStatsService.

Bug: 74038898
Change-Id: I4b39e7031416cb33b23d89aa36ff0f774eaa942f
Fixes: 74038898
Test: runtest frameworks-net, CTS tests pass

6 years agoAccounts: Fix TokenCache maps access
Andreas Gampe [Tue, 6 Mar 2018 02:25:18 +0000 (18:25 -0800)]
Accounts: Fix TokenCache maps access

Found by Errorprone.

Bug: 73288226
Test: mmma frameworks/base/services
Change-Id: I203745415cbad6fad6f72008fc5632086d2a4505

6 years agoMerge "Minor cleanups to NetworkStats interface tracking."
Treehugger Robot [Tue, 6 Mar 2018 02:18:39 +0000 (02:18 +0000)]
Merge "Minor cleanups to NetworkStats interface tracking."

6 years agoMerge "Add an app-ops check when registering for location"
Hall Liu [Tue, 6 Mar 2018 02:14:45 +0000 (02:14 +0000)]
Merge "Add an app-ops check when registering for location"

6 years agoConnectivity: Fix map access
Andreas Gampe [Tue, 6 Mar 2018 01:23:07 +0000 (17:23 -0800)]
Connectivity: Fix map access

Found by Errorprone.

Bug: 73288226
Test: mmma frameworks/base/services
Change-Id: I63edad58dbc909c1e772bde85a1b9dd98c551fb1

6 years agoMerge "Bluetooth: Use enums for adapter connection states"
Jack He [Tue, 6 Mar 2018 01:02:52 +0000 (01:02 +0000)]
Merge "Bluetooth: Use enums for adapter connection states"
am: 95372e873e

Change-Id: Iab73a463f99de6113146b6541babe95b512ebbfa

6 years agoMerge "DO NOT MERGE Dummy StatsLog class"
Tej Singh [Tue, 6 Mar 2018 00:50:33 +0000 (00:50 +0000)]
Merge "DO NOT MERGE Dummy StatsLog class"
am: 84bda3a709  -s ours

Change-Id: If6a663dc3b9abe19a2cfb18ab5688b401bd2f624

6 years agoMerge "API review: rename CarrierIdentification to Carrier id"
Chen Xu [Tue, 6 Mar 2018 00:40:19 +0000 (00:40 +0000)]
Merge "API review: rename CarrierIdentification to Carrier id"
am: f01600d5f9

Change-Id: Ic75f2037d277ccce95b24003b152159c9c37e4fc

6 years agoMerge "Bluetooth: Enable Multi-A2DP/HFP support for up to 5 devices"
Jack He [Tue, 6 Mar 2018 00:35:28 +0000 (00:35 +0000)]
Merge "Bluetooth: Enable Multi-A2DP/HFP support for up to 5 devices"
am: 6ec103c746

Change-Id: I65f257023b7cdc245236e9804f2c0859f4ee1601

6 years agoMerge "Move SignalDrawable to SettingsLib so every can enjoy it"
Evan Laird [Tue, 6 Mar 2018 00:32:49 +0000 (00:32 +0000)]
Merge "Move SignalDrawable to SettingsLib so every can enjoy it"
am: 2fa0f7964f

Change-Id: Id4b60a36c89736fe49e84d4748b4ed643cd21816

6 years agoRemove toString() for CarrierIdentifier.
Holly Jiuyu Sun [Tue, 6 Mar 2018 00:07:37 +0000 (16:07 -0800)]
Remove toString() for CarrierIdentifier.

We may get NPE if mCarrierIdentifier is null. + should convert it to
string by itself.

Test: test on phone
Change-Id: Ibd352d6d2a9b0cb33a494d108eb0d3a7c1dbc61b

6 years agoMerge "Bluetooth: Use enums for adapter connection states"
Treehugger Robot [Mon, 5 Mar 2018 23:16:21 +0000 (23:16 +0000)]
Merge "Bluetooth: Use enums for adapter connection states"

6 years agoMerge "DO NOT MERGE Dummy StatsLog class"
Treehugger Robot [Mon, 5 Mar 2018 23:14:48 +0000 (23:14 +0000)]
Merge "DO NOT MERGE Dummy StatsLog class"

6 years agoMerge "API review: rename CarrierIdentification to Carrier id"
Chen Xu [Mon, 5 Mar 2018 22:59:21 +0000 (22:59 +0000)]
Merge "API review: rename CarrierIdentification to Carrier id"

6 years agoMerge "Bluetooth: Enable Multi-A2DP/HFP support for up to 5 devices"
Treehugger Robot [Mon, 5 Mar 2018 20:32:37 +0000 (20:32 +0000)]
Merge "Bluetooth: Enable Multi-A2DP/HFP support for up to 5 devices"

6 years agoMerge "Move SignalDrawable to SettingsLib so every can enjoy it"
Treehugger Robot [Mon, 5 Mar 2018 20:10:37 +0000 (20:10 +0000)]
Merge "Move SignalDrawable to SettingsLib so every can enjoy it"

6 years agoAdd an app-ops check when registering for location
Hall Liu [Sat, 3 Mar 2018 01:44:46 +0000 (17:44 -0800)]
Add an app-ops check when registering for location

In TelephonyRegistry, check to make sure that the user hasn't turned off
the app-ops bit when an app tries to register for location-based updates

Change-Id: I51360fe772d9c3f8c2c9628dba28acc009ee6173
Fixes: 73558651
Test: manual, using testapp

6 years agoBluetooth: Use enums for adapter connection states
Jack He [Fri, 2 Mar 2018 21:11:27 +0000 (13:11 -0800)]
Bluetooth: Use enums for adapter connection states

Bug: 69478930
Test: make, no user visible change
Change-Id: I999d0c445fe3b24aca72961c40c3428901542bc1

6 years agoMerge "Fail if the interface is not available when starting"
Erik Kline [Mon, 5 Mar 2018 15:05:08 +0000 (15:05 +0000)]
Merge "Fail if the interface is not available when starting"
am: b331b02da9

Change-Id: If9a8b1bc88b7358919d67f0ebaf01115bd1af69e

6 years agoTelephony(MSIM): Default NW mode property for each slot
Sandeep Gutta [Wed, 16 Mar 2016 16:07:25 +0000 (21:37 +0530)]
Telephony(MSIM): Default NW mode property for each slot

For dual SIM devices, add provision to configure different default
Network modes for each slot, using the existing system property to
configure this default network modes.

Bug: 28384694
Test: manual - Checked different default NW mode can be set
for each slot.
Change-Id: I72b11522cb51a425e28ddc407014387a20cb2cd7

6 years agoMerge "Fail if the interface is not available when starting"
Erik Kline [Mon, 5 Mar 2018 12:39:28 +0000 (12:39 +0000)]
Merge "Fail if the interface is not available when starting"

6 years agoFail if the interface is not available when starting
Erik Kline [Fri, 2 Mar 2018 07:51:13 +0000 (16:51 +0900)]
Fail if the interface is not available when starting

Addresses a long-standing TODO.  Now, when calling IpClient's
startProvisioning(), the interface has to be available (i.e.
InterfaceParams#getByName() must return non-null).

Also:
    - add a test
    - refactor for testability
    - delete some constructors no longer used
    - properly handle passed-in null IpClient.Callback
    - some more IpManager -> IpClient renaming
    - permit recording metrics before starting a provisioning
      attempt (logging immediate errors) without Log.wtf().

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks/opt/net/wifi/tests/wifitests/runtests.sh passes
    - runtest frameworks-net passes
    - basic WiFi IpClient connections works fine
Bug: 62476366
Bug: 73487570
Change-Id: Ic83ad2a65637277dcb273feb27b2d1bb7a11eb2b

6 years agoMerge "Add DNS_TETHER to the list of UIDs in the framework."
Lorenzo Colitti [Mon, 5 Mar 2018 09:46:59 +0000 (09:46 +0000)]
Merge "Add DNS_TETHER to the list of UIDs in the framework."
am: 0b8d55e633

Change-Id: I2162a009968c1bcfbfc32a41f14c0e7cad81a8a7

6 years agoMerge "Add DNS_TETHER to the list of UIDs in the framework."
Treehugger Robot [Mon, 5 Mar 2018 07:40:36 +0000 (07:40 +0000)]
Merge "Add DNS_TETHER to the list of UIDs in the framework."

6 years agoMinor cleanups to NetworkStats interface tracking.
Lorenzo Colitti [Tue, 27 Feb 2018 13:47:01 +0000 (22:47 +0900)]
Minor cleanups to NetworkStats interface tracking.

Currently, when a network goes into CONNECTED state, we call
updateLinkProperties and then notifyIfacesChangedForNetworkStats.
The latter is unnecessary, as there are exactly two cases:

1. networkAgent.linkProperties != null: updateLinkProperties will
   call notifyIfacesChangedForNetworkStats, because oldLp is null
   and networkAgent.linkProperties is not null.
2. networkAgent.linkProperties is null: there is no need to call
   notifyIfacesChangedForNetworkStats, because no interfaces were
   added or removed. When they are, updateLinkProperties will be
   called again.

Removing the call to notifyIfacesChangedForNetworkStats avoids
a stats poll, which is a minor performance improvement.

Also, remove the NetworkStatsService code to do asynchronous
interface updates, since it has no callers.

Bug: 72107146
Test: builds, boots
Test: runtest frameworks-net
Change-Id: I9337ea26c0505a1c66ceda01254b68e25cd7972c

6 years agoBluetooth: Enable Multi-A2DP/HFP support for up to 5 devices
Jack He [Wed, 28 Feb 2018 03:34:49 +0000 (19:34 -0800)]
Bluetooth: Enable Multi-A2DP/HFP support for up to 5 devices

* Set config_bluetooth_max_connected_audio_devices to 5

Bug: 64767509
Test: runtest -j32 bluetooth
      connect and disconnect to multiple headsets and car kits
      TestTracker/146725

Change-Id: I211c5683490fd4be00d3379e11e843081c6fb3a6

6 years agoMerge "Add config to show an alert dialog for video charges"
Masaho Nishikawa [Sat, 3 Mar 2018 06:39:45 +0000 (06:39 +0000)]
Merge "Add config to show an alert dialog for video charges"
am: 1451124f86

Change-Id: Idf89d421f3716dc00af97877d19d81445dd63f44

6 years agoMerge changes from topics "cdma-null-island", "cdma-signal-strength"
nharold [Sat, 3 Mar 2018 04:55:01 +0000 (04:55 +0000)]
Merge changes from topics "cdma-null-island", "cdma-signal-strength"
am: d5ba391425

Change-Id: I1cd2ae9a3110f6c49cacfc3137c009a1e04227ea

6 years agoMerge "Add config to show an alert dialog for video charges"
Treehugger Robot [Sat, 3 Mar 2018 03:30:19 +0000 (03:30 +0000)]
Merge "Add config to show an alert dialog for video charges"

6 years agoMerge changes from topics "cdma-null-island", "cdma-signal-strength"
nharold [Sat, 3 Mar 2018 03:14:22 +0000 (03:14 +0000)]
Merge changes from topics "cdma-null-island", "cdma-signal-strength"

* changes:
  Set CDMA Location to Invalid if on Null Island
  Fix Range-Checking in CellSignalStrengthCdma
  Fix CDMA Range Checks for SignalStrength

6 years agoMerge "Expose Carrier Name Override CarrierConfig Values"
nharold [Sat, 3 Mar 2018 02:33:59 +0000 (02:33 +0000)]
Merge "Expose Carrier Name Override CarrierConfig Values"
am: a60e42cc2d

Change-Id: I38b27197171009958ed362a83a119b9de3af2adf

6 years agoAddress the API review comments.
yinxu [Wed, 28 Feb 2018 23:43:42 +0000 (15:43 -0800)]
Address the API review comments.

Bug:73750871
Test: Unit Test
Change-Id: I8ebb617c819c7604957b3c086098ef5074d70f78

6 years agoMerge "Expose Carrier Name Override CarrierConfig Values"
nharold [Sat, 3 Mar 2018 00:11:29 +0000 (00:11 +0000)]
Merge "Expose Carrier Name Override CarrierConfig Values"

6 years agoMerge "Expand use of 'Str' suffix in CellIdentity to 'String'"
Cassie Han [Fri, 2 Mar 2018 23:55:58 +0000 (23:55 +0000)]
Merge "Expand use of 'Str' suffix in CellIdentity to 'String'"
am: d622eacb9e

Change-Id: Ibe0c44df14dfa60855d513a85e76d8eef63d25a8

6 years agoMerge "Extend network request to query networks w/o capabilites"
Pavel Maltsev [Fri, 2 Mar 2018 23:52:18 +0000 (23:52 +0000)]
Merge "Extend network request to query networks w/o capabilites"
am: d846adac83

Change-Id: Id1d86938fa2d5aff4dbf9cde87548d80c76674d9

6 years agoAPI Documentation and Constant cleanup.
Tyler Gunn [Fri, 2 Mar 2018 23:45:51 +0000 (15:45 -0800)]
API Documentation and Constant cleanup.

1. Update handover API docs for clarity.
2. Added an unknown value per API review comments.
3. Renamed HANDOVER_FAILURE_DEST_USER_REJECTED to
HANDOVER_FAILURE_USER_REJECTED
3. Removed the HANDOVER_FAILURE_DEST_INVALID_PERM constant since it isn't
used (methods which deal with permissions throw security exceptions).

Test: Make doc and verify documentation.
Change-Id: Id21d6b4c83d5c773ab38d78eb6b1886a1ac4dadf
Fixes: 73751004
Fixes: 73750515
Fixes: 73750817

6 years agoCustomize the WCDMA signal strength based on RSCP
Tomita, Ryounosuke X [Wed, 13 Dec 2017 09:46:12 +0000 (18:46 +0900)]
Customize the WCDMA signal strength based on RSCP

Determines the the display level of WCDMA signal bar based on RSCP
according to carrier config.

Test: manual - Checked that the WCDMA signal bar thresholds can be
controlled by carrier config.
Test: auto - Passed SignalStrengthTest and ServiceStateTrackerTest
Bug: 71329173
Change-Id: Ib9e1c29fbe3553d1cc6695953be1c33daf260627

6 years agoAPI review: rename CarrierIdentification to Carrier id
fionaxu [Wed, 28 Feb 2018 19:18:45 +0000 (11:18 -0800)]
API review: rename CarrierIdentification to Carrier id

Bug: 73953797
Test: unit test
Change-Id: Id89c9100e8963a3cb890ebec347e4aabcd5fd4b8

6 years agoMerge "Add result code for eUICC card not found."
Holly Jiuyu Sun [Fri, 2 Mar 2018 23:21:13 +0000 (23:21 +0000)]
Merge "Add result code for eUICC card not found."
am: 45277c7aca

Change-Id: Ib3ee5ff8cfcc18ac6a9e616e34ef778fe59b111c

6 years agoMerge "Expand use of 'Str' suffix in CellIdentity to 'String'"
Cassie Han [Fri, 2 Mar 2018 22:15:56 +0000 (22:15 +0000)]
Merge "Expand use of 'Str' suffix in CellIdentity to 'String'"

6 years agoDO NOT MERGE Dummy StatsLog class
Tej Singh [Fri, 2 Mar 2018 02:22:55 +0000 (18:22 -0800)]
DO NOT MERGE Dummy StatsLog class

This is a dummy class that provides StatsLog.write methods and
appropriate constants to log atoms in aosp.

Test: build success on Marlin
Change-Id: I606bc8a96337ced842eb7a2bcba8c4969c9d4748