312660 Commits

Author SHA1 Message Date
George Mount
e196b6fefe Change getFragments() to return a List.
Bug 36762718
Bug 36982279

Changes getFragments() to return a List instead of a Collection.
The order is the order in which the fragment is added or attached.

Test: ran fragment cts tests
Change-Id: I10bbeef13e9154bbe052127cfa0e160b2e500b4d
2017-04-05 13:56:37 -07:00
Winson Chung
87e5d55e98 Workaround for input ANR, always finish PiP menu activity.
- Always finish the PiP menu activity when the interaction is complete
  (either the menu is hidden after showing, or when the user stops
  interacting with it and it was shown for the dismiss overlay)
- Fix issue with bounds animation callback not working due to the app
  window being removed and not updating the app transition that its
  animation "finished"
- Add additional logging throughout to trace PiP animation

Bug: 36877782
Test: Enter PIP, tap to show menu, wait for it to hide, and then use
      wired headset button

Change-Id: Ie88ba107d7fffdd182a4063ef4f324b58669d0ad
2017-04-05 13:44:53 -07:00
Tenghui Zhu
399dba4ab0 Merge "Make sure we handle the matrix separately for non-invertable matrix" into oc-dev 2017-04-05 20:44:36 +00:00
TreeHugger Robot
0283544c49 Merge "Allow background default container service in a less crashy way" into oc-dev 2017-04-05 20:43:42 +00:00
TreeHugger Robot
448727bdae Merge "AAPT2: Fix pseudolocalization (again)" into oc-dev 2017-04-05 20:43:23 +00:00
TreeHugger Robot
7e5205137c Merge "Fix NPE when adding WebView to ResourcesManager" into oc-dev 2017-04-05 20:42:01 +00:00
TreeHugger Robot
36de376430 Merge "Work on issue #36869295: com.qti.qualcomm.datastatusnotification..." into oc-dev 2017-04-05 20:40:57 +00:00
Dianne Hackborn
2f8e3788f3 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
2017-04-05 13:39:40 -07:00
Dianne Hackborn
1cf2c97459 Merge "Deliver start service args with ParcelledListSlice." into oc-dev 2017-04-05 20:37:36 +00:00
TreeHugger Robot
debabde073 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
2017-04-05 20:30:20 +00:00
TreeHugger Robot
b44feb154b Merge "Removed deprecated auto(F)ill classes." into oc-dev 2017-04-05 20:25:40 +00:00
TreeHugger Robot
8c9f966eab Merge "Clear calling identity before getUserAccounts in AccountManagerService" into oc-dev 2017-04-05 20:18:43 +00:00
Chad Brubaker
49f24c60e1 Serialize visibleToInstantApps
Bug: 36972663
Test: Webview continues working
Change-Id: I680797f0a7edc71917aaf2e0bc56972a39847f8f
2017-04-05 13:08:21 -07:00
TreeHugger Robot
ae23290ef5 Merge "Tweak javadoc of setResetPasswordToken" into oc-dev 2017-04-05 20:02:04 +00:00
Daniel Nishi
4566fd3abc Merge "Add storage fullness methods to volume provider." into oc-dev 2017-04-05 19:59:16 +00:00
Kang Li
b24399547c Merge "Revert "Add a service to rank apps for ResolverActivity."" into oc-dev 2017-04-05 19:50:10 +00:00
Kang Li
c88749fb5a Revert "Add a service to rank apps for ResolverActivity."
This reverts commit 90370e0b2497deba9382ab7ff1539b6849df8139.

b: 36952725

Change-Id: Ifa8f182c707cdbbc989b1f61630f7a8fa856d32d
2017-04-05 19:44:02 +00:00
Todd Kennedy
1aade4e4a1 Merge "look for old intent values" into oc-dev 2017-04-05 19:32:27 +00:00
George Mount
f804d6ade7 Save FragmentManagerNonConfig during onSaveInstanceState()
Bug 36815706

onSaveInstanceState() is called prior to onStop(), but
onRetainNonConfigInstance() is called after. When a
retained instance fragment is added during onStop(),
the state of the two configurations won't match. This
CL moves the non-configuration save to happen immediately
after the save instance state.

Support Lib Change: Ib41cbe02d060d3411e32d1494525e119d0c23dd7
Test: I30e598abf7faceac3294aef1ee0ee3b07d3aa7c6

Change-Id: I861629e2c6da2d8b0e075e8283b631fdf80670c0
2017-04-05 12:32:11 -07:00
TreeHugger Robot
c85aa306c1 Merge "Add api to retrieve call creation time." into oc-dev 2017-04-05 18:29:22 +00:00
Adrian Roos
7c68e29171 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
2017-04-05 11:24:42 -07:00
Dmitry Dementyev
5c80debe86 Clear calling identity before getUserAccounts in
AccountManagerService

