Commit Graph

18771 Commits

Author SHA1 Message Date
Jeff Sharkey
e92ed6fbb3 Define broadcasts for refreshing data plans.
We don't hand the Intent out to the Settings app, since we need to
carefully set whitelisting to allow the carrier app to wake up and
respond if it's dozing.

Define new "changed" broadcast that we'll send out whenever plans
are changed internally.

Test: builds, boots
Bug: 64133169
Change-Id: Iacdd06d8e273fd52c8fc83edab13c9c8453b28eb
2018-01-10 20:47:45 -07:00
Michael Plass
4422221bd0 Merge "Deprecate WifiManager EXTRA_BSSID, EXTRA_WIFI_INFO" 2018-01-10 16:23:49 +00:00
Peter Visontay
5fdef14b82 Merge "Mark AppOpsManager.setMode() @TestApi." 2018-01-10 12:54:40 +00:00
Victor Chang
72232a95d2 Merge "Add a new API android.icu.util.LocaleData" 2018-01-10 10:56:45 +00:00
TreeHugger Robot
d5a6d9b8dd Merge "[API review] Add ShortcutInfo.DISABLED_REASON_UNKNOWN" 2018-01-10 07:07:37 +00:00
Holly Jiuyu Sun
6a85d75fbc Merge "Merge EuiccProfile into EuiccProfileInfo." am: b01bd54b11 am: 6a5dc32ac3
am: 20f35f962e

Change-Id: I8f7cc7e81fc163119ffa15666f054b298d47fff1
2018-01-10 05:58:24 +00:00
Holly Jiuyu Sun
b01bd54b11 Merge "Merge EuiccProfile into EuiccProfileInfo." 2018-01-10 05:21:35 +00:00
Jack Yu
35dfaa2d88 Merge "Exposed CDMA SID/NID get APIs" am: 0cb936a855 am: 46ffa48122
am: e936a81557

Change-Id: I357f89c8d8ab7032710063e5cd6d2f761c9e1bb4
2018-01-10 02:49:44 +00:00
Treehugger Robot
0cb936a855 Merge "Exposed CDMA SID/NID get APIs" 2018-01-10 02:19:20 +00:00
Cassie Han
b76d28fee3 Merge "Expose a new public column network_type_bitmask and deprecate bearer_bitmask gradually." am: 72acefa6d8 am: b51df90f28
am: 23274614da

Change-Id: Id1b1667359a45259aea7d32cf7426f843ba0f33f
2018-01-10 01:33:29 +00:00
Cassie Han
72acefa6d8 Merge "Expose a new public column network_type_bitmask and deprecate bearer_bitmask gradually." 2018-01-10 00:55:32 +00:00
TreeHugger Robot
032626a7ed Merge "WifiManager: startScan throttling" 2018-01-10 00:21:18 +00:00
Treehugger Robot
ed7eead23b Merge "Add isMobileDataEnabled in TelephonyManager." 2018-01-09 23:46:55 +00:00
Holly Jiuyu Sun
e6153b9bff Merge EuiccProfile into EuiccProfileInfo.
After EuiccCard is moved to the platform, it can depend on
EuiccProfileInfo directly.

Bug: 70292228
Test: unit test
Change-Id: Ibe2c61ce9c4d2c99bac1cd9df8bb62414c46feee
2018-01-09 15:08:26 -08:00
Treehugger Robot
2f37060ee0 Merge "Add connection serivce focus api interface" 2018-01-09 22:54:42 +00:00
Tomasz Wasilczyk
89ee93ac4a Merge "Implement front-end APIs for config flags." 2018-01-09 22:20:14 +00:00
Roshan Pius
478ee74428 WifiManager: startScan throttling
Changes in the CL:
a) Mark startScan() as deprecated so that we can take away this API in
future releases.
b) Modify the documentation regarding scan throttling to indicate that
both foreground & background apps are subject to throttling.

Bug: 68987915
Test: Compiles
Change-Id: I938237b186c39c6b4cfec9dcdbd9b9d196bae0cc
2018-01-09 13:13:09 -08:00
Oscar Shu
c3ddef9d47 Merge "API cleanup - delete @removed methods" 2018-01-09 21:12:57 +00:00
Android Build Merger (Role)
d0e5cde165 Merge "Merge "Rename RadioNetworkConstants to NetworkConstants." am: 289b3fbca8 am: 4d2ffac581 am: c84d79740e" 2018-01-09 21:11:13 +00:00
Malcolm Chen
5f153006b0 Merge "Rename RadioNetworkConstants to NetworkConstants." am: 289b3fbca8 am: 4d2ffac581
am: c84d79740e

Change-Id: I2998277c63caa244aba07372ac8104aeeed85529
2018-01-09 21:10:15 +00:00
Eino-Ville Talvala
190e388ffe Merge "Camera2: Add MOTION_TRACKING capability/intent, and lens poseReference" 2018-01-09 21:08:00 +00:00
Jack Yu
9cd3b7b3f5 Exposed CDMA SID/NID get APIs
Made two existing hidden APIs getSystemId() and getNetworkId()
into public APIs.

