OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "AudioService: don't send BECOMING_NOISY when dyn policy affects media" into...
Jean-Michel Trivi [Wed, 7 Mar 2018 21:37:55 +0000 (21:37 +0000)]
Merge "AudioService: don't send BECOMING_NOISY when dyn policy affects media" into pi-dev

6 years agoMerge "Fix separator color for light wallpapers" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 21:37:30 +0000 (21:37 +0000)]
Merge "Fix separator color for light wallpapers" into pi-dev

6 years agoMerge "DO NOT MERGE - Disable warning on blocking one-way call from autofill server...
TreeHugger Robot [Wed, 7 Mar 2018 21:24:46 +0000 (21:24 +0000)]
Merge "DO NOT MERGE - Disable warning on blocking one-way call from autofill server." into pi-dev

6 years agoMerge "Throw an exception in case of parameter mismatch of precomputed text" into...
TreeHugger Robot [Wed, 7 Mar 2018 21:02:37 +0000 (21:02 +0000)]
Merge "Throw an exception in case of parameter mismatch of precomputed text" into pi-dev

6 years agoMerge "Ignore events when there is no focused stack." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 20:50:26 +0000 (20:50 +0000)]
Merge "Ignore events when there is no focused stack." into pi-dev

6 years agoMerge "Some more members for the light greylist." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 20:34:50 +0000 (20:34 +0000)]
Merge "Some more members for the light greylist." into pi-dev

6 years agoMerge "Implemented notifyViewClicked() on compat mode." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 19:40:55 +0000 (19:40 +0000)]
Merge "Implemented notifyViewClicked() on compat mode." into pi-dev

6 years agoFix separator color for light wallpapers
Lucas Dupin [Wed, 7 Mar 2018 19:37:25 +0000 (11:37 -0800)]
Fix separator color for light wallpapers

Test: visual
Change-Id: I61b2161db16db264c7425431dca50f5a54fce425
Fixes: 74345301

6 years agoDO NOT MERGE - Disable warning on blocking one-way call from autofill server.
Felipe Leme [Wed, 7 Mar 2018 17:56:41 +0000 (09:56 -0800)]
DO NOT MERGE - Disable warning on blocking one-way call from autofill server.

This behavior existed since autofill was introduced on O and it won't be fixed
on P, so there's no point on warning. In fact, the warning is often a red
herring for other issues, not to mention a big logcat spammer.

Bug: 35708678
Test: manual verification looking at logcat

Change-Id: I40be4ce25abc5b097ea67e5cb34bb9c4237f0826

6 years agoMerge changes from topics "pick-tdscdma", "wcdma-rscp" into pi-dev
Nathan Harold [Wed, 7 Mar 2018 19:22:32 +0000 (19:22 +0000)]
Merge changes from topics "pick-tdscdma", "wcdma-rscp" into pi-dev

* changes:
  Update SignalStrength to use ASU for TD-SDCMA
  Customize the WCDMA signal strength based on RSCP

6 years agoSome more members for the light greylist.
Mathew Inwood [Wed, 7 Mar 2018 18:47:53 +0000 (18:47 +0000)]
Some more members for the light greylist.

Test: N/A

Bug: 74323509
Change-Id: I142b7f750470aa0cc49ff5f17866516014d615e6

6 years agoMerge "Draw AnimatedImageDrawable mirrored if desired" into pi-dev
Leon Scroggins [Wed, 7 Mar 2018 18:51:16 +0000 (18:51 +0000)]
Merge "Draw AnimatedImageDrawable mirrored if desired" into pi-dev

6 years agoThrow an exception in case of parameter mismatch of precomputed text
Seigo Nonaka [Thu, 1 Mar 2018 02:21:29 +0000 (18:21 -0800)]
Throw an exception in case of parameter mismatch of precomputed text

If the given precomputed text is not compatible with the TextView,
reject the text by throwing IllegalArgumentException.

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

