OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Fix NPE when adding WebView to ResourcesManager" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:41:56 +0000 (20:41 +0000)]
Merge "Fix NPE when adding WebView to ResourcesManager" into oc-dev

7 years agoMerge "Work on issue #36869295: com.qti.qualcomm.datastatusnotification..." into...
TreeHugger Robot [Wed, 5 Apr 2017 20:40:53 +0000 (20:40 +0000)]
Merge "Work on issue #36869295: com.qti.qualcomm.datastatusnotification..." into oc-dev

7 years agoWork on issue #36869295: com.qti.qualcomm.datastatusnotification...
Dianne Hackborn [Wed, 5 Apr 2017 00:23:14 +0000 (17:23 -0700)]
Work on issue #36869295: com.qti.qualcomm.datastatusnotification...

...is not Bg Check compliant

Make the exception message include the state of the app's
UidRecord to help debug what is going on.

Test: boot and ran

Change-Id: Ie829265c7979ccabf8bae0bc6521bd9a7357d77f

7 years agoMerge "Deliver start service args with ParcelledListSlice." into oc-dev
Dianne Hackborn [Wed, 5 Apr 2017 20:37:31 +0000 (20:37 +0000)]
Merge "Deliver start service args with ParcelledListSlice." into oc-dev

7 years agoMerge changes Ibdf9cf90,I3a6dd476,Id4008fc7,Iede88d1e into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:30:15 +0000 (20:30 +0000)]
Merge changes Ibdf9cf90,I3a6dd476,Id4008fc7,Iede88d1e into oc-dev

* changes:
  NotificationViewWrapper: Fix crash for custom views
  Revert "Revert "AOD: Use color filter to invert icons for AOD""
  Revert "Revert "NotificationWrappers: Factor out doze treatment""
  AOD: prevent clicking shelf when dark

7 years agoMerge "Removed deprecated auto(F)ill classes." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:25:36 +0000 (20:25 +0000)]
Merge "Removed deprecated auto(F)ill classes." into oc-dev

7 years agoMerge "Clear calling identity before getUserAccounts in AccountManagerService" into...
TreeHugger Robot [Wed, 5 Apr 2017 20:18:38 +0000 (20:18 +0000)]
Merge "Clear calling identity before getUserAccounts in AccountManagerService" into oc-dev

7 years agoMerge "Tweak javadoc of setResetPasswordToken" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:01:59 +0000 (20:01 +0000)]
Merge "Tweak javadoc of setResetPasswordToken" into oc-dev

7 years agoMerge "Add storage fullness methods to volume provider." into oc-dev
Daniel Nishi [Wed, 5 Apr 2017 19:59:12 +0000 (19:59 +0000)]
Merge "Add storage fullness methods to volume provider." into oc-dev

7 years agoMerge "Revert "Add a service to rank apps for ResolverActivity."" into oc-dev
Kang Li [Wed, 5 Apr 2017 19:50:06 +0000 (19:50 +0000)]
Merge "Revert "Add a service to rank apps for ResolverActivity."" into oc-dev

7 years agoRevert "Add a service to rank apps for ResolverActivity."
Kang Li [Wed, 5 Apr 2017 16:13:12 +0000 (16:13 +0000)]
Revert "Add a service to rank apps for ResolverActivity."

This reverts commit 90370e0b2497deba9382ab7ff1539b6849df8139.

b: 36952725

Change-Id: Ifa8f182c707cdbbc989b1f61630f7a8fa856d32d

7 years agoMerge "look for old intent values" into oc-dev
Todd Kennedy [Wed, 5 Apr 2017 19:32:23 +0000 (19:32 +0000)]
Merge "look for old intent values" into oc-dev

7 years agoMerge "Add api to retrieve call creation time." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 18:29:17 +0000 (18:29 +0000)]
Merge "Add api to retrieve call creation time." into oc-dev

7 years agoNotificationViewWrapper: Fix crash for custom views
Adrian Roos [Wed, 5 Apr 2017 00:22:03 +0000 (17:22 -0700)]
NotificationViewWrapper: Fix crash for custom views

