OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Merge textclassifier/logging/ into textclassifier/" into pi-dev
Abodunrinwa Toki [Mon, 12 Mar 2018 15:16:53 +0000 (15:16 +0000)]
Merge "Merge textclassifier/logging/ into textclassifier/" into pi-dev

6 years agoMerge "Support enhanced call blocking function" into pi-dev
Tyler Gunn [Mon, 12 Mar 2018 15:16:04 +0000 (15:16 +0000)]
Merge "Support enhanced call blocking function" into pi-dev

6 years agoMerge "Camera: SessionConfiguration should use Executors" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 14:55:34 +0000 (14:55 +0000)]
Merge "Camera: SessionConfiguration should use Executors" into pi-dev

6 years agoMerge "Add measurements for TransportClient connections" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 14:32:59 +0000 (14:32 +0000)]
Merge "Add measurements for TransportClient connections" into pi-dev

6 years agoMerge "[Magnifier-28] Set corner radius" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 14:12:16 +0000 (14:12 +0000)]
Merge "[Magnifier-28] Set corner radius" into pi-dev

6 years agoMerge "Add hidden API used by CTS to greylist" into pi-dev
David Brazdil [Mon, 12 Mar 2018 13:41:13 +0000 (13:41 +0000)]
Merge "Add hidden API used by CTS to greylist" into pi-dev

6 years agoAdd measurements for TransportClient connections
Bernardo Rufino [Fri, 9 Mar 2018 12:43:48 +0000 (12:43 +0000)]
Add measurements for TransportClient connections

Retrievable via 'adb shell dumpsys backup transportstats'.
Sample output:

Average connection time: 36.00 ms
Max connection time: 181 ms
Min connection time: 7 ms
Number of connections: 16
Per transport:
    com.google.android.gms/.backup.BackupTransportService
        Average connection time: 27.71 ms
        Max connection time: 139 ms
        Min connection time: 13 ms
        Number of connections: 14
    com.google.android.gms/.backup.component.D2dTransportService
        Average connection time: 181.00 ms
        Max connection time: 181 ms
        Min connection time: 181 ms
        Number of connections: 1
    android/com.android.internal.backup.LocalTransportService
        Average connection time: 7.00 ms
        Max connection time: 7 ms
        Min connection time: 7 ms
        Number of connections: 1

Bug: 72485465
Test: Will follow in another CL if reviewers OK w/ approach.
Change-Id: I133ed423d0b8471d69e3c3631aadee7d42d0ec0e
(cherry picked from commit e5a976404c66c054fbec9b124f816a90f9d6b4dc)

6 years ago[Magnifier-28] Set corner radius
Mihai Popa [Thu, 1 Mar 2018 16:08:14 +0000 (16:08 +0000)]
[Magnifier-28] Set corner radius

This CL updates both the magnifier and the floating toolbar to use the
dialogCornerRadius attribute for the corner radius of their windows. In
both we use its value defined in the default device theme, rather than
the value defined in the application's custom theme.

Bug: 70848492
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ifcf4cff1f38fd18b7dbb4c1802390e3beb92cd3c
(cherry picked from commit 3dcbc2112d9a47779f2d6b1a54df729ae43aed7e)
Merged-In: Ifcf4cff1f38fd18b7dbb4c1802390e3beb92cd3c

6 years ago[Magnifier-33] Add animation on line jump
Mihai Popa [Wed, 7 Mar 2018 19:56:21 +0000 (19:56 +0000)]
[Magnifier-33] Add animation on line jump

This CL adds a simple motion animation when the magnifier jumps between
lines.

Bug: 74381647
Test: manual testing
Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I27caba47b18e694f93739866d6fd69569cb89184
(cherry picked from commit 8175edc7555febe2fd9792a13abb346577b02c95)
Merged-In: I27caba47b18e694f93739866d6fd69569cb89184

6 years agoMerge "[Magnifier-32] Do not magnify outside selection" into pi-dev
Mihai Popa [Mon, 12 Mar 2018 11:46:06 +0000 (11:46 +0000)]
Merge "[Magnifier-32] Do not magnify outside selection" into pi-dev