Change-Id: I4fbf89a5f1409e8eefdeb9f208f9a3758220fe1a
(cherry picked from commit 3a0787af5e1bb1f615c1dd2192a08464ea3776e3)

6 years agoMerge "Avoid service wrapper initialization deadlock." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 18:11:15 +0000 (18:11 +0000)]
Merge "Avoid service wrapper initialization deadlock." into pi-dev

6 years agoMerge "Fix duplicate text in battery string" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 18:02:27 +0000 (18:02 +0000)]
Merge "Fix duplicate text in battery string" into pi-dev

6 years agoMerge "Remove BIND_SLICE" into pi-dev
Jason Monk [Wed, 7 Mar 2018 18:01:26 +0000 (18:01 +0000)]
Merge "Remove BIND_SLICE" into pi-dev

6 years agoMerge "Catch and log exceptions from setup or teardown of WindowTestBase" into pi-dev
Chavi Weingarten [Wed, 7 Mar 2018 17:57:19 +0000 (17:57 +0000)]
Merge "Catch and log exceptions from setup or teardown of WindowTestBase" into pi-dev

6 years agoMerge "Disable color extraction for media" into pi-dev
Lucas Dupin [Wed, 7 Mar 2018 17:36:26 +0000 (17:36 +0000)]
Merge "Disable color extraction for media" into pi-dev

6 years agoMerge "Don't use highlighting in non-selectable text. Also fixes potential discrepanc...
Richard Ledley [Wed, 7 Mar 2018 17:30:20 +0000 (17:30 +0000)]
Merge "Don't use highlighting in non-selectable text. Also fixes potential discrepancy in indexes for Linkified entities." into pi-dev

6 years agoImplemented notifyViewClicked() on compat mode.
Felipe Leme [Tue, 6 Mar 2018 20:54:31 +0000 (12:54 -0800)]
Implemented notifyViewClicked() on compat mode.

Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.VirtualContainerActivityCompatModeTest#testSave_submitButtonClicked

Fixes: 73649008

Change-Id: Icf6a8b617e06055c58e38c5b7208c7f3ef3121ee

6 years agoMerge "Validate restore of NetworkPolicy settings" into pi-dev
Annie Meng [Wed, 7 Mar 2018 17:07:51 +0000 (17:07 +0000)]
Merge "Validate restore of NetworkPolicy settings" into pi-dev

6 years agoMerge "System sounds get its own dnd toggle" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 16:39:40 +0000 (16:39 +0000)]
Merge "System sounds get its own dnd toggle" into pi-dev

6 years agoMerge "Clarify javadoc for DevicePolicyManager.setTrustAgentConfiguration" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 16:27:14 +0000 (16:27 +0000)]
Merge "Clarify javadoc for DevicePolicyManager.setTrustAgentConfiguration" into pi-dev

6 years agoIgnore events when there is no focused stack.
Kenny Guy [Mon, 26 Feb 2018 14:11:40 +0000 (14:11 +0000)]
Ignore events when there is no focused stack.

Skip brightness slider events when there is no
focused activity stack.

Bug: 73825714
Test: atest SystemUIGoogleTests
Test: atest BrightnessTrackerTest
Change-Id: I87376bbab47545dbcd9be684d1c8174fc9c8d92f

6 years agoMerge "Remove com.android.internal{.util} from generated documentation." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 15:55:22 +0000 (15:55 +0000)]
Merge "Remove com.android.internal{.util} from generated documentation." into pi-dev

6 years agoMerge "Fix extra padding when there are no static notification dots" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 15:41:18 +0000 (15:41 +0000)]
Merge "Fix extra padding when there are no static notification dots" into pi-dev

6 years agoMerge "Screenshots: delete, default for edit intent." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 15:30:23 +0000 (15:30 +0000)]
Merge "Screenshots: delete, default for edit intent." into pi-dev

6 years agoMerge "Removed @FlakyTest from ScreenDecorWindowTests" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 15:23:15 +0000 (15:23 +0000)]
Merge "Removed @FlakyTest from ScreenDecorWindowTests" into pi-dev

