OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Rename some failed causes"
Paul Hu [Fri, 15 Mar 2019 00:56:12 +0000 (17:56 -0700)]
Merge "Rename some failed causes"
am: f6382802ef

Change-Id: I01b6d267c4b2cbf23d6cdc2dea770f5da99fa155

5 years agoMerge "Rename some failed causes"
Paul Hu [Fri, 15 Mar 2019 00:43:42 +0000 (00:43 +0000)]
Merge "Rename some failed causes"

5 years agoMerge "Avoid IllegalArgumentException when bluetooth is disabled"
Deqiang Chen [Thu, 14 Mar 2019 22:41:33 +0000 (15:41 -0700)]
Merge "Avoid IllegalArgumentException when bluetooth is disabled"
am: 2a1bdd2429

Change-Id: I536b4ca701bed102c5c2914a6dbfa2393a646c6d

5 years agoMerge "Avoid IllegalArgumentException when bluetooth is disabled"
Deqiang Chen [Thu, 14 Mar 2019 22:23:18 +0000 (22:23 +0000)]
Merge "Avoid IllegalArgumentException when bluetooth is disabled"

5 years agoMerge "Explain the difference of isValid, isActive, isUsable"
Shuo Qian [Thu, 14 Mar 2019 22:20:03 +0000 (15:20 -0700)]
Merge "Explain the difference of isValid, isActive, isUsable"
am: 9c649215f6

Change-Id: I8146a074fa87747e91a22da4a4bfb696dcc7deef

5 years agoMerge "Explain the difference of isValid, isActive, isUsable"
Shuo Qian [Thu, 14 Mar 2019 22:05:46 +0000 (22:05 +0000)]
Merge "Explain the difference of isValid, isActive, isUsable"

5 years agoExplain the difference of isValid, isActive, isUsable
sqian [Tue, 30 Oct 2018 20:55:23 +0000 (13:55 -0700)]
Explain the difference of isValid, isActive, isUsable

Bug: 118675257
Test: compile
Change-Id: Ibec1bf7929991ca0e2910684f5216ab8372d4e95

5 years agoMerge "Add MANAGE_TEST_NETWORKS permission as @hide"
Benedict Wong [Thu, 14 Mar 2019 17:59:14 +0000 (10:59 -0700)]
Merge "Add MANAGE_TEST_NETWORKS permission as @hide"
am: 96f51fd970

Change-Id: Ia5e9f3e7ba7024151d0f4fa595bf66daaa0fc948

5 years agoMerge "Add MANAGE_TEST_NETWORKS permission as @hide"
Benedict Wong [Thu, 14 Mar 2019 17:39:21 +0000 (17:39 +0000)]
Merge "Add MANAGE_TEST_NETWORKS permission as @hide"

5 years agoMerge "Add a whitelist to control packages that can use Bugreporting API"
Nikita Ioffe [Thu, 14 Mar 2019 10:23:08 +0000 (03:23 -0700)]
Merge "Add a whitelist to control packages that can use Bugreporting API"
am: 17492d0691

Change-Id: If224c6522c89c53cb1d5e72a55d5aa051a4e0d02

5 years agoMerge "Add a whitelist to control packages that can use Bugreporting API"
Treehugger Robot [Thu, 14 Mar 2019 10:13:32 +0000 (10:13 +0000)]
Merge "Add a whitelist to control packages that can use Bugreporting API"

5 years agoMerge "fix the issue that setPreferredNW send wrong RAT to HAL"
Chen Xu [Thu, 14 Mar 2019 01:04:44 +0000 (18:04 -0700)]
Merge "fix the issue that setPreferredNW send wrong RAT to HAL"
am: 4837dbe536

Change-Id: I33e98b0f4ac9b0d7130b9e6b25fec5b76409e021

5 years agoMerge "fix the issue that setPreferredNW send wrong RAT to HAL"
Chen Xu [Thu, 14 Mar 2019 00:47:07 +0000 (00:47 +0000)]
Merge "fix the issue that setPreferredNW send wrong RAT to HAL"

5 years agoMerge "Add me to owners for batterystats."
Joe Onorato [Wed, 13 Mar 2019 22:01:44 +0000 (15:01 -0700)]
Merge "Add me to owners for batterystats."
am: 274ce2d831

Change-Id: I778b676a418817917421fc0794793131e5fd5d3f

5 years agoMerge "Should return the number of supported SIM cards"
Iris Chang [Wed, 13 Mar 2019 21:57:06 +0000 (14:57 -0700)]
Merge "Should return the number of supported SIM cards"
am: 09a4ee1988

Change-Id: Ia8d237fa510ca47c4fcd04a7d28812612e01d248

