Commit Graph

21717 Commits

Author SHA1 Message Date
TreeHugger Robot
5cf6abedcb Merge "Make TextView.isSingleLine public" 2018-11-30 22:42:28 +00:00
TreeHugger Robot
e444d218b7 Merge "Revert "Allow location provider to deep link into permissions UI"" 2018-11-30 21:04:35 +00:00
Shuo Qian
0893c2e31d Merge "Add Emergency service categories in ImsCallProfile" 2018-11-30 20:22:01 +00:00
Pengquan Meng
3ce70560d8 Merge "Add 5G rat type" 2018-11-30 20:10:04 +00:00
Daniel Solomon
94da729e42 Merge "Add a public chromatic adaptation API to ColorSpace" 2018-11-30 18:38:15 +00:00
Clara Bayarri
370a1b508f Fix unsupported api usage in NumberPicker
There is unsupported access to the divider. Exposing the
drawable will be tricky as the widget counts on the drawable
being a certain shape and have certain attributes. However we can
easily expose the thickness as a new attribute and document that
you can customize the divider color via XML.

Bug: 117520784
Test: atest NumberPickerTest (with new test)
Change-Id: Ib7a65c055df3b1f68c8327943fa887c89f57e00c
2018-11-30 11:07:08 +00:00
Jimmy Chen
0d7a9a2789 Merge "p2p: WiFi Direct API for Group Creation" 2018-11-30 06:19:21 +00:00
Jaewan Kim
c188069fa8 Merge "AML: Make Context#getOpPackageName() public" 2018-11-30 04:49:09 +00:00
TreeHugger Robot
5f0c9331cc Merge "Make AudioManager.FLAG_FROM_KEY as @SystemApi" 2018-11-30 04:03:30 +00:00
qqd
153257115a Make TextView.isSingleLine public
Bug: 117521096
Test: Added new CTS tests under cts.TextViewTest
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: Ib19277767c69fb2bf92d2387738dbb228f31f502
2018-11-30 01:31:22 +00:00
Jimmy Chen
ab4a8d2eb7 Merge "p2p: add WifiP2pConfig builder for new API" 2018-11-29 22:37:39 +00:00
Lucas Dupin
54ff93c6b2 Merge "Ambient wallpaper API feedback" 2018-11-29 20:44:13 +00:00
Roshan Pius
f8d769ef29 Merge changes from topics "system_api_setup_wizard", "deprecate_apis"
* changes:
  WifiManager: Mark all settings/setupwizard custom APIs @SystemApi
  WifiManager: Deprecate API implementation
2018-11-29 20:41:20 +00:00
John Reck
fd45bee176 Merge "Add a unique ID to rendernode" 2018-11-29 20:39:08 +00:00
TreeHugger Robot
362a3caaf1 Merge "Make Drawable#isProjected public" 2018-11-29 20:21:27 +00:00
Chad Brubaker
1a4c431e26 Merge "Add permission usage information" 2018-11-29 20:10:41 +00:00
John Reck
f96b284dec Add a unique ID to rendernode
Bug: 120089776
Test: dump'd skp, verified ID present
Change-Id: I97a03804ebc53925e1b79db3dd616a728eff0bfa
2018-11-29 10:34:32 -08:00
Roshan Pius
29c2a95ae3 WifiManager: Mark all settings/setupwizard custom APIs @SystemApi
Mark all the custom connect (& other APIs) added to serve settings &
setupwizard as @SystemApi.

Also, enforce tighter permissions on these APIs. These were explicitly
added to serve settings & we should not allow any other apps to use
them.

Bug: 116127346
Test: Compiles

Change-Id: Ic0000f21ccbeda4ade59a3b04d78f49b1b20cd02
2018-11-29 10:18:51 -08:00
Garfield Tan
4df6418f0b Merge "Add a test API to remove launch param records." 2018-11-29 18:06:54 +00:00
Jorim Jaggi
9a94afc6ca Merge "A brave new world for window insets (1/n)" 2018-11-29 17:14:15 +00:00
Ian Lake
fe46ecd6ad Merge "Add Activity.registerActivityLifecycleCallbacks()" 2018-11-29 16:59:35 +00:00
Lucas Dupin
4c8c3274da Ambient wallpaper API feedback
Making this api a @SystemApi, protecting it with a permission and
changing boolean animation parameter to a long.

