Commit Graph

23506 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
6616e2ab5d Merge "Remove NetworkMonitor dependency on ICaptivePortal" 2019-02-15 05:39:14 +00:00
TreeHugger Robot
3a5211e744 Merge "Changed ContentCaptureService.setContentCaptureWhitelist() to use Set instead of List." 2019-02-15 04:20:23 +00:00
Ralston Da Silva
b3f0928223 Merge "Removing hidden api usage from AutoCompleteTextView" 2019-02-14 23:34:02 +00:00
Felipe Leme
7a3c9f5324 Changed ContentCaptureService.setContentCaptureWhitelist() to use Set instead of List.
(Same for Augmented Autofill)

Bug: 122595322
Test: m update-api

Change-Id: I6753ce2567801da148682c0ccbad7f6abc4d1ecc
2019-02-14 14:13:56 -08:00
TreeHugger Robot
93d196b3a8 Merge "Create a DisableInfo object instead of exposing DISABLE_* flags" 2019-02-14 21:43:30 +00:00
James O'Leary
08211297cf Merge "Encapsulate state & transcription in hints bundle" 2019-02-14 21:25:24 +00:00
TreeHugger Robot
f9723ba1e7 Merge changes from topic "accessibility-usage-dialog"
* changes:
  Make the accessibility op string a SystemApi.
  Add a new intent for reviewing running accessibility services.
2019-02-14 21:04:32 +00:00
John Reck
989bb3714f Merge "Make HardwareRenderer public API" 2019-02-14 20:40:13 +00:00
Maurice Lam
b8e161804d Merge "Add system APIs to implement locale picker" 2019-02-14 20:03:04 +00:00
Benedict Wong
c9ef1542f4 Merge "Add Test Network and Transport types" am: 0dddb902ae am: ffd15698c3
am: dee889a825

Change-Id: Ia9c100ebeb8b54e743820b74ff35d006919e9fbb
2019-02-14 11:08:57 -08:00
Ralston Da Silva
17d7ce6e4a Removing hidden api usage from AutoCompleteTextView
ensureImeVisible() was added to show the keyboard in SearchDialog go/ensureImeVisible-added. A better fix would be to expose a function to setInputMethodMode(), as showDropDown() is public and can be called externally. Adding this new API in this CL.

Bug: 123768913

Test: Added tests to android.widget.AutoCompleteTextViewTest.

Change-Id: I07e53c6d5e93d1e33381f8f87f75a7dee2f2f5a5
2019-02-14 11:02:23 -08:00
Benedict Wong
dee889a825 Merge "Add Test Network and Transport types" am: 0dddb902ae
am: ffd15698c3

Change-Id: I371a4f3bdbbfd001e9694e29843b6b7119b938b0
2019-02-14 10:59:02 -08:00
TreeHugger Robot
dbc9708897 Merge "Add NonNull annotation into unregisterThermalStatusCallback" 2019-02-14 18:53:29 +00:00
TreeHugger Robot
2934daf1ba Merge "Add an intent to launch the permission toggle screen." 2019-02-14 18:40:02 +00:00
Benedict Wong
0dddb902ae Merge "Add Test Network and Transport types" 2019-02-14 18:37:04 +00:00
TreeHugger Robot
1df6e435b0 Merge "Removed unused APIs." 2019-02-14 16:51:29 +00:00
Felipe Leme
0552f41c4e Merge "Add new ContentCapture APIs to let apps change the ContentCaptureContext." 2019-02-14 15:26:27 +00:00
James O'Leary
9c9dd98ee0 Encapsulate state & transcription in hints bundle
Continuation of ag/6226654; edits made per Svetoslav's last comments.

Bug: 122740752
Bug: 123080754
Test: blueline-userdebug build completes successfully.

Change-Id: I3e43137eb6e0d8cae77e14d331150d5a05ede07c
2019-02-14 15:24:08 +00:00
Shafik Nassar
a07b43aec5 Merge "Make Rollback lifetime duration configurable" 2019-02-14 14:19:23 +00:00
Remi NGUYEN VAN
5a1b74b6d5 Remove NetworkMonitor dependency on ICaptivePortal
ICaptivePortal is used in the framework and cannot be used as a
dependency in NetworkMonitor, as the framework class takes precedence
when linking.
Also fix NetworkMonitorTest that was not verifying the right
startCaptivePortalApp call.

(cherry-pick of aosp/904953 with minor conflict in Android.bp)

