Commit Graph

18747 Commits

Author SHA1 Message Date
Tomasz Wasilczyk
89ee93ac4a Merge "Implement front-end APIs for config flags." 2018-01-09 22:20:14 +00: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
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
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
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
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
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
Jeff Sharkey
717f52f2dd Intent to manage subscription plans.
Define an API for carrier apps to provide a deep-link into their app
for the user to see more details about their billing relationship,
such as upgrading plans.

The createManageSubscriptionIntent() method is ready for OS
components to use when deciding if they should show a "MANAGE"
button in their UI, and the returned Intent is fully constructed
and ready to roll.

Test: builds, boots
Bug: 64133169
Change-Id: I9b2775b7cba5313f517996870135eb4682082873
2018-01-04 16:11:51 -07:00
TreeHugger Robot
db21daf96c Merge "camera: Add device info version" 2018-01-04 21:52:25 +00:00
Mady Mellor
9c777b22da Merge "Add subtype to indicate accessibility text" 2018-01-04 21:02:44 +00:00
TreeHugger Robot
3157acc318 Merge "Default grant coarse loc perm to use-open-wifi app" 2018-01-04 20:24:39 +00:00
TreeHugger Robot
1e8a6d36bc Merge "Refactored Field Classification score logic so it can be moved to ExtServices." 2018-01-04 19:00:40 +00:00
Eric Enslen
1e423b950a Default grant coarse loc perm to use-open-wifi app
Bug: 70843697
Test: flashed onto walleye and confirmed permission granted when WFA is
enabled.

Change-Id: Ic53886478ec6b8bef311f2f94e0976f7870c8cd1
2018-01-04 10:43:46 -08:00
TreeHugger Robot
f84ec9687a Merge "Added new Autofill APIs to get name of id used on android:text." 2018-01-04 18:40:24 +00:00
Cassie
661f63131b Migrate flag config_telephony_use_own_number_for_voicemail to Carrier
Config.

Bug: 65683508
Test: Basic telephony sanity
Change-Id: I74a24b60bfc0b527f7f0cb6d7084bb7b36aae6e5
2018-01-04 10:15:31 -08:00
Phil Weaver
cbc43ed9df Merge "Make accessibility window events more granular" 2018-01-04 17:09:35 +00:00
TreeHugger Robot
5d5fa51450 Merge "DPM: Implement Device ID attestation" 2018-01-04 14:24:18 +00:00
TreeHugger Robot
b6c8769ee4 Merge changes I93166347,Id09322c5,I878f80f0,I7a7b1b44,Iae2dbc23
* changes:
  Expose new ContextHubService APIs
  Adds ContextHubClient to callback parameters
  Renames RESULT_FAILED_PENDING to RESULT_FAILED_BUSY
  Changes transaction Listener to OnCompleteListener
  Adds Nullable/NonNull annotations to Context Hub APIs
2018-01-04 01:33:21 +00:00
Malcolm Chen
51695b2647 Rename RadioNetworkConstants to NetworkConstants.
Rename RadioNetworkConstants to NetworkConstants and some classes
inside it.

Bug: 64132030
Test: Build
Change-Id: I5f3d2310e4f8e556aa32b00e6b6bbe6c4d709afb
2018-01-03 16:45:53 -08:00
Felipe Leme
5dc45ca349 Added new Autofill APIs to get name of id used on android:text.
Such resource id is useful to help the autofill service heuristics to figure out
the meaning of the labels without relying on their localized text. For example,
the id could be "username", while the text could be "Nome do usuario".

Test: atest CtsAutoFillServiceTestCases:LoginWithStringsActivityTest

Fixes: 71552872

Change-Id: I13f7080fb3c67f91492a113115ffa43d185d192a
2018-01-03 16:09:55 -08:00
TreeHugger Robot
48989c2744 Merge "1/ Change all "name" to id in statsD. 2/ Handle Subscription for alert. 3/ Support no_report_metric" 2018-01-03 23:36:21 +00:00
Yangster-mac
94e197cceb 1/ Change all "name" to id in statsD.
2/ Handle Subscription for alert.
3/ Support no_report_metric

Bug: 69522276
Test: all statsd unit tests passed.
Change-Id: I851b235f2d149b8602b0cad632d5bf541962f40a
2018-01-03 15:34:00 -08:00
Jake Wharton
820e3dd74a Add overload to postDelayed which accepts a token.
This adds overload parity with postAtTime.

Test: none
Bug: 71546743
Change-Id: I50936c7ffd5e8512dc865863fe8d4c9fb228a8a9
2018-01-03 16:31:02 -05:00
Chien-Yu Chen
a1d1d5b1fa camera: Add device info version
Bug: 64847201
Change-Id: I1114473d277d3e87bd7cb731f6ec93652579b4e0
2018-01-03 12:14:53 -08:00
Arthur Ishiguro
f2b6f014a7 Expose new ContextHubService APIs
Also deprecates old APIs.

Bug: 67734082
Test: make update-api && make
Change-Id: I93166347ce2ec63f9c0cffd0b8b0bbaa488e5ea4
2018-01-03 09:34:04 -08:00
Felipe Leme
27f4573d13 Refactored Field Classification score logic so it can be moved to ExtServices.
Bug: 70939974
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest \
            CtsAutoFillServiceTestCases:UserDataTest
Test: atest CtsAutoFillServiceTestCases

Change-Id: If584ab3a55744a62f427065bfd44c8c219df83e9
2018-01-03 09:27:51 -08:00
Phil Weaver
bb2f28a776 Make accessibility window events more granular
TYPE_WINDOWS_CHANGED events have meant that "something"
changes with the system windows, so a single event would be
fired for a single small window change or a bunch of window
changes. Services were required to cache the windows and
compare the old ones to the new ones to find out what
changed.

Since AccessibilityEvents are intended to communicate
changes to the UI, this CL sends one TYPE_WINDOWS_CHANGED
for each window that has changed, and provides a way to
get the source of the changing window. It also adds a
windowChangeType field, which contains flags to indicate
what exactly has changed for the window.

Bug: 62231686
Test: Run all a11y unit and cts tests
Change-Id: I6c48e74da26be5ea485ac114a37f3c404a74940e
2018-01-03 08:51:18 -08:00
Eran Messeri
94d5676124 DPM: Implement Device ID attestation
Enable requesting inclusion of device identifiers in the attestation
record issued for keys generated by generateKeyPair.
This is done by passing an array of flags with values indicating which
identifiers should be included.
Since the attestation record will include sensitive identifiers, it can
only be requested by the DPC in Device Owner mode or by the Delegated
Cert Installer in Device Owner mode.

Design note:
DevicePolicyManager defines its own set of constants for the different
identifier types (ID_TYPE_*) and prior to calling
DevicePolicyManagerService it translates them to the values defined by
AttestationUtils (which is not a public class).
The reason is to allow re-use of code in AttestationUtils for preparing
the attestation arguments.
In theory, these constants could be moved from AttestationUtils to
DevicePolicyManager, however that would create a dependency on DPM from
Keystore, which logically does not make sense as Keystore is independent
of the DPM (and in a lower level of the system, conceptually).

Bug: 63388672
Test: cts-tradefed run commandAndExit cts-dev -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement; runtest frameworks-services -c com.android.server.devicepolicy.DevicePolicyManagerTest#testTranslationOfIdAttestationFlag
Change-Id: Ifb42e8e813fa812a08203b4a81d15b1f91152354
2018-01-02 23:36:15 +00:00
Jean-Michel Trivi
28bc987f61 Merge "New intent for microphone mute change notification" 2017-12-29 21:25:46 +00:00