6 years agoAdd hidden API used by CTS to greylist
David Brazdil [Mon, 12 Mar 2018 10:15:46 +0000 (10:15 +0000)]
Add hidden API used by CTS to greylist

Hidden API uses detected during a run of CTS.

Bug: 64382372
Test: make
Test: run CTS, no 'dark greylist' uses
Change-Id: I7e1d4ddc731d35e427e2781f0a867db68c5f45ec

6 years agoMerge "Revert "Revert "Remove a compat hack SurfaceView#setWindowType()""" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 09:45:42 +0000 (09:45 +0000)]
Merge "Revert "Revert "Remove a compat hack SurfaceView#setWindowType()""" into pi-dev

6 years agoMerge "Revert "Plumb IME subtype change from IMMS to IMS."" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 08:49:20 +0000 (08:49 +0000)]
Merge "Revert "Plumb IME subtype change from IMMS to IMS."" into pi-dev

6 years agoMerge "Add the ability to refresh to the captive portal app." into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 08:42:05 +0000 (08:42 +0000)]
Merge "Add the ability to refresh to the captive portal app." into pi-dev

6 years agoAdd the ability to refresh to the captive portal app.
Chalard Jean [Fri, 9 Mar 2018 13:28:51 +0000 (22:28 +0900)]
Add the ability to refresh to the captive portal app.

Bug: 69840796
Test: manual
      created a small app that brings up the captive portal app,
      checked that pulling down does show the refresh spinner,
      refresh the page, and hide the spinner when refreshed.
      Checked that it works multiple times in a row.

Change-Id: Ieefdaffa9325b0c5f1b02ab6052c29a381f3a4d4

6 years agoMerge "Allow apps in /odm/app and /odm/priv-app" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 05:07:32 +0000 (05:07 +0000)]
Merge "Allow apps in /odm/app and /odm/priv-app" into pi-dev

6 years agoMerge "Bouncer animation" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 02:04:21 +0000 (02:04 +0000)]
Merge "Bouncer animation" into pi-dev

6 years agoMerge changes from topic "yukawa-b66498367" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 01:58:06 +0000 (01:58 +0000)]
Merge changes from topic "yukawa-b66498367" into pi-dev

* changes:
  Revert "Switch and store keyboard layouts based on IME subtype."
  Revert "Accept null subtype in InputMethodSubtypeHandle."

6 years agoAllow apps in /odm/app and /odm/priv-app
Jiyong Park [Thu, 28 Dec 2017 03:03:28 +0000 (12:03 +0900)]
Allow apps in /odm/app and /odm/priv-app

/odm is a vendor partition other than /vendor. Both partitions are for
HW-specific modules such as HALs. The difference is that /odm is owned
by ODM (usually device manufacturer which designs the board), whereas
/vendor is owned by SoC manufacturer. In other words, /odm partition is
for board-specific customization to the /vendor partition.

Since apps can exist in /vendor/app and /vendor/priv-app, the same has
to be supported for /odm partition.

Bug: 71366495
Test: m -j
Teet: cd frameworks/base/tests/OdmApps; atest .
Change-Id: I1ec8b22b080efdefd67a45ce9c7aeaa2aef350e0

6 years agoMerge "Switch to BaseNetdEventCallback instead of interface" into pi-dev
Erik Kline [Mon, 12 Mar 2018 01:25:02 +0000 (01:25 +0000)]
Merge "Switch to BaseNetdEventCallback instead of interface" into pi-dev

6 years agoMerge "Correct button measuring" into pi-dev
Lucas Dupin [Sat, 10 Mar 2018 19:00:03 +0000 (19:00 +0000)]
Merge "Correct button measuring" into pi-dev

6 years agoMerge textclassifier/logging/ into textclassifier/
Abodunrinwa Toki [Fri, 2 Mar 2018 13:53:21 +0000 (13:53 +0000)]
Merge textclassifier/logging/ into textclassifier/

This is based on feedback on Ib5af1ec80a38432d1201fbc913acdc3597d6ba82

Bug: 74466564
Bug: 67609167
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.LoggerTest
Merged-In: Ic8d58acb2bbd63cedcac4aa16940b4ac852aadc8
Change-Id: Ic8d58acb2bbd63cedcac4aa16940b4ac852aadc8