6 years agoClarify javadoc for DevicePolicyManager.setTrustAgentConfiguration
Rubin Xu [Fri, 2 Mar 2018 15:25:28 +0000 (15:25 +0000)]
Clarify javadoc for DevicePolicyManager.setTrustAgentConfiguration

Fixes: 36887130
Test: builds
Change-Id: Ieccd3edc0122c9ae49903a3c5fc9fb0aba6c08a2

6 years agoMerge "Fix issue with where display is removed while creating it in AM and WM" into...
Wale Ogunwale [Wed, 7 Mar 2018 13:59:07 +0000 (13:59 +0000)]
Merge "Fix issue with where display is removed while creating it in AM and WM" into pi-dev

6 years agoRemove com.android.internal{.util} from generated documentation.
Tobias Thierer [Mon, 5 Mar 2018 22:55:32 +0000 (22:55 +0000)]
Remove com.android.internal{.util} from generated documentation.

com.android.internal.* is meant to be hidden from documentation,
but most of it is erroneously not hidden via @hide or -hidePackage
directives; why documentation is currently generated for Predicate
but not other classes from com.android.internal.util, and why some
but not all classes from that package show up in package-level
documentation (package-summary.html), is not currently understood.

There appears to be a behavior difference between OpenJDK 8 and
OpenJDK 9's javadoc that results in additional classes showing up
in package-summary.html. This CL fixes this by adding -hidePackage
directives for com.android.internal{.util}; other sub-packages of
com.android.internal do not currently show up in documentation and
are not touched by this CL.

Test: Patched this CL into the internal-master branch and ran:
      USE_R8=true EXPERIMENTAL_USE_OPENJDK9=true make offline-sdk-docs
      Checked that this removes all documentation for com.*
      (com.android.internal.util was the only com.* package for which
      documentation was previously generated).
      In other words: Before this CL, [1] existed, but after
      this CL, the entire directory subtree [2] does not exist.
Test: Checked that Predicate was already missing from stubs before this
      CL. In other words, [3] already did not exist before this CL.

[1] out/target/common/docs/offline-sdk/reference/com/android/internal/util/Predicate.html
[2] out/target/common/docs/offline-sdk/reference/com
[3] out/target/common/obj/JAVA_LIBRARIES/android_system_stubs_current_intermediates/classes/com

Bug: 69736344
Bug: 69736236

(cherry picked from commit 97bb6cf371f51549c708cf58a04584968eaf7d5a)

