Commit Graph

361247 Commits

Author SHA1 Message Date
TreeHugger Robot
ed0b75df20 Merge "Fix separator color for light wallpapers" into pi-dev 2018-03-07 21:37:30 +00:00
TreeHugger Robot
8c55e8c306 Merge "DO NOT MERGE - Disable warning on blocking one-way call from autofill server." into pi-dev 2018-03-07 21:24:46 +00:00
TreeHugger Robot
a4d970ea40 Merge "Throw an exception in case of parameter mismatch of precomputed text" into pi-dev 2018-03-07 21:02:37 +00:00
TreeHugger Robot
9c345022d1 Merge "Ignore events when there is no focused stack." into pi-dev 2018-03-07 20:50:26 +00:00
TreeHugger Robot
2dacab9844 Merge "Some more members for the light greylist." into pi-dev 2018-03-07 20:34:50 +00:00
TreeHugger Robot
f99b1d8fd9 Merge "Implemented notifyViewClicked() on compat mode." into pi-dev 2018-03-07 19:40:55 +00:00
Lucas Dupin
b21fb8020f Fix separator color for light wallpapers
Test: visual
Change-Id: I61b2161db16db264c7425431dca50f5a54fce425
Fixes: 74345301
2018-03-07 11:37:25 -08:00
Felipe Leme
385ee5393d 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
2018-03-07 19:24:45 +00:00
Nathan Harold
1a1dc60ff5 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
2018-03-07 19:22:32 +00:00
Mathew Inwood
f37f02460e Some more members for the light greylist.
Test: N/A

Bug: 74323509
Change-Id: I142b7f750470aa0cc49ff5f17866516014d615e6
2018-03-07 18:58:26 +00:00
Leon Scroggins
e781724b41 Merge "Draw AnimatedImageDrawable mirrored if desired" into pi-dev 2018-03-07 18:51:16 +00:00
Seigo Nonaka
e1ffb54167 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 3a0787af5e)
2018-03-07 18:30:27 +00:00
TreeHugger Robot
1e36211a96 Merge "Avoid service wrapper initialization deadlock." into pi-dev 2018-03-07 18:11:15 +00:00
TreeHugger Robot
13da2a778f Merge "Fix duplicate text in battery string" into pi-dev 2018-03-07 18:02:27 +00:00
Jason Monk
23b73c45fb Merge "Remove BIND_SLICE" into pi-dev 2018-03-07 18:01:26 +00:00
Chavi Weingarten
34ab4d95ca Merge "Catch and log exceptions from setup or teardown of WindowTestBase" into pi-dev 2018-03-07 17:57:19 +00:00
Lucas Dupin
20ebb0a6d8 Merge "Disable color extraction for media" into pi-dev 2018-03-07 17:36:26 +00:00
Richard Ledley
847446d7f8 Merge "Don't use highlighting in non-selectable text. Also fixes potential discrepancy in indexes for Linkified entities." into pi-dev 2018-03-07 17:30:20 +00:00
Felipe Leme
54cc68370c Implemented notifyViewClicked() on compat mode.
Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.VirtualContainerActivityCompatModeTest#testSave_submitButtonClicked

Fixes: 73649008

Change-Id: Icf6a8b617e06055c58e38c5b7208c7f3ef3121ee
2018-03-07 09:27:02 -08:00
Annie Meng
292d895fb2 Merge "Validate restore of NetworkPolicy settings" into pi-dev 2018-03-07 17:07:51 +00:00
TreeHugger Robot
5a169cf2f6 Merge "System sounds get its own dnd toggle" into pi-dev 2018-03-07 16:39:40 +00:00
TreeHugger Robot
a3e2d2fed8 Merge "Clarify javadoc for DevicePolicyManager.setTrustAgentConfiguration" into pi-dev 2018-03-07 16:27:14 +00:00
Kenny Guy
0e875d36c7 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
2018-03-07 16:13:57 +00:00
TreeHugger Robot
6e0e705844 Merge "Remove com.android.internal{.util} from generated documentation." into pi-dev 2018-03-07 15:55:22 +00:00
TreeHugger Robot
bb9bd1215a Merge "Fix extra padding when there are no static notification dots" into pi-dev 2018-03-07 15:41:18 +00:00
TreeHugger Robot
b16f1f049b Merge "Screenshots: delete, default for edit intent." into pi-dev 2018-03-07 15:30:23 +00:00
TreeHugger Robot
0b7011581f Merge "Removed @FlakyTest from ScreenDecorWindowTests" into pi-dev 2018-03-07 15:23:15 +00:00
Rubin Xu
50ac241221 Clarify javadoc for DevicePolicyManager.setTrustAgentConfiguration
Fixes: 36887130
Test: builds
Change-Id: Ieccd3edc0122c9ae49903a3c5fc9fb0aba6c08a2
2018-03-07 14:21:35 +00:00
Wale Ogunwale
91059cdfc9 Merge "Fix issue with where display is removed while creating it in AM and WM" into pi-dev 2018-03-07 13:59:07 +00:00
Tobias Thierer
dda16e8e6b 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 97bb6cf371)