Bug: 36430936
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationViewWrapperTest.java
Change-Id: Ibdf9cf90fcb69a8af8a3b60596143e3be83fe46e
Merged-In: Ibdf9cf90fcb69a8af8a3b60596143e3be83fe46e

7 years agoClear calling identity before getUserAccounts in
Dmitry Dementyev [Tue, 4 Apr 2017 18:12:42 +0000 (11:12 -0700)]
Clear calling identity before getUserAccounts in
AccountManagerService

Fix accountsDb tests.

Bug: 36860606
Test: manual
Change-Id: Iad86d1bf7edd0f847262562ace9c2d5c9fdff978
(cherry picked from commit 9fc6f574b43c938913fad7a2ed04b5a7c717bd68)

7 years agoRevert "Revert "AOD: Use color filter to invert icons for AOD""
Adrian Roos [Tue, 4 Apr 2017 23:44:29 +0000 (16:44 -0700)]
Revert "Revert "AOD: Use color filter to invert icons for AOD""

This reverts commit 30d9bad7673eaa518cc43444259f71af9b34e5ec.

Change-Id: I3a6dd476cb90074d012a05bb291eeaf441fe20d3
Merged-In: I3a6dd476cb90074d012a05bb291eeaf441fe20d3

7 years agoRevert "Revert "NotificationWrappers: Factor out doze treatment""
Adrian Roos [Tue, 4 Apr 2017 23:44:25 +0000 (16:44 -0700)]
Revert "Revert "NotificationWrappers: Factor out doze treatment""

This reverts commit 934027a4307d5bc4896d662fd92c47c556e11cca.

Change-Id: Id4008fc79e474f3820f3587dff40720a57c9ef3a
Merged-In: Id4008fc79e474f3820f3587dff40720a57c9ef3a

7 years agoAOD: prevent clicking shelf when dark
Adrian Roos [Wed, 29 Mar 2017 00:54:05 +0000 (17:54 -0700)]
AOD: prevent clicking shelf when dark

Fixes: 35718464
Test: Enable AOD, try clicking on shelf in AOD, make sure it's not clickable.
Change-Id: Iede88d1e0ab394f0db2acaac6a1ad8baaeef15f1

7 years agoTweak javadoc of setResetPasswordToken
Rubin Xu [Wed, 5 Apr 2017 17:37:07 +0000 (18:37 +0100)]
Tweak javadoc of setResetPasswordToken

Bug: 34600579
Test: make -j32 docs
Change-Id: Ib4593c20fb78f52d5e75cafdfea32d747cc340c9

7 years agoFix NPE when adding WebView to ResourcesManager
Adam Lesinski [Wed, 5 Apr 2017 18:04:17 +0000 (11:04 -0700)]
Fix NPE when adding WebView to ResourcesManager

Framework resources have their mResDir set to null, since the framework
resources are implicitly always included. Guard against null
when checking to see if the Resources mResDir matches the asset path
WebView wants to inject itself into.

Bug: 36953234
Test: manual
Change-Id: Ie3dc0cc1240441a2466585224cdc7c15555c66bf

7 years agoMerge "Do not try to restore a task id if it does not exist." into oc-dev
Bryce Lee [Wed, 5 Apr 2017 18:01:52 +0000 (18:01 +0000)]
Merge "Do not try to restore a task id if it does not exist." into oc-dev

7 years agoMerge "Fix ActivityRecordTests." into oc-dev
Bryce Lee [Wed, 5 Apr 2017 18:00:28 +0000 (18:00 +0000)]
Merge "Fix ActivityRecordTests." into oc-dev

7 years agoMerge changes I70f79400,I2f8cab37 into oc-dev
Adrian Roos [Wed, 5 Apr 2017 17:47:29 +0000 (17:47 +0000)]
Merge changes I70f79400,I2f8cab37 into oc-dev

* changes:
  AOD: Adjust header to spec
  AOD: Only show actually pulsing entries

7 years agoMerge "support notification channel for defaultcarrier app" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 17:46:18 +0000 (17:46 +0000)]
Merge "support notification channel for defaultcarrier app" into oc-dev

