OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Update wifi header summary text to show metered state" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 19:15:05 +0000 (19:15 +0000)]
Merge "Update wifi header summary text to show metered state" into pi-dev

6 years agoMerge "Add new Wifi API to light grey." into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 19:14:49 +0000 (19:14 +0000)]
Merge "Add new Wifi API to light grey." into pi-dev

6 years agoMerge "Add different animation for transitions with translucent apps" into pi-dev
Jorim Jaggi [Wed, 28 Mar 2018 19:09:08 +0000 (19:09 +0000)]
Merge "Add different animation for transitions with translucent apps" into pi-dev

6 years agoMerge "Use rootAlias to index chosen cert and its version." into pi-dev
Dmitry Dementyev [Wed, 28 Mar 2018 19:05:21 +0000 (19:05 +0000)]
Merge "Use rootAlias to index chosen cert and its version." into pi-dev

6 years agoMerge "Grant CONTACT permissions to IMS package." into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 18:57:50 +0000 (18:57 +0000)]
Merge "Grant CONTACT permissions to IMS package." into pi-dev

6 years agoMerge "Fixed autofill dataset picker so header and footer are sticky." into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 18:54:38 +0000 (18:54 +0000)]
Merge "Fixed autofill dataset picker so header and footer are sticky." into pi-dev

6 years agoMerge "Refactor FingerprintDialog to BiometricDialog" into pi-dev
Vishwath Mohan [Wed, 28 Mar 2018 18:46:34 +0000 (18:46 +0000)]
Merge "Refactor FingerprintDialog to BiometricDialog" into pi-dev

6 years agoMerge "Tell the user to toggle Bluetooth when enabling HCI logs" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 18:19:39 +0000 (18:19 +0000)]
Merge "Tell the user to toggle Bluetooth when enabling HCI logs" into pi-dev

6 years agoMerge "Fix Unicode handling." into pi-dev
Jerry Zhang [Wed, 28 Mar 2018 18:16:48 +0000 (18:16 +0000)]
Merge "Fix Unicode handling." into pi-dev

6 years agoMerge "Added autofill cmds to get and set full-screen mode." into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 18:07:17 +0000 (18:07 +0000)]
Merge "Added autofill cmds to get and set full-screen mode." into pi-dev

6 years agoMerge "Add grant and revoke default permissions to active LUI app." into pi-dev
Jiuyu Sun [Wed, 28 Mar 2018 17:44:35 +0000 (17:44 +0000)]
Merge "Add grant and revoke default permissions to active LUI app." into pi-dev

6 years agoMerge "Change TextClassification to use RemoteActions" into pi-dev
Jan Althaus [Wed, 28 Mar 2018 17:04:58 +0000 (17:04 +0000)]
Merge "Change TextClassification to use RemoteActions" into pi-dev

6 years agoMerge "Set snapTargetBeforeMinimized to middle target if position is negative" into...
Chavi Weingarten [Wed, 28 Mar 2018 16:49:07 +0000 (16:49 +0000)]
Merge "Set snapTargetBeforeMinimized to middle target if position is negative" into pi-dev

6 years agoMerge "Change the time format to short" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 16:45:45 +0000 (16:45 +0000)]
Merge "Change the time format to short" into pi-dev

6 years agoTell the user to toggle Bluetooth when enabling HCI logs
Myles Watson [Mon, 26 Mar 2018 21:28:46 +0000 (14:28 -0700)]
Tell the user to toggle Bluetooth when enabling HCI logs

Fixes: 67634644
Test: Manually inspect the new text in developer settings
Change-Id: Ic8b08c8d6d0c7727a03a265fb6b10a3c55fd96cb
Merged-In: Ic8b08c8d6d0c7727a03a265fb6b10a3c55fd96cb
(cherry picked from commit 81bd065c55d41242cf8eb9411d94d6b3912371fa)

6 years agoMerge "Improve the JavaDoc for SOFT_INPUT_STATE_UNSPECIFIED" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 16:29:56 +0000 (16:29 +0000)]
Merge "Improve the JavaDoc for SOFT_INPUT_STATE_UNSPECIFIED" into pi-dev

6 years agoMerge "Fix issues with z-ordering during animations" into pi-dev
Jorim Jaggi [Wed, 28 Mar 2018 16:17:33 +0000 (16:17 +0000)]
Merge "Fix issues with z-ordering during animations" into pi-dev