Merged-In: Ic9757f4966f54092aac0191896581fa4222cc634
Change-Id: Ic9757f4966f54092aac0191896581fa4222cc634

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible." into pi-dev
Anton Hansson [Wed, 7 Mar 2018 13:48:23 +0000 (13:48 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible." into pi-dev

6 years agoMerge "Block adb from changing certain settings value when corresponding user restric...
Yueming Wang [Wed, 7 Mar 2018 13:45:35 +0000 (13:45 +0000)]
Merge "Block adb from changing certain settings value when corresponding user restriction is on." into pi-dev

6 years agoRemoved @FlakyTest from ScreenDecorWindowTests
Wale Ogunwale [Wed, 7 Mar 2018 04:07:39 +0000 (20:07 -0800)]
Removed @FlakyTest from ScreenDecorWindowTests

Issues causing test to be flaky have been fixed.

Change-Id: Ie167c89bf32d24adb20766d2a36773b3f268d9ee
Fixes: 68957554
Test: this

6 years agoframeworks/base: Set LOCAL_SDK_VERSION where possible.
Anton Hansson [Fri, 23 Feb 2018 12:57:51 +0000 (12:57 +0000)]
frameworks/base: Set LOCAL_SDK_VERSION where possible.

This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Exempt-From-Owner-Approval: Global cleanup
Change-Id: I26458e41ecb84de91ac9a356a5d4bafb44f463c1

6 years agoMerge "MediaSession2: Fix random NPE in MediaBrowser2Test" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 11:23:29 +0000 (11:23 +0000)]
Merge "MediaSession2: Fix random NPE in MediaBrowser2Test" into pi-dev

6 years agoBlock adb from changing certain settings value when corresponding user
yuemingw [Tue, 30 Jan 2018 17:27:54 +0000 (17:27 +0000)]
Block adb from changing certain settings value when corresponding user
restriction is on.

Check calling uid in isSettingRestrictedForUser(which is called by settingsprovider),
 and only allow system_uid when certain user restriction is on, so that user won't be
able to change these settings with adb:
Settings.Secure.LOCATION_MODE,
Settings.Secure.PROVIDERS_ALLOWED,
Settings.System.SCREEN_BRIGHTNESS,
Settings.System.SCREEN_BRIGHTNESS_MODE,
Settings.System.SCREEN_OFF_TIMEOUT,
Settings.Global.AUTO_TIME,
Settings.Global.AUTO_TIME_ZONE.
This check also prevents 3rd party apps from modifying system settings value
when corresponding user restriction is on.
In addition, any attempt to change AUTO_TIME will also go through the check
for dpm.getAutoTimeRequired().

Test: manually by running the adb command with restriction set and not set
Bug: 72549013
Bug: 72548203
Bug: 72548533
Bug: 72686466
Bug: 72687105
Bug: 72940551
Bug: 72940562
Change-Id: I1d1fd20d9fa0f76f27905d62873f6a6e9af0224e

6 years agoMerge changes from topics "mplc", "session2_onDataSourceMissingHelper" into pi-dev
Sungsoo Lim [Wed, 7 Mar 2018 07:59:53 +0000 (07:59 +0000)]
Merge changes from topics "mplc", "session2_onDataSourceMissingHelper" into pi-dev

* changes:
  Remove MediaPlaylistController, add MediaPlaylistAgent
  MediaSession2: Add SessionCallback#onCurrentMediaItemChanged()
  MediaSession2: Add onDataSourceMissingHelper

6 years agoRemove MediaPlaylistController, add MediaPlaylistAgent
Sungsoo Lim [Wed, 7 Mar 2018 04:09:36 +0000 (13:09 +0900)]
Remove MediaPlaylistController, add MediaPlaylistAgent

MediaPlaylistAgent is the abstract class an application needs to
derive from to pass an object to a MediaSession2 that will override
default playlist handling behaviors. It contains a set of notify*
methods to signal MediaSession2 that playlist-related state has
changed.

Bug: 64098437
Test: make update-api
Change-Id: Icb3c57ddc14eba276f49d4ba85f11adbeb3e0917

6 years agoMediaSession2: Add SessionCallback#onCurrentMediaItemChanged()
Jaewan Kim [Wed, 7 Mar 2018 06:16:55 +0000 (15:16 +0900)]
MediaSession2: Add SessionCallback#onCurrentMediaItemChanged()

Added callback for session to know the currently playing media item has
changed.

Note that the callback is called in response to the
MediaPlayerBase#PlayerEventCallback#onCurrentDataSourceChanged(mpb, dsd
is called. Session will translate dsd to the media item and calls
onCurrentMediaItemChanged().

Following changes are also included
  - Removed MediaPlaylistController#getCurrentPlaylistItem(),
    because currently playing item is managed by the MediaPlayerBase.
  - Renamed ControllerCallback#onCurrentPlaylistItemChanged() to the
    ControllerCallback#onCurrentMediaItemChanged(), to make it more
    obvious that the event is from MediaPlayerBase, not
    MediaPlaylistController.
  - Added SessionCallback#onCurrentMediaItemChanged()

Bug: 64098437
Test: Run MediaComponents test
Change-Id: I78b124a7da0f968b097b2576507b9a73e36081ec

6 years agoMediaSession2: Add onDataSourceMissingHelper
Jaewan Kim [Tue, 6 Mar 2018 05:43:10 +0000 (14:43 +0900)]
MediaSession2: Add onDataSourceMissingHelper

This allows a developer to create DataSourceDesc when the item is about
to be played. Typical example of the usages are,

    1. For a playlist consists of FileDescriptors, its developer may not
        want to open all files when MediaSession2.setPlaylist() is
        called.
    2. A controller has called setPlaylist(), addPlaylistItem(), or
        replacePlaylistItem(). Controller cannot know the
        DataSourceDesc, and only the session developer can know about
        it.

Bug: 64098437
Test: Run MediaComponents test
Change-Id: I73f27ca0a799b1cddf5046b41f0ca01d08037103

6 years agoMerge "Connectivity: Fix map access" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 04:53:07 +0000 (04:53 +0000)]
Merge "Connectivity: Fix map access" into pi-dev