7 years agoMerge "Add AppWidgetManager#getInstalledProvidersForPackage()" into oc-dev
Tony Wickham [Wed, 5 Apr 2017 17:37:11 +0000 (17:37 +0000)]
Merge "Add AppWidgetManager#getInstalledProvidersForPackage()" into oc-dev

7 years agoMerge "Fix monkey crash" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 15:55:37 +0000 (15:55 +0000)]
Merge "Fix monkey crash" into oc-dev

7 years agoAdd api to retrieve call creation time.
Tyler Gunn [Fri, 17 Mar 2017 18:27:09 +0000 (11:27 -0700)]
Add api to retrieve call creation time.

Test: CTS
Bug: 36124432
Merged-In: Ic8288dec73adda7870377f189f560acef0a575f6
Change-Id: Ic8288dec73adda7870377f189f560acef0a575f6

7 years agoFix ActivityRecordTests.
Bryce Lee [Wed, 5 Apr 2017 15:39:40 +0000 (08:39 -0700)]
Fix ActivityRecordTests.

Tests are not guaranteed to run on the same thread as setup methods.
Therefore, we must ensure any loopers used are already created by the
time the test runs. We do this now by creating a HandlerThread and
referencing its Looper later. Loopers are initialized per
HandlerThread, which will allow us to both isolate its usage and
guarantee the Looper initialization by test time.

Change-Id: If15494783959e5c399375033253cef69b921ff84
Fixes: 36916522
Test: bit FrameworksServicesTests:com.android.server.am.ActivityRecordTests

7 years agoMerge "Make sure to remove child views when recreating notification menu row" into...
TreeHugger Robot [Wed, 5 Apr 2017 15:20:45 +0000 (15:20 +0000)]
Merge "Make sure to remove child views when recreating notification menu row" into oc-dev

7 years agoMerge "Inline Controls hide Settings button when no appropriate link." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 15:18:34 +0000 (15:18 +0000)]
Merge "Inline Controls hide Settings button when no appropriate link." into oc-dev

7 years agoMerge "Corrected alert window text based on UX feedback." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 15:18:07 +0000 (15:18 +0000)]
Merge "Corrected alert window text based on UX feedback." into oc-dev

7 years agolook for old intent values
Todd Kennedy [Wed, 5 Apr 2017 14:44:19 +0000 (07:44 -0700)]
look for old intent values

the instant app installer/resolver/setting components haven't updated
to the new values yet. Need to continue looking for the previous intent
values.

Test: boot and see ephemeral enabled
Change-Id: Id88191a4878a138fa90bbd9816805ff76665ada9

7 years agoMerge "Automatic casts for more findViewById implementations" into oc-dev
Alan Viverette [Wed, 5 Apr 2017 13:54:47 +0000 (13:54 +0000)]
Merge "Automatic casts for more findViewById implementations" into oc-dev

7 years agoCorrected alert window text based on UX feedback.
Wale Ogunwale [Wed, 5 Apr 2017 13:08:53 +0000 (06:08 -0700)]
Corrected alert window text based on UX feedback.

Fixes: 36813743
Test: Text change only.
Change-Id: I7431ca568474f8fed242a94d68e7a5ea6b289b8c

7 years agoMerge "Updating javadoc string for DevicePolicyManager.EXTRA_PROVISIONING_SUPPORT_URL...
TreeHugger Robot [Wed, 5 Apr 2017 11:25:26 +0000 (11:25 +0000)]
Merge "Updating javadoc string for DevicePolicyManager.EXTRA_PROVISIONING_SUPPORT_URL to indicate that only HTTPS urls are supported." into oc-dev

7 years agoMerge "Update to latest tzdata / switch back to zones.tab" into oc-dev
Neil Fuller [Wed, 5 Apr 2017 10:33:45 +0000 (10:33 +0000)]
Merge "Update to latest tzdata / switch back to zones.tab" into oc-dev

7 years agoMerge "Pass weight/italic pair instead of style." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 10:04:45 +0000 (10:04 +0000)]
Merge "Pass weight/italic pair instead of style." into oc-dev