6 years agoMerge "Add more uses on vendor hidden API list" into pi-dev
David Brazdil [Wed, 28 Mar 2018 15:36:28 +0000 (15:36 +0000)]
Merge "Add more uses on vendor hidden API list" into pi-dev

6 years agoMerge "Revert Revert: Enable hidden API blacklist" into pi-dev
David Brazdil [Wed, 28 Mar 2018 15:36:28 +0000 (15:36 +0000)]
Merge "Revert Revert: Enable hidden API blacklist" into pi-dev

6 years agoRevert Revert: Enable hidden API blacklist
David Brazdil [Wed, 28 Mar 2018 10:28:39 +0000 (11:28 +0100)]
Revert Revert: Enable hidden API blacklist

APIs which have not been explicitly greylisted have so far been put
on the dark greylist. This patch changes the default to blacklist and
therefore enables strict enforcement.

This reverts commit f712b23d56226c788f7892a984fb9abe6f5144c2.

Bug: 64382372
Test: make
Change-Id: I1608b1adbe5dcafd13335691ddeb94abbb2c6e71

6 years agoMerge "Fix issue with animations that couldn't be started" into pi-dev
Jorim Jaggi [Wed, 28 Mar 2018 15:04:16 +0000 (15:04 +0000)]
Merge "Fix issue with animations that couldn't be started" into pi-dev

6 years agoMerge "Also allow avoiding gfx acceleration at runtime" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 14:58:10 +0000 (14:58 +0000)]
Merge "Also allow avoiding gfx acceleration at runtime" into pi-dev

6 years agoMerge "DisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_ED...
Adrian Roos [Wed, 28 Mar 2018 14:56:19 +0000 (14:56 +0000)]
Merge "DisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES" into pi-dev

6 years agoMerge "Detect paths without lunch." into pi-dev
Jeff Sharkey [Wed, 28 Mar 2018 14:47:05 +0000 (14:47 +0000)]
Merge "Detect paths without lunch." into pi-dev

6 years agoAdd different animation for transitions with translucent apps
Jorim Jaggi [Mon, 26 Mar 2018 14:17:07 +0000 (16:17 +0200)]
Add different animation for transitions with translucent apps

None of the existing animation really work with transitions in
which a translucent app is appearing/disappearing. Add a separate
animation for that and change all existing transitions to these
new transition types in case we detect that only translucent
activities are appearing/disappearing.

Test: Sharesheet animations
Test: go/wm-smoke
Change-Id: Iffe57b7664dddf647d723c91d115ade60c12ad33
Fixes: 37953606
Fixes: 70730519
Fixes: 72649981
Fixes: 72686618

6 years agoMerge "DisplayCutout: Fix attrs.xml javadoc" into pi-dev
Adrian Roos [Wed, 28 Mar 2018 14:29:08 +0000 (14:29 +0000)]
Merge "DisplayCutout: Fix attrs.xml javadoc" into pi-dev

6 years agoFix issues with z-ordering during animations
Jorim Jaggi [Mon, 26 Mar 2018 14:14:12 +0000 (16:14 +0200)]
Fix issues with z-ordering during animations

- Make sure to use DC pending transaction when updating z-layers,
as it could lead to reordering of z-order assignment due to how
we apply pending transactions in the hierarchy

- Create a separate boosted animation layer in which AWT with
zOrder=top animate, which happens above all stack. This brings
back the boosting logic in O without boosting non-boosted stack
above non-animating tokens

Bug: 70730519
Bug: 72649981
Bug: 72686618
Bug: 37953606
Test: Share link from Chrome to Clipboard, make sure disappear
animation happens properly
Test: go/wm-smoke
Change-Id: I3957daac76b991402bf3f520c4a3d3f519933f72

6 years agoMerge "Revert "Added safeguards for pushed brighntess curve."" into pi-dev
Artem Iglikov [Wed, 28 Mar 2018 13:26:41 +0000 (13:26 +0000)]
Merge "Revert "Added safeguards for pushed brighntess curve."" into pi-dev

6 years agoMerge "Change the triggering criteria for blocking helper" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 13:18:45 +0000 (13:18 +0000)]
Merge "Change the triggering criteria for blocking helper" into pi-dev

6 years agoFix issue with animations that couldn't be started
Jorim Jaggi [Tue, 27 Mar 2018 16:02:18 +0000 (18:02 +0200)]
Fix issue with animations that couldn't be started