6 years agoMerge "Add tron metric logging" into pi-dev
Victor Chang [Sat, 10 Mar 2018 12:24:38 +0000 (12:24 +0000)]
Merge "Add tron metric logging" into pi-dev

6 years agoMerge "Add more common hidden API uses into light greylist" into pi-dev
David Brazdil [Sat, 10 Mar 2018 11:52:12 +0000 (11:52 +0000)]
Merge "Add more common hidden API uses into light greylist" into pi-dev

6 years agoMerge "Deprecate most of NetworkInfo." into pi-dev
Chalard Jean [Sat, 10 Mar 2018 07:51:11 +0000 (07:51 +0000)]
Merge "Deprecate most of NetworkInfo." into pi-dev

6 years agoMerge "Expose CONNECTIVITY_ACTION to Instant Apps" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 04:34:08 +0000 (04:34 +0000)]
Merge "Expose CONNECTIVITY_ACTION to Instant Apps" into pi-dev

6 years agoMerge "Zygote: Set libbase default tag on fork" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 03:09:52 +0000 (03:09 +0000)]
Merge "Zygote: Set libbase default tag on fork" into pi-dev

6 years agoMerge "PackageManager: Avoid null access" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 01:52:55 +0000 (01:52 +0000)]
Merge "PackageManager: Avoid null access" into pi-dev

6 years agoMerge "Merge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc...
Android Build Merger (Role) [Sat, 10 Mar 2018 01:14:39 +0000 (01:14 +0000)]
Merge "Merge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev am: fe6a5c4675 am: 5eb85f01d2 am: 037206683b" into pi-dev

6 years agoMerge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev am...
Pengquan Meng [Sat, 10 Mar 2018 01:14:11 +0000 (01:14 +0000)]
Merge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev am: fe6a5c4675 am: 5eb85f01d2
am: 037206683b

Change-Id: If981740986af74936a82d496eab591d8009e3613

6 years agoMerge "Adding isNotInRecents to RemoteAnimationTarget" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 01:11:27 +0000 (01:11 +0000)]
Merge "Adding isNotInRecents to RemoteAnimationTarget" into pi-dev

6 years agoBouncer animation
Lucas Dupin [Mon, 5 Mar 2018 04:18:15 +0000 (20:18 -0800)]
Bouncer animation

More obvious animation where bouncer position is influenced
by touches.

Test: Pull up bouncer, press back button
Test: Pull up bouncer, unlock with fp
Test: Unlock with fp with bouncer hidden
Test: Unlock with SmartLock
Test: Ask for auth on top of FLAG_SHOW_WHEN_LOCKED activity, press back
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Fixes: 3699775
Change-Id: I016dfa17f17571261691669c82385d2d844c5917

6 years agoMerge "MediaPlayer2Impl: fix getBufferedPosition" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 01:00:35 +0000 (01:00 +0000)]
Merge "MediaPlayer2Impl: fix getBufferedPosition" into pi-dev

6 years agoMerge "statsd AnomalyDetection improvements" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 00:55:21 +0000 (00:55 +0000)]
Merge "statsd AnomalyDetection improvements" into pi-dev

6 years agoMerge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev am...
Pengquan Meng [Sat, 10 Mar 2018 00:44:41 +0000 (00:44 +0000)]
Merge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev am: fe6a5c4675
am: 5eb85f01d2

Change-Id: Iaf8ea26f3739a5c62ce6bb402ae8161ef99b5f80

6 years agoMerge "Track last job execution in heartbeat time, not strictly real time" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 00:22:57 +0000 (00:22 +0000)]
Merge "Track last job execution in heartbeat time, not strictly real time" into pi-dev

6 years agoMerge "Stop preloading recent tasks in SysUI when bound to overview service" into...
Winson Chung [Sat, 10 Mar 2018 00:22:31 +0000 (00:22 +0000)]
Merge "Stop preloading recent tasks in SysUI when bound to overview service" into pi-dev

6 years agoMerge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev
Pengquan Meng [Sat, 10 Mar 2018 00:20:21 +0000 (00:20 +0000)]
Merge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev
am: fe6a5c4675