7 years agoMerge "Temporarily hardcoded dimensions of autofill authentication UI." into oc-dev
Felipe Leme [Wed, 5 Apr 2017 04:29:20 +0000 (04:29 +0000)]
Merge "Temporarily hardcoded dimensions of autofill authentication UI." into oc-dev

7 years agoMerge "Disable presubmit for ActivityRecordTests" into oc-dev
Wale Ogunwale [Wed, 5 Apr 2017 03:34:02 +0000 (03:34 +0000)]
Merge "Disable presubmit for ActivityRecordTests" into oc-dev

7 years agoDisable presubmit for ActivityRecordTests
Wale Ogunwale [Wed, 5 Apr 2017 03:30:18 +0000 (20:30 -0700)]
Disable presubmit for ActivityRecordTests

Failing in CI

Test: ActivityRecordTests
Bug: 36916522
Change-Id: Id5571b722cc5c14f2897fcc65d52d35bf4a78105

7 years agoMerge "Track pending job latency" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 02:45:29 +0000 (02:45 +0000)]
Merge "Track pending job latency" into oc-dev

7 years agoMerge "TIF: protect PARENTAL_CONTROLS_ENABLED_CHANGED broadcast" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 02:20:20 +0000 (02:20 +0000)]
Merge "TIF: protect PARENTAL_CONTROLS_ENABLED_CHANGED broadcast" into oc-dev

7 years agoMerge "Adds a config for default autofill service." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 01:52:50 +0000 (01:52 +0000)]
Merge "Adds a config for default autofill service." into oc-dev

7 years agoMerge "Audio focus: duck new players during the ducked phase" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 01:40:13 +0000 (01:40 +0000)]
Merge "Audio focus: duck new players during the ducked phase" into oc-dev

7 years agoMerge "Add a feature flag for CTS." into oc-dev
Sam Lin [Wed, 5 Apr 2017 01:29:15 +0000 (01:29 +0000)]
Merge "Add a feature flag for CTS." into oc-dev

7 years agoRemoved deprecated auto(F)ill classes.
Felipe Leme [Tue, 4 Apr 2017 22:07:13 +0000 (15:07 -0700)]
Removed deprecated auto(F)ill classes.

Bug: 35956626
Test: manual verification
Test: CtsAutoFillServiceTestCases pass
Change-Id: Icb622589c41e6a286d51e3f85bd5a813e483b5ea

7 years agoAOD: Adjust header to spec
Adrian Roos [Tue, 4 Apr 2017 22:12:52 +0000 (15:12 -0700)]
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

7 years agoMerge "Remove useless GraphicBuffer() constructor" into oc-dev
Mathias Agopian [Wed, 5 Apr 2017 00:42:52 +0000 (00:42 +0000)]
Merge "Remove useless GraphicBuffer() constructor" into oc-dev

7 years agoMerge "Don't crash when passing null to requestChildFocus" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 00:42:34 +0000 (00:42 +0000)]
Merge "Don't crash when passing null to requestChildFocus" into oc-dev

7 years agoMerge "Don't broadcast PACKAGE_REMOVED for InstantApps" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 00:37:48 +0000 (00:37 +0000)]
Merge "Don't broadcast PACKAGE_REMOVED for InstantApps" into oc-dev

7 years agoTrack pending job latency
Christopher Tate [Tue, 4 Apr 2017 00:36:07 +0000 (17:36 -0700)]
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

7 years agoMerge "show different timing log for shutdown animation" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 00:29:55 +0000 (00:29 +0000)]
Merge "show different timing log for shutdown animation" into oc-dev

7 years agoTIF: protect PARENTAL_CONTROLS_ENABLED_CHANGED broadcast
Conrad Chen [Tue, 4 Apr 2017 22:24:07 +0000 (15:24 -0700)]
TIF: protect PARENTAL_CONTROLS_ENABLED_CHANGED broadcast

Test: build and test manually to see if warnings are eliminated
Bug: 36898338
Change-Id: Ifea0844926677fad24f7df2ade31cd299099b639

7 years agosupport notification channel for defaultcarrier app
fionaxu [Tue, 4 Apr 2017 21:13:11 +0000 (14:13 -0700)]
support notification channel for defaultcarrier app