If we can't create a remote animation target for some reason
(removed from task, no main window, etc), SurfaceAnimator
called startAnimation but we never invoke the finish callback.

Thus, we need to make sure to also invoke the finish callback
when not using the AppWindowToken as part of the remote animation.

This actually happens if the main intent clears the task, like
Settings. In that case, it removes all sub activities, which then
get added to mClosingApps, which then are part of a transition.

It's questionable why this would need to happen, but we don't have
the risk budget to go down that rabbit hole.

Test: RemoteAnimationControllerTest
Test: Open Settings -> Network -> Wifi, press home, reopen
Settings, repeat 10x
Test: adb shell dumpsys window -a
Fixes: 76438155
Change-Id: Ib528d5c0d3559eb20522799af68ebbfb17b9801b

6 years agoDisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
Adrian Roos [Tue, 27 Mar 2018 17:17:50 +0000 (19:17 +0200)]
DisplayCutout: Add clarifying images to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES

Fixes: 76462084
Test: make doc-comment-check-docs, open $ANDROID_BUILD_TOP/out/target/common/docs/doc-comment-check/reference/android/view/WindowManager.LayoutParams.html, navigate to LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
Change-Id: I8a9df979cbb062896fa874a163414a4f8a095b21

6 years agoAdd more uses on vendor hidden API list
David Brazdil [Wed, 28 Mar 2018 10:15:08 +0000 (11:15 +0100)]
Add more uses on vendor hidden API list

These are from Pixel devices.

Bug: 64382372
Test: make
Change-Id: Ie8dab74299973f54472bf80c98bbc7496022874d

6 years agoMerge "Add API to light grey." into pi-dev
Nicolas Geoffray [Wed, 28 Mar 2018 11:13:16 +0000 (11:13 +0000)]
Merge "Add API to light grey." into pi-dev

6 years agoChange TextClassification to use RemoteActions
Jan Althaus [Fri, 23 Mar 2018 13:03:52 +0000 (14:03 +0100)]
Change TextClassification to use RemoteActions

Behavioural changes:
- Every action now as an icon, and instead hints via RemoteAction whether
  the icon should be shown or not.
- Icons are now taken from the app default, not the activity.
  (That way, we can construct a lightweight resource backed Icon)
- Legacy intents are no longer parceled for security reasons.
  (TextClassificatio wasn't parcelable in O)
- TextClassifications built with the new API will always return null for
  getIntent, but provide a getOnClickListener.
- Accessibility descriptions are now provided for action mode items.

Testing changes:
- Removed URI checks from TCM test because PendingIntent hides this info.

Bug: 73950205
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Change-Id: I6706d2c342a8bbb9de0146a48c8b8aac9d9c7d83

6 years agoRevert "Added safeguards for pushed brighntess curve."
Artem Iglikov [Wed, 28 Mar 2018 09:12:40 +0000 (09:12 +0000)]
Revert "Added safeguards for pushed brighntess curve."

This reverts commit f1e673649e11b98f537489b7889f1d6efa6e7ff9.

Reason for revert: crashes system server

Bug: 77176207
Change-Id: I574e6e1f60d83f14701a643a1c7b8f7ef8659ed5

6 years agoMerge "Build: Remove MIN_SUPPORTED_TARGET_SDK_INT from public API." into pi-dev
Narayan Kamath [Wed, 28 Mar 2018 08:43:08 +0000 (08:43 +0000)]
Merge "Build: Remove MIN_SUPPORTED_TARGET_SDK_INT from public API." into pi-dev

6 years agoMerge "MediaSessionService: Stop using APIs in the MediaComponents" into pi-dev
Jaewan Kim [Wed, 28 Mar 2018 08:40:23 +0000 (08:40 +0000)]
Merge "MediaSessionService: Stop using APIs in the MediaComponents" into pi-dev

6 years agoMerge "Specifies the carrier's default voicemail number for roaming network." into...
Andy Chou [Wed, 28 Mar 2018 08:28:53 +0000 (08:28 +0000)]
Merge "Specifies the carrier's default voicemail number for roaming network." into pi-dev

6 years agoMediaSessionService: Stop using APIs in the MediaComponents
Jaewan Kim [Wed, 28 Mar 2018 03:19:04 +0000 (12:19 +0900)]
MediaSessionService: Stop using APIs in the MediaComponents

Bug: 76441725
Test: Build and run CtsMediaTestCases
Change-Id: I06f0b9c146869e16f730a6c78cf10fac691026c9

6 years agoMerge "Fix scrim animation when unlocking with fp" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 06:23:20 +0000 (06:23 +0000)]
Merge "Fix scrim animation when unlocking with fp" into pi-dev