Fix accountsDb tests.

Bug: 36860606
Test: manual
Change-Id: Iad86d1bf7edd0f847262562ace9c2d5c9fdff978
(cherry picked from commit 9fc6f574b43c938913fad7a2ed04b5a7c717bd68)
2017-04-05 18:24:42 +00:00
Adrian Roos
456e005a6d Revert "Revert "AOD: Use color filter to invert icons for AOD""
This reverts commit 30d9bad7673eaa518cc43444259f71af9b34e5ec.

Change-Id: I3a6dd476cb90074d012a05bb291eeaf441fe20d3
Merged-In: I3a6dd476cb90074d012a05bb291eeaf441fe20d3
2017-04-05 11:24:34 -07:00
Adrian Roos
7bcf6d378f Revert "Revert "NotificationWrappers: Factor out doze treatment""
This reverts commit 934027a4307d5bc4896d662fd92c47c556e11cca.

Change-Id: Id4008fc79e474f3820f3587dff40720a57c9ef3a
Merged-In: Id4008fc79e474f3820f3587dff40720a57c9ef3a
2017-04-05 11:23:34 -07:00
Adrian Roos
03cf2586fa 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
2017-04-05 11:23:21 -07:00
Nathan Harold
a8a74e25dd Fix Log Traces for IpSecService
Bug: 36920223
Test: boot and see full log
Change-Id: I1ac53f172094082c53b53a950058c862d257b7e5
(cherry picked from commit d3e3f1593a523d488c76be2494d94a399e52dc9d)
2017-04-05 11:21:25 -07:00
Wei Wang
75ed75c3d7 SystemServer: fix StartIpSecService trace and log
Bug: 36920223
Test: boot and see log
Change-Id: I9b88564ac7eef6998af465b977fa66c7d0787cf2
(cherry picked from commit 90f4c0907e8f746f0f840e76057f84ec20adf46d)
2017-04-05 11:21:25 -07:00
Rubin Xu
f7b036db0b Tweak javadoc of setResetPasswordToken
Bug: 34600579
Test: make -j32 docs
Change-Id: Ib4593c20fb78f52d5e75cafdfea32d747cc340c9
2017-04-05 19:17:48 +01:00
ztenghui
b244fb528b Make sure we handle the matrix separately for non-invertable matrix
b/36895991
Test: added CTS tests and Run spotify

Change-Id: I2786e612494530405dad5c3edb2bc53915a1c2dc
2017-04-05 11:08:10 -07:00
Adam Lesinski
cd7197dd26 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
2017-04-05 11:04:17 -07:00
Bryce Lee
081d2ccd52 Merge "Do not try to restore a task id if it does not exist." into oc-dev 2017-04-05 18:01:57 +00:00
Bryce Lee
8592407581 Merge "Fix ActivityRecordTests." into oc-dev 2017-04-05 18:00:33 +00:00
Adrian Roos
bb790ca951 Merge changes I70f79400,I2f8cab37 into oc-dev
* changes:
  AOD: Adjust header to spec
  AOD: Only show actually pulsing entries
2017-04-05 17:47:33 +00:00
TreeHugger Robot
ff16d749dd Merge "support notification channel for defaultcarrier app" into oc-dev 2017-04-05 17:46:23 +00:00
Tony Wickham
8fdf051346 Merge "Add AppWidgetManager#getInstalledProvidersForPackage()" into oc-dev 2017-04-05 17:37:15 +00:00
Nathan Harold
f1dad26972 Add Initial IPsec APIs to IpSecService
-Plumb IpSecManager APIs to NetD
-Add Resource Management to IpSecService