Change-Id: I4440e9b50e975ea3a20ecd216b83deb83afe2780

6 years agoMerge "Filter out detached views from touch" into pi-dev
TreeHugger Robot [Sat, 10 Mar 2018 00:18:34 +0000 (00:18 +0000)]
Merge "Filter out detached views from touch" into pi-dev

6 years agoMerge "Fixed issue with focusing on minimized split-screen stack" into pi-dev
Wale Ogunwale [Sat, 10 Mar 2018 00:17:10 +0000 (00:17 +0000)]
Merge "Fixed issue with focusing on minimized split-screen stack" into pi-dev

6 years agoMerge "Added ACTION_BATTERY_LEVEL_CHANGED" into pi-dev
Fyodor Kupolov [Sat, 10 Mar 2018 00:14:11 +0000 (00:14 +0000)]
Merge "Added ACTION_BATTERY_LEVEL_CHANGED" into pi-dev

6 years agoMerge "Add -c option for dumpsys usagestats" into pi-dev
Michael Wachenschwanz [Sat, 10 Mar 2018 00:14:06 +0000 (00:14 +0000)]
Merge "Add -c option for dumpsys usagestats" into pi-dev

6 years agoMerge "Permit all daltonizer settings to be restored" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 23:55:50 +0000 (23:55 +0000)]
Merge "Permit all daltonizer settings to be restored" into pi-dev

6 years agoMerge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev
Pengquan Meng [Fri, 9 Mar 2018 23:37:01 +0000 (23:37 +0000)]
Merge changes from topic "am-59911b1f-fa0c-400c-a3f8-812ac0a8762b" into oc-dev

* changes:
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728 am: 61f84448eb am: a007cb0734 am: 3b356d5111 am: a61fe8f6c0 am: 3276de21ea am: bd60a681bf am: 5d5e5ca7cb am: f64ab1e93d
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728 am: 61f84448eb am: a007cb0734 am: 3b356d5111 am: a61fe8f6c0 am: 3276de21ea am: bd60a681bf am: 5d5e5ca7cb
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728 am: 61f84448eb am: a007cb0734 am: 3b356d5111 am: a61fe8f6c0 am: 3276de21ea am: bd60a681bf
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728 am: 61f84448eb am: a007cb0734 am: 3b356d5111 am: a61fe8f6c0 am: 3276de21ea
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728 am: 61f84448eb am: a007cb0734 am: 3b356d5111 am: a61fe8f6c0
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728 am: 61f84448eb am: a007cb0734 am: 3b356d5111
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728 am: 61f84448eb am: a007cb0734
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728 am: 61f84448eb
  [automerger] Fixed Security Vulnerability of DcParamObject am: 8c55a70728
  Fixed Security Vulnerability of DcParamObject

6 years agoMerge "Fixes KeyButtonView to dismiss ripple after aborting for long press" into...
TreeHugger Robot [Fri, 9 Mar 2018 23:20:26 +0000 (23:20 +0000)]
Merge "Fixes KeyButtonView to dismiss ripple after aborting for long press" into pi-dev

6 years agoMerge "frameworks/base: Fix AudioService JNI leaks" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 23:09:01 +0000 (23:09 +0000)]
Merge "frameworks/base: Fix AudioService JNI leaks" into pi-dev

6 years agoMerge "Rework thumbnail cleanup" into oc-mr1-dev
Marco Nelissen [Fri, 9 Mar 2018 23:00:20 +0000 (23:00 +0000)]
Merge "Rework thumbnail cleanup" into oc-mr1-dev
am: b20a329f4c

Change-Id: I17b77312edb4fa03af1e89543ed5c27f4501d51c

6 years agoMediaPlayer2Impl: fix getBufferedPosition
Wei Jia [Fri, 9 Mar 2018 21:49:13 +0000 (13:49 -0800)]
MediaPlayer2Impl: fix getBufferedPosition

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

6 years agoMerge changes from topic "viewpager_state" into oc-dev am: 77edd5fabe am: 5811482acf
Alan Viverette [Fri, 9 Mar 2018 22:31:59 +0000 (22:31 +0000)]
Merge changes from topic "viewpager_state" into oc-dev am: 77edd5fabe am: 5811482acf
am: ad3035353d  -s ours