6 years agoMerge "BgDexopt: Reschedule job on timeout" into pi-dev
Andreas Gampe [Wed, 28 Mar 2018 05:47:01 +0000 (05:47 +0000)]
Merge "BgDexopt: Reschedule job on timeout" into pi-dev

6 years agoMerge "Merge "Minor clean-up in NetworkCapabilities" am: 539f85a18d am: b1e2bfe4df...
TreeHugger Robot [Wed, 28 Mar 2018 05:00:39 +0000 (05:00 +0000)]
Merge "Merge "Minor clean-up in NetworkCapabilities" am: 539f85a18d am: b1e2bfe4df am: 8a956a5141" into pi-dev

6 years agoFix scrim animation when unlocking with fp
Lucas Dupin [Wed, 28 Mar 2018 01:03:25 +0000 (18:03 -0700)]
Fix scrim animation when unlocking with fp

Notification panel expansion was overriding the animation.
The expansion needs to be ignored during "wake and unlock"
states.

Test: visual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I781aece52c845f3fee9149c109ad598c7b555751
Fixes: 76018235

6 years agoMerge "Fix CaptivePortalLoginActivity null String crash" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 04:45:26 +0000 (04:45 +0000)]
Merge "Fix CaptivePortalLoginActivity null String crash" into pi-dev

6 years agoMerge "Address comments from API Review." into pi-dev
Jiuyu Sun [Wed, 28 Mar 2018 04:18:51 +0000 (04:18 +0000)]
Merge "Address comments from API Review." into pi-dev

6 years agoAdd API to query if a UID is active
Svet Ganov [Sun, 25 Mar 2018 20:14:47 +0000 (13:14 -0700)]
Add API to query if a UID is active

Test: cts-tradefed run cts-dev -m CtsCameraTestCases

Bug: 72863398

Change-Id: I4bacfd87cac782ef178e9a279cd833b229150ae1

6 years agoMerge "Throw on revoked location permission - framework" into pi-dev
Svetoslav Ganov [Wed, 28 Mar 2018 03:22:22 +0000 (03:22 +0000)]
Merge "Throw on revoked location permission - framework" into pi-dev

6 years agoBgDexopt: Reschedule job on timeout
Andreas Gampe [Tue, 27 Mar 2018 22:04:19 +0000 (15:04 -0700)]
BgDexopt: Reschedule job on timeout

When the background dexopt job times out, tell the scheduler to
reschedule it, as we have more work to do.

(cherry picked from commit c157be081ebe3b8aba360330fcdaa8b7eeb67024)

Bug: 76425903
Test: m
Test: manual
Merged-In: Ibbdb979bceb1ff0a25f8aed2b3cc26a7f30057e2
Change-Id: Ibbdb979bceb1ff0a25f8aed2b3cc26a7f30057e2

6 years agoMerge "Use package manager stock flags to pull lib info" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 03:00:23 +0000 (03:00 +0000)]
Merge "Use package manager stock flags to pull lib info" into pi-dev

6 years agoMerge "More path validation for better error message" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 02:53:19 +0000 (02:53 +0000)]
Merge "More path validation for better error message" into pi-dev

6 years agoMerge "Call mInstaller.idmap() without holding mPackages" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 02:40:46 +0000 (02:40 +0000)]
Merge "Call mInstaller.idmap() without holding mPackages" into pi-dev

6 years agoMerge "Add talkback when FingerprintDialog is authenticated" into pi-dev
Kevin Chyn [Wed, 28 Mar 2018 02:22:04 +0000 (02:22 +0000)]
Merge "Add talkback when FingerprintDialog is authenticated" into pi-dev

6 years agoMerge "Optimizing TimeSparseArray#put in case of collisions" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 02:10:45 +0000 (02:10 +0000)]
Merge "Optimizing TimeSparseArray#put in case of collisions" into pi-dev