6 years agoDisable color extraction for media
Lucas Dupin [Wed, 7 Mar 2018 04:27:50 +0000 (20:27 -0800)]
Disable color extraction for media

Overlaying an album with wallpaper colors isn't optimal.
Using the album extracted color also isn't optimal, the color probably
won't meet accessibility guidelines and will have to be stretched
according to the current lock screen theme - which can be even worse.

Test: atest packages/SystemUI/tests/src/com/android/systemui/colorextraction/SysuiColorExtractorTests.java
Change-Id: I53d08713716bd76ee0975c2b4bba5b933201f999

6 years agoMerge "MediaPlayer2: embed header in uri" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 04:26:18 +0000 (04:26 +0000)]
Merge "MediaPlayer2: embed header in uri" into pi-dev

6 years agoMerge "Fix Telecom dumpsys timestamps" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 03:52:28 +0000 (03:52 +0000)]
Merge "Fix Telecom dumpsys timestamps" into pi-dev

6 years agoMerge "Remove toString() for CarrierIdentifier." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 03:44:31 +0000 (03:44 +0000)]
Merge "Remove toString() for CarrierIdentifier." into pi-dev

6 years agoConnectivity: Fix map access
Andreas Gampe [Tue, 6 Mar 2018 01:23:07 +0000 (17:23 -0800)]
Connectivity: Fix map access

Found by Errorprone.

Bug: 73288226
Test: mmma frameworks/base/services
Merged-In: I1c4b35811c72d389e53e28c3eb1b411009471b92
Merged-In: Ice91ac58257551485231da4664027a281237de4b
Merged-In: I7d2f578b54c69139be8b887a2381ac1b2e0673a3
Change-Id: I63edad58dbc909c1e772bde85a1b9dd98c551fb1
(cherry picked from commit 3ba8106c23cdf518527f75beaabb48bf3182fb4d)

6 years agoMerge "Add APP_AUTO_RESTRICTION_ENABLED" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 02:32:17 +0000 (02:32 +0000)]
Merge "Add APP_AUTO_RESTRICTION_ENABLED" into pi-dev

6 years agoMediaPlayer2: embed header in uri
Robert Shih [Tue, 6 Mar 2018 07:14:50 +0000 (23:14 -0800)]
MediaPlayer2: embed header in uri

Bug: 63934228
Change-Id: I3eba4a0ee8e8e784f6dcf79c739a756e957025c9

6 years agoMerge "Changing Slog.wtf to Slog.w" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 02:09:34 +0000 (02:09 +0000)]
Merge "Changing Slog.wtf to Slog.w" into pi-dev

6 years agoFix issue with where display is removed while creating it in AM and WM
Wale Ogunwale [Tue, 6 Mar 2018 20:24:19 +0000 (12:24 -0800)]
Fix issue with where display is removed while creating it in AM and WM

It is possible to a display to be removed while we are in the ctor of
ActivityDisplay in AM, but before we can get the Display object in the
ctor of DisplayWindowController in WM. This causes us to throw an
exception becuase the caller is trying to add a display we can't find in
display manager. Unfortunately there isn't a good way to handle this race.
To work around it we will now pass the Display object from AM to WM to use
and depend on the fact that AM will remove the display shortly after.

