OSDN Git Service

android-x86/frameworks-base.git
6 years agoMoved VibrateHelper as a dependency
Matthew Ng [Fri, 9 Mar 2018 21:42:18 +0000 (13:42 -0800)]
Moved VibrateHelper as a dependency

VibrateHelper is a dependency to minimize number of event listeners.
This is related to the change ag/3711731.

Bug: 73942704
Test: manual, press home button when quick step is enabled
Change-Id: Ic982cd16d88224003aa53847daaa04372898ef22

6 years agoMerge "Fix AutoTileManagerTest" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 20:20:29 +0000 (20:20 +0000)]
Merge "Fix AutoTileManagerTest" into pi-dev

6 years agoMerge "Update battery saver colors to make them more obvious" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 19:17:00 +0000 (19:17 +0000)]
Merge "Update battery saver colors to make them more obvious" into pi-dev

6 years agoMerge "Add known uses to hidden API light greylist" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 19:05:29 +0000 (19:05 +0000)]
Merge "Add known uses to hidden API light greylist" into pi-dev

6 years agoMerge "Update alarm and messaging dnd filtering" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 19:04:27 +0000 (19:04 +0000)]
Merge "Update alarm and messaging dnd filtering" into pi-dev

6 years agoMerge "Add PrintSpooler to system app whitelist" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 18:55:32 +0000 (18:55 +0000)]
Merge "Add PrintSpooler to system app whitelist" into pi-dev

6 years agoMerge "Move notification policy log to ZenLog" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 18:53:35 +0000 (18:53 +0000)]
Merge "Move notification policy log to ZenLog" into pi-dev

6 years agoMerge "Add vibrate on down over nav bar and tick on motion up" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 18:38:40 +0000 (18:38 +0000)]
Merge "Add vibrate on down over nav bar and tick on motion up" into pi-dev

6 years agoMerge "Add intent category for slices to help identify them" into pi-dev
Jason Monk [Fri, 9 Mar 2018 18:21:43 +0000 (18:21 +0000)]
Merge "Add intent category for slices to help identify them" into pi-dev

6 years agoMerge "Add lockHardwareWideColorGamutCanvas." into pi-dev
Peiyong Lin [Fri, 9 Mar 2018 18:19:52 +0000 (18:19 +0000)]
Merge "Add lockHardwareWideColorGamutCanvas." into pi-dev

6 years agoMerge "Don't allow foreground notis to be blocked inline." into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 18:08:19 +0000 (18:08 +0000)]
Merge "Don't allow foreground notis to be blocked inline." into pi-dev

6 years agoMerge "Display mobile data type icons in status bar." into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 18:03:55 +0000 (18:03 +0000)]
Merge "Display mobile data type icons in status bar." into pi-dev

6 years agoMerge "Correct directory location." into pi-dev
Jake Wharton [Fri, 9 Mar 2018 18:01:13 +0000 (18:01 +0000)]
Merge "Correct directory location." into pi-dev

6 years agoCorrect directory location.
Jake Wharton [Fri, 9 Mar 2018 17:53:21 +0000 (12:53 -0500)]
Correct directory location.

This moved as part of e94ca6676f8f845741369d4967255f642a4cefbb.

Bug: 74390715
Test: none
Exempt-From-Owner-Approval: build fix of support library folder reference
Change-Id: I4109ef44748deb03a91e372b40b85d025f0d2765

6 years agoMerge "Jobs in 'active' apps are not subject to standby" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 17:50:42 +0000 (17:50 +0000)]
Merge "Jobs in 'active' apps are not subject to standby" into pi-dev

6 years agoMerge changes I64009362,I8ebb617c into pi-dev
Ying Xu [Fri, 9 Mar 2018 17:44:09 +0000 (17:44 +0000)]
Merge changes I64009362,I8ebb617c into pi-dev

* changes:
  Do not throw RuntimeException from stopScan().
  Address the API review comments.

6 years agoMerge changes Ifec29546,Iaab1cc44 into pi-dev
Lei Yu [Fri, 9 Mar 2018 17:41:27 +0000 (17:41 +0000)]
Merge changes Ifec29546,Iaab1cc44 into pi-dev

* changes:
  Add metrics for battery tip
  Add metric for restrict app tip and high usage tip

6 years agoMerge "Add sleep for profile saving in AppLaunch" into pi-dev
Mathieu Chartier [Fri, 9 Mar 2018 17:25:25 +0000 (17:25 +0000)]
Merge "Add sleep for profile saving in AppLaunch" into pi-dev

