Commit Graph

81275 Commits

Author SHA1 Message Date
Ruchi Kandoi
b126fbb86a Merge "Modify Open Mobile API to follow Android API guidelines" am: ee63876ed4
am: 2fa5be61cb

Change-Id: I51c6751318eed6781337e3b4c547d526dbd76135
2018-03-27 06:09:49 +00:00
Ruchi Kandoi
2fa5be61cb Merge "Modify Open Mobile API to follow Android API guidelines"
am: ee63876ed4

Change-Id: I29c43bcdccb3ba263c0a6a7e106c3c9180910c75
2018-03-27 06:03:08 +00:00
Felipe Leme
85584bcb20 Merge "Integrate autofill session lifecycle with URL bar changes when on compat mode." into pi-dev
am: 992d078542

Change-Id: I5720f372fa5638bbe2dca67a42962765f1a40bd1
2018-03-27 05:30:59 +00:00
TreeHugger Robot
992d078542 Merge "Integrate autofill session lifecycle with URL bar changes when on compat mode." into pi-dev 2018-03-27 05:15:20 +00:00
Treehugger Robot
ee63876ed4 Merge "Modify Open Mobile API to follow Android API guidelines" 2018-03-27 04:40:40 +00:00
Jeff Sharkey
efae42a25d Merge "API council requested tweaks to TrafficStats." into pi-dev
am: 9a6bc76ee8

Change-Id: I6b969377a6e268c1377fcc17f2443cb73072fda2
2018-03-27 03:57:46 +00:00
Jeff Sharkey
190d3520af Merge "Report final progress when finished copying." into pi-dev
am: 01f2ff1aa4

Change-Id: I1421da9d91c172fb9afff1e5960a9c86ff2d794d
2018-03-27 03:45:07 +00:00
Jerry Zhang
03f2788598 Merge "Write descriptors for Mtp in UsbService" into pi-dev
am: df101a4596

Change-Id: If12b1138a9be2f2e653c070c44d54ebfe008b7ff
2018-03-27 03:20:27 +00:00
Jeff Sharkey
de5b4f3c99 Merge "API council requested tweaks to SystemClock." into pi-dev
am: 0bff5a6dfa

Change-Id: I5b7d6247342eaddb8024842cecfc516ae2aa5fcc
2018-03-27 03:04:34 +00:00
TreeHugger Robot
9a6bc76ee8 Merge "API council requested tweaks to TrafficStats." into pi-dev 2018-03-27 02:56:24 +00:00
TreeHugger Robot
01f2ff1aa4 Merge "Report final progress when finished copying." into pi-dev 2018-03-27 02:52:26 +00:00
Jerry Zhang
df101a4596 Merge "Write descriptors for Mtp in UsbService" into pi-dev 2018-03-27 02:49:02 +00:00
Jeff Sharkey
2b00e5c3fd Merge "API council requested tweaks to DataUnit." into pi-dev
am: b15bcea4d4

Change-Id: Ibf7dce0c3d823135834a5160bc55da94c3b874e4
2018-03-27 02:41:52 +00:00
TreeHugger Robot
0bff5a6dfa Merge "API council requested tweaks to SystemClock." into pi-dev 2018-03-27 02:40:24 +00:00
TreeHugger Robot
b15bcea4d4 Merge "API council requested tweaks to DataUnit." into pi-dev 2018-03-27 02:30:25 +00:00
Jeff Sharkey
9d81c54bc8 Merge "Move FIRST_SDK_INT to @TestApi." into pi-dev
am: fee443bfab

Change-Id: Ie2a6b0bb46ea6275cb2af0ef006472daf5e80b14
2018-03-27 01:53:01 +00:00
TreeHugger Robot
fee443bfab Merge "Move FIRST_SDK_INT to @TestApi." into pi-dev 2018-03-27 01:40:23 +00:00
Seigo Nonaka
b2d133a858 Merge "Stop using DynamicLayout in case of non selectable PrecomputedText" into pi-dev
am: a1ff74c68d

Change-Id: Ic003d918ce83224e3daa513a0a8c8ee161f62c42
2018-03-27 01:11:24 +00:00
TreeHugger Robot
a1ff74c68d Merge "Stop using DynamicLayout in case of non selectable PrecomputedText" into pi-dev 2018-03-27 00:10:11 +00:00
Abodunrinwa Toki
62c135418d Merge "Fix random SmartLinkify-related TextView bugs." into pi-dev
am: d982f561cc

Change-Id: I231dd3046832556a55ea8a5eec7b288c9a199f9f
2018-03-26 23:59:02 +00:00
TreeHugger Robot
d3a6af439e Merge "Add the AVRCP Target Service (2/2)" into pi-dev 2018-03-26 23:54:39 +00:00
Ruchi Kandoi
d785fc4f6d Modify Open Mobile API to follow Android API guidelines
- Add @Nullable/@NonNull to input arguments for APIs
- Remove deprecated methods openBasicChannel(aid) and
  openLogicalChannel(aid)
- SecureElementListener is converted to a stand-alone interface
- serviceConnected() callback is renamed to onServiceConnected()