Change-Id: I3a9299aac572f54e45b36e11cb2b8d015b181739

6 years agoCorrect button measuring
Lucas Dupin [Fri, 9 Mar 2018 00:51:16 +0000 (16:51 -0800)]
Correct button measuring

Test: set wallpaper to white, black, look at AOD
Change-Id: If0e0da4315240fcc26be6cad3de717f37d5d1864
Fixes: 74393005

6 years agoAdding isNotInRecents to RemoteAnimationTarget
Vadim Tryshev [Fri, 9 Mar 2018 01:15:45 +0000 (17:15 -0800)]
Adding isNotInRecents to RemoteAnimationTarget

For animations required by Recents, we calculate whether the task is
going to be presented in Recents UI.

Bug: 70789568
Test: Manual: swipe a normal app to Recents; swipe an app with a
      half-screen assistant on top of it to Recents.

Change-Id: I1ec9c36865dd4f57e843ae58811f90f3096365a5

6 years agoMerge "Fix min handling in AbsSeekBar" into pi-dev
Makoto Onuki [Fri, 9 Mar 2018 21:59:16 +0000 (21:59 +0000)]
Merge "Fix min handling in AbsSeekBar" into pi-dev

6 years agoMerge "Check for null pkgList in fixSeInfoLocked()" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 21:27:24 +0000 (21:27 +0000)]
Merge "Check for null pkgList in fixSeInfoLocked()" into pi-dev

6 years agoMerge "Rework thumbnail cleanup" into oc-mr1-dev
Marco Nelissen [Fri, 9 Mar 2018 21:26:07 +0000 (21:26 +0000)]
Merge "Rework thumbnail cleanup" into oc-mr1-dev

6 years agoZygote: Set libbase default tag on fork
Andreas Gampe [Mon, 5 Mar 2018 21:00:42 +0000 (13:00 -0800)]
Zygote: Set libbase default tag on fork

When forking, set the default tag to the process name, so that
non-tagged logging (like ART's) get tagged accordingly.

(cherry picked from commit 396139749c42ee486c9c55e62eb75f340a9a0e90)

Bug: 34867873
Test: m
Merged-In: I81d526c8f5af0fde488cdf8efd1835298ff501fc
Change-Id: I81d526c8f5af0fde488cdf8efd1835298ff501fc

6 years agoMerge "Removing EXPLICT tag from Batterystats metric names." into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 21:17:36 +0000 (21:17 +0000)]
Merge "Removing EXPLICT tag from Batterystats metric names." into pi-dev

6 years agoMerge changes from topic "recognition_service-mnc-dev" into oc-dev am: 714fb7ae84...
Eugene Susla [Fri, 9 Mar 2018 21:14:21 +0000 (21:14 +0000)]
Merge changes from topic "recognition_service-mnc-dev" into oc-dev am: 714fb7ae84 am: 7915ba5c9f
am: 7213adbb7f

Change-Id: Id562b135ce25665b120e48a2c76d88587e48f125

6 years agoMerge changes from topic "viewpager_state" into oc-dev am: 77edd5fabe
Alan Viverette [Fri, 9 Mar 2018 20:49:36 +0000 (20:49 +0000)]
Merge changes from topic "viewpager_state" into oc-dev am: 77edd5fabe
am: 5811482acf

Change-Id: Ib6213f0f3b6a0247bbe33c0879a3179fb63eb35f

6 years agoSupport enhanced call blocking function
Tyler Gunn [Fri, 9 Mar 2018 02:33:22 +0000 (02:33 +0000)]
Support enhanced call blocking function

- Add new carrier config to determine whether to enable
enhanced call blocking feature.
- Add new I/F to get/set the call blocking enabled status.
- Add new API to support checking whether a number is
block number with specific extras.

Bug: 28189985
Test: Manual
Merged-In: Ic89223cd31a4a8f3552360565b772315ec271902
Change-Id: Ic89223cd31a4a8f3552360565b772315ec271902
(cherry picked from commit 72e05c03820e1d0504a3987e868bfab5ac0855bc)

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 agoPackageManager: Avoid null access
Andreas Gampe [Tue, 6 Mar 2018 01:46:25 +0000 (17:46 -0800)]
PackageManager: Avoid null access