6 years agoMerge "Use on-screen text in a11y text changed event" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 02:06:27 +0000 (02:06 +0000)]
Merge "Use on-screen text in a11y text changed event" into pi-dev

6 years agoMerge "Unload wallpaper bitmap and release HwuiContext" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 01:59:26 +0000 (01:59 +0000)]
Merge "Unload wallpaper bitmap and release HwuiContext" into pi-dev

6 years agoUse rootAlias to index chosen cert and its version.
Dmitry Dementyev [Tue, 27 Mar 2018 00:31:29 +0000 (17:31 -0700)]
Use rootAlias to index chosen cert and its version.

Added new column  to store active alias for given recovery agent.
Added new table with chosen certififcate and cert list serial number indexed
by recovery agent and root of trust.

Bug: 76433465
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Iae8b84312805400bf1acd4db242efeb6d167c000

6 years agoMerge "Hide activities when AOD comes in" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 01:11:42 +0000 (01:11 +0000)]
Merge "Hide activities when AOD comes in" into pi-dev

6 years agoUpdate wifi header summary text to show metered state
Salvador Martinez [Wed, 21 Mar 2018 23:33:53 +0000 (16:33 -0700)]
Update wifi header summary text to show metered state

When we detect a network as metered or the user manually overrides
the metered state for a network we should show this in the summary
text for the network. This CL makes it so that this state overrides
the network speed when needed.

Test: robotests
Bug: 68030417
Change-Id: Ia1f3f0a537b6ff711a430466b83664d8f1cad0b6

6 years agoAdded autofill cmds to get and set full-screen mode.
Felipe Leme [Wed, 28 Mar 2018 00:43:24 +0000 (17:43 -0700)]
Added autofill cmds to get and set full-screen mode.

These are useful to emulate the behavior of Autofill on TV.

Test: adb shell cmd autofill get full_screen_mode
Test: adb shell cmd autofill set full_screen_mode true # then ran sample

Bug: 77155952

Change-Id: I0cb7757559e8132e9777eb63b5442de485261a0b

6 years agoMerge "Sending MY_PACKAGE_SUSPENDED to suspended apps" into pi-dev
TreeHugger Robot [Wed, 28 Mar 2018 00:45:23 +0000 (00:45 +0000)]
Merge "Sending MY_PACKAGE_SUSPENDED to suspended apps" into pi-dev

6 years agoThrow on revoked location permission - framework
Svet Ganov [Thu, 8 Mar 2018 03:53:43 +0000 (19:53 -0800)]
Throw on revoked location permission - framework

When we fixed proper handling of location permisison gating
sensitive telephony calls we stopped throwing a security
exception when the permission is not held by the caller.
While this is not a security issue there is no reason to
change this behavior which is checked by CTS. This CL starts
throwing a security exception if the permission is not held.

Test: atest android.permission.cts.NoLocationPermissionTest

bug: 74074103

Change-Id: Ic891d62b408c692f84a345f24503f7f25d583e35

6 years agodocs: fixed typo
Joshua Baxter [Wed, 28 Mar 2018 00:33:50 +0000 (00:33 +0000)]
docs: fixed typo
am: eb5d2d96ad

Change-Id: I60e1befd90c14fe0ef6b3b8813bb2a791f8a7399

6 years agoFixed autofill dataset picker so header and footer are sticky.
Felipe Leme [Tue, 27 Mar 2018 20:07:36 +0000 (13:07 -0700)]
Fixed autofill dataset picker so header and footer are sticky.

Test: manual verification using sample service
Test: atest CtsAutoFillServiceTestCases

Fixes: 69796626
Bug: 77155952

Change-Id: I8049a531b1e12cf94b8588092bdf28ec45bd1b08

6 years agoMerge "Relax constraints on valid ImageReader usage flags" into pi-dev
Clément Julliard [Wed, 28 Mar 2018 00:23:29 +0000 (00:23 +0000)]
Merge "Relax constraints on valid ImageReader usage flags" into pi-dev

6 years agoFix Unicode handling.
Jerry Zhang [Tue, 27 Mar 2018 22:29:09 +0000 (15:29 -0700)]
Fix Unicode handling.

Change type usages based on changes
in libmtp.

Bug: 70546563
Test: Mtp works, tests pass
Change-Id: Id38c30e3a1311328ec2293792ae0866da2cf90be