Change-Id: Ie3f9d86bad67f5a023e3e7dfce5219b98c796864
Fixes: 72893961
Test: go/wm-smoke

6 years agoMerge "Fix javadoc typo causing broken links" into oc-mr1-dev
Scott Main [Wed, 7 Mar 2018 01:54:15 +0000 (01:54 +0000)]
Merge "Fix javadoc typo causing broken links" into oc-mr1-dev
am: ac2cdc0dba

Change-Id: Ib8d63b1bfcc20e398314501a51bd2fad76a8d10e

6 years agoAvoid service wrapper initialization deadlock.
Makoto Onuki [Thu, 25 Jan 2018 17:50:24 +0000 (09:50 -0800)]
Avoid service wrapper initialization deadlock.

- Don't initialize a service wrapper with the cache lock held.
- Instead, use AtomicInteger to avoid instantiating the same service
multiple times.

Test: build, boot, presubmit
Bug: 71882178

Change-Id: Iea4207b855043addac4d24381778babf8eedd84d

6 years agoMerge "Fix javadoc typo causing broken links" into oc-mr1-dev
Scott Main [Wed, 7 Mar 2018 01:39:45 +0000 (01:39 +0000)]
Merge "Fix javadoc typo causing broken links" into oc-mr1-dev

6 years agoFix javadoc typo causing broken links
Scott Main [Tue, 6 Mar 2018 22:57:07 +0000 (14:57 -0800)]
Fix javadoc typo causing broken links

Change-Id: I988e06100562c574bbda1bb530359da289062d65

bug: 74262753

6 years agoMerge "Add feature flag for audio output switcher." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 01:38:53 +0000 (01:38 +0000)]
Merge "Add feature flag for audio output switcher." into pi-dev

6 years agoMerge "Update background ANR setting text" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 01:09:44 +0000 (01:09 +0000)]
Merge "Update background ANR setting text" into pi-dev

6 years agoMerge "Atom: ResourceConfigurationChanged" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 00:41:35 +0000 (00:41 +0000)]
Merge "Atom: ResourceConfigurationChanged" into pi-dev

6 years agoRemove toString() for CarrierIdentifier.
Holly Jiuyu Sun [Tue, 6 Mar 2018 00:07:37 +0000 (16:07 -0800)]
Remove toString() for CarrierIdentifier.

We may get NPE if mCarrierIdentifier is null. + should convert it to
string by itself.

Test: test on phone
Merged-In: Ibd352d6d2a9b0cb33a494d108eb0d3a7c1dbc61b
Change-Id: Ibd352d6d2a9b0cb33a494d108eb0d3a7c1dbc61b

6 years agoCatch and log exceptions from setup or teardown of WindowTestBase
chaviw [Wed, 7 Mar 2018 00:24:17 +0000 (16:24 -0800)]
Catch and log exceptions from setup or teardown of WindowTestBase

A lot of the test failures are due to issues in setup and/or teardown of
the tests. The test framework doesn't log errors that are thrown from
the @Before or @After block. This change allows the errors to get logged
so we can determine what the root issue for the test failures are.

Bug: 74078662
Test: Thrown exceptions in setup/teardown are logged.
Change-Id: I8eb0d112f9d34dad01f761d5ccd75ba0936ac026

6 years agoFix duplicate text in battery string
Salvador Martinez [Tue, 6 Mar 2018 21:40:22 +0000 (13:40 -0800)]
Fix duplicate text in battery string

The word 'about' was duplicated in the string. This CL fixes the
string and makes the tests for that particular string more robust.

Test: robotests
Bug: 74220105
Change-Id: Ifeff3e08a64c5f23b7a64dfc0d35ca912ce7f65a

6 years agoMerge "Fix wallpaper screenshot" into pi-dev
Chavi Weingarten [Wed, 7 Mar 2018 00:34:07 +0000 (00:34 +0000)]
Merge "Fix wallpaper screenshot" into pi-dev