6 years agoMerge "Remove RuntimeException throws from TelephonyManager" into pi-dev
Chen Xu [Fri, 9 Mar 2018 17:02:41 +0000 (17:02 +0000)]
Merge "Remove RuntimeException throws from TelephonyManager" into pi-dev

6 years agoMerge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into oc-dev am...
Rubin Xu [Fri, 9 Mar 2018 16:12:28 +0000 (16:12 +0000)]
Merge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into oc-dev am: 6e30a00c96 am: f45dbc6a69
am: 184c75c2f0

Change-Id: Id724a10c23afc2fc9f1ac5eeef7853ec6b40a417

6 years agoMerge changes from topic "magnifier_expose_size_and_zoom-pi-dev" into pi-dev
Mihai Popa [Fri, 9 Mar 2018 16:02:31 +0000 (16:02 +0000)]
Merge changes from topic "magnifier_expose_size_and_zoom-pi-dev" into pi-dev

* changes:
  [Magnifier-31] Do not magnify outside current line
  [Magnifier-29] Expose size and zoom in the API

6 years agoDon't allow foreground notis to be blocked inline.
Julia Reynolds [Thu, 8 Mar 2018 19:42:50 +0000 (14:42 -0500)]
Don't allow foreground notis to be blocked inline.

Offer a 'minimize' option instead.

Also I'm changing the guts, do a little layout
cleanup in the confirmation dialog.

Change-Id: I9f2ef824d1f322752bc4161356f16a5dae166caf
Fixes: 73898083
Fixes: 73657862
Fixes: 73657452
Test: runtest systemui-notification

6 years agoAdd intent category for slices to help identify them
Jason Monk [Thu, 8 Mar 2018 19:18:55 +0000 (14:18 -0500)]
Add intent category for slices to help identify them

Test: cts, testMapIntentToSlice
Bug: 73123733
Change-Id: I75c3e132861d04301f5c856c235eadfc4be8f9bc

6 years agoMerge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into oc-dev am...
Rubin Xu [Fri, 9 Mar 2018 15:55:09 +0000 (15:55 +0000)]
Merge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into oc-dev am: 6e30a00c96
am: f45dbc6a69

Change-Id: Ic7d8a8dd5cff126f9995ba9aa3e1158d724e4403

6 years agoFix AutoTileManagerTest
Amin Shaikh [Fri, 9 Mar 2018 15:54:50 +0000 (10:54 -0500)]
Fix AutoTileManagerTest

Bug: 74431173
Test: runtest systemui
Change-Id: I7d375e913dfab42ffc2e2006b86375f62a8f1165

6 years agoMerge "Fix opening tuner session with HAL 2.0." into pi-dev
Tomasz Wasilczyk [Fri, 9 Mar 2018 15:46:48 +0000 (15:46 +0000)]
Merge "Fix opening tuner session with HAL 2.0." into pi-dev

6 years agoDisplay mobile data type icons in status bar.
Amin Shaikh [Thu, 8 Mar 2018 15:08:13 +0000 (10:08 -0500)]
Display mobile data type icons in status bar.

Instead of showing the type in the top left corner of the signal.
- Add new status bar mobile data indicator assets
- Remove unused qs/status bar mobile data indicator assets

Bug: 72540392
Test: visual using demo mode
Change-Id: Ic63ad3307daabf2e0f023308b7e0682dbd29f1ca

6 years agoMerge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev...
Rubin Xu [Fri, 9 Mar 2018 15:38:37 +0000 (15:38 +0000)]
Merge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev am: a9df845321 am: 8dddc5e1f8
am: edb8872513  -s ours

Change-Id: Ia1047b019f4ee8844a2dc45be534747d5e799224

6 years agoMove notification policy log to ZenLog
Beverly [Thu, 8 Mar 2018 15:36:25 +0000 (10:36 -0500)]
Move notification policy log to ZenLog

- move to ZenLog to avoid log being dropped

Test: manual
Bug: 73612465
Change-Id: I9131ac3623cb0ebf69098f38b125654e469fd3af

6 years agoMerge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into oc-dev
Rubin Xu [Fri, 9 Mar 2018 15:35:36 +0000 (15:35 +0000)]
Merge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into oc-dev
am: 6e30a00c96

Change-Id: I70114bdaa8186e7a2bb23e7d4e2c33c5d5b17e60