6 years agoUse on-screen text in a11y text changed event
Phil Weaver [Wed, 21 Mar 2018 19:33:59 +0000 (12:33 -0700)]
Use on-screen text in a11y text changed event

The beforeText in a text changed event was coming from
the underlying CharSequence, not what was on the screen.
As a result, it was not sent for password fields. Now
we just provide whatever is on the screen, which is
obfuscated to the same degree it is for a user looking
at the screen.

Bug: 75324441
Test: Verified with password field in TalkBack sample app.
Also atest CtsAccessibilityServiceTestCases

Change-Id: Ib7a10313d2f9d0e44d2052e81e47f19967a67bc4

6 years agoSet snapTargetBeforeMinimized to middle target if position is negative
chaviw [Tue, 27 Mar 2018 23:49:27 +0000 (16:49 -0700)]
Set snapTargetBeforeMinimized to middle target if position is negative

There are cases where the last snapTarget position is negative.
Specifically, it can be negative if the divider was moved up, making the
last position negative off-screen. Instead save the middle SnapTarget,
which is the default, so bounds aren't accidentally calculated with
negative position.

Fixes: 74440003
Test: Bug no longer occurs
Test: Split screen with 3rd party launcher
Test: ActivityManagerSplitScreenTests

Change-Id: Id3261d6e31622a96f71ff80301dd9cc39599b7ec

6 years agoMerge "Update Guardrail." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 23:44:23 +0000 (23:44 +0000)]
Merge "Update Guardrail." into pi-dev

6 years agoOptimizing TimeSparseArray#put in case of collisions
Suprabh Shukla [Tue, 27 Mar 2018 22:39:52 +0000 (15:39 -0700)]
Optimizing TimeSparseArray#put in case of collisions

Adding a linear check instead of binary searching everytime. Logging
only when the displacement is greater than 10 millis.

Test: python system/extras/boottime_tools/bootanalyze/bootanalyze.py\
-r -c system/extras/boottime_tools/bootanalyze/config.yaml -n 10
and
atest android.app.usage.TimeSparseArrayTest

Bug: 76435713
Change-Id: I8f4df59e84fc196d0f63f9433d01ebc759f104c4

6 years agoUnload wallpaper bitmap and release HwuiContext
Lucas Dupin [Tue, 27 Mar 2018 16:50:19 +0000 (09:50 -0700)]
Unload wallpaper bitmap and release HwuiContext

To decrease sysui memory usage

Test: adb dumpsys meminfo
Fixes: 74534423
Change-Id: I3cb4a5927e8d6b20a7aeba3fda253f0ba4cc18f6

6 years agoMerge "Marking ClipData as LOCAL and adding comment in jobscheduler proto." into...
TreeHugger Robot [Tue, 27 Mar 2018 23:17:31 +0000 (23:17 +0000)]
Merge "Marking ClipData as LOCAL and adding comment in jobscheduler proto." into pi-dev

6 years agoMerge "clear calling identity on isPackageSuspended" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:57:23 +0000 (22:57 +0000)]
Merge "clear calling identity on isPackageSuspended" into pi-dev

6 years agoMerge "Refactoring SystemSettingsProto to avoid method limit." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:54:51 +0000 (22:54 +0000)]
Merge "Refactoring SystemSettingsProto to avoid method limit." into pi-dev

6 years agoMerge "Modify Open Mobile API to follow Android API guidelines" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:54:25 +0000 (22:54 +0000)]
Merge "Modify Open Mobile API to follow Android API guidelines" into pi-dev

6 years agoImprove the JavaDoc for SOFT_INPUT_STATE_UNSPECIFIED
Yohei Yukawa [Tue, 27 Mar 2018 22:47:45 +0000 (15:47 -0700)]
Improve the JavaDoc for SOFT_INPUT_STATE_UNSPECIFIED

SOFT_INPUT_STATE_UNSPECIFIED is a tricky mode because its de facto
spec is that the system can do whatever it thinks valid.

Despite the fact that this is the default value for newly created
Windows, unfortunatelly there is no clear spec about what would happen
regarding whether the system thinks the software keyboard should be
shown or dismissed.

This CL doesn't change the behavior, but it just attempts to clarify
the behavior in JavaDoc.

Bug: 73793727
Bug: 77152727
Test: make -j doc-comment-check-doc
Change-Id: I69dab7c7018da89ba57fe2f5c8e718ef95985307