Apps posting notifications for O must supply a notification channel for
all notifications

Bug: 36895752
Change-Id: I7ec3b4cd8a6ea05c3ca9316d1f79b56e3531f5d0

7 years agoMerge "move ACTION_SERVICE_STATE to system api" into oc-dev
Chen Xu [Tue, 4 Apr 2017 23:43:51 +0000 (23:43 +0000)]
Merge "move ACTION_SERVICE_STATE to system api" into oc-dev

7 years agoMerge "AOD: update AOD2 views to spec" into oc-dev
Adrian Roos [Tue, 4 Apr 2017 23:38:38 +0000 (23:38 +0000)]
Merge "AOD: update AOD2 views to spec" into oc-dev

7 years agoMerge "Just round up the data partition size." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 23:23:30 +0000 (23:23 +0000)]
Merge "Just round up the data partition size." into oc-dev

7 years agoDeliver start service args with ParcelledListSlice.
Dianne Hackborn [Tue, 4 Apr 2017 22:36:33 +0000 (15:36 -0700)]
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

7 years agoAudio focus: duck new players during the ducked phase
Jean-Michel Trivi [Tue, 4 Apr 2017 01:49:45 +0000 (18:49 -0700)]
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

7 years agoDon't crash when passing null to requestChildFocus
Adam Powell [Tue, 4 Apr 2017 22:33:23 +0000 (15:33 -0700)]
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

7 years agoMerge "Add legacy DownloadManager actions to SystemApi." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 22:42:05 +0000 (22:42 +0000)]
Merge "Add legacy DownloadManager actions to SystemApi." into oc-dev

7 years agoMerge "Catching additional case where menu would disappear in accessibility." into...
TreeHugger Robot [Tue, 4 Apr 2017 22:39:39 +0000 (22:39 +0000)]
Merge "Catching additional case where menu would disappear in accessibility." into oc-dev

7 years agoMerge "Change name of the intent fields" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 22:38:57 +0000 (22:38 +0000)]
Merge "Change name of the intent fields" into oc-dev

7 years agoMerge "Fix pop-up shadow drawn in the wrong place with Skia pipeline" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 22:22:57 +0000 (22:22 +0000)]
Merge "Fix pop-up shadow drawn in the wrong place with Skia pipeline" into oc-dev

7 years agoshow different timing log for shutdown animation
Keun-young Park [Tue, 4 Apr 2017 19:21:19 +0000 (12:21 -0700)]
show different timing log for shutdown animation

bug: 36873098
Test: reboot and check log
Change-Id: Ic3adaba383cc29dba039a7fb5adcb01d4c0c963b

7 years agoDon't broadcast PACKAGE_REMOVED for InstantApps
Todd Kennedy [Tue, 4 Apr 2017 14:33:34 +0000 (07:33 -0700)]
Don't broadcast PACKAGE_REMOVED for InstantApps

Change-Id: I7f054bbf844ad6c1b9a8aa20c5ba91cbf9a5db04
Fixes: 36444594
Test: Manual; uninstall AIA and see that the broadcast isn't sent

7 years agoMerge "Need to return false if addSkTypeface fails." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 22:11:28 +0000 (22:11 +0000)]
Merge "Need to return false if addSkTypeface fails." into oc-dev

7 years agoDo not try to restore a task id if it does not exist.
Bryce Lee [Mon, 3 Apr 2017 15:33:11 +0000 (08:33 -0700)]
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

7 years agoMerge "Initial implementation of autofill partitioning." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 21:42:48 +0000 (21:42 +0000)]
Merge "Initial implementation of autofill partitioning." into oc-dev

7 years agomove ACTION_SERVICE_STATE to system api
fionaxu [Fri, 31 Mar 2017 19:45:12 +0000 (12:45 -0700)]
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

7 years agoMerge "[RenderScript] Connect ANativeWindow to BufferQueue before calling AllocationS...
TreeHugger Robot [Tue, 4 Apr 2017 21:26:13 +0000 (21:26 +0000)]
Merge "[RenderScript] Connect ANativeWindow to BufferQueue before calling AllocationSetSurface." into oc-dev