5 years agoMerge "Add me to owners for batterystats."
Treehugger Robot [Wed, 13 Mar 2019 21:45:28 +0000 (21:45 +0000)]
Merge "Add me to owners for batterystats."

5 years agoMerge "Fix issues associated with hold failure"
Hall Liu [Wed, 13 Mar 2019 21:32:28 +0000 (14:32 -0700)]
Merge "Fix issues associated with hold failure"
am: df6e5604f3

Change-Id: I0c3ca2ef55a67b1f2c00f19635dcfd8ed0bbedea

5 years agoMerge "Should return the number of supported SIM cards"
Treehugger Robot [Wed, 13 Mar 2019 21:18:57 +0000 (21:18 +0000)]
Merge "Should return the number of supported SIM cards"

5 years agoMerge "Fix issues associated with hold failure"
Hall Liu [Wed, 13 Mar 2019 21:18:53 +0000 (21:18 +0000)]
Merge "Fix issues associated with hold failure"

5 years agoMerge "Use jarjar rules for framework.jar."
Steven Moreland [Wed, 13 Mar 2019 21:06:12 +0000 (14:06 -0700)]
Merge "Use jarjar rules for framework.jar."
am: b70a6cbf9a

Change-Id: I85027c5a87f9acd2c67a804bcfe8c3f7346fdbc3

5 years agoMerge "Use jarjar rules for framework.jar."
Steven Moreland [Wed, 13 Mar 2019 20:52:37 +0000 (20:52 +0000)]
Merge "Use jarjar rules for framework.jar."

5 years agofix the issue that setPreferredNW send wrong RAT to HAL
chen xu [Wed, 13 Mar 2019 20:26:39 +0000 (13:26 -0700)]
fix the issue that setPreferredNW send wrong RAT to HAL

Bug: 126805258
Test: Manual test to set LTE only mode
Change-Id: I2e88d3bc22ca8d1e626bf381840cc80f832a8b3f

5 years agoAdd me to owners for batterystats.
Joe Onorato [Wed, 13 Mar 2019 19:11:05 +0000 (12:11 -0700)]
Add me to owners for batterystats.

I do solemnly swear that other powers I get incidentally will be
used carefully.

Test: none
Bug: 123732427
Change-Id: I672f5f10b32646b8beb3e9692ed131019c391593

5 years ago[automerger skipped] Merge "DO NOT MERGE Let isLocationEnabledForUser() return true...
Soonil Nagarkar [Wed, 13 Mar 2019 19:03:30 +0000 (12:03 -0700)]
[automerger skipped] Merge "DO NOT MERGE Let isLocationEnabledForUser() return true location setting"
am: a4dac05210 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie3e765b2be88f06a3c97da4371f87b6c62a87f81

5 years agoMerge "DO NOT MERGE Let isLocationEnabledForUser() return true location setting"
Treehugger Robot [Wed, 13 Mar 2019 18:52:35 +0000 (18:52 +0000)]
Merge "DO NOT MERGE Let isLocationEnabledForUser() return true location setting"

5 years agoMerge "Add alanstokes as owner of DynamicCodeLoggingService."
Alan Stokes [Wed, 13 Mar 2019 18:13:32 +0000 (11:13 -0700)]
Merge "Add alanstokes as owner of DynamicCodeLoggingService."
am: b9478c48cf

Change-Id: I89f934fcf528cc30e09c9920d12d1b30d4ac5041

5 years agoMerge "Add alanstokes as owner of DynamicCodeLoggingService."
Treehugger Robot [Wed, 13 Mar 2019 18:01:46 +0000 (18:01 +0000)]
Merge "Add alanstokes as owner of DynamicCodeLoggingService."

5 years agoMerge "Annotate Parcelable CREATOR fields as @NonNull"
Leland Miller [Wed, 13 Mar 2019 17:35:32 +0000 (10:35 -0700)]
Merge "Annotate Parcelable CREATOR fields as @NonNull"
am: 8ced10ec23

Change-Id: I89a5c242a85c0e0d19f98fc5db9fa87b0a48815a

5 years agoMerge "Annotate Parcelable CREATOR fields as @NonNull"
Leland Miller [Wed, 13 Mar 2019 17:23:12 +0000 (17:23 +0000)]
Merge "Annotate Parcelable CREATOR fields as @NonNull"

5 years agoMerge changes from topic "hidl-updater-system"
Steven Moreland [Wed, 13 Mar 2019 17:11:57 +0000 (10:11 -0700)]
Merge changes from topic "hidl-updater-system"
am: 5a490d4bb7