Change-Id: Ife6aac2806a5590288a801751f22d85c3cfd4622
Fixes: 116117810
Test: atest DozeWallpaperStateTest
Test: atest WallpaperServiceTest
Test: set image wallpaper
Test: set AOD wallpaper that holds permission
Test: set AOD wallpaper that doesn't hold permission
2018-11-29 17:38:11 +01:00
TreeHugger Robot
636be16176 Merge "Made View.setLeftTopRightBottom() public" 2018-11-29 16:32:22 +00:00
TreeHugger Robot
8ce7d1d992 Merge "Add onActionClicked in NotificationAssistantService" 2018-11-29 15:43:29 +00:00
Michal Karpinski
f4f922b1a4 Merge "Mark AppDetailsActivity class @TestApi" 2018-11-29 15:31:28 +00:00
TreeHugger Robot
8dac427f33 Merge "Add new intent to signal that device customization is ready" 2018-11-29 15:05:22 +00:00
Andrey Kulikov
6ee8379dc0 Made View.setLeftTopRightBottom() public
It will allow to call this method in AndroidX Transition without reflection.
ChangeBounds#BOTTOM_RIGHT_ONLY_PROPERTY,POSITION_PROPERTY are restricted now as well as developers can just use setLeftTopRightBottom method instead (it was used as a performance optimization in third-party transitions backport)

Bug: 117521189
Bug: 117521197
Bug: 117521053
Test: new test added for the method
Change-Id: I0a29bc8cf0b3357e49f6be14270993a21a6dfeee
2018-11-29 14:44:29 +00:00
Jorim Jaggi
f96c90ac6c A brave new world for window insets (1/n)
This CL starts a journey to discover a brave new inset world. The
path to get us there may be rocky, but it's going to be rocky.

One of the main pledges of the new API is that an app can retrieve
what is causing a certain inset easily. For that, we need to
dispatch metadata who is causing what inset, such that we can query
it from the client side.

Furthermore, the client will be able to manipulate insets directly,
but also listen to animation changes. We don't want to go through
window manager for that, thus, there needs to be a local codepath
from (global window state -> WindowInsets).

Because we have these two requirements, we dispatch the relevant
global window state for insets, represented by InsetsState, and
dispatch it to the client. On the client side we take the frame
and the InsetsState and generate WindowInsets out of it.

Bug: 118118435
Test: InsetsSourceTest, InsetsStateTest, InsetsSourceProviderTest,
InsetsStateControllerTest
Change-Id: I2bfe9dda376512916261823fc2ee35cbedeb6731
2018-11-29 13:37:43 +01:00
Tony Mak
7d4b3a5f19 Add onActionClicked in NotificationAssistantService
This is added to report clicks on actions buttons to NAS.

BUG: 119010281
Test: atest SystemUITests
Test: atest RemoteViewsTest
Test: atest NotificationManagerServiceTest
Test: Manual. Tapped on the action (both normal and contextual) and
      observed the log.

Change-Id: I381994737d8c3185d3fabf9b6c481fd01a89a634
2018-11-29 11:43:53 +00:00
Ian Lake
8a88cd6fe0 Add Activity.registerActivityLifecycleCallbacks()
As an alternative to requiring developers
register/unregister ActivityLifecycleCallbacks
at the Application level, provide the same API
at the Activity level.

This allows you to get lifecycle callbacks scoped
to only a single Activity without overriding
each individual callback.

The callbacks are purposefully nested within
the Application scoped ActivityLifecycleCallbacks.

Test: new CTS test
BUG: 116118635
Change-Id: Iab6d841019010a0bf9d91fe889db82e0135b4b9c
2018-11-29 05:59:27 +00:00
Jimmy Chen
f20ea0fa14 Merge "p2p: WiFi Direct API for requesting p2p info" 2018-11-29 04:57:32 +00:00
Hyundo Moon
888b791f29 Make AudioManager.FLAG_FROM_KEY as @SystemApi
Bug: 119790339
Test: make update-api
Change-Id: I649cd5cbf64274e5fe840eb773a450c3c581b210
2018-11-29 13:35:51 +09:00
Jaewan Kim
0980c7f092 AML: Make Context#getOpPackageName() public
Bug: 119748678
Test: build
Change-Id: I79f7d057df5b61fa661987d36f20d24825eb1e5b
2018-11-29 12:48:38 +09:00
Sudheer Shanka
c2b3462713 Merge "Add Downloads collection in MediaProvider." 2018-11-29 02:14:24 +00:00
Nader Jawad
3af32bd94f Make Drawable#isProjected public
Modify Drawable public API to no longer mark isProjected
as hidden. This makes the Drawable API consistent with the public
RenderNode API and enables androidx to move away from accessing
this method through reflection