Test: Telephony sanity tests
bug: 32718590
Change-Id: I436bd2699f8f805def753878d93e7dbf524e5f44
2018-01-09 12:25:52 -08:00
Jeff Sharkey
834ce2d499 Merge "Start using new reserved disk GID." 2018-01-09 19:27:41 +00:00
Etan Cohen
e73f12ff8c Merge changes I620d8e72,I532ca35c
* changes:
  [RTT2] System API for a Responder Configuration
  [RTT2] Baseline public Wi-Fi RTT API
2018-01-09 19:16:51 +00:00
Pengquan Meng
63d25a5411 Add connection serivce focus api interface
This add new api interface to ConnectionService to support the
connection service focus api.

Bug: 69651192
Test: manually

Change-Id: Iea49d95b086d32a0ebaf8e9f34fe4556953a0fd5
Merged-In: Iea49d95b086d32a0ebaf8e9f34fe4556953a0fd5
2018-01-09 10:50:38 -08:00
Makoto Onuki
5482a8e69e [API review] Add ShortcutInfo.DISABLED_REASON_UNKNOWN
Change-Id: I28a80faa223c0ce36e8b77ddbcea51c0b255c903
Fixes: 71555187
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests
2018-01-09 10:39:03 -08:00
TreeHugger Robot
345d957f45 Merge "Deprecates classes associated with old ContextHubManager APIs" 2018-01-09 16:26:29 +00:00
Victor Chang
33487775e6 Merge "Expose API android.icu.util.IllformedLocaleException" 2018-01-09 13:59:12 +00:00
Treehugger Robot
289b3fbca8 Merge "Rename RadioNetworkConstants to NetworkConstants." 2018-01-09 07:04:01 +00:00
Malcolm Chen
ffbaa9de1c Add isMobileDataEnabled in TelephonyManager.
Added a new hidden API isMobileDataEnabled in TelephonyManager.
Rename related APIs to isUserMobileDataEnabled,
isUserMobileDataEnabled and setUserMobileDataEnabled to better
clarify their functionality.

Bug: 69814555
Test: build
Change-Id: I2f186f1e7550cafbe4ee3a5af293c39274cbfeaa
Merged-In: I2f186f1e7550cafbe4ee3a5af293c39274cbfeaa
2018-01-08 18:08:22 -08:00
Etan Cohen
2892ba6611 [RTT2] System API for a Responder Configuration
The Responder Configuration is an abstracted specification of the peer
RTT Responder (to which we initiate an RTT operation).

The Responder is abstracted from a ScanResult (for an AP) or a Wi-Fi
Aware PeerHandle or MAC address. Utility methods are provided.

The Responder configuration is the underlying representation used by
the RTT manager and service to communicate infomration on RTT targets.
This API thus does not provide any additional permission or backdoor
hooks to the RTT functionality. It exposes a lower level utility
representation of the data. We may choose to make this more widely
available in the future if necessary.

Bug: 65108607
Test: builds
Change-Id: I620d8e725ad61792b7604ff1355adb1b0ef38ad1
2018-01-08 13:00:09 -08:00
Etan Cohen
a0688e0321 [RTT2] Baseline public Wi-Fi RTT API
Basic Wi-Fi RTT API for ranging to APs + Wi-Fi Aware peers.

Note: no functional tests, just unhiding/comment fixes.

Bug: 65108607
Test: builds, unit tests, integration tests.
Change-Id: I532ca35c866a7862859a0e64d9f7eccd95baa83d
2018-01-08 13:00:05 -08:00
xshu
48bd260b4e API cleanup - delete @removed methods
Bug: 68652341
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: If24720905171844f81359f9913c6b647bdeed85b
2018-01-08 20:44:39 +00:00
Victor Chang
98b16b6f43 Add a new API android.icu.util.LocaleData
1. getDelimiter is useful to avoid quoted text in string resource
and reduce apk size
<string name="verbal_quote_string">“<xliff:g id="value"
example="Mountain">%1$s</xliff:g>”</string>

Two related methods, i.e. setNoSubstitute, getNoSubstitute, are used to
avoid using values in root locale
2. getMeasurementSystem, getPaperSize
Handful method to determine to use km or miles and paper size

Bug: 71706733
Test: android.icu.dev.test.util.LocaleDataTest
Change-Id: I86b0126f6df62ed5b6081cabdb55487e7145ade0
2018-01-08 20:27:44 +00:00
Tomasz Wasilczyk
ce40fe9b1b Implement front-end APIs for config flags.
Also, publish get/set/updateProperties APIs.

Test: instrumentation
Bug: 69958423
Change-Id: I26178b16326d856203e6c8186a21af66b36705ed
2018-01-08 09:36:27 -08:00
Cassie Han
9c1279d2ae Merge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config." 2018-01-08 17:25:26 +00:00
Jeff Sharkey
4a539441d8 Start using new reserved disk GID.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