Change-Id: I1fe4f587bb5f7452752ea3c7fc23635fb4a8aee2

5 years agoAdd a whitelist to control packages that can use Bugreporting API
Nikita Ioffe [Thu, 28 Feb 2019 21:35:02 +0000 (21:35 +0000)]
Add a whitelist to control packages that can use Bugreporting API

Test: checked SecurityException is thrown for my custom app
Test: whiltelisted my custom app, checked no SecurityException is thrown
Bug: 126541701
Change-Id: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
Merged-In: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
(cherry picked from commit 07964b49ac81b9955d9ecf5cf60c0bb1fc32c501)

5 years agoMerge changes from topic "hidl-updater-system"
Steven Moreland [Wed, 13 Mar 2019 16:51:30 +0000 (16:51 +0000)]
Merge changes from topic "hidl-updater-system"

* changes:
  pm: AndroidHidlUpdater: system only
  pm: PackageBackwardCompatibility -> applyPolicy

5 years agoMerge "Add Nullable annotation to getDecorView"
Siarhei Vishniakou [Wed, 13 Mar 2019 16:29:55 +0000 (09:29 -0700)]
Merge "Add Nullable annotation to getDecorView"
am: a018254b45

Change-Id: I50847403490455560f6c7db41db494bab3bc44f8

5 years agoMerge "Add Nullable annotation to getDecorView"
Treehugger Robot [Wed, 13 Mar 2019 16:09:00 +0000 (16:09 +0000)]
Merge "Add Nullable annotation to getDecorView"

5 years agoMerge "Remove support for event-based handovers."
Tyler Gunn [Wed, 13 Mar 2019 15:17:56 +0000 (08:17 -0700)]
Merge "Remove support for event-based handovers."
am: b2c1daf861

Change-Id: I03aea3dffd4a7d1af24d281826f87945441d6d14

5 years agoMerge "Remove support for event-based handovers."
Tyler Gunn [Wed, 13 Mar 2019 15:07:06 +0000 (15:07 +0000)]
Merge "Remove support for event-based handovers."

5 years agoMerge "Clean up bugreport API."
Abhijeet Kaur [Wed, 13 Mar 2019 14:20:42 +0000 (07:20 -0700)]
Merge "Clean up bugreport API."
am: 2e44838064

Change-Id: Ib21ecea8a3dc63808784aba20f018ddd012c03c8

5 years agoMerge "Clean up bugreport API."
Treehugger Robot [Wed, 13 Mar 2019 14:07:43 +0000 (14:07 +0000)]
Merge "Clean up bugreport API."

5 years agoMerge "Improve documentation around HostnameVerifier"
Neil Fuller [Wed, 13 Mar 2019 13:36:30 +0000 (06:36 -0700)]
Merge "Improve documentation around HostnameVerifier"
am: abff3f4f21

Change-Id: I7f61ebc9aa41190b6d1508fb3c511c066d3a269c

5 years agoMerge "Improve documentation around HostnameVerifier"
Neil Fuller [Wed, 13 Mar 2019 13:26:02 +0000 (13:26 +0000)]
Merge "Improve documentation around HostnameVerifier"

5 years agoMerge "Refactor OWNERS file."
Alan Stokes [Wed, 13 Mar 2019 12:44:08 +0000 (05:44 -0700)]
Merge "Refactor OWNERS file."
am: e27b409046

Change-Id: Ibd472d9389bd3892e0e796b284849328aae13517

5 years agoAdd alanstokes as owner of DynamicCodeLoggingService.
Alan Stokes [Tue, 12 Mar 2019 12:51:13 +0000 (12:51 +0000)]
Add alanstokes as owner of DynamicCodeLoggingService.

As suggested by agampe on I69f415929785845ede8f2d1341f4b70f97b4f480.

Test: None.
Change-Id: Ibaac6f5d96ad9b9a343ba8940345bc7d0c8126d9

5 years agoMerge "Refactor OWNERS file."
Alan Stokes [Wed, 13 Mar 2019 12:33:03 +0000 (12:33 +0000)]
Merge "Refactor OWNERS file."

5 years agoClean up bugreport API.
Abhijeet Kaur [Fri, 8 Mar 2019 11:00:29 +0000 (11:00 +0000)]
Clean up bugreport API.

Make BugreportManager class final.

Add FloatRange annotation for BugreportManager.onProgress() function's
parameter.

Make @IntDef in BugreportMode hidden.

Bug: 126434607
Test: builds
Change-Id: I95f004106ba97bc9e99859a8b23b96a86b6a43f4
Merged-In: I95f004106ba97bc9e99859a8b23b96a86b6a43f4