In case cache creation fails, mCacheDir may be null. Avoid an
access.

(cherry picked from commit 9f292ce7f241133c6411a89b5a7d97e93dc4b85d)

Bug: 74087079
Test: m
Test: boot under low-space condition
Merged-In: I55836c820ef2c3431e8f06224d6f9edf0e9881ef
Change-Id: I55836c820ef2c3431e8f06224d6f9edf0e9881ef

6 years agoMerge changes from topic "viewpager_state" into oc-dev
Alan Viverette [Fri, 9 Mar 2018 20:15:45 +0000 (20:15 +0000)]
Merge changes from topic "viewpager_state" into oc-dev
am: 77edd5fabe

Change-Id: Ic624154d57c8b7398d60c470bd285de35f2499af

6 years agoAdd -c option for dumpsys usagestats
Michael Wachenschwanz [Thu, 1 Mar 2018 20:45:16 +0000 (12:45 -0800)]
Add -c option for dumpsys usagestats

Bug: 73657997
Test: manual (adb shel dumpsys usagestats -c)
Change-Id: If37006290b0b8a63e1b51fb9b035ba6a62f7a9b3

6 years agoMerge changes from topic "recognition_service-mnc-dev" into oc-dev am: 714fb7ae84
Eugene Susla [Fri, 9 Mar 2018 20:09:02 +0000 (20:09 +0000)]
Merge changes from topic "recognition_service-mnc-dev" into oc-dev am: 714fb7ae84
am: 7915ba5c9f

Change-Id: Id938e5cd15852144fcce2367c4fac762f8cfc8ba

6 years agoMerge changes from topic "recognition_service-mnc-dev" into oc-dev
Eugene Susla [Fri, 9 Mar 2018 19:48:12 +0000 (19:48 +0000)]
Merge changes from topic "recognition_service-mnc-dev" into oc-dev
am: 714fb7ae84

Change-Id: I07cbecada20685467da9b82e101b7591ec285533

6 years agoRevert "Revert "Remove a compat hack SurfaceView#setWindowType()""
Tarandeep Singh [Fri, 9 Mar 2018 01:05:02 +0000 (17:05 -0800)]
Revert "Revert "Remove a compat hack SurfaceView#setWindowType()""

This reverts commit 9309c19513ef569043cfd08deae78e04d5eb5c24.

Reason for revert: We can now remove the deprecated method. Compat hack
is no longer required for keyboards.
Fixes: 62054282
Test: Manually flashed and verified keyboard apps work.

Change-Id: Iae0c82b6fd3fd5930e9eea3216fab76925839e4d

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 agoAdd tron metric logging
Victor Chang [Fri, 9 Mar 2018 17:22:52 +0000 (17:22 +0000)]
Add tron metric logging

- one tracking id for every picker type

Bug: 73952488
Test: m
Change-Id: I2822775703cd69a908d10d899c7ff455f6461c32

6 years agostatsd AnomalyDetection improvements
Bookatz [Thu, 8 Mar 2018 23:45:14 +0000 (15:45 -0800)]
statsd AnomalyDetection improvements

Re-add check to make sure that bad config won't cause duration
anomaly detection to crash stastd

Bug: 74399947
Test: manual
Change-Id: Id175d233685c133ec3d4231272fe5708250dee6b

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 agoFixed issue with focusing on minimized split-screen stack
Wale Ogunwale [Fri, 9 Mar 2018 16:58:54 +0000 (08:58 -0800)]
Fixed issue with focusing on minimized split-screen stack

If the current split-screen secondary stack is finishing and we are
moving focus to another stack, we should prefer the focus to move to
another split-screen secondary stack or fullscreen stack instead of
the primary split screen stack to avoid:
- Moving the focus to the primary split-screen stack when it can't
be focused because it will be minimized, but AM doesn't know that yet
- primary split-screen stack overlapping with a fullscreen stack when
a fullscreen stack is higher in z than the next split-screen stack.
Assistant stack, I am looking at you...
We only move the focus to the primary-split screen stack if there isn't
a better alternative.