6 years agoMerge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev...
Rubin Xu [Fri, 9 Mar 2018 15:33:05 +0000 (15:33 +0000)]
Merge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev am: a9df845321
am: 8dddc5e1f8

Change-Id: I52e47a1dec4e71c4002d2657cc99e712a39f8d34

6 years agoMerge "Add unit test to verify option propagation from starter to modifier." into...
Bryce Lee [Fri, 9 Mar 2018 15:18:40 +0000 (15:18 +0000)]
Merge "Add unit test to verify option propagation from starter to modifier." into pi-dev

6 years agoMerge "Do not call checkReadyForSleep recursively." into pi-dev
Bryce Lee [Fri, 9 Mar 2018 15:18:27 +0000 (15:18 +0000)]
Merge "Do not call checkReadyForSleep recursively." into pi-dev

6 years agoMerge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev
Rubin Xu [Fri, 9 Mar 2018 15:15:07 +0000 (15:15 +0000)]
Merge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev
am: a9df845321

Change-Id: I0d7f4421d10f977eb9071ba3478da771e58541ca

6 years agoMerge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into oc-dev
TreeHugger Robot [Fri, 9 Mar 2018 15:01:42 +0000 (15:01 +0000)]
Merge changes from topic "am-af991497-a243-423d-8f58-f6bc1131a734" into oc-dev

