312660 Commits

Author SHA1 Message Date
Alan Viverette
7458ea3827 Merge "Automatic casts for more findViewById implementations" into oc-dev 2017-04-05 13:54:51 +00:00
Wale Ogunwale
f858dba31d Corrected alert window text based on UX feedback.
Fixes: 36813743
Test: Text change only.
Change-Id: I7431ca568474f8fed242a94d68e7a5ea6b289b8c
2017-04-05 06:10:07 -07:00
TreeHugger Robot
8d41ad08c0 Merge "Updating javadoc string for DevicePolicyManager.EXTRA_PROVISIONING_SUPPORT_URL to indicate that only HTTPS urls are supported." into oc-dev 2017-04-05 11:25:31 +00:00
Neil Fuller
0a49354820 Merge "Update to latest tzdata / switch back to zones.tab" into oc-dev 2017-04-05 10:33:50 +00:00
TreeHugger Robot
b4e3b344fa Merge "Pass weight/italic pair instead of style." into oc-dev 2017-04-05 10:04:52 +00:00
Felipe Leme
24bac61498 Merge "Temporarily hardcoded dimensions of autofill authentication UI." into oc-dev 2017-04-05 04:29:24 +00:00
Wale Ogunwale
ef3874ba91 Merge "Disable presubmit for ActivityRecordTests" into oc-dev 2017-04-05 03:34:07 +00:00
Calin Juravle
efb1c94359 Fix dex flags for secondary dex files
getDexFlags should always be called after getRealCompilerFilter.
Otherwise public dex files might be considered private and their oat
file will not be readable by others.

Bug: 36896515
Test: adb shell cmd package compile -r bg-dexopt  --secondary-dex com.google.android.gms
      check that the oat directory and files have the right permissions

Change-Id: Ic91957f155c2008ed59a7e2ba14732e5af88d12a
2017-04-04 20:31:44 -07:00
Wale Ogunwale
4cb9b96d59 Disable presubmit for ActivityRecordTests
Failing in CI

Test: ActivityRecordTests
Bug: 36916522
Change-Id: Id5571b722cc5c14f2897fcc65d52d35bf4a78105
2017-04-04 20:30:18 -07:00
Felipe Leme
b3c3537566 Changed FillResponse.setAuthentication() to require field ids.
Currently, authenticate FillResponses do not support partition and follows
the "Highlander approach" (There can be just only one), which causes the
authentication UI to show on all views.

This CL overloads FillResponse.setAuthentication() so it requires the
AutofillIds of the autofillable fields, although behind the scenes it
calls the old method - once clients use the new method, the old method
will be removed and the underlying implementation changed.

The new behavior will be tested by testFillResponseAuthJustOneField()
on LoginActivityTest, although currently it's testing the old behavior.

Test: LoginActivityTest.testFillResponseAuthJustOneField

Bug: 35707731
Bug: 36855717

Change-Id: I601f3e4776aa8763415a06d8d802901a930728d2
2017-04-04 20:17:57 -07:00
TreeHugger Robot
0704a9e56a Merge "Track pending job latency" into oc-dev 2017-04-05 02:45:34 +00:00
TreeHugger Robot
044eeecc1d Merge "TIF: protect PARENTAL_CONTROLS_ENABLED_CHANGED broadcast" into oc-dev 2017-04-05 02:20:25 +00:00
TreeHugger Robot
045c71f1be Merge "Adds a config for default autofill service." into oc-dev 2017-04-05 01:52:55 +00:00
TreeHugger Robot
a6c7f413f8 Merge "Audio focus: duck new players during the ducked phase" into oc-dev 2017-04-05 01:40:17 +00:00
Sam Lin
9ff3ec4872 Merge "Add a feature flag for CTS." into oc-dev 2017-04-05 01:29:20 +00:00
Felipe Leme
f78e952d8d Removed deprecated auto(F)ill classes.
Bug: 35956626
Test: manual verification
Test: CtsAutoFillServiceTestCases pass
Change-Id: Icb622589c41e6a286d51e3f85bd5a813e483b5ea
2017-04-04 18:28:09 -07:00
Adrian Roos
7322c05097 AOD: Adjust header to spec
- factor out attributes to themes
- use themeing to change ambient header to larger text and icon size

Bug: 30876804
Test: receive notification on ambient screen, observe that header text is slightly larger
Change-Id: I70f79400e2ce47b862b3b501421aa71187866e61
2017-04-04 17:55:45 -07:00
Mathias Agopian
810e018e24 Merge "Remove useless GraphicBuffer() constructor" into oc-dev 2017-04-05 00:42:58 +00:00
TreeHugger Robot
df50b64860 Merge "Don't crash when passing null to requestChildFocus" into oc-dev 2017-04-05 00:42:38 +00:00
TreeHugger Robot
b28e1e68d2 Merge "Don't broadcast PACKAGE_REMOVED for InstantApps" into oc-dev 2017-04-05 00:37:52 +00:00
Christopher Tate
7234fc6fef Track pending job latency
Timestamp jobs being marked 'pending' and 'active,' so we can then report their
pending latency in dumpsys.