Bug: 120159096 117521142
Test: none
Change-Id: Icdd778bf3d8842eb2d69e5872f704c7e96f915fa
2018-11-28 16:08:10 -08:00
yuemingw
4bcea96bde Add APIs for cross profile calendar whitelist in DPM.
Bug: 118444029
Test: atest DevicePolicyManagerTest#testCrossProfileCalendar_failIfNotProfileOwner
atest ManagedProfileTest#testCrossProfileCalendarPackage

Change-Id: Id7e6a2fc32ec8bcf770700df1596378c858168c2
2018-11-28 23:46:41 +00:00
Pengquan Meng
56b84678a8 Add 5G rat type
This add a new rat type for 5G.

Bug: 111453000
Test: build
Change-Id: I57366a1a9f61278cf752c25d54a1af1830bf4575
2018-11-28 22:39:13 +00:00
Chad Brubaker
a58ce39e5d Add permission usage information
Applications will be able to add information to their uses-permission
elements about how the data protected by that permission is used.

Currently the system does not use this information, that will be done in
a follow up CL.

Test: atest PermissionUsageTest
Bug: 111207567
Change-Id: Ic168684cc800febc8fb3a3f807e1917f1f1585a4
2018-11-28 13:34:17 -08:00
Siyamed Sinir
2535f534ec Merge "Make TextView.getTextDirectionHeuristic public" 2018-11-28 20:09:58 +00:00
TreeHugger Robot
471bb616ee Merge "Expose Context Hub Service PendingIntent APIs" 2018-11-28 19:53:57 +00:00
sqian
494bf5efce Add Emergency service categories in ImsCallProfile
Bug: 112657134
Test: Treehugger
Change-Id: I5376140e8fceca7c0e2c9bae4a849005d2108760
2018-11-28 11:27:26 -08:00
Garfield Tan
015486394b Add a test API to remove launch param records.
Some tests are broken because launch params are persisted between test
cases.

Bug: 120035844
Test: Manual test on the CTS.
Change-Id: Ia4f23778467f73dad471487eb94979bfccde16d9
2018-11-28 09:26:59 -08:00
Jeff Sharkey
c583071b97 Merge changes from topic "exifz"
* changes:
  Track attribute ranges, parse additional times.
  Sane undefined behaviors for XmlUtils.
2018-11-28 16:03:04 +00:00
Martijn Coenen
ce871128cd Merge "Add useAppZygote attibute to <service>." 2018-11-28 08:25:20 +00:00
TreeHugger Robot
ea2cc72610 Merge "Remove static for getSubscriptionIds" 2018-11-28 07:30:25 +00:00
Daniel Solomon
6310160c4e Add a public chromatic adaptation API to ColorSpace
This change adds a public version of ColorSpace.chromaticAdaptation(),
so that chromatic adaptation can be done on independent CIE xyY or XYZ
coordinates without the involvement of ColorSpace.Rgb.

Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.ColorSpaceTest
Bug 116516917

Change-Id: I73c33750c343301bed4bb018c351d87c5043b59b
2018-11-28 03:34:20 +00:00
TreeHugger Robot
39ba1b71fb Merge "Add new API for returning max custom fallback families" 2018-11-28 03:11:29 +00:00
Siyamed Sinir
a1e851c873 Make TextView.getTextDirectionHeuristic public
Test: Added new CTS tests under cts.TextViewTest
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest

Bug: 117521460
Change-Id: I27391f69f2387cc761a7fc859423bd921601bea9
2018-11-27 17:59:18 -08:00
Philip P. Moltmann
c20f1b78a9 Revert "Allow location provider to deep link into permissions UI"
This reverts commit ed98828335.

Reason for revert: The exposed API is not needed anymore

Test: Built
Bug: 118437704
Change-Id: I155eb0f7241327b34ea5beaabee514ba2a018998
2018-11-27 17:03:24 -08:00
Mårten Kongstad
fd20b8387d Add new intent to signal that device customization is ready
Add a new intent to be broadcast when a new configuration has been
installed to signal that it is time to reboot the modem, refresh caches,
etc. To receive the intent, recipients must hold the new permission
"android.permission.RECEIVE_DEVICE_CUSTOMIZATION_READY".

This CL registers the intent, but does not send it: that is the
responsibility of the customization client, e.g. Phonesky. The sender is
expected to call PackageManager.sendDeviceCustomizationReadyBroadcast
and hold the new permission "android.permission.SEND_DEVICE_CUSTOMIZATION_READY".

Bug: 118462251
Test: manual (custom apps)
Change-Id: I9a723ca9ade16e8c5d316efbc7effd01e13ff2e7
2018-11-27 15:00:27 -08:00