6 years agoFix Telecom dumpsys timestamps
Hall Liu [Tue, 6 Mar 2018 22:20:37 +0000 (14:20 -0800)]
Fix Telecom dumpsys timestamps

Change the dumpsys timestamps to use java.time for processing and always
log events with local timezone that was in effect at the time the event
happened.

Bug: 74250969
Test: manual, run dumpsys
Change-Id: Ie53cff4400be1528b3224bd556536a689ef22c8c

6 years agoMerge "Fix GnssMeasurement JNI for 1.1" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 00:20:34 +0000 (00:20 +0000)]
Merge "Fix GnssMeasurement JNI for 1.1" into pi-dev

6 years agoScreenshots: delete, default for edit intent.
Alison Cichowlas [Wed, 7 Mar 2018 00:08:18 +0000 (19:08 -0500)]
Screenshots: delete, default for edit intent.

Revive delete action in screenshot notification; add config option
to specify default component to handle edit.

Test: Manual with Markup app & empty option.
Change-Id: If0fd90bf8eeb5667c51f3d959d3f77b28c5a33ce

6 years agoMerge "IME API: rename IMS methods." into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 00:19:55 +0000 (00:19 +0000)]
Merge "IME API: rename IMS methods." into pi-dev

6 years agoMerge "Update strings that refer to the OS" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 00:11:33 +0000 (00:11 +0000)]
Merge "Update strings that refer to the OS" into pi-dev

6 years agoMerge changes from topic "session2-pi-listcallback" into pi-dev
Jaewan Kim [Wed, 7 Mar 2018 00:02:09 +0000 (00:02 +0000)]
Merge changes from topic "session2-pi-listcallback" into pi-dev

* changes:
  MediaSession2: Pass player info for the callbacks from MediaPlayerBase
  MediaSession2: Add MediaPlaylistController.PlaylistEventCallback

6 years agoMerge "Assign leash layer when starting animations." into pi-dev
Rob Carr [Tue, 6 Mar 2018 23:45:37 +0000 (23:45 +0000)]
Merge "Assign leash layer when starting animations." into pi-dev

6 years agoChanging Slog.wtf to Slog.w
Suprabh Shukla [Tue, 6 Mar 2018 23:40:53 +0000 (15:40 -0800)]
Changing Slog.wtf to Slog.w

Removing a wtf that was added temporarily.

Test: Builds, boots.

Fixes: 70677313
Change-Id: I129920b4a4c96abcd7f40c8077f6597208ed84cc

6 years agoMerge "Move com.android.managedprovisioning package constant to config.xml" into...
TreeHugger Robot [Tue, 6 Mar 2018 23:38:36 +0000 (23:38 +0000)]
Merge "Move com.android.managedprovisioning package constant to config.xml" into pi-dev

6 years agoMerge "Hide overlay notification" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 23:33:28 +0000 (23:33 +0000)]
Merge "Hide overlay notification" into pi-dev

6 years agoAdd feature flag for audio output switcher.
Doris Ling [Tue, 6 Mar 2018 23:17:10 +0000 (15:17 -0800)]
Add feature flag for audio output switcher.

Bug: 74130772
Test: rebuild
Change-Id: I06224975550ab4017d1546b182af083a36c0eacc

6 years agoMerge "Update OWNERS" into pi-dev
Ashutosh Joshi [Tue, 6 Mar 2018 23:13:45 +0000 (23:13 +0000)]
Merge "Update OWNERS" into pi-dev

6 years agoMerge "MediaSession2: Ask server whether a controller is trusted" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 23:06:18 +0000 (23:06 +0000)]
Merge "MediaSession2: Ask server whether a controller is trusted" into pi-dev

6 years agoMerge "Reset user rotate pref on navbar create" into pi-dev
Mike Digman [Tue, 6 Mar 2018 23:04:54 +0000 (23:04 +0000)]
Merge "Reset user rotate pref on navbar create" into pi-dev