* changes:
  [automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am: 41d8bf1fed am: 595f82f99e am: 3aaa23e1e2 am: 4b71619f50 skipped: d56e2e2cd0
  [automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am: 41d8bf1fed am: 595f82f99e am: 3aaa23e1e2 am: 4b71619f50
  [automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am: 41d8bf1fed am: 595f82f99e am: 3aaa23e1e2
  [automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am: 41d8bf1fed am: 595f82f99e
  [automerger] [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids am: 41d8bf1fed
  [DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids

6 years agoMerge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev
Rubin Xu [Fri, 9 Mar 2018 14:59:30 +0000 (14:59 +0000)]
Merge "[DO NOT MERGE] Add permission check to setAllowOnlyVpnForUids" into oc-dev

6 years agoMerge "Move mobile signal indicator to QS footer." into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 14:56:59 +0000 (14:56 +0000)]
Merge "Move mobile signal indicator to QS footer." into pi-dev

6 years agoMerge "Add logging for screen timeout override." into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 14:40:41 +0000 (14:40 +0000)]
Merge "Add logging for screen timeout override." into pi-dev

6 years ago[Magnifier-31] Do not magnify outside current line
Mihai Popa [Wed, 7 Mar 2018 12:25:21 +0000 (12:25 +0000)]
[Magnifier-31] Do not magnify outside current line

Currently, after the cursor is reaching the end of a line, the magnifier
keeps following the finger even if the cursor cannot move anymore.

This CL limits the movement of the magnifier, ensuring it stays between
the bounds of the text line. Also, when the finger gets too far from the
end of the line, we dismiss the magnifier. We consider it went too far
when the cursor is not visible anymore inside the magnifier.

Bug: 72314536
Test: manual testing (both English and Arabic)
Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I8dafba1fc8e7b8e482526e818831ece2ee20ac27
(cherry picked from commit dfc752bc745ca272234be41f2b54d49eccece84d)
Merged-In: I8dafba1fc8e7b8e482526e818831ece2ee20ac27

6 years agoUpdate alarm and messaging dnd filtering
Julia Reynolds [Wed, 7 Mar 2018 12:35:21 +0000 (07:35 -0500)]
Update alarm and messaging dnd filtering

- Check audio attributes on the notificationrecord, not the
notification (to take into account the notification channel audio)
- Allow notifications that use messaging style to be considered a
message for dnd

Test: runtest systemui-notification
Change-Id: I8e6a86ed62089a53fe71000e6d9da00f1c54b59e
Fixes: 74243745
Fixes: 74311423

6 years agoAdd PrintSpooler to system app whitelist
David Brazdil [Fri, 9 Mar 2018 13:39:59 +0000 (13:39 +0000)]
Add PrintSpooler to system app whitelist

This app builds directly against the platform. Add it to the whitelist.

Bug: 64382372
Test: make
Test: device boots
Change-Id: I4c308d93d66391da2d3691eb45e5d7b1c1fdd582

6 years agoAdd known uses to hidden API light greylist
David Brazdil [Fri, 9 Mar 2018 11:32:07 +0000 (11:32 +0000)]
Add known uses to hidden API light greylist

API uses from common apps.

Bug: 64382372
Bug: 74422232
Bug: 74340334
Bug: 74412301
Bug: 74392708
Bug: 74365557
Bug: 74386409
Bug: 73208915
Bug: 74323829
Test: make
Change-Id: I50b7be7d082a38359244e779bd885ec26164017b

6 years agoMerge changes from topic "jr-viseffects" into pi-dev
Julia Reynolds [Fri, 9 Mar 2018 13:38:06 +0000 (13:38 +0000)]
Merge changes from topic "jr-viseffects" into pi-dev

* changes:
  Make systemui obey new visual effect flags
  Expand the visual effects that DND can suppress.

6 years ago[Magnifier-29] Expose size and zoom in the API
Mihai Popa [Tue, 6 Mar 2018 14:24:07 +0000 (14:24 +0000)]
[Magnifier-29] Expose size and zoom in the API

The CL exposes the size and the zoom of the magnifier in the public API.
These are required for implementing a number of UX requests in WebView
and Chrome - see the two bugs referenced.

Also, the CL fixes a bug in the #getContent() TestApi, which was
returning the bitmap before (instead of after) scaling.

Bug: 70608551
Bug: 72314536
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Idc583b923010d7dca075b05b6f4dbafa74cfec1f
(cherry picked from commit e1b93ddcbd40334664d6360d60525981cf3a3981)
Merged-In: Idc583b923010d7dca075b05b6f4dbafa74cfec1f

6 years agoMerge "Update javadoc for WifiConfiguration.setHttpProxy" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 12:42:55 +0000 (12:42 +0000)]
Merge "Update javadoc for WifiConfiguration.setHttpProxy" into pi-dev

6 years agoMerge "SysUI: Fix a bunch of hacks around insets and cutouts" into pi-dev
Adrian Roos [Fri, 9 Mar 2018 12:40:37 +0000 (12:40 +0000)]
Merge "SysUI: Fix a bunch of hacks around insets and cutouts" into pi-dev

6 years agoMerge "Add BaseNetdEventCallback class that provides no-op implementations for INetdE...
TreeHugger Robot [Fri, 9 Mar 2018 12:40:22 +0000 (12:40 +0000)]
Merge "Add BaseNetdEventCallback class that provides no-op implementations for INetdEventCallback." into pi-dev

6 years agoMerge changes I46e93397,Ie0a157a9 into pi-dev
Jorim Jaggi [Fri, 9 Mar 2018 12:05:01 +0000 (12:05 +0000)]
Merge changes I46e93397,Ie0a157a9 into pi-dev

* changes:
  Also set calling pid when registering for next activity start
  Revert "Revert "Elevate remote/recents animation priority""

6 years agoAdd BaseNetdEventCallback class that provides no-op implementations for INetdEventCal...
dalyk [Thu, 8 Mar 2018 21:33:25 +0000 (16:33 -0500)]
Add BaseNetdEventCallback class that provides no-op implementations for INetdEventCallback.

Test: None
Bug: 71828272
Merged-In: I261015d0d3e7e4159bb514742a6c588bfd34e795
Merged-In: I3a701fc52641615bf197f980022a61518c7347f4
Merged-In: I1ed5ede74ca14718e6d4f8a9a8d57de6026c9e93
Merged-In: Ib0c4b69a24144d27f672ec716fb9a8f06987ce7d
Change-Id: I75e0620f82195f18befe9dc079492a8c69bb764b
(cherry picked from commit 985d89a6e0412a3b0e8b1519de8ebffdbf708d31)

6 years agoMerge "Whitelist all @SystemApi and @TestApi for hidden API" into pi-dev
David Brazdil [Fri, 9 Mar 2018 10:07:41 +0000 (10:07 +0000)]
Merge "Whitelist all @SystemApi and @TestApi for hidden API" into pi-dev

6 years agoMerge "Display shortcut inline with item title in cascading menu" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 09:22:54 +0000 (09:22 +0000)]
Merge "Display shortcut inline with item title in cascading menu" into pi-dev

6 years agoMerge "MediaSession2: Ensure NonNull/Nullable for parameters of public methods" into...
Hyundo Moon [Fri, 9 Mar 2018 08:28:08 +0000 (08:28 +0000)]
Merge "MediaSession2: Ensure NonNull/Nullable for parameters of public methods" into pi-dev

6 years agoMerge "Add team members in OWNER file" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 07:37:43 +0000 (07:37 +0000)]
Merge "Add team members in OWNER file" into pi-dev

6 years agoAdd team members in OWNER file
yro [Fri, 9 Mar 2018 02:41:03 +0000 (18:41 -0800)]
Add team members in OWNER file

Bug: 74415902

Test: no test necessary
Change-Id: I39d0a5cb9c6e8520fd29881442e66961096d52fc

6 years agoMerge "Documenting some core proto style conventions." into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 05:15:28 +0000 (05:15 +0000)]
Merge "Documenting some core proto style conventions." into pi-dev