Bug: 30984788
Test: b/34812052, b/34811227
Change-Id: Ic43965c6158f28cac53810adbf5cf50d2c54f920
(cherry picked from commit 93962f34ce21f5aac825afbcebf2f3e8c7a30910)
2017-04-05 10:24:45 -07:00
Nathan Harold
127f455800 IpSecManager and IpSecTransform API Cleanup
-Remove Int-based SPI usage from the IpSecTransform.Builder
 This is essentially a less-safe method overload, and it is both
 unnecessary and difficult to implement: the cross-validation
 between SPI and Transform is actually useful, and the kernel
 requires two different mechanisms to use an unreserved vs a
 reserved (alloc'd) SPI: CREATESA vs UPDATESA, which makes this
 hard to support. API Council has questioned the value of this,
 and they are right: everything points to "remove this". In the
 future, if we find that SPI reservation is overhead, we can
 always add it back.

-Hiding the TunnelMode builder method and application/remove
 methods. These will not land by the time the next API
 stabilizes, so better to hide them now that this is a
 near-certainty. Expectation is to un-hide them in the subsequent
 API bump.

Bug: 36073210
Test: Compilation, verified nobody is calling these stubs
Change-Id: Ic1a3f2cf7128633318ac175d6b56b45eb8d21cab
(cherry picked from commit 48b566557d5a66d4476008b3c59b815eb78cb373)
2017-04-05 10:24:23 -07:00
Nathan Harold
eece454de1 Change reserveSecurityParameterIndex() to take a remoteAddress
To make the SPI reservation more semantically consistent with the
transform creation API, and to ensure that we always create SPI
reservations relative to a well-known remote, we should take the
SPI request relative to a remote (rather than to a destination).
This necessitates that we now consider direction separately, which
is used for keying the SA-Id.

Bug: 36073210
Test: compilation
Change-Id: I81e955c20128c1f8e04fd68eb26669561f827a78
(cherry picked from commit c4f879925b58b1b5ca9a3cfdc898c20cbf56355a)
2017-04-05 10:24:03 -07:00
Nathan Harold
cbb58ecc86 Add a Skeleton IpSecService
-Add IpSecService with the necessary glue to connect to netd
-Add code to retrieve IpSecService from System Server

Bug: 30984788
Test: b/34812052, b/34811227
Change-Id: I4cdcb643421141202f77a0e2f87a37012de0cd92
(cherry picked from commit 28084d89ec136b56f5012be33a0dea147962f9f6)
2017-04-05 10:23:27 -07:00
Phil Weaver
7a6cc9b5a7 Consolidate a11y unit tests and get them working
Moving tests for accessibility manager into the a11y
directory and getting them to use some of the newer
test infrastructure. Minor tweaks to
AccessibilityManager to make it testable.

Deleting the AccessibilityManagerService tests entirely.
This class is difficult to unit test with the current
infrastructure, but is covered in CTS tests to a large
degree. I wasn't able to get these working quickly, and
they rely on timeouts that make them run much slower than
the other tests. They also throw exceptions when their
mock accessibility services receive accessibility events,
which causes the system to blacklist those services, causing
the tests to fail differently until the system is reset.
I think it's better to focus on writing new, more robust
tests than on rewriting these tests to pass.

Bug: 36614219
Test: A11y unit tests now work.
Change-Id: I8effe44f22110d55ebb700dc46f59b7e7a1aa946
(cherry picked from commit 9213d23178183981c653714f8df5806aab458bb0)
2017-04-05 16:34:29 +00:00
TreeHugger Robot
c01dd791c3 Merge "Fix monkey crash" into oc-dev 2017-04-05 15:55:42 +00:00
Tyler Gunn
3251a5571d Add api to retrieve call creation time.
Test: CTS
Bug: 36124432
Merged-In: Ic8288dec73adda7870377f189f560acef0a575f6
Change-Id: Ic8288dec73adda7870377f189f560acef0a575f6
2017-04-05 08:47:45 -07:00
Bryce Lee
3115bdf15a 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
2017-04-05 08:39:40 -07:00
Jeff Tinker
d8ffd7dffe Clarify MediaDrm#getKeyRequest docs: init and mimeType
MediaDrm getKeyRequest works fine even if init and mimeType
parameters are null when releasing or renewing a key.

bug: 33375079
Change-Id: I707874c8f4f26bf8b23b270331680f69833ae14f
2017-04-05 08:27:14 -07:00
TreeHugger Robot
1e943b3ef0 Merge "Make sure to remove child views when recreating notification menu row" into oc-dev 2017-04-05 15:20:50 +00:00
TreeHugger Robot
18cbccbfb0 Merge "Inline Controls hide Settings button when no appropriate link." into oc-dev 2017-04-05 15:18:39 +00:00
TreeHugger Robot
2075b09c62 Merge "Corrected alert window text based on UX feedback." into oc-dev 2017-04-05 15:18:11 +00:00
Todd Kennedy
2952cbeb8e 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
2017-04-05 07:51:25 -07:00
Jeff Tinker
2bc391f567 Update MediaDrm documentation for provideKeyResponse
The documentation for MediaDrm#getKeyResponse says null is returned from
provideKeyResponse for requests of type streaming or release. This corrects
the documentation to indicate that an empty byte array is returned.

bug: 36093612
Change-Id: I2e4fc658d68d827b8a42fb7fa3ef30e35ee51dcf
2017-04-05 07:40:29 -07:00
George Mount
74af07647d Call noteStateNotSaved on child fragment managers.
Bug 36740474

When onNewIntent() is called, it calls noteStateNotSaved on
the FragmentManager. It wasn't propagating that to child
FragmentManagers. This CL properly propagates the
noteStateNotSaved().

Test: I7cf360a4ed82ee34797896dc110477731c8206c0

Change-Id: Icfcbc385ef68657145b05cb59d5b2a70fe020992
2017-04-05 07:36:28 -07:00