6 years agoMerge "Minor clean-up in NetworkCapabilities" am: 539f85a18d am: b1e2bfe4df
Pavel Maltsev [Wed, 7 Mar 2018 23:40:32 +0000 (23:40 +0000)]
Merge "Minor clean-up in NetworkCapabilities" am: 539f85a18d am: b1e2bfe4df
am: 8a956a5141

Bug: 72828388
Test: frameworks/base/tests/net/ -c android.net.NetworkCapabilitiesTest

Change-Id: I2f45d2c70c7c0142ae3b3ce9e6329c5f25b63380
(cherry picked from commit feb8d1498a822730e29cf346fe3382e3f5293a58)

6 years agoMerge "Clean new TelephonyManager API." into pi-dev
Xiangyu/Malcolm Chen [Tue, 27 Mar 2018 22:42:58 +0000 (22:42 +0000)]
Merge "Clean new TelephonyManager API." into pi-dev

6 years agoMerge "Work on issue #74404949: Screen state usage API" into pi-dev
Dianne Hackborn [Tue, 27 Mar 2018 22:40:51 +0000 (22:40 +0000)]
Merge "Work on issue #74404949: Screen state usage API" into pi-dev

6 years agoDetect paths without lunch.
Jeff Sharkey [Tue, 27 Mar 2018 22:16:13 +0000 (16:16 -0600)]
Detect paths without lunch.

Test: manual
Bug: 76097999
Change-Id: I47b97719f6aa957b0a216e6e1930ae2fe2f0108b

6 years agoMerge "Refactor AddUserAuthArgs for extensibility" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:13:37 +0000 (22:13 +0000)]
Merge "Refactor AddUserAuthArgs for extensibility" into pi-dev

6 years agoChange the triggering criteria for blocking helper
Julia Reynolds [Tue, 27 Mar 2018 19:41:51 +0000 (15:41 -0400)]
Change the triggering criteria for blocking helper

Test: runtest systemui-notifications
Bug: 77143005
Change-Id: Iab0237226b33afe0cde362d6e6ee231365b178a4

6 years agoMerge "Revert "Close print writers"" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 22:00:07 +0000 (22:00 +0000)]
Merge "Revert "Close print writers"" into pi-dev

6 years agoMerge "Regularize some wallpaper APIs" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:50:31 +0000 (21:50 +0000)]
Merge "Regularize some wallpaper APIs" into pi-dev

6 years agoMerge "ALSA jack detection support - match upstream kernel" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:50:15 +0000 (21:50 +0000)]
Merge "ALSA jack detection support - match upstream kernel" into pi-dev

6 years agoALSA jack detection support - match upstream kernel
Andrew Chant [Mon, 26 Mar 2018 23:53:34 +0000 (16:53 -0700)]
ALSA jack detection support - match upstream kernel

Match upstream Linux kernel support for UAC2 jack detection.
The patch that was included upstream names USB input and
output jack controls by ending them in
"Input Jack" or "Output Jack" respectively.

see 5a222e84945 ('ALSA: usb-audio: UAC2 jack detection') in
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git

Update UsbAlsaJackDetector appropriately.

Test: Verified on a UAC2 device with the above kernel patch,
tinymix -D 1 produced:
...
2       BOOL    1       Headset - Input Jack                     Off
...
9       BOOL    1       Headset - Output Jack                    On
With a headset connected,  and when the jack was unplugged, Youtube
paused.

Bug: 70632415
Change-Id: I2e5dd48c7a9d174aabbb3a3315496fb30f7a545a

6 years agoMerge "Migrate from config.xml to SystemConfig for disabled carrier apps" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:48:06 +0000 (21:48 +0000)]
Merge "Migrate from config.xml to SystemConfig for disabled carrier apps" into pi-dev

6 years agoMerge "Using an intent-action instead of a fixed compoenent for quick-step service...
TreeHugger Robot [Tue, 27 Mar 2018 21:46:56 +0000 (21:46 +0000)]
Merge "Using an intent-action instead of a fixed compoenent for quick-step service" into pi-dev

6 years agoMerge "Fix statsd logging in BatteryStats (nesting prob.)" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:45:46 +0000 (21:45 +0000)]
Merge "Fix statsd logging in BatteryStats (nesting prob.)" into pi-dev

6 years agoMerge "Add lock when adjusting suggested stream volume." into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 21:43:19 +0000 (21:43 +0000)]
Merge "Add lock when adjusting suggested stream volume." into pi-dev