6 years agoMerge "Marked testFocusedWindowMultipleDisplays as flaky" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 05:13:22 +0000 (05:13 +0000)]
Merge "Marked testFocusedWindowMultipleDisplays as flaky" into pi-dev

6 years agoMediaSession2: Ensure NonNull/Nullable for parameters of public methods
Hyundo Moon [Mon, 5 Mar 2018 04:41:01 +0000 (13:41 +0900)]
MediaSession2: Ensure NonNull/Nullable for parameters of public methods

Bug: 73863865
Test: runtest-MediaComponents
Change-Id: Id40f221ae60b1e63afd9ff71950589fe13a7f526

6 years agoMerge "MediaSession2: Implement MediaSession2#updatePlayer()" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 04:37:29 +0000 (04:37 +0000)]
Merge "MediaSession2: Implement MediaSession2#updatePlayer()" into pi-dev

6 years agoMerge changes from topic "cdex_commands" into pi-dev
Mathieu Chartier [Fri, 9 Mar 2018 04:27:18 +0000 (04:27 +0000)]
Merge changes from topic "cdex_commands" into pi-dev

* changes:
  Clean up comment
  Bump version for OtaDexoptService
  Add logic for passing down CompactDex generation flag

6 years agoMove mobile signal indicator to QS footer.
Amin Shaikh [Thu, 8 Mar 2018 16:39:01 +0000 (11:39 -0500)]
Move mobile signal indicator to QS footer.

- Change mobile data tile to a static icon with mobile data indicators
- Add the status bar mobile network signal icon to QS footer
- Show SIM status in the carrier text in the QS footer only if the
status is not simply "No SIM card" since that status is shown in the
secondary text of the mobile data tile

Bug: 72540392
Test: visual && runtest systemui
Change-Id: I6fee19887decf68db5084edc8c0e2d23bb1938d1

6 years agoMerge "Add global setting for auto-battery saver threshold max" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 03:51:41 +0000 (03:51 +0000)]
Merge "Add global setting for auto-battery saver threshold max" into pi-dev

6 years agoMerge "Don't hold AM lock during assist data request." into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 03:39:31 +0000 (03:39 +0000)]
Merge "Don't hold AM lock during assist data request." into pi-dev

6 years agoMerge "Fix statsd crash due to bad bucket index" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 03:23:17 +0000 (03:23 +0000)]
Merge "Fix statsd crash due to bad bucket index" into pi-dev

6 years agoMerge "[RTT] COARSE -> FINE permission requirements" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 03:19:50 +0000 (03:19 +0000)]
Merge "[RTT] COARSE -> FINE permission requirements" into pi-dev

6 years agoMerge "MediaPlayer2Impl: fix getPlayerState." into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 03:10:41 +0000 (03:10 +0000)]
Merge "MediaPlayer2Impl: fix getPlayerState." into pi-dev

6 years agoMerge "Bluetooth: Separate enable and disable Reasons from package name" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 03:02:22 +0000 (03:02 +0000)]
Merge "Bluetooth: Separate enable and disable Reasons from package name" into pi-dev

6 years agoMerge "Remove debug metadata isVrOnly from InputMethodInfo" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 02:53:23 +0000 (02:53 +0000)]
Merge "Remove debug metadata isVrOnly from InputMethodInfo" into pi-dev

6 years agoAdd sleep for profile saving in AppLaunch
Mathieu Chartier [Fri, 9 Mar 2018 02:12:46 +0000 (18:12 -0800)]
Add sleep for profile saving in AppLaunch

Aim to prevent cases where the profile won't be saved when we compile.

Bug: 70734839
Test: m
Change-Id: Ib6f8740c70729914fc559f249b19adea1e7777f0

6 years agoMerge "Make few of the new IMS API methods final" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 02:01:24 +0000 (02:01 +0000)]
Merge "Make few of the new IMS API methods final" into pi-dev

6 years agoMerge "Expose WebView#onCheckIsTextEditor" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 01:57:57 +0000 (01:57 +0000)]
Merge "Expose WebView#onCheckIsTextEditor" into pi-dev