7 years agoAdd a feature flag for CTS.
Sam Lin [Tue, 4 Apr 2017 03:57:45 +0000 (20:57 -0700)]
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

7 years agoMerge "Offer to "fixup" GIDs used for app data." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 21:18:16 +0000 (21:18 +0000)]
Merge "Offer to "fixup" GIDs used for app data." into oc-dev

7 years agoAdd AppWidgetManager#getInstalledProvidersForPackage()
Tony Wickham [Wed, 29 Mar 2017 23:01:23 +0000 (16:01 -0700)]
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

7 years agoJust round up the data partition size.
Jeff Sharkey [Tue, 4 Apr 2017 21:09:58 +0000 (15:09 -0600)]
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

7 years agoUpdating javadoc string for DevicePolicyManager.EXTRA_PROVISIONING_SUPPORT_URL to...
Alejandro Fernández [Tue, 4 Apr 2017 18:33:01 +0000 (19:33 +0100)]
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

7 years agoMerge "Dump PackageInstaller state outside of mPackages lock" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 20:40:43 +0000 (20:40 +0000)]
Merge "Dump PackageInstaller state outside of mPackages lock" into oc-dev

7 years agoAdd legacy DownloadManager actions to SystemApi.
Jeff Sharkey [Tue, 4 Apr 2017 20:38:39 +0000 (14:38 -0600)]
Add legacy DownloadManager actions to SystemApi.

They're still used by at least one bundled app.

Test: builds, boots
Bug: 35256608
Change-Id: I45966b3e0ed506ead4544bbbfc9d82b7f9d5205d

7 years agoChange name of the intent fields
Todd Kennedy [Mon, 3 Apr 2017 22:22:38 +0000 (15:22 -0700)]
Change name of the intent fields

Change-Id: I67d3f5c7fb3189fdb35908011e92cc82c24b9154
Fixes: 36594944
Test: cts-tradefed run commandAndExit cts-dev -m CtsSignatureTestCases -t android.signature.cts.IntentTest#shouldNotFindUnexpectedIntents

7 years agoMerge "Add AvailableVirtualKeyboardFragment to TV" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 20:31:41 +0000 (20:31 +0000)]
Merge "Add AvailableVirtualKeyboardFragment to TV" into oc-dev

7 years agoFix pop-up shadow drawn in the wrong place with Skia pipeline
Stan Iliev [Tue, 4 Apr 2017 19:23:54 +0000 (15:23 -0400)]
Fix pop-up shadow drawn in the wrong place with Skia pipeline

Fix a bug in DrawShadow matrix calculation. Recorded matrix does
not need to be applied, because parent display lists have already
replayed matrix transformations.

Test: added a new HWUI unit test that is passing only after this fix
Bug: 33103723
Change-Id: I7a47dbe879df6b9e5920a47c0e1168d9902a3e70

7 years agoMerge "rebind if the connection drops" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 20:23:31 +0000 (20:23 +0000)]
Merge "rebind if the connection drops" into oc-dev

7 years agoAOD: Only show actually pulsing entries
Adrian Roos [Thu, 30 Mar 2017 22:11:43 +0000 (15:11 -0700)]
AOD: Only show actually pulsing entries

Fixes an issue where swiping away a notification on AOD2 would
expose the next notification.

Bug: 34716110
Test: receive notification while phone is off, swipe away notification, verify that the next notification does not become visible
Change-Id: I2f8cab37912e6b1edcc129c994a7138c80da7af9

7 years agoAOD: update AOD2 views to spec
Adrian Roos [Thu, 16 Mar 2017 22:17:57 +0000 (15:17 -0700)]
AOD: update AOD2 views to spec

- Increase notification header size
- Dim clock in AOD2
- Hide shelf in AOD2

Bug: 30876804
Test: manual
Change-Id: I272ff54bd0dbed0ae4271c922f62304401651fc9

7 years agoMerge "Make shutdown use the UI context." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:52:05 +0000 (19:52 +0000)]
Merge "Make shutdown use the UI context." into oc-dev