Change-Id: Iffaaa56a88e24bbf0f6303acd924700257baad0b
Fixes: 74404706
Fixes: 70677280
Fixes: 74366688
Test: atest ActivityManagerAssistantStackTests#testAssistantStackLaunchNewTaskWithDockedStack

6 years agoMerge changes from topic "viewpager_state" into oc-dev
Alan Viverette [Fri, 9 Mar 2018 18:43:02 +0000 (18:43 +0000)]
Merge changes from topic "viewpager_state" into oc-dev

* changes:
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1 am: 4c24e4d831 am: fece305de0 am: cb362192e8 am: bc42f76941 am: c42091667c am: aebf5c06df am: d04ccc6608 am: b3e984c412
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1 am: 4c24e4d831 am: fece305de0 am: cb362192e8 am: bc42f76941 am: c42091667c am: aebf5c06df am: d04ccc6608
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1 am: 4c24e4d831 am: fece305de0 am: cb362192e8 am: bc42f76941 am: c42091667c am: aebf5c06df
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1 am: 4c24e4d831 am: fece305de0 am: cb362192e8 am: bc42f76941 am: c42091667c
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1 am: 4c24e4d831 am: fece305de0 am: cb362192e8 am: bc42f76941
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1 am: 4c24e4d831 am: fece305de0 am: cb362192e8
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1 am: 4c24e4d831 am: fece305de0
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1 am: 4c24e4d831
  [automerger] Update internal ViewPager's SavedState to match Support Library version am: 187964aca1
  Update internal ViewPager's SavedState to match Support Library version

6 years agoMerge changes from topic "recognition_service-mnc-dev" into oc-dev
Eugene Susla [Fri, 9 Mar 2018 18:42:08 +0000 (18:42 +0000)]
Merge changes from topic "recognition_service-mnc-dev" into oc-dev

* changes:
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe am: b91acca082 am: 26aaadd3b5 skipped: a1ad0de1f7 am: cf92266ad9 am: 773f021348 am: bca318e527 am: 122f5e51bf skipped: 36e5764193
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe am: b91acca082 am: 26aaadd3b5 skipped: a1ad0de1f7 am: cf92266ad9 am: 773f021348 am: bca318e527 am: 122f5e51bf
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe am: b91acca082 am: 26aaadd3b5 skipped: a1ad0de1f7 am: cf92266ad9 am: 773f021348 am: bca318e527
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe am: b91acca082 am: 26aaadd3b5 skipped: a1ad0de1f7 am: cf92266ad9 am: 773f021348
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe am: b91acca082 am: 26aaadd3b5 skipped: a1ad0de1f7 am: cf92266ad9
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe am: b91acca082 am: 26aaadd3b5 skipped: a1ad0de1f7
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe am: b91acca082 am: 26aaadd3b5
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe am: b91acca082
  [automerger] [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService am: 5a28e533fe
  [DO NOT MERGE] Copy PermissionChecker from support lib and use in RcognitionService

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 agoPermit all daltonizer settings to be restored
Phil Weaver [Fri, 9 Mar 2018 17:58:09 +0000 (09:58 -0800)]
Permit all daltonizer settings to be restored

Bug: 74434715
Test: make
Change-Id: I832e209ff96bf10084f409858d0fb46310fae4f4

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 agoAdd more common hidden API uses into light greylist
David Brazdil [Fri, 9 Mar 2018 17:39:43 +0000 (17:39 +0000)]
Add more common hidden API uses into light greylist

Used by common apps.

Bug: 64382372
Bug: 74433113
Test: make
Change-Id: I1011b287a3e796847d005dccab17af3b6dd7b4f5

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 ago[Magnifier-32] Do not magnify outside selection
Mihai Popa [Wed, 7 Mar 2018 14:52:05 +0000 (14:52 +0000)]
[Magnifier-32] Do not magnify outside selection

Currently, for selection, if we move one handle towards the other, the
moving handle will stop when the selection becomes 1 character long.
However, the magnifier would continue to follow the finger after this,
no longer being helpful for the selection.

This CL fixes this, by replicating what happens when the magnifier
reaches the end of the line also for the case when it reaches the other
handle.

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

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