Bug: 64994044
Test: Run Cts Test
Change-Id: I503044a26a81dae8befb87fb8e8ac96d19de883b
2018-03-26 23:28:26 +00:00
Dmitry Dementyev
82476a3d52 Merge "Use Builder instead for KeyChainProtectionParams." into pi-dev
am: 5b4a0d6751

Change-Id: I27700c001112a0778a3599679f46914000e36174
2018-03-26 23:26:27 +00:00
TreeHugger Robot
d982f561cc Merge "Fix random SmartLinkify-related TextView bugs." into pi-dev 2018-03-26 23:21:37 +00:00
Ajay Panicker
0a9258f435 Add the AVRCP Target Service (2/2)
Add the AVRCP Target constant to Bluetooth Profile. Also remove redundant
public static final modifier on the constants.

Bug: 68854188
Test: Compiles and local test with service enabled
Change-Id: If2ec607fc704c225f8903d438fe970dfafac25f1
(cherry picked from commit 38c3073ba2)
Merged-In: If2ec607fc704c225f8903d438fe970dfafac25f1
2018-03-26 23:11:09 +00:00
Dmitry Dementyev
5b4a0d6751 Merge "Use Builder instead for KeyChainProtectionParams." into pi-dev 2018-03-26 23:07:23 +00:00
Philip P. Moltmann
895b6a19a6 Merge "Make PackageManager#getNamesForUids testable." into pi-dev
am: 9360a31f5f

Change-Id: Ie4c8cb0ffa78bd1a008aad2eae9caae6c2c0afb5
2018-03-26 22:56:01 +00:00
Jeff Sharkey
acbde7d5d3 Report final progress when finished copying.
Test: none
Bug: 74120182
Change-Id: I984d38505545b5f18dd3dd9a3c6f714a9ea86edd
2018-03-26 16:54:38 -06:00
Tyler Gunn
8b07cc5819 Merge "Add exception catching for BlockedNumberContract methods used by Telecom." am: 13791285aa
am: 7f4c7a1b88

Change-Id: Ibc4e5312b04abd5bad43f59c66a6f48a8150760e
2018-03-26 22:39:19 +00:00
TreeHugger Robot
9360a31f5f Merge "Make PackageManager#getNamesForUids testable." into pi-dev 2018-03-26 22:36:45 +00:00
Tyler Gunn
7f4c7a1b88 Merge "Add exception catching for BlockedNumberContract methods used by Telecom."
am: 13791285aa

Change-Id: I91280ca5ce1a146ca0635f95fb2b0d9a311778ea
2018-03-26 22:25:35 +00:00
Jason Monk
fe54f0c260 Merge "Security fixup for Slices" into pi-dev
am: fc704e2fd7

Change-Id: I7a3dfda74afdbaa1c77058b3a27c86899c1b05a3
2018-03-26 21:59:46 +00:00
Makoto Onuki
7e62948ab3 Merge "Sticky battery saver" into pi-dev
am: 110a7c20f4

Change-Id: Ieac07ecfaa0489d08a0bb9e2670da5b7e1a2d67c
2018-03-26 21:54:07 +00:00
Jason Monk
fc704e2fd7 Merge "Security fixup for Slices" into pi-dev 2018-03-26 21:44:38 +00:00
TreeHugger Robot
110a7c20f4 Merge "Sticky battery saver" into pi-dev 2018-03-26 21:41:09 +00:00
Jeff Sharkey
ae1324a32e API council requested tweaks to SystemClock.
Test: none
Bug: 73952114
Change-Id: Idd7aae5161a2326920860a6a9c7137369a4d8b3d
2018-03-26 15:34:24 -06:00
Tyler Gunn
13791285aa Merge "Add exception catching for BlockedNumberContract methods used by Telecom." 2018-03-26 21:18:54 +00:00
Seigo Nonaka
0c5daa19e3 Stop using DynamicLayout in case of non selectable PrecomputedText
DynamicLayout is required when
- The text is Editable.
- The selection is enabled on TextView.

This CL stops using DynamicLayout when the TextView is not selectable
TextView and the input text is PrecomputedText.

Bug: 72998298
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest

Change-Id: Ic4a66ad3ed8868570735e3199879b74132a8c4aa
2018-03-26 14:01:04 -07:00
Chris Craik
407488584c Merge "Remove incorrect @NonNull annotations on getDrawable() and variants." into pi-dev
am: d52c532df7

Change-Id: Ib503211113d175ed633a6e2045cd01938ba0d4c0
2018-03-26 20:42:10 +00:00
Martijn Coenen
c040ffd288 Merge "Add new trace tag for AIDL."
am: fe3877f140