Define a permission for the GID so we can grant it to system apps,
and add the GID to core apps needed for system stability.  (The list
was mostly derived from filling a disk and seeing what caused the
device to fall over.)

Test: builds, boots
Bug: 62024591
Change-Id: Icdf471ed3bed4eeb8c01f1d39f0b40c1ea098396
2018-01-07 19:40:29 -07:00
TreeHugger Robot
102f5632fb Merge "Add permission necessary to use RecoverableKeyStoreLoader API." 2018-01-06 21:28:23 +00:00
Selim Gurun
4029fa6039 Add SystemApis annotations
There are some number of places where bluetooth APIs are used via
reflection from GMSCore. Add proper annotations.

Bug: 67052734
Test: Manual - and using make update-api
Change-Id: Ib6e3aa1ff5b6f9cdc78367f9be13ed00542d6f65
(cherry picked from commit 64bd35ef2c)
2018-01-05 14:50:30 -08:00
Siyamed Sinir
fac7e4591f Merge "Enable/disable fallback line spacing in TextView" 2018-01-05 22:02:07 +00:00
Arthur Ishiguro
581950cd76 Deprecates classes associated with old ContextHubManager APIs
Bug: 67734082
Bug: 69270990
Test: make update-api and make
Change-Id: I1e10eebb56175843c01d86004efbc3846af76b76
2018-01-05 13:27:55 -08:00
Eino-Ville Talvala
ec99efa03b Camera2: Add MOTION_TRACKING capability/intent, and lens poseReference
- MOTION_TRACKING capability defines a camera with accurate lens calibration
  values, accurate timestamps relative to the inertial sensors, and ability
  to limit exposure time to 20ms max.
- Add android.lens.poseReference for supporting gyroscope-centered lens calibration
  data for MOTION_TRACKING.
- Minor changes to some docs formatting.

Test: Builds
Bug: 63629224
Change-Id: Ic303240890c709725f60e69dfff76beea4a0ef91
2018-01-05 12:00:53 -08:00
Victor Chang
e6e9308d6e Expose API android.icu.util.IllformedLocaleException
android.icu.util.IllformedLocaleException is referenced in javadoc, but
is not exposed as a public API

Test: Existing tests cover this API. cts-tradefed run cts-dev
-m CtsIcuTestCases -t android.icu.dev.test.util.ULocaleTest
Test: m
Bug:71629543

Change-Id: I2571ecc9e561294033ff13460bdd363a0ffc6c9b
2018-01-05 18:09:44 +00:00
Etan Cohen
acb394d13a Merge "[AWARE] Uhide the RTT in context of Aware discovery API" 2018-01-05 16:00:15 +00:00
Peter Visontay
b97fbc8c5f Mark AppOpsManager.setMode() @TestApi.
There's a CTS test that accesses this via reflection, which we want to fix: AppOpsTest.testSetMode().

Test: make CtsPermissionTestCases -j32 && cts-tradefed run singleCommand cts-dev -m CtsPermissionTestCases --test android.permission.cts.AppOpsTest
Change-Id: I8e62d55271caaa730c4233f761145f90cc34111c
Bug: 71626306
2018-01-05 15:09:01 +00:00
Peter Visontay
5a2a1ef74a Define a @SystemApi string ID for each App Op.
Internal numeric op codes may change, but the public string IDs must consistently refer to the same operation.

Bug: 63907873
Test: Ran the tests being added in this this topic: make CtsPermissionTestCases -j32 && cts-tradefed run singleCommand cts-dev -m CtsPermissionTestCases --test android.permission.cts.AppOpsTest
Change-Id: I12bd9e2384d938120a403c4d76be4c1479ffd4ee
2018-01-05 13:09:01 +00:00
Jeff Sharkey
c9cbc3e5fc Merge "FBE devices now fully support adoptable storage." 2018-01-05 03:53:56 +00:00
Jeff Sharkey
cc74ecb26c Merge "Intent to manage subscription plans." 2018-01-05 03:49:06 +00:00
Siyamed Sinir
8038267b98 Enable/disable fallback line spacing in TextView
Add API to enable/disable fallback line spacing in TextView.

Test: bit FrameworksCoreTests:android.widget.TextViewFallbackLineSpacingTest

Bug: 65161512

Change-Id: I76ba7bdb7d25c7a94653144536295c50d8b0e495
2018-01-04 19:48:35 -08:00
Jeff Sharkey
8eb783b21e FBE devices now fully support adoptable storage.
We've finished all the underlying work to support adoptable storage
on FBE devices, so remove the code that was disabling it by default.

Introduce feature flag to make it easier to detect devices that
support adoptable storage.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Bug: 29923055, 25861755, 33252673, 37289651
Change-Id: I3630d690c9e66c7e41e316a4263ea2eb1e752ad3
2018-01-04 18:50:14 -07:00