Test: atest FrameworksNetTests NetworkStackTests
Bug: 124033493
Change-Id: Ib6a89e54312628662b130fbeec18d11e139f09fa
2019-02-14 20:36:40 +09:00
TreeHugger Robot
06363e342c Merge "New API: Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE" 2019-02-14 11:06:25 +00:00
Hyundo Moon
3f6d07c571 Merge "MediaSession/Controller: Add playback speed related APIs" 2019-02-14 07:15:08 +00:00
Hyundo Moon
04fb2e74b8 MediaSession/Controller: Add playback speed related APIs
Bug: 122906243
Test: Passed MediaSession/ControllerTest
Change-Id: I1a8c6b7a6340f18cff0179b7fe1bc559a1f4cb68
2019-02-14 14:20:53 +09:00
Wei Wang
3dcd3f6c8d Add NonNull annotation into unregisterThermalStatusCallback
Bug: 119613338
Test: Build
Change-Id: I4fde9ba69b549fa61197c53d99a0c394dd3dcc82
2019-02-13 18:19:52 -08:00
Shuo Qian
ce1826b2ed Merge "Populate 'hasKnownUserIntentEmergency'" 2019-02-14 01:44:36 +00:00
Hall Liu
8c63ea5b54 Merge "Implement more location checks" am: a3aae9fe4b am: 8b98155789
am: 74c000a5ba

Change-Id: I3a75d4497453eb8284929e420f933332c792ef83
2019-02-13 17:16:08 -08:00
Jordan Liu
7a39287ca0 Merge "Add UNINITIALIZED and rename INVALID" am: b8493ac5eb
am: aa20ef0836

Change-Id: I2ad19b617f0165e7bcabac567463dfe8f4b175c6
2019-02-13 16:52:32 -08:00
Hall Liu
74c000a5ba Merge "Implement more location checks" am: a3aae9fe4b
am: 8b98155789

Change-Id: Ic1ce05e5aab661de9fd461819c9b98f81ffa8763
2019-02-13 16:32:19 -08:00
Jordan Liu
b8493ac5eb Merge "Add UNINITIALIZED and rename INVALID" 2019-02-14 00:14:11 +00:00
Chenjie Yu
afe83a6720 Merge "add api to log BinaryPushStateChanged atom" 2019-02-14 00:14:07 +00:00
Pengquan Meng
95abfa9328 Merge "Add getSlotsMapping to TelephonyManager" am: 600827273c
am: 0ccab45a19

Change-Id: Ia14126704a30a77a173cd307a48fb3261b317b1f
2019-02-13 15:43:47 -08:00
Felipe Leme
8b432642df New API: Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE
Test: m update-api # not implemented yet
Bug: 119264902

Change-Id: Icbda6de653d176995d03bbe080ab6b61632b7a03
2019-02-13 15:43:13 -08:00
Hall Liu
a3aae9fe4b Merge "Implement more location checks" 2019-02-13 23:21:43 +00:00
TreeHugger Robot
6c3b856efd Merge "Hiding annotation @DistractionRestriction" 2019-02-13 23:13:43 +00:00
Pengquan Meng
600827273c Merge "Add getSlotsMapping to TelephonyManager" 2019-02-13 22:23:16 +00:00
Felipe Leme
3f1e2318e6 Removed unused APIs.
Plus fixed a few minor TODOs.

Test: atest AugmentedLoginActivityTest
Test: m update-api

Bug: 122654591
Fixes: 123233342

Change-Id: Ie5040077255ffab8fee019ca6a0a122fe9f2e03d
2019-02-13 13:21:27 -08:00
sqian
6d9e7457da Populate 'hasKnownUserIntentEmergency'
This is only used to specify when the dialed number is ambiguous,
identified as both emergency number and any other non-emergency number;
e.g. in some situation, 611 could be both an emergency number in a
country and a non-emergency number of a carrier's customer service hotline.

Test: Manual
Bug: 123999640
Change-Id: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
2019-02-13 12:19:27 -08:00
Evan Laird
ced4aebd0e Create a DisableInfo object instead of exposing DISABLE_* flags
The DISABLE_* flags fall into two namespaces, helpfully named DISABLE_*
and DISABLE2_*. Seeing as that's kind of domain specific and not clear
enough, this change adds StatusBarManager#DisableInfo as a way to
describe which components an app has requested to be disabled.

It could also be used to remove the need for diasble() and disable2() in
the future.