Merged-In: Ic9757f4966f54092aac0191896581fa4222cc634
Change-Id: Ic9757f4966f54092aac0191896581fa4222cc634
2018-03-07 13:57:16 +00:00
Anton Hansson
d740e43bf7 Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible." into pi-dev 2018-03-07 13:48:23 +00:00
Yueming Wang
aecd9616ec Merge "Block adb from changing certain settings value when corresponding user restriction is on." into pi-dev 2018-03-07 13:45:35 +00:00
Wale Ogunwale
ac7e2552fd Removed @FlakyTest from ScreenDecorWindowTests
Issues causing test to be flaky have been fixed.

Change-Id: Ie167c89bf32d24adb20766d2a36773b3f268d9ee
Fixes: 68957554
Test: this
2018-03-07 05:24:30 -08:00
Anton Hansson
d137c872cd 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
2018-03-07 11:42:04 +00:00
TreeHugger Robot
aa79f03ca6 Merge "MediaSession2: Fix random NPE in MediaBrowser2Test" into pi-dev 2018-03-07 11:23:29 +00:00
yuemingw
1d13eaea83 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
2018-03-07 11:04:34 +00:00
Sungsoo Lim
be1033fda2 Merge changes from topics "mplc", "session2_onDataSourceMissingHelper" into pi-dev
* changes:
  Remove MediaPlaylistController, add MediaPlaylistAgent
  MediaSession2: Add SessionCallback#onCurrentMediaItemChanged()
  MediaSession2: Add onDataSourceMissingHelper
2018-03-07 07:59:53 +00:00
Sungsoo Lim
df0e8fdffd 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
2018-03-07 16:41:19 +09:00
Jaewan Kim
87086f59ad 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
2018-03-07 16:31:56 +09:00
Jaewan Kim
4d4a8c95ae 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
2018-03-07 16:31:53 +09:00
TreeHugger Robot
1fff4c000d Merge "Connectivity: Fix map access" into pi-dev 2018-03-07 04:53:07 +00:00
Lucas Dupin
3ec5928cc2 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
2018-03-06 20:27:50 -08:00
TreeHugger Robot
c943614f2c Merge "MediaPlayer2: embed header in uri" into pi-dev 2018-03-07 04:26:18 +00:00
TreeHugger Robot
8c76ca0341 Merge "Fix Telecom dumpsys timestamps" into pi-dev 2018-03-07 03:52:28 +00:00
TreeHugger Robot
1eb1ff31fc Merge "Remove toString() for CarrierIdentifier." into pi-dev 2018-03-07 03:44:31 +00:00
Andreas Gampe
ba0613358a 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 3ba8106c23)
2018-03-07 11:36:57 +09:00
TreeHugger Robot
9aa32d0e71 Merge "Add APP_AUTO_RESTRICTION_ENABLED" into pi-dev 2018-03-07 02:32:17 +00:00
Robert Shih
3164cbd536 MediaPlayer2: embed header in uri
Bug: 63934228
Change-Id: I3eba4a0ee8e8e784f6dcf79c739a756e957025c9
2018-03-06 18:18:52 -08:00
TreeHugger Robot
1c22ed2712 Merge "Changing Slog.wtf to Slog.w" into pi-dev 2018-03-07 02:09:34 +00:00
Wale Ogunwale
45477b57a3 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
2018-03-06 18:02:08 -08:00