6 years agoMerge "Optimize incidentd memory usage" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 01:57:32 +0000 (01:57 +0000)]
Merge "Optimize incidentd memory usage" into pi-dev

6 years agoDocumenting some core proto style conventions.
Kweku Adams [Tue, 6 Mar 2018 02:06:02 +0000 (18:06 -0800)]
Documenting some core proto style conventions.

Bug: 74206433
Test: Android builds
Change-Id: I90ec796b9a06fdfd9cf1f6d69f217b636472c590

6 years agoMerge "Write data to file when StatsCompanionSerivice (system_server) crashes" into...
TreeHugger Robot [Fri, 9 Mar 2018 01:18:27 +0000 (01:18 +0000)]
Merge "Write data to file when StatsCompanionSerivice (system_server) crashes" into pi-dev

6 years agoAdd vibrate on down over nav bar and tick on motion up
Matthew Ng [Thu, 8 Mar 2018 22:51:36 +0000 (14:51 -0800)]
Add vibrate on down over nav bar and tick on motion up

Added a tick vibration for down and up (after 150ms delay) over back and
home button. Vibration on touch down covers the entire bar.

Fixes: 73942704
Test: tap nav bar or tap home button
Change-Id: Ib53c3667cbdf61a502bab53d98a2874a511acb3f

6 years agoMarked testFocusedWindowMultipleDisplays as flaky
Wale Ogunwale [Fri, 9 Mar 2018 01:01:08 +0000 (17:01 -0800)]
Marked testFocusedWindowMultipleDisplays as flaky

Bug: 37908381
Test: bit me!
Change-Id: Icc2cccc3468849810df8de8778e1e9dc044b01a4

6 years agoBluetooth: Separate enable and disable Reasons from package name
Jack He [Fri, 2 Mar 2018 21:08:36 +0000 (13:08 -0800)]
Bluetooth: Separate enable and disable Reasons from package name

* Reasons to enable or disable Bluetooth should be in a separate
  namespace away from package names that initiated the enable or disable
* Delcare reason code in android/bluetooth/enums.proto as
  EnableDisableReasonEnum and use these reason code together with
  package names to log Bluetooth enable and disable events
* When reason is ENABLE_DISABLE_REASON_APPLICATION_REQUEST, the external
  package name is the real reason why Bluetooth is enabled or disabled
* Change START_CRASH to START_ERROR since it represents a disable event
  when Bluetooth failed to start
* Change UNEXPECTED_CRASH to CRASH since no crash is expected
* Add getEnableDisableReasonString() method to covert reason code to
  human readable strings in dumpsys output

Bug: 74090881
Test: Toggle Bluetooth, airplane mode, BLE scanning
Change-Id: I06aa413e2a0a5f016c87759a1b694ef643c9cdee
(cherry picked from commit 0dbe66460fa2a5ebb05ca757e58141c213038bc1)

6 years agoRemove debug metadata isVrOnly from InputMethodInfo
Tarandeep Singh [Fri, 9 Mar 2018 00:11:37 +0000 (16:11 -0800)]
Remove debug metadata isVrOnly from InputMethodInfo

Change-Id: I1e5ae572ab0f8d53b1b8c4ae1e787aff294c82e0
Fixes: 68948291
Test: Manually built and tested. No changes expected for non-dev apps

6 years agoAdd lockHardwareWideColorGamutCanvas.
Peiyong Lin [Wed, 7 Mar 2018 02:34:21 +0000 (18:34 -0800)]
Add lockHardwareWideColorGamutCanvas.

This patch adds a hidden API to return a hardware canvas with wide color gamut
support. The hardware canvas returned from BaseSurfaceHolder.lockHardwareCanvas
doesn't support wide color gamut, this patch makes sure that a wide color gamut
canvas context is created when calling lockHardwareCanvas.

Verified this approach works by building ImageWallpaper to use this API.
Without this API an 8 bit logo P3 doesn't show the logo, with this API the logo
is shown correctly. See b/74116826 for more info.

BUG: 74116826
Test: Build ImageWallpaper using this API with an 8 bit P3 image
Change-Id: Id20343fabcd7f0873d79ce72a235ea9b7c1f3e77

6 years agoDisplay shortcut inline with item title in cascading menu
Vladislav Kaznacheev [Tue, 6 Mar 2018 01:11:11 +0000 (17:11 -0800)]
Display shortcut inline with item title in cascading menu

Bug: 74208750
Test: run android.widget.cts.PopupMenuTest on a large screen device
  such as hikey960.