5 years agoMerge "continue read file when returned count > 0"
Ganesh Mahendran [Wed, 13 Mar 2019 07:59:30 +0000 (00:59 -0700)]
Merge "continue read file when returned count > 0"
am: 894c578a02

Change-Id: I43f5be6a4b365e2e7ea11ae413860d9cb0c37949

5 years agoShould return the number of supported SIM cards
Iris Chang [Wed, 13 Mar 2019 07:40:43 +0000 (15:40 +0800)]
Should return the number of supported SIM cards

When multiple SIM is enabled, getSimCount() in TelephonyManager.java
just returns 2 and it is not consistent with getPhoneCount(). For
devices which support more than 2 SIMs, it will cause
ArrayIndexOutOfBoundsException in the getInstance() function of CatService.java
when thress SIMs are present. To fix this issue, we need to return
the phone count in getSimCount() to synchronize both APIs.

Bug: 126292874
Test: check if JE is fixed on a device which supports 3 SIMs
Change-Id: I227f7d05349c1d0cf4c8bfa46c4e3b5f9bd42be9

5 years agoMerge "continue read file when returned count > 0"
Treehugger Robot [Wed, 13 Mar 2019 07:36:51 +0000 (07:36 +0000)]
Merge "continue read file when returned count > 0"

5 years agoMerge "Support partial connectivity probe result option"
Chiachang Wang [Wed, 13 Mar 2019 06:58:20 +0000 (23:58 -0700)]
Merge "Support partial connectivity probe result option"
am: da0ebedb47

Change-Id: Ia1696b640abd50b8a1e03cc6817c8e339e8ad104

5 years agoMerge "Support partial connectivity probe result option"
Chiachang Wang [Wed, 13 Mar 2019 06:49:03 +0000 (06:49 +0000)]
Merge "Support partial connectivity probe result option"

5 years agoMerge "Call notifyStartupCompleted from reportFullyDrawn"
Mathieu Chartier [Wed, 13 Mar 2019 05:44:04 +0000 (22:44 -0700)]
Merge "Call notifyStartupCompleted from reportFullyDrawn"
am: 13f15b3752

Change-Id: I6c293f77639421a5517e0c56391e60982ce8ce31

5 years agoMerge "Rename entitlement callback to adhere to API guidelines."
Jeremy Klein [Wed, 13 Mar 2019 05:39:53 +0000 (22:39 -0700)]
Merge "Rename entitlement callback to adhere to API guidelines."
am: 0102e3d548

Change-Id: If58d5724000fba5e1d794a98ccc89b73ce842f4a

5 years agoMerge "Only return one mobile subscription per group in Settings."
Xiangyu/Malcolm Chen [Wed, 13 Mar 2019 05:35:39 +0000 (22:35 -0700)]
Merge "Only return one mobile subscription per group in Settings."
am: 58385e9796

Change-Id: I2133bd9ba315a862a25fdd65afd981cbe34d5e62

5 years agoMerge "Add @NonNull annotations to LE CoC APIs"
Stanley Tng [Wed, 13 Mar 2019 05:30:47 +0000 (22:30 -0700)]
Merge "Add @NonNull annotations to LE CoC APIs"
am: 8b57ab7989