Change-Id: I7aced8041cb8859b0a26db157e7626045e17a006
2018-03-26 20:26:18 +00:00
Chris Craik
d52c532df7 Merge "Remove incorrect @NonNull annotations on getDrawable() and variants." into pi-dev 2018-03-26 20:21:04 +00:00
Jeff Sharkey
eb738c1c50 API council requested tweaks to DataUnit.
Test: none
Bug: 71584606
Change-Id: Ic516dd7645e150586d7dd2e389e7663a32924ecc
2018-03-26 13:37:20 -06:00
Jeff Sharkey
121d565b65 API council requested tweaks to TrafficStats.
Test: atest android.appsecurity.cts.AppSecurityTests#testAppFailAccessPrivateData
Bug: 71584606
Change-Id: I4be8a47d54a04f17cbaac735d543ff7d6370376d
2018-03-26 13:12:39 -06:00
Dmitry Dementyev
16d9db57f5 Use Builder instead for KeyChainProtectionParams.
Use Builder to create KeyChainSnapshot it tests.
Bug: 75952916
Test: apct
Change-Id: I5ab8c864a7ccc55dafa40867ec4364a705738d86
2018-03-26 12:03:51 -07:00
Felipe Leme
0c8ce322a3 Integrate autofill session lifecycle with URL bar changes when on compat mode.
The contents of a browser URL bar is typically changed for 2 reasons:

1.User entered a new URL.
2.Form was submitted and the URL changed.

On scenario #1, the current session should be canceled, while on #2 it should be
committed. Scenario #2 is already handled when the service sets a SaveInfo, so
this CL handles the other cases:

1.Focus on URL bar is ignored so it does not trigger a new partition.
2.If URL bar changed and service didn't set a SaveInfo, the session is canceled.

Fixes: 76027553

Test: manual test with Chrome
Test: new tests on VirtualContainerActivityCompatModeTest:
      testFocusOnUrlBarIsIgnored()
      testUrlBarChangeIgnoredWhenServiceCanSave()
      testUrlBarChangeCancelsSessionWhenServiceCannotSave
      testUrlBarChangeCancelsSessionWhenServiceReturnsNullResponse
Test: atest CtsAutoFillServiceTestCases

Change-Id: I19d2aa4c8b25def0d5eca1c59cfdc2ffe33dd388
2018-03-26 11:55:31 -07:00
Jeff Sharkey
1da8bb1d8e Move FIRST_SDK_INT to @TestApi.
Test: atest android.os.cts.BuildTest
Bug: 71555186
Change-Id: I92732b930834d9c1e4150417bb3ee8b6839e2b3e
2018-03-26 12:51:03 -06:00
Makoto Onuki
a3cd7b9d53 Sticky battery saver
- When battery saver is enabled manually (i.e. via PM.setPowerSaveMode()),
it'll stick, and we'll re-enable battery saver even after a reboot
or a charge.

- Extracted all battery saver state transition logic into a separate
class.

Fix: 75033216
Bug: 74120126
Test: Manual test with "dumpsys battery set ...."
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySaverStateMachineTest.java
Change-Id: If020cd48f341b339783fe09dd35bc7199e737a52
Test: dumpsys power
Test: incident_report power
Test: atest CtsBatterySavingTestCases
2018-03-26 10:27:56 -07:00
Philip P. Moltmann
abeb04ed55 Make PackageManager#getNamesForUids testable.
Fixes: 76161011
Test: atest android.content.pm.cts.PackageManagerTest
Change-Id: I857d489ec9981839d63a5b934b4aaa0d2709be85
2018-03-26 10:22:10 -07:00
Abodunrinwa Toki
520969191b Fix random SmartLinkify-related TextView bugs.
1. Preserve selection when the TC times out. (See: SelectionActionModeHelper)

2. Fix highlight/toolbar flicker when tapping on a smart link.
   - Highlight flicker happening because we reset the selection while in
     the process of starting a link action mode.
     i.e. onLinkDown: show highlight
          onLinkUp: start the link action mode asynchronously
	  onLinkUp: reset the selection to an insertion cursor*
	  onLinkActionModeStarted: reset the highlight
	  *Fix: Don't reset selection while starting a link action mode.
   - Toolbar flicker happening because the toolbar positions itself over
     the current selection. The way link highlights have traditionally
     been done is to set the selection to the links bounds*
     *Fix: Hide the toolbar for a few milliseconds when changing
     selection for smoother transition.

3. Fix Paste menu overriding link action mode toolbar after a recent
   "Copy" action. The Paste menu appearing is a feature. Whenever the
   user inserts a cursor after just copying some text, we show the Paste
   menu as a way to make it easy for the user to select the text.
   Because of the problem described in (2) above, changing the selection
   to an insertion triggers the Paste menu feature. Fixing (2) fixes
   this.

4. Fix IME popping up on non-selectable + focusable TextViews.
   See: imm.showSoftInput(...) in Editor. And see comment in the code
   around that. We should only pop up the IME for editable text.

Fixes: 73872461
Fixes: 75985239
Fixes: 76011461

Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: If9ddb7f4e6d4db480ba4a495a22f7f2924ab937e
2018-03-26 18:11:03 +01:00
Ricky Wai
b76efd7adf Merge "Improve ConnectivityManager.getNetworkWatchlistConfigHash() javadoc" into pi-dev
am: e1c76d71e7

Change-Id: Ic3de4d136a995a8291fb43c780a311e423aeb9b7
2018-03-26 17:01:45 +00:00