Change-Id: I1c4bca3cfecb012432e6cb89cb4cc0177ccc04f9

6 years agoAdd unit test to verify option propagation from starter to modifier.
Bryce Lee [Thu, 8 Mar 2018 22:28:52 +0000 (14:28 -0800)]
Add unit test to verify option propagation from starter to modifier.

This changelist adds a test, which makes sure that the options
specified when executing an ActivityStarter are properly communicated
to the LaunchParamsModifier if a task is created during start.

Change-Id: Id244006106b72977206d5199c4e508807924d028
Fixes: 69270257
Test: atest FrameworksServicesTests:ActivityStarterTests#testCreateTaskLayout

6 years agoAdd logging for screen timeout override.
Michael Wright [Tue, 6 Mar 2018 15:14:06 +0000 (15:14 +0000)]
Add logging for screen timeout override.

Bug: 72312560
Test: flash, see log
Change-Id: I85662b567059d3c9bc2777670cef9a8f47af7465

6 years agoMediaPlayer2Impl: fix getPlayerState.
Wei Jia [Thu, 8 Mar 2018 21:56:42 +0000 (13:56 -0800)]
MediaPlayer2Impl: fix getPlayerState.

Test: MediaPlayer2 plays
Bug: 74204684
Change-Id: Ib27930287485f074be6a8df4a90fb78023153ccd

6 years agoMerge "Merge changes from topic "am-74e79eb6-59c1-4f9c-a993-72eeee3859c4" into oc...
Android Build Merger (Role) [Thu, 8 Mar 2018 21:53:15 +0000 (21:53 +0000)]
Merge "Merge changes from topic "am-74e79eb6-59c1-4f9c-a993-72eeee3859c4" into oc-dev am: b6b6c01847 am: bdc573b39b am: d258da6a80" into pi-dev

6 years agoMerge changes from topic "am-74e79eb6-59c1-4f9c-a993-72eeee3859c4" into oc-dev am...
Fyodor Kupolov [Thu, 8 Mar 2018 21:52:50 +0000 (21:52 +0000)]
Merge changes from topic "am-74e79eb6-59c1-4f9c-a993-72eeee3859c4" into oc-dev am: b6b6c01847 am: bdc573b39b
am: d258da6a80

Change-Id: Ifdaae4a751661cde4019835e067c6516c3d64599

6 years agoMerge "Add secondary text to mobile data tile." into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 21:51:40 +0000 (21:51 +0000)]
Merge "Add secondary text to mobile data tile." into pi-dev

6 years agoDon't hold AM lock during assist data request.
Winson Chung [Thu, 8 Mar 2018 19:10:27 +0000 (11:10 -0800)]
Don't hold AM lock during assist data request.

Bug: 73992642
Test: Manual, just ensure that we don't hold the lock while requesting
      assist data
Change-Id: I38305a0982722669733481b7ef74550f972c85ee

6 years agoMerge "[QS] Disable hotspot when data saver is enabled" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 21:43:11 +0000 (21:43 +0000)]
Merge "[QS] Disable hotspot when data saver is enabled" into pi-dev

6 years agoMerge "ImageDecoder: Add getters. Rename setAsAlphaMask" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 21:40:22 +0000 (21:40 +0000)]
Merge "ImageDecoder: Add getters. Rename setAsAlphaMask" into pi-dev

6 years agoRemove RuntimeException throws from TelephonyManager
fionaxu [Fri, 2 Mar 2018 22:21:37 +0000 (14:21 -0800)]
Remove RuntimeException throws from TelephonyManager

scrub exceptions from remote or due to phone service not ready.
This is in consistent with other APIs in TelephonyManager.

TODO: investigate appropriate way to handle exceptions in synchronous
APIs e.g. checked exception for those internal service failure.
tracked by b/74401420

Bug: 74016743
Test: Build
Change-Id: Ie1a07f57c2e3a70e5ac6c3ffa238c2209b34f2b8

6 years agoMerge "[QS] Update Cellular/data usage tile" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 21:36:59 +0000 (21:36 +0000)]
Merge "[QS] Update Cellular/data usage tile" into pi-dev

6 years agoFix statsd crash due to bad bucket index
Bookatz [Thu, 8 Mar 2018 19:16:48 +0000 (11:16 -0800)]
Fix statsd crash due to bad bucket index

Statsd crashes because predictAnomalyTimestamp requests past buckets
that occurred before time began. That's fine, but statsd needs to know
that the data before time began was 0 (instead of reading before the
beginning of the array and crashing).