Test: atest GtsStatusBarHostTestCases
Bug: 123430822
Change-Id: Iecd5119e01fbabf113b5cfbe8f02f8f0d990e9fb
2019-02-13 14:22:30 -05:00
Nathan Harold
ab3df7a6fe Merge "Add missing UARFCN Getter to CellIdentityTdscdma" am: 627900696f am: ba147d2c80
am: ceba42dca9

Change-Id: I2cef8f399bad5cc1b5d12b3671b477df13aa4680
2019-02-13 11:08:29 -08:00
Hall Liu
ee313737e9 Implement more location checks
Make the following modifications to APIs and required permissions.
Move the following APIs from checking coarse permission to fine
permission (except for apps targeting pre-Q):
TelephonyManager.getCellLocation()
(deprecated) TelephonyManager.getNeighboringCellInfo()
TelephonyManager.getAllCellInfo()
TelephonyManager.requestCellInfoUpdate()
PhoneStateListener#onCellLocationChanged
PhoneStateListener#onCellInfoChanged

Start checking for fine permission on the following APIs:
(Note -- these will only be logged, not denied until a future CL)
TelephonyManager.requestNetworkScan()
TelephonyScanManager.requestNetworkScan()
NetworkScanCallback#onResults

Start checking for coarse permission on the following APIs:
(Note -- these will only be logged, not denied until a future CL)
TelephonyManager#getAvailableNetworks
TelephonyManager#getServiceStateForSubscriber and #getServiceState
PhoneStateListener#onServiceStateChanged

Bug: 116258458
Test: manual via testapps
Change-Id: I45326ddacbcf538da50ca544d67eed12cf0c0861
2019-02-13 11:07:37 -08:00
Nathan Harold
ceba42dca9 Merge "Add missing UARFCN Getter to CellIdentityTdscdma" am: 627900696f
am: ba147d2c80

Change-Id: I6e856b87b8b3b698fd4da0f4c779e39bd7bd6fbb
2019-02-13 10:47:40 -08:00
Chenjie Yu
6b1667c8b1 add api to log BinaryPushStateChanged atom
This api is to log BinaryPushStateChanged.
Experiment id is added as a binary blob that is not expected to be
accessed on device side.
This cl is mainly for API.
Will add follow up cls for persisting train info on disk and make puller
for it.
Will address sepolicy in follow up cls.

Bug: 119633962
Bug: 119685453
Test: will add gts
Change-Id: I68b4246cf7e8079155e16121ca37a312b35a5328
2019-02-13 10:47:27 -08:00
TreeHugger Robot
b1a0da1098 Merge "Update View#getAttributeResolutionStack to take @AttrRes" 2019-02-13 18:36:24 +00:00
Nathan Harold
627900696f Merge "Add missing UARFCN Getter to CellIdentityTdscdma" 2019-02-13 18:17:36 +00:00
Nader Jawad
9b31762790 Merge "Added public API alternatives to reflective calls on ScrollBarDrawable" 2019-02-13 17:55:48 +00:00
Jordan Liu
1f85a3ddf3 Add UNINITIALIZED and rename INVALID
UNINITIALIZED_CARD_ID is for before the card ID is ready.
INVALID_CARD_ID is renamed to UNSUPPORTED_CARD_ID and it is used if the
card ID is known to be unsupported.

Bug: 122978614
Test: atest UiccControllerTest
Change-Id: Ia2315d9b38ef35b30d9b96b6436c08fa4404e4df
Merged-In: Ia2315d9b38ef35b30d9b96b6436c08fa4404e4df
2019-02-13 09:54:30 -08:00
Jordan Liu
c30d7ced2f Merge "Add UNINITIALIZED and rename INVALID" 2019-02-13 17:49:50 +00:00
Alex Kershaw
bc40490aeb Merge "Managed system update API council changes." 2019-02-13 12:47:22 +00:00
Andrey Kulikov
81aac219c9 Merge "Restrict platform's GhostView and unhide a method needed for a backport" 2019-02-13 10:44:03 +00:00
shafik
0ad18b89ee Make Rollback lifetime duration configurable
Rollback lifetime duration is now configurable using a p/h flag.
The default remains 48 hours, and won't change unless another value is
pushed from the server.

The first expiration check now occurs after boot phase is done
instead of on service start. This neeeded to be done since Settings
Provider is not available on service start.

Test: atest RollbackTest
Test: adb shell device_config put rollback_boot
rollback_lifetime_in_millis 3600 and checked that the new value is 3600
Bug: 112431924
Change-Id: I6c28d9e945f28e340aff4914bfc772147667df2c
2019-02-13 10:08:08 +00:00