Bug 35385393
Test: N/A

Change-Id: I3d981fbc7fbe6abdf30da3f86d88d3733b797f51
2017-04-05 00:36:56 +00:00
TreeHugger Robot
0e59ab0408 Merge "show different timing log for shutdown animation" into oc-dev 2017-04-05 00:29:59 +00:00
Jeremy Joslin
f1acc1e811 Restore @VisibleForTesting on NetworkScorerAppManager.
The NetworkScoreService tests fail (Mockito doesn't work) without
those methods being public :/

Also removed a failing test from NetworkScoreServiceTest since a
recent CL changed the behavior of dump (no longer throws).

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Change-Id: Id3fb9451027db3685b16b659a00a6a52b7a1e523
2017-04-04 17:28:23 -07:00
Conrad Chen
9105beacb3 TIF: protect PARENTAL_CONTROLS_ENABLED_CHANGED broadcast
Test: build and test manually to see if warnings are eliminated
Bug: 36898338
Change-Id: Ifea0844926677fad24f7df2ade31cd299099b639
2017-04-04 17:21:38 -07:00
fionaxu
009848b03e support notification channel for defaultcarrier app
Apps posting notifications for O must supply a notification channel for
all notifications

Bug: 36895752
Change-Id: I7ec3b4cd8a6ea05c3ca9316d1f79b56e3531f5d0
2017-04-04 17:05:47 -07:00
Christopher Tate
424b03f75e Allow background default container service in a less crashy way
Turns out we run this code during early boot, before the device idle
service has even been constructed yet.  Find another way to achieve
the needed service execution.

Bug 36865930
Test: manual

Change-Id: I8e3304f37c3a5ee125b73aef2b7d7c7b387aa200
2017-04-04 16:50:40 -07:00
Chen Xu
5effb5f645 Merge "move ACTION_SERVICE_STATE to system api" into oc-dev 2017-04-04 23:43:56 +00:00
Adrian Roos
146293b35c Merge "AOD: update AOD2 views to spec" into oc-dev 2017-04-04 23:38:42 +00:00
TreeHugger Robot
edcbf28b7c Merge "Just round up the data partition size." into oc-dev 2017-04-04 23:23:34 +00:00
Dianne Hackborn
3f7c9f2d01 Deliver start service args with ParcelledListSlice.
We have seen issues where we fail restarting a process
because there are so many services with so many pending
start arguments that we hit IPC limits.  So instead of
doing an IPC for each service start, collect them together
in a list that is sent once, and send it inside of a
ParcelledListSlice to control how much data is written
inline in the IPC.

Test: boot and ran
Change-Id: Ifed26ccdf535871e577fc02c7ef1d09060ab06ca
2017-04-04 16:12:10 -07:00
Jean-Michel Trivi
cafed63e3a Audio focus: duck new players during the ducked phase
Keep a list of all UIDs whose players should be ducked.
  Whenever a new player is created or started, and their
  UID matches one in the list, add them to the ducked
  players.
The bug observed was when Play Music transitioned from one
  song to another while music should have been ducked: the
  new song wasn't unducked because it wasn't in the list
  of players to unduck, as it wasn't active when the ducking
  occured.

Test: request focus while Play Music transitions from one song to another
Bug: 36232742
Bug: 30258418
Change-Id: If8bd47128e6177731406f39e77d049b0d6f34f5d
2017-04-04 15:48:58 -07:00
Adam Powell
9b24e5c53a Don't crash when passing null to requestChildFocus
Add null checks to ScrollView and HorizontalScrollView for checking
the revealOnFocusHint. This should never happen in code called by
the framework, but some apps were hitting it.

Bug: 36379645
Test: none
Change-Id: I220eb88d82126ff08f47a7c2a7fbdddebf07de81
2017-04-04 22:44:41 +00:00
TreeHugger Robot
cd77661682 Merge "Add legacy DownloadManager actions to SystemApi." into oc-dev 2017-04-04 22:42:10 +00:00
TreeHugger Robot
6a9f4a997c Merge "Catching additional case where menu would disappear in accessibility." into oc-dev 2017-04-04 22:39:44 +00:00
TreeHugger Robot
5379b05256 Merge "Change name of the intent fields" into oc-dev 2017-04-04 22:39:01 +00:00
TreeHugger Robot
a5c6ba3473 Merge "Fix pop-up shadow drawn in the wrong place with Skia pipeline" into oc-dev 2017-04-04 22:23:02 +00:00
Keun-young Park
d1794cdbb4 show different timing log for shutdown animation
bug: 36873098
Test: reboot and check log
Change-Id: Ic3adaba383cc29dba039a7fb5adcb01d4c0c963b
2017-04-04 22:21:32 +00:00
Todd Kennedy
3daefb4b10 Don't broadcast PACKAGE_REMOVED for InstantApps
Change-Id: I7f054bbf844ad6c1b9a8aa20c5ba91cbf9a5db04
Fixes: 36444594
Test: Manual; uninstall AIA and see that the broadcast isn't sent
2017-04-04 15:21:12 -07:00
TreeHugger Robot
46f847fb76 Merge "Need to return false if addSkTypeface fails." into oc-dev 2017-04-04 22:11:32 +00:00
Bryce Lee
92b7b65939 Do not try to restore a task id if it does not exist.
Previously, we were trying to restore the recent task regardless of
if it was found in recents or a stack. This would lead to
referencing a null object later.

Change-Id: I014a751d3254ad267c32ac0b54783b31b8d17e93
Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests
Fixes: 36688598
2017-04-04 14:45:26 -07:00
TreeHugger Robot
ba2e284a62 Merge "Initial implementation of autofill partitioning." into oc-dev 2017-04-04 21:42:52 +00:00
fionaxu
90fee27577 move ACTION_SERVICE_STATE to system api
As per CDD: The "android.*" namespace for intent constants is reserved
for public
Android API in AOSP. (Whether public to the full SDK, @SystemApi or
defined in AOSP support libraries.)
ACTION_SERVICE_STATE intent is generally useful for system/oem
apps thus move to system api

Bug: 33679956
Test: Manual
Change-Id: Ie38b53f077e8a013351d35387f9133e0ebb26cc9
2017-04-04 14:26:40 -07:00
TreeHugger Robot
8788f64b8d Merge "[RenderScript] Connect ANativeWindow to BufferQueue before calling AllocationSetSurface." into oc-dev 2017-04-04 21:26:17 +00:00
Sam Lin
90e258baf4 Add a feature flag for CTS.
Bug: 36599543
Test: Build sailfish and CTS
Test: run cts -o -m CtsAppTestCases -t android.app.cts.SystemFeaturesTest#testFeatureNamespaces
Change-Id: I659ddbe7d6e2d8762d97b8a418cfc246f7a97a3e
2017-04-04 21:24:04 +00:00
TreeHugger Robot
359ce10912 Merge "Offer to "fixup" GIDs used for app data." into oc-dev 2017-04-04 21:18:21 +00:00
Tony Wickham
a41da04b2d Add AppWidgetManager#getInstalledProvidersForPackage()
This allows more fine-grained control than getting all installed
providers for a user, when you might only want to check for a particular
package. For instance, Launcher can use this API to surface widgets per
app without having to ask for all the widgets.

Test: Unit test on AppWidgetServiceImplTest
$ runtest --path=services/tests/servicestests/src/com/android/server/appwidget/AppWidgetServiceImplTest.java

Bug: 34940468
Change-Id: I182bf1c012d31182024422fc4a63f57f151c3ee5
2017-04-04 14:13:01 -07:00
Jeff Sharkey
24403ff054 Just round up the data partition size.
Instead of trying to be clever by poking at underlying flash part
sizes, rely on the fact that device storage printed on retail
packaging is a power-of-two value.

For a typical device with a 23GiB data partition, this will return
a value of "32GB" which matches the retail packaging.

Test: builds, boots
Bug: 34827187
Change-Id: Ib4cf7f637dffc9238252e1fedcd86dc8b5cf656d
2017-04-04 15:10:06 -06:00
Felipe Leme
0962262f42 Created SaveInfo types for email and username.
Bug: 35707731
Test: LoginActivityTest#testCustomizedSaveUsername
Test: LoginActivityTest#testCustomizedSaveEmailAddress
Change-Id: I3598c64e4f6bb9ceff544c3994d6cdeebd760a85
2017-04-04 14:09:07 -07:00
Alejandro Fernández
bfd6193332 Updating javadoc string for DevicePolicyManager.EXTRA_PROVISIONING_SUPPORT_URL to indicate that only HTTPS urls are supported.
Bug: 36802087
Test: [Not required] Javadoc update
Change-Id: I379ee7e4895b2aff3017d22a5891eb19f10f8390
2017-04-04 20:50:40 +00:00
TreeHugger Robot
2b285566a4 Merge "Dump PackageInstaller state outside of mPackages lock" into oc-dev 2017-04-04 20:40:48 +00:00