AnomalyTracker's use of bucketNumbers is in general risky, and should be
auditted. But this cl will fix the current crashing.

Bug: 73825954
Test: Definitely necessary. Will write during audit.
Change-Id: I990ff134153f290d3089bfe3440d838f47996b63

6 years agoDo not throw RuntimeException from stopScan().
yinxu [Wed, 7 Mar 2018 21:49:51 +0000 (13:49 -0800)]
Do not throw RuntimeException from stopScan().

This is a clean cherry-pick from
https://android-review.googlesource.com/#/c/platform/frameworks/base/+/635589/

Bug:73750871
Test: Unit Test
Change-Id: I640093627c103fe1d2fe5707e6854ba748789919
Merged-in: I640093627c103fe1d2fe5707e6854ba748789919
(cherry picked from commit 5e366e31aecbecafd3dfb4bfc8f69ada34b1f550)

6 years agoMerge changes Ib8f43601,I61d82dca into pi-dev
Lucas Dupin [Thu, 8 Mar 2018 21:31:28 +0000 (21:31 +0000)]
Merge changes Ib8f43601,I61d82dca into pi-dev

* changes:
  Show battery percentage on indication field
  Revert "Show battery percentage on indication field"

6 years agoMerge changes from topic "am-74e79eb6-59c1-4f9c-a993-72eeee3859c4" into oc-dev am...
Fyodor Kupolov [Thu, 8 Mar 2018 21:27:20 +0000 (21:27 +0000)]
Merge changes from topic "am-74e79eb6-59c1-4f9c-a993-72eeee3859c4" into oc-dev am: b6b6c01847
am: bdc573b39b

Change-Id: I42858af9b3a8d5e436ce9bbff0a697290f9803d9

6 years agoClean up comment
Mathieu Chartier [Thu, 8 Mar 2018 21:11:40 +0000 (13:11 -0800)]
Clean up comment

Bug: 63756964
Bug: 74245837
Test: untested

(cherry picked from commit 28c4c9b04a0de99b4994707a499c3fe46c7a9ccd)

Merged-In: I47a0fbab7da9cd87ec9e7dc03b2bc00e5668eae3
Change-Id: Id126490847c2601bb1584c43147acc89dc8baeff

6 years agoBump version for OtaDexoptService
Mathieu Chartier [Wed, 7 Mar 2018 17:29:21 +0000 (09:29 -0800)]
Bump version for OtaDexoptService

Bug: 63756964
Bug: 74245837
Test: manual

(cherry picked from commit cbe92f735fb6b2cf569e815a97258e5f0c386e59)

Merged-In: I750e38a02710347a03783b820816eda6958ba0c6
Change-Id: I7658114b90232aa885438d69d396fcbd5f5c56d0

6 years agoAdd logic for passing down CompactDex generation flag
Mathieu Chartier [Wed, 7 Mar 2018 02:28:22 +0000 (18:28 -0800)]
Add logic for passing down CompactDex generation flag

In the cases where we are not install, boot, or first boot, pass down
the flag to generate CompactDex.

Bug: 63756964
Bug: 74245837
Test: manual

(cherry picked from commit f890c3ea5c62fc44aa84fbd011be249accbaff08)

Merged-In: I4a2ff9383251e67b260cff5ec8a326c7a4f7faca
Change-Id: I857ba57d0821442b2d39e19b0102e62ab5f76f0c

6 years agoMerge "Stop using finalizer in Typeface and FontFamily" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 21:16:47 +0000 (21:16 +0000)]
Merge "Stop using finalizer in Typeface and FontFamily" into pi-dev

6 years agoMerge changes from topic "am-74e79eb6-59c1-4f9c-a993-72eeee3859c4" into oc-dev
Fyodor Kupolov [Thu, 8 Mar 2018 20:54:39 +0000 (20:54 +0000)]
Merge changes from topic "am-74e79eb6-59c1-4f9c-a993-72eeee3859c4" into oc-dev
am: b6b6c01847

Change-Id: I3bd011083894e1db22b90d38d71a0807facd151f

6 years agoFix opening tuner session with HAL 2.0.
Tomasz Wasilczyk [Thu, 1 Mar 2018 16:21:55 +0000 (08:21 -0800)]
Fix opening tuner session with HAL 2.0.

Bug: 73950974
Test: manual
Change-Id: Ic1cddf04250ae9b8c7914d334b981acba9ff6056