Commit Graph

381835 Commits

Author SHA1 Message Date
Amin Shaikh
0094de3727 Add bluetooth icon.
Add accent_device_default that uses the light/dark variant based on
light/dark ui mode.

Bug: 126425594
Change-Id: I08640cc161b6d63da42c3f03df7cf41b182b005e
Test: make
2019-03-26 15:45:52 +00:00
Treehugger Robot
17492d0691 Merge "Add a whitelist to control packages that can use Bugreporting API" 2019-03-14 10:13:32 +00:00
Chen Xu
4837dbe536 Merge "fix the issue that setPreferredNW send wrong RAT to HAL" 2019-03-14 00:47:07 +00:00
Treehugger Robot
274ce2d831 Merge "Add me to owners for batterystats." 2019-03-13 21:45:28 +00:00
Treehugger Robot
09a4ee1988 Merge "Should return the number of supported SIM cards" 2019-03-13 21:18:57 +00:00
Hall Liu
df6e5604f3 Merge "Fix issues associated with hold failure" 2019-03-13 21:18:53 +00:00
Steven Moreland
b70a6cbf9a Merge "Use jarjar rules for framework.jar." 2019-03-13 20:52:37 +00:00
chen xu
14778d38e8 fix the issue that setPreferredNW send wrong RAT to HAL
Bug: 126805258
Test: Manual test to set LTE only mode
Change-Id: I2e88d3bc22ca8d1e626bf381840cc80f832a8b3f
2019-03-13 13:34:00 -07:00
Joe Onorato
ea435f81ad 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
2019-03-13 12:16:07 -07:00
Treehugger Robot
a4dac05210 Merge "DO NOT MERGE Let isLocationEnabledForUser() return true location setting" 2019-03-13 18:52:35 +00:00
Treehugger Robot
b9478c48cf Merge "Add alanstokes as owner of DynamicCodeLoggingService." 2019-03-13 18:01:46 +00:00
Leland Miller
8ced10ec23 Merge "Annotate Parcelable CREATOR fields as @NonNull" 2019-03-13 17:23:12 +00:00
Nikita Ioffe
ee4d7be219 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 07964b49ac)
2019-03-13 17:01:56 +00:00
Steven Moreland
5a490d4bb7 Merge changes from topic "hidl-updater-system"
* changes:
  pm: AndroidHidlUpdater: system only
  pm: PackageBackwardCompatibility -> applyPolicy
2019-03-13 16:51:30 +00:00
Treehugger Robot
a018254b45 Merge "Add Nullable annotation to getDecorView" 2019-03-13 16:09:00 +00:00
Tyler Gunn
b2c1daf861 Merge "Remove support for event-based handovers." 2019-03-13 15:07:06 +00:00
Treehugger Robot
2e44838064 Merge "Clean up bugreport API." 2019-03-13 14:07:43 +00:00
Neil Fuller
abff3f4f21 Merge "Improve documentation around HostnameVerifier" 2019-03-13 13:26:02 +00:00
Alan Stokes
1c918f7e1e Add alanstokes as owner of DynamicCodeLoggingService.
As suggested by agampe on I69f415929785845ede8f2d1341f4b70f97b4f480.

Test: None.
Change-Id: Ibaac6f5d96ad9b9a343ba8940345bc7d0c8126d9
2019-03-13 12:33:59 +00:00
Alan Stokes
e27b409046 Merge "Refactor OWNERS file." 2019-03-13 12:33:03 +00:00
Abhijeet Kaur
0bbb9f6882 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
2019-03-13 11:49:42 +00:00
Iris Chang
f0026eebfc 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
2019-03-13 15:40:43 +08:00
Treehugger Robot
894c578a02 Merge "continue read file when returned count > 0" 2019-03-13 07:36:51 +00:00
Chiachang Wang
da0ebedb47 Merge "Support partial connectivity probe result option" 2019-03-13 06:49:03 +00:00
Mathieu Chartier
13f15b3752 Merge "Call notifyStartupCompleted from reportFullyDrawn" 2019-03-13 05:02:58 +00:00
Mathieu Chartier
67f02a1fff Call notifyStartupCompleted from reportFullyDrawn
ART will now know when startup is startup is finished.