6 years agoMerge "Add auto battery saver suggestion notification/dialog" into pi-dev
Makoto Onuki [Tue, 27 Mar 2018 21:20:13 +0000 (21:20 +0000)]
Merge "Add auto battery saver suggestion notification/dialog" into pi-dev

6 years agoMerge "Use package context for loading task description icon resource" into pi-dev
Winson Chung [Tue, 27 Mar 2018 21:03:59 +0000 (21:03 +0000)]
Merge "Use package context for loading task description icon resource" into pi-dev

6 years agoMerge "Revert "Unhide enable_apps carrier config key."" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:58:54 +0000 (20:58 +0000)]
Merge "Revert "Unhide enable_apps carrier config key."" into pi-dev

6 years agoMerge "Don't animate dim layer exit when recents animation finishes." into pi-dev
Chavi Weingarten [Tue, 27 Mar 2018 20:56:17 +0000 (20:56 +0000)]
Merge "Don't animate dim layer exit when recents animation finishes." into pi-dev

6 years agoMerge "Track USB data link in batterystats" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:52:57 +0000 (20:52 +0000)]
Merge "Track USB data link in batterystats" into pi-dev

6 years agoRelax constraints on valid ImageReader usage flags
Clément Julliard [Tue, 27 Mar 2018 20:48:27 +0000 (13:48 -0700)]
Relax constraints on valid ImageReader usage flags

The only allowed format - usage pairs are currently:
* PRIVATE with USAGE_GPU_SAMPLED_IMAGE
* PRIVATE with USAGE_VIDEO_ENCODE
* PRIVATE with USAGE_GPU_SAMPLED_IMAGE | USAGE_VIDEO_ENCODE
* Non-PRIVATE with USAGE_CPU_READ_RARELY
* Non-PRIVATE with USAGE_CPU_READ_OFTEN

This commit enable other cases, ie. PRIVATE with
GRALLOC_USAGE_HW_COMPOSER.

Bug: 77148005
Test: Manually tested it.
Change-Id: I414c25bc62d52a3573461df6cec4d88512509ec4

6 years agoMerge "Add UsbDeviceAdded and update PhysicalDropDetected" into pi-dev
Andrew Chant [Tue, 27 Mar 2018 20:44:53 +0000 (20:44 +0000)]
Merge "Add UsbDeviceAdded and update PhysicalDropDetected" into pi-dev

6 years agoMerge changes Iba4e52c2,I81160755 into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:28:31 +0000 (20:28 +0000)]
Merge changes Iba4e52c2,I81160755 into pi-dev

* changes:
  Public volumes only browsable by mounting user.
  Public volumes are only visible to mounted user.

6 years agoWork on issue #74404949: Screen state usage API
Dianne Hackborn [Mon, 26 Feb 2018 21:07:42 +0000 (13:07 -0800)]
Work on issue #74404949: Screen state usage API

Add usage stats tracking of screen time.  There are two new
events, one for when the device is an interactive state, the
other for when it is non-interactive.  Also add a whole new
usage stats API for retrieving aggregated data that is associated
with general events, not particular packages.  In this case
it allows you to find the time the device spent interactive
and non-interactive and the count of the transitions in to
each of those states.

Bug: 74404949
Test: atest CtsUsageStatsTestCases:UsageStatsTest\#testInteractiveEvents

Change-Id: Ibe6d55e2aecb0c8519b1358644378ec5c7a4250d

6 years agoMerge "Remove feature flag for battery settings" into pi-dev
TreeHugger Robot [Tue, 27 Mar 2018 20:23:23 +0000 (20:23 +0000)]
Merge "Remove feature flag for battery settings" into pi-dev

6 years agoRefactor FingerprintDialog to BiometricDialog
Vishwath Mohan [Wed, 21 Mar 2018 05:57:17 +0000 (22:57 -0700)]
Refactor FingerprintDialog to BiometricDialog

This CL changes FingerprintDialog into the more generic
BiometricDialog, which OEMs will be able to extend as necessary to
provide support for alternate biometric modalities.

Bug: 74831038
Test: m -j50 FingerprintDialog (from the associated CL on this topic)
      The app works and authenticates successfully.
Test: make update-api -j56

Change-Id: Ic398ef0a0b448be68dbe3330b30779f93f567243