Change-Id: I16c1d5c6c7c31b0c96172f0baaed361eae8f4a5e

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into master"
Xin Li [Wed, 13 Mar 2019 05:17:07 +0000 (22:17 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into master"
am: a5fe44c6b5 -s ours
am skip reason: subject contains skip directive

Change-Id: I1ef13e9b82d2f5b55a603c00105fbc6fb392dcc8

5 years agoMerge "Call notifyStartupCompleted from reportFullyDrawn"
Mathieu Chartier [Wed, 13 Mar 2019 05:02:58 +0000 (05:02 +0000)]
Merge "Call notifyStartupCompleted from reportFullyDrawn"

5 years agoCall notifyStartupCompleted from reportFullyDrawn
Mathieu Chartier [Thu, 7 Mar 2019 17:05:44 +0000 (09:05 -0800)]
Call notifyStartupCompleted from reportFullyDrawn

ART will now know when startup is startup is finished.

Test: manual
Bug: 120671223
Bug: 123377072

(cherry-picked from commit 63e14c10b3f7b2c9709b98cb9f128a2a817d4968)

Merged-In: I1134f66792bddc9ab33606fa4c2807b3918d5261
Change-Id: I1134f66792bddc9ab33606fa4c2807b3918d5261

5 years agoMerge "Rename entitlement callback to adhere to API guidelines."
Treehugger Robot [Wed, 13 Mar 2019 04:48:24 +0000 (04:48 +0000)]
Merge "Rename entitlement callback to adhere to API guidelines."

5 years ago[automerger skipped] DO NOT MERGE - Merge PPRL.190305.001 into master
Xin Li [Wed, 13 Mar 2019 04:44:30 +0000 (21:44 -0700)]
[automerger skipped] DO NOT MERGE - Merge PPRL.190305.001 into master
am: 3e112d56a4 -s ours
am skip reason: subject contains skip directive

Change-Id: Id7415c8795196d717dbb4093e2d060a951c0de03

5 years agoMerge "Tell the factory it is already serving a request."
Chalard Jean [Wed, 13 Mar 2019 04:42:18 +0000 (21:42 -0700)]
Merge "Tell the factory it is already serving a request."
am: ae79013ec2

Change-Id: I4c3948c2e7098668cf881d3f31fda87be1250828

5 years agoMerge "Temporarily disable flaky test."
Ian Kasprzak [Wed, 13 Mar 2019 04:38:43 +0000 (21:38 -0700)]
Merge "Temporarily disable flaky test."
am: 3fb5ba9e61

Change-Id: Ie482f459c2f8bce40098657daa39efccfdf2bcd3

5 years agoMerge "Schematize Crypto state system property"
Kiyoung Kim [Wed, 13 Mar 2019 04:33:34 +0000 (21:33 -0700)]
Merge "Schematize Crypto state system property"
am: 88b57a2c4d

Change-Id: Idb96ab95b1ea69a636f315edeb84c8ba025d75bd

5 years agoMerge "[KA13]: add unit test for exposed TCP socket keepalive API."
Xiao Ma [Wed, 13 Mar 2019 04:29:48 +0000 (21:29 -0700)]
Merge "[KA13]: add unit test for exposed TCP socket keepalive API."
am: f1e012ae9b

Change-Id: I79fb97913e8b69c525733dcaec59a60ac6b980b6

5 years agoMerge "add NonNull annotation to API"
Josh Hou [Wed, 13 Mar 2019 04:26:18 +0000 (21:26 -0700)]
Merge "add NonNull annotation to API"
am: 56c9d22970

Change-Id: Iaa22836680e45c4244a4380d9688b968b7877c8e

5 years agoMerge "Only return one mobile subscription per group in Settings."
Xiangyu/Malcolm Chen [Wed, 13 Mar 2019 04:14:14 +0000 (04:14 +0000)]
Merge "Only return one mobile subscription per group in Settings."

5 years agoOnly return one mobile subscription per group in Settings.
Malcolm Chen [Wed, 27 Feb 2019 00:48:40 +0000 (16:48 -0800)]
Only return one mobile subscription per group in Settings.

Right now getSelectableSubscriptionInfoList returns all subscriptions
that are visible and available. But we should only show one per
subscription group. So updating getSelectableSubscriptionInfoList
to make sure of it.

Bug: 126438122
Test: manual - group Fi primary subscriptions and make sure only
one Fi subscription is shown in Settings UI.
Change-Id: I867296b4f8efbdf2e9885ef34dd45806fa0abbca
Merged-In: I867296b4f8efbdf2e9885ef34dd45806fa0abbca

5 years agoMerge "Add @NonNull annotations to LE CoC APIs"
Treehugger Robot [Wed, 13 Mar 2019 02:28:32 +0000 (02:28 +0000)]
Merge "Add @NonNull annotations to LE CoC APIs"

5 years agoAdd @NonNull annotations to LE CoC APIs
Stanley Tng [Tue, 12 Mar 2019 17:19:49 +0000 (10:19 -0700)]
Add @NonNull annotations to LE CoC APIs

Added NonNull annotations to the 4 LE Connection-oriented channel API in
BluetoothDevice and BluetoothAdapter.

Bug: 126701988
Bug: 126701989
Test: Compile only
Change-Id: I2d4dc8fbd06e30c782123e01f8481d249e40ee02

5 years agoMerge "DO NOT MERGE - Merge PPRL.190305.001 into master"
Xin Li [Wed, 13 Mar 2019 02:26:04 +0000 (02:26 +0000)]
Merge "DO NOT MERGE - Merge PPRL.190305.001 into master"

5 years agoMerge "Tell the factory it is already serving a request."
Chalard Jean [Wed, 13 Mar 2019 02:07:29 +0000 (02:07 +0000)]
Merge "Tell the factory it is already serving a request."

5 years agoMerge "Temporarily disable flaky test."
Ian Kasprzak [Wed, 13 Mar 2019 01:52:21 +0000 (01:52 +0000)]
Merge "Temporarily disable flaky test."

5 years agoMerge "Schematize Crypto state system property"
Treehugger Robot [Wed, 13 Mar 2019 01:30:58 +0000 (01:30 +0000)]
Merge "Schematize Crypto state system property"

5 years agoMerge "[KA13]: add unit test for exposed TCP socket keepalive API."
Xiao Ma [Wed, 13 Mar 2019 01:13:08 +0000 (01:13 +0000)]
Merge "[KA13]: add unit test for exposed TCP socket keepalive API."

5 years agoMerge "add NonNull annotation to API"
Josh Hou [Wed, 13 Mar 2019 00:58:21 +0000 (00:58 +0000)]
Merge "add NonNull annotation to API"

5 years agoAdd MANAGE_TEST_NETWORKS permission as @hide
Benedict Wong [Fri, 15 Feb 2019 20:11:17 +0000 (12:11 -0800)]
Add MANAGE_TEST_NETWORKS permission as @hide

This commit adds a new permission for test networks, granted to the
shell permission identity.

Bug: 124519473
Test: In-progress CTS tests
Change-Id: I995b93a66d283b9e37381b616843dd44dbafe319

5 years agoTemporarily disable flaky test.
Lorenzo Colitti [Wed, 13 Mar 2019 00:23:50 +0000 (09:23 +0900)]
Temporarily disable flaky test.

Test: None
Bug: 128426024
Change-Id: Id88bf452f41f512703d5831e357d9ba72dc5b911

5 years agoMerge "Don't return hidden subscription in getActiveSubIdList"
Xiangyu/Malcolm Chen [Tue, 12 Mar 2019 23:12:05 +0000 (16:12 -0700)]
Merge "Don't return hidden subscription in getActiveSubIdList"
am: d2cb5a0608

Change-Id: Ie8d0998a15b2fa905ba5073f47badf51afd1154a

5 years agoMerge "Don't return hidden subscription in getActiveSubIdList"
Xiangyu/Malcolm Chen [Tue, 12 Mar 2019 22:59:00 +0000 (22:59 +0000)]
Merge "Don't return hidden subscription in getActiveSubIdList"

5 years agoMerge "Don't return hidden subscription in getActiveSubscriptionInfoList."
Xiangyu/Malcolm Chen [Tue, 12 Mar 2019 22:55:53 +0000 (15:55 -0700)]
Merge "Don't return hidden subscription in getActiveSubscriptionInfoList."
am: 8cbe957dba

Change-Id: I372f27a1ee10cd46c5f0633586709ee14cd6e070

5 years agoMerge "Revert^3 "Delay start of bootanimation until after the Runtime APEX is mounted.""
Jiyong Park [Tue, 12 Mar 2019 22:49:30 +0000 (15:49 -0700)]
Merge "Revert^3 "Delay start of bootanimation until after the Runtime APEX is mounted.""
am: 1a14dedcce

Change-Id: Ia70c876b6d95074cc8502b3ff1467cb5dc0d4302

5 years agoMerge "Don't return hidden subscription in getActiveSubscriptionInfoList."
Xiangyu/Malcolm Chen [Tue, 12 Mar 2019 22:40:39 +0000 (22:40 +0000)]
Merge "Don't return hidden subscription in getActiveSubscriptionInfoList."

5 years agoMerge "[API Feedback] Rename DebugEventReporter"
Nathan Harold [Tue, 12 Mar 2019 22:38:26 +0000 (15:38 -0700)]
Merge "[API Feedback] Rename DebugEventReporter"
am: 3a6dcad0a3

Change-Id: Iab9ed0e8160b45628286f6236f1bb5f61ecc74cd

5 years agoMerge "Revert^3 "Delay start of bootanimation until after the Runtime APEX is mounted.""
Treehugger Robot [Tue, 12 Mar 2019 22:34:26 +0000 (22:34 +0000)]
Merge "Revert^3 "Delay start of bootanimation until after the Runtime APEX is mounted.""

5 years agoRevert^3 "Delay start of bootanimation until after the Runtime APEX is mounted."
Jiyong Park [Thu, 28 Feb 2019 03:21:16 +0000 (12:21 +0900)]
Revert^3 "Delay start of bootanimation until after the Runtime APEX is mounted."

This reverts commit a6bb8916b057bb619aab2aae5cb07e190e97c79d.

Bootanim doesn't need to be delayed because the APEXes from the system partition are now
activated very early in the boot sequence (far before bootanim is started).

See https://android-review.googlesource.com/q/topic:%22apex_earlymount_base%22+(status:open%20OR%20status:merged)

Bug: 125549215
Test: bootanim is started without being delayed
Change-Id: I367b1a5c6bf08dad770cd2bf7f6d67dbf1a813e6

5 years agoMerge "[API Feedback] Rename DebugEventReporter"
Nathan Harold [Tue, 12 Mar 2019 22:25:46 +0000 (22:25 +0000)]
Merge "[API Feedback] Rename DebugEventReporter"

5 years agoAvoid IllegalArgumentException when bluetooth is disabled
Deqiang Chen [Tue, 12 Mar 2019 21:08:12 +0000 (14:08 -0700)]
Avoid IllegalArgumentException when bluetooth is disabled

When the corresponding profile service is not available on device,
bluetoothA2dp, bluetoothHidHost and bluetoothPbap will report
IllegalArgumentException when bluetooth is disabled. This change avoid
that exception.

Bug: 127359897
Test: local test and observe there is no IllegalArgumentException when
bluetooth is disabled

Change-Id: I457e5225b8710dd5d02c405ef558892e99d1736f
(cherry picked from commit ee8371007b82ff8c6d26e8ac90c6e3d3cf6bf2a8)

5 years agoDO NOT MERGE Let isLocationEnabledForUser() return true location setting
Soonil Nagarkar [Tue, 5 Mar 2019 01:17:22 +0000 (17:17 -0800)]
DO NOT MERGE Let isLocationEnabledForUser() return true location setting

* In API 28, LocationManager#isLocationEnabled() and
  LocationManager#isLocationEnabledForUser(UserHandle) always
  return false when a device has neither LocationManager#GPS_PROVIDER
  nor LocationManager#NETWORK_PROVIDER.
* Instead of letting setLocationEnabled() and isLocationEnabled()
  depend on whether device has GPS or NETWORK location provider, this
  CL changes these two APIs to directly use LOCATION_MODE setting to
  store the location enable state
* Hence when LOCATION_PROVIDERS_ALLOWED contains a provider, the provider
  may be used, but it is not guaranteed to exist
* Settings.java has two workarounds that actually convert:
   - putInt(LOCATION_MODE, LOCATION_MODE_HIGH_ACCURACY)
       => putString(LOCATION_PROVIDERS_ALLOWED, "+gps");
       => putString(LOCATION_PROVIDERS_ALLOWED, "+network");
   - getInt(LOCATION_MODE, LOCATION_MODE_HIGH_ACCURACY)
       => getString(LOCATION_PROVIDERS_ALLOWED):
         - "gps,network" - LOCATION_MODE_HIGH_ACCURACY
         - "gps"         - LOCATION_MODE_SENSORS_ONLY
         - "network"     - LOCATION_MODE_BATTERY_SAVING
 - others        - LOCATION_MODE_OFF
* Hence this is NOT a new behavior

Bug: 121040693
Bug: 118242060
Bug: 127359153
Test: CTS tests,
android.bluetooth.cts.BluetoothLeScanTest#testBasicBleScan,
android.bluetooth.cts.BluetoothLeScanTest#testScanFilter,
android.location.cts.LocationManagerTest,
android.location2.cts.LocationManagerTest
Change-Id: I7972d8f97f4ca82c58c29641a081ef73fdcb106c

5 years agopm: AndroidHidlUpdater: system only
Steven Moreland [Wed, 6 Mar 2019 17:39:27 +0000 (09:39 -0800)]
pm: AndroidHidlUpdater: system only

Backwards compatibility takes a slight performance hit. Only apply this
rule to outdated system apps as they are the only ones that use these
libraries.

Bug: 86259915
Test: boot Pixel 2
Test: boot Pixel 3 and systrace app startup
Test: atest android.content.pm.AndroidHidlUpdaterTest

Change-Id: I2d2e2ca79266a92ba0e4efcf25e31d15daee87a1

5 years agopm: PackageBackwardCompatibility -> applyPolicy
Steven Moreland [Wed, 6 Mar 2019 17:20:37 +0000 (09:20 -0800)]
pm: PackageBackwardCompatibility -> applyPolicy

This moves PackageBackwardCompatibility from parsePackage to
applyPolicy.

The motivation of this is to expose partition information to these
files. Specifically, to expose whether the app is a pre-installed
(or updated pre-installed app) for certain backwards compatibility
rules that should only apply to these cases.

Bug: 86259915
Test: boot Pixel 2
Test: Pixel 3: atest -p cts/tests/signature
- all passed except for CtsSystemApiAnnotationTestCases test which
  failed (known issue b/124210145)
Change-Id: Ic824f06489781233dc98bf3dc0182681d32f7142

5 years agoMerge "Correct registerNativeAllocation type"
Hans Boehm [Tue, 12 Mar 2019 21:17:39 +0000 (14:17 -0700)]
Merge "Correct registerNativeAllocation type"
am: fe015a098c

Change-Id: Ie202df6d1f36534d5bea0e65aa21570be891b5b4

5 years agoDon't return hidden subscription in getActiveSubIdList
Malcolm Chen [Wed, 20 Feb 2019 03:00:26 +0000 (19:00 -0800)]
Don't return hidden subscription in getActiveSubIdList

Now getActiveSubscriptionInfoList will not return hidden
subscriptions. And getActiveSubIdList should be consistent
with it. In the mean time, internal SubscriptionController
API should have a way to specify if caller wants hidden
subscriptions or not.

Bug: 124690005
Test: manual
Change-Id: I46ccae88167c2988d71a6e07da2937bf9644a1f0
Merged-In: I46ccae88167c2988d71a6e07da2937bf9644a1f0

5 years agoMerge "Correct registerNativeAllocation type"
Hans Boehm [Tue, 12 Mar 2019 21:07:03 +0000 (21:07 +0000)]
Merge "Correct registerNativeAllocation type"

5 years agoMerge "Change summary text of Wi-Fi calling"
Hall Liu [Tue, 12 Mar 2019 21:05:33 +0000 (14:05 -0700)]
Merge "Change summary text of Wi-Fi calling"
am: 68fdc5b7be

Change-Id: Ia52d09817e260ad144d37937b5caa48d4ba054e5

5 years agoMerge "Change summary text of Wi-Fi calling"
Hall Liu [Tue, 12 Mar 2019 20:49:21 +0000 (20:49 +0000)]
Merge "Change summary text of Wi-Fi calling"

5 years agoRemove support for event-based handovers.
Tyler Gunn [Wed, 13 Feb 2019 21:51:18 +0000 (13:51 -0800)]
Remove support for event-based handovers.

Public APIs have been available for 2 releases; removing support
for the EXTRA/EVENT-based handovers.

Test: Manual
Bug: 110846969
Change-Id: I4747a509a9fd4d41c161febb78fbb7e4e11699f2

5 years agoDon't return hidden subscription in getActiveSubscriptionInfoList.
Malcolm Chen [Wed, 13 Feb 2019 01:29:59 +0000 (17:29 -0800)]
Don't return hidden subscription in getActiveSubscriptionInfoList.

Bug: 121396526
Test: manual
Change-Id: I3a9f3a9a2628a8e2ad1c401f6fe5e4c5866a0047
Merged-In: I3a9f3a9a2628a8e2ad1c401f6fe5e4c5866a0047

5 years agoRename entitlement callback to adhere to API guidelines.
Jeremy Klein [Tue, 12 Mar 2019 20:32:08 +0000 (13:32 -0700)]
Rename entitlement callback to adhere to API guidelines.

The method for OnTetheringEntitlementResultListener needs to be
onTetheringEntitlementResult in order to meet our API guidelines:

"Use Listener when there is a single callback method and there will
never be any others. It should be an interface whose name is the same
as the callback method plus Listener."

Bug: 126392011
Change-Id: I9a883765541ae853c4eb3bd52c9d93a7af16e661
Test: Manual build

5 years agoMerge "Add carrier's option to cancel CS reject cause notification"
Jordan Liu [Tue, 12 Mar 2019 20:13:35 +0000 (13:13 -0700)]
Merge "Add carrier's option to cancel CS reject cause notification"
am: 46f5897ae8

Change-Id: I5f95b337c6fca60d8ef66308b606081c5d9451d0

5 years agoMerge "Add carrier's option to cancel CS reject cause notification"
Jordan Liu [Tue, 12 Mar 2019 19:57:35 +0000 (19:57 +0000)]
Merge "Add carrier's option to cancel CS reject cause notification"

5 years agoAdd carrier's option to cancel CS reject cause notification
Seongho Kim [Tue, 13 Nov 2018 06:08:34 +0000 (15:08 +0900)]
Add carrier's option to cancel CS reject cause notification

Some carrier still want to cancel CS reject notification automatically
when it gets service. So, we need a way to set carrier's option for it.

Bug: 79889307
Test: Manual
Change-Id: If4c696e8116094d0cb555fe87c92243af1f34cec
Merged-In: If4c696e8116094d0cb555fe87c92243af1f34cec

5 years agoAnnotate Parcelable CREATOR fields as @NonNull
Leland Miller [Sat, 9 Mar 2019 00:55:45 +0000 (16:55 -0800)]
Annotate Parcelable CREATOR fields as @NonNull

Bug: 126726802
Test: Builds and existing tests pass
Change-Id: I243073dc559e93fa6302d6b69468088ca5960ab5