Test: manual
Bug: 120671223
Bug: 123377072

(cherry-picked from commit 63e14c10b3)

Merged-In: I1134f66792bddc9ab33606fa4c2807b3918d5261
Change-Id: I1134f66792bddc9ab33606fa4c2807b3918d5261
2019-03-13 05:01:58 +00:00
Treehugger Robot
0102e3d548 Merge "Rename entitlement callback to adhere to API guidelines." 2019-03-13 04:48:24 +00:00
Xiangyu/Malcolm Chen
58385e9796 Merge "Only return one mobile subscription per group in Settings." 2019-03-13 04:14:14 +00:00
Malcolm Chen
b82864c801 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
2019-03-13 04:14:07 +00:00
Treehugger Robot
8b57ab7989 Merge "Add @NonNull annotations to LE CoC APIs" 2019-03-13 02:28:32 +00:00
Stanley Tng
97341da063 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
2019-03-13 02:27:38 +00:00
Xin Li
a5fe44c6b5 Merge "DO NOT MERGE - Merge PPRL.190305.001 into master" 2019-03-13 02:26:04 +00:00
Chalard Jean
ae79013ec2 Merge "Tell the factory it is already serving a request." 2019-03-13 02:07:29 +00:00
Ian Kasprzak
3fb5ba9e61 Merge "Temporarily disable flaky test." 2019-03-13 01:52:21 +00:00
Treehugger Robot
88b57a2c4d Merge "Schematize Crypto state system property" 2019-03-13 01:30:58 +00:00
Xiao Ma
f1e012ae9b Merge "[KA13]: add unit test for exposed TCP socket keepalive API." 2019-03-13 01:13:08 +00:00
Josh Hou
56c9d22970 Merge "add NonNull annotation to API" 2019-03-13 00:58:21 +00:00
Lorenzo Colitti
5ae2caf8db Temporarily disable flaky test.
Test: None
Bug: 128426024
Change-Id: Id88bf452f41f512703d5831e357d9ba72dc5b911
2019-03-13 09:23:54 +09:00
Xiangyu/Malcolm Chen
d2cb5a0608 Merge "Don't return hidden subscription in getActiveSubIdList" 2019-03-12 22:59:00 +00:00
Xiangyu/Malcolm Chen
8cbe957dba Merge "Don't return hidden subscription in getActiveSubscriptionInfoList." 2019-03-12 22:40:39 +00:00
Treehugger Robot
1a14dedcce Merge "Revert^3 "Delay start of bootanimation until after the Runtime APEX is mounted."" 2019-03-12 22:34:26 +00:00
Jiyong Park
552ad7b7f1 Revert^3 "Delay start of bootanimation until after the Runtime APEX is mounted."
This reverts commit a6bb8916b0.

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
2019-03-12 22:33:44 +00:00
Nathan Harold
3a6dcad0a3 Merge "[API Feedback] Rename DebugEventReporter" 2019-03-12 22:25:46 +00:00
Soonil Nagarkar
1841870f22 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
2019-03-12 21:47:07 +00:00
Steven Moreland
2410821b67 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
2019-03-12 21:44:22 +00:00
Steven Moreland
b28b7960b2 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
2019-03-12 21:44:08 +00:00
Malcolm Chen
9ac7e52a93 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
2019-03-12 14:09:33 -07:00
Hans Boehm
fe015a098c Merge "Correct registerNativeAllocation type" 2019-03-12 21:07:03 +00:00
Hall Liu
68fdc5b7be Merge "Change summary text of Wi-Fi calling" 2019-03-12 20:49:21 +00:00
Tyler Gunn
9ae6db8a7c 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
2019-03-12 20:45:32 +00:00