6 years agoMerge "Fix issue #72116995: Add permission guarding Service#startForeground" into...
Dianne Hackborn [Tue, 6 Mar 2018 23:04:16 +0000 (23:04 +0000)]
Merge "Fix issue #72116995: Add permission guarding Service#startForeground" into pi-dev

6 years agoMerge "Exclude from Recents Assistant in half-screen mode" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 23:00:25 +0000 (23:00 +0000)]
Merge "Exclude from Recents Assistant in half-screen mode" into pi-dev

6 years agoMerge "API review: rename CarrierIdentification to Carrier id" into pi-dev
Chen Xu [Tue, 6 Mar 2018 22:57:32 +0000 (22:57 +0000)]
Merge "API review: rename CarrierIdentification to Carrier id" into pi-dev

6 years agoMerge "Add more tests for MemoryStatUtil" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:50:28 +0000 (22:50 +0000)]
Merge "Add more tests for MemoryStatUtil" into pi-dev

6 years agoMerge "Add set-time and set-timezone shell cmds to alarm service" into pi-dev
Michael West [Tue, 6 Mar 2018 22:41:40 +0000 (22:41 +0000)]
Merge "Add set-time and set-timezone shell cmds to alarm service" into pi-dev

6 years agoMerge "Stop invoking secdiscard when deleting password data" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:37:43 +0000 (22:37 +0000)]
Merge "Stop invoking secdiscard when deleting password data" into pi-dev

6 years agoMerge "Using UserManagerInternal for access control instead of UserManager" into...
TreeHugger Robot [Tue, 6 Mar 2018 22:37:09 +0000 (22:37 +0000)]
Merge "Using UserManagerInternal for access control instead of UserManager" into pi-dev

6 years agoMerge "Update default charging sound to new sound" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:33:24 +0000 (22:33 +0000)]
Merge "Update default charging sound to new sound" into pi-dev

6 years agoMerge "Adds instant app visibility to instumentation" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:28:53 +0000 (22:28 +0000)]
Merge "Adds instant app visibility to instumentation" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:27:20 +0000 (22:27 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:26:22 +0000 (22:26 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:21:48 +0000 (22:21 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:20:13 +0000 (22:20 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:19:54 +0000 (22:19 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:19:50 +0000 (22:19 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "WallpaperColors hint computation" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:16:50 +0000 (22:16 +0000)]
Merge "WallpaperColors hint computation" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:06:58 +0000 (22:06 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 22:05:06 +0000 (22:05 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Only set appToken.setCanTurnScreenOn to false if screen was turned on." into...
Chavi Weingarten [Tue, 6 Mar 2018 22:04:35 +0000 (22:04 +0000)]
Merge "Only set appToken.setCanTurnScreenOn to false if screen was turned on." into pi-dev

6 years agoMerge "Increase char limit of keyguard messages" into pi-dev
Lucas Dupin [Tue, 6 Mar 2018 21:55:48 +0000 (21:55 +0000)]
Merge "Increase char limit of keyguard messages" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 21:54:25 +0000 (21:54 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoAudioService: don't send BECOMING_NOISY when dyn policy affects media
Jean-Michel Trivi [Tue, 6 Mar 2018 18:30:59 +0000 (10:30 -0800)]
AudioService: don't send BECOMING_NOISY when dyn policy affects media

Only send ACTION_AUDIO_BECOMING_NOISY when there is no dynamic
  policy registered that affects media.

Bug: 67610473
Test: see bug
Change-Id: I0768718fbde35ea53c36c309086529567dfa82ac

6 years agoMerge "Add an app-ops check when registering for location" into pi-dev
TreeHugger Robot [Tue, 6 Mar 2018 21:51:43 +0000 (21:51 +0000)]
Merge "Add an app-ops check when registering for location" into pi-dev

6 years agoMerge "metrics constants for app ops." into pi-dev
Julia Reynolds [Tue, 6 Mar 2018 21:44:53 +0000 (21:44 +0000)]
Merge "metrics constants for app ops." into pi-dev