7 years agoMerge "More finishing-up of cluster implementation" into oc-dev
Evan Rosky [Tue, 4 Apr 2017 19:47:05 +0000 (19:47 +0000)]
Merge "More finishing-up of cluster implementation" into oc-dev

7 years agoMerge "Migrate the NETWORK_SCORER_APP Setting." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:37:16 +0000 (19:37 +0000)]
Merge "Migrate the NETWORK_SCORER_APP Setting." into oc-dev

7 years agoMerge "Disable WebView autocomplete feature." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:31:47 +0000 (19:31 +0000)]
Merge "Disable WebView autocomplete feature." into oc-dev

7 years agoMerge "TIF: hide BaseProgramColumns and BasePreviewColumns" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:23:21 +0000 (19:23 +0000)]
Merge "TIF: hide BaseProgramColumns and BasePreviewColumns" into oc-dev

7 years agoMerge "AAPT2: Allow multiple -c flags" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:14:43 +0000 (19:14 +0000)]
Merge "AAPT2: Allow multiple -c flags" into oc-dev

7 years agoMerge "Revert "AudioAttributes: remove static getVolumeControlStream method"" into...
Jean-Michel Trivi [Tue, 4 Apr 2017 19:08:33 +0000 (19:08 +0000)]
Merge "Revert "AudioAttributes: remove static getVolumeControlStream method"" into oc-dev

7 years agoMerge "Fix HWUI/Skia Gradients to premultiply the colors prior to interpolation"...
TreeHugger Robot [Tue, 4 Apr 2017 19:06:28 +0000 (19:06 +0000)]
Merge "Fix HWUI/Skia Gradients to premultiply the colors prior to interpolation" into oc-dev

7 years agoMerge "Refresh opacity and statefulness on tint change" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:04:56 +0000 (19:04 +0000)]
Merge "Refresh opacity and statefulness on tint change" into oc-dev

7 years agoCatching additional case where menu would disappear in accessibility.
Winson Chung [Tue, 4 Apr 2017 18:57:36 +0000 (11:57 -0700)]
Catching additional case where menu would disappear in accessibility.

- When showing the menu via accessibility it will stay on screen until
  the user focuses away, but exploring via talkback still sends
  onUserInteraction() callbacks which would post it anew.  We need to
  save the timeout state whenever the menu is shown and check it there
  as well.

Bug: 36103023
Test: Enter PIP with talk back, touch button but don't do anything for
      the timeout (~4s), verify menu does not close.

Change-Id: I03ce14531fcde84440122bfb0fc70899f5178d5b

7 years agoMerge "Temporary fix for themes" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 18:53:02 +0000 (18:53 +0000)]
Merge "Temporary fix for themes" into oc-dev

7 years agoMerge "Fix PackageManagerService passing usesLibraryFiles to dexOpt." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 18:52:04 +0000 (18:52 +0000)]
Merge "Fix PackageManagerService passing usesLibraryFiles to dexOpt." into oc-dev

7 years agoMerge "Fix saving target fragment when Fragment not yet created." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 18:45:12 +0000 (18:45 +0000)]
Merge "Fix saving target fragment when Fragment not yet created." into oc-dev

7 years agoMerge "Change justification parameter from boolean to int." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 18:29:54 +0000 (18:29 +0000)]
Merge "Change justification parameter from boolean to int." into oc-dev

7 years agoRevert "AudioAttributes: remove static getVolumeControlStream method"
Jean-Michel Trivi [Tue, 4 Apr 2017 18:26:44 +0000 (18:26 +0000)]
Revert "AudioAttributes: remove static getVolumeControlStream method"

This reverts commit e0b5bf50d6cf4621e483d0c85898a61a19ff6d45.

Change-Id: I2f3f10c149b205d22c41d5c9767ea10b0dee7682

7 years agoAutomatic casts for more findViewById implementations
Alan Viverette [Fri, 31 Mar 2017 17:13:58 +0000 (13:13 -0400)]
casts for more findViewById implementations

Bug: 24137209
Test: make -j32
Change-Id: I423297a78e63d74eb44fd14747fc3890a9c42937