OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Make print failure notifications important" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:53:53 +0000 (01:53 +0000)]
Merge "Make print failure notifications important" into oc-dev

7 years agoMerge "Remove SystemProperty gating-flag for virtual displays." into oc-dev
Santos Cordon [Thu, 6 Apr 2017 01:48:06 +0000 (01:48 +0000)]
Merge "Remove SystemProperty gating-flag for virtual displays." into oc-dev

7 years agoMerge "Don't call the Package Manager when holding the settings lock" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:41:47 +0000 (01:41 +0000)]
Merge "Don't call the Package Manager when holding the settings lock" into oc-dev

7 years agoMerge changes from topic 'ipsec-svc-pick' into oc-dev
Nathan Harold [Thu, 6 Apr 2017 01:34:32 +0000 (01:34 +0000)]
Merge changes from topic 'ipsec-svc-pick' into oc-dev

* changes:
  Fix Log Traces for IpSecService
  SystemServer: fix StartIpSecService trace and log
  Add Initial IPsec APIs to IpSecService
  IpSecManager and IpSecTransform API Cleanup
  Change reserveSecurityParameterIndex() to take a remoteAddress
  Add a Skeleton IpSecService

7 years agoMerge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:13:06 +0000 (01:13 +0000)]
Merge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev

7 years agoMerge "Fixed the obsolete logging" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:05:01 +0000 (01:05 +0000)]
Merge "Fixed the obsolete logging" into oc-dev

7 years agoMerge "Created SaveInfo types for email and username." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 00:15:23 +0000 (00:15 +0000)]
Merge "Created SaveInfo types for email and username." into oc-dev

7 years agoMerge "Change getFragments() to return a List." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 00:13:22 +0000 (00:13 +0000)]
Merge "Change getFragments() to return a List." into oc-dev

7 years agoDon't call the Package Manager when holding the settings lock
Christopher Tate [Wed, 5 Apr 2017 23:34:07 +0000 (16:34 -0700)]
Don't call the Package Manager when holding the settings lock

The package manager sometimes has to call into the settings provider with
its own lock held in the course of processing queries, so it's vitally
important not to call into it with the settings provider's internal lock
already held.

In this case, the SSAID lazy-generation path was fetching the signatures
of the calling package from inside the settings lock.  Now it doesn't.

Bug 36863412
Test: manual

Change-Id: Ic9d53397b5bddb883c5d73aff253ca280a5e93c0

7 years agoMerge "Local geomagnetic field update to sensor" into oc-dev
Peng Xu [Thu, 6 Apr 2017 00:00:07 +0000 (00:00 +0000)]
Merge "Local geomagnetic field update to sensor" into oc-dev

7 years agoMerge "Change wifiScanActualTime csv from usec to msec" into oc-dev
Adam Bookatz [Wed, 5 Apr 2017 23:56:56 +0000 (23:56 +0000)]
Merge "Change wifiScanActualTime csv from usec to msec" into oc-dev

7 years agoMerge "Dump autofill service component from settings." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:56:21 +0000 (23:56 +0000)]
Merge "Dump autofill service component from settings." into oc-dev

7 years agoMake print failure notifications important
Philip P. Moltmann [Wed, 5 Apr 2017 23:46:50 +0000 (16:46 -0700)]
Make print failure notifications important

Before failures and progress was similar important. Both were not shown.
Now both are shown and the failures alert.

Removed the notification grouping as autogrouping is good enough.

Test: Created failed and running print jobs
Change-Id: I6dfca583d69aa9713d45a2bc52d05e95f06b376f

7 years agoMerge "Serialize visibleToInstantApps" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:44:56 +0000 (23:44 +0000)]
Merge "Serialize visibleToInstantApps" into oc-dev

7 years agoMerge "Workaround for input ANR, always finish PiP menu activity." into oc-dev
Winson Chung [Wed, 5 Apr 2017 23:36:30 +0000 (23:36 +0000)]
Merge "Workaround for input ANR, always finish PiP menu activity." into oc-dev

7 years agoMerge "Fixed that the icon could dissappear" into oc-dev
Selim Cinek [Wed, 5 Apr 2017 23:35:54 +0000 (23:35 +0000)]
Merge "Fixed that the icon could dissappear" into oc-dev

7 years agoMerge "Use text input for various internationalized listeners" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:32:50 +0000 (23:32 +0000)]
Merge "Use text input for various internationalized listeners" into oc-dev

7 years agoMerge "Don't show empty account list in account chooser." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:29:22 +0000 (23:29 +0000)]
Merge "Don't show empty account list in account chooser." into oc-dev

7 years agoMerge "Call noteStateNotSaved on child fragment managers." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:23:50 +0000 (23:23 +0000)]
Merge "Call noteStateNotSaved on child fragment managers." into oc-dev

7 years agoMerge "don't honour domain verification for browsers" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:11:38 +0000 (23:11 +0000)]
Merge "don't honour domain verification for browsers" into oc-dev

7 years agoMerge "Changed FillResponse.setAuthentication() to require field ids." into oc-dev
Felipe Leme [Wed, 5 Apr 2017 22:25:08 +0000 (22:25 +0000)]
Merge "Changed FillResponse.setAuthentication() to require field ids." into oc-dev

7 years agoMerge "Collect background stats: scheduled jobs" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 22:13:05 +0000 (22:13 +0000)]
Merge "Collect background stats: scheduled jobs" into oc-dev

7 years agoMerge "Fix dex flags for secondary dex files" into oc-dev
Calin Juravle [Wed, 5 Apr 2017 22:07:48 +0000 (22:07 +0000)]
Merge "Fix dex flags for secondary dex files" into oc-dev

7 years agoFixed the obsolete logging
Jack Yu [Wed, 5 Apr 2017 21:12:09 +0000 (14:12 -0700)]
Fixed the obsolete logging

Added missing logging messages and removed legacy codes.

Test: adb bugreport
bug: 33041058
Change-Id: I38ec1aeb14ba4bf5b0e7df2aea45dcbd1bb3ff7f

7 years agoMerge "Remove accidental debugger wait." into oc-dev
Bryce Lee [Wed, 5 Apr 2017 21:55:12 +0000 (21:55 +0000)]
Merge "Remove accidental debugger wait." into oc-dev

7 years agoDump autofill service component from settings.
Felipe Leme [Wed, 5 Apr 2017 21:46:50 +0000 (14:46 -0700)]
Dump autofill service component from settings.

Bug: 36978445
Test: manual verification

Change-Id: I30992452c94a78c05a5a98e94d5ffc5325151a76

7 years agoRemove accidental debugger wait.
Bryce Lee [Wed, 5 Apr 2017 21:49:44 +0000 (14:49 -0700)]
Remove accidental debugger wait.

Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests
Change-Id: I129b139a14d925221f2c9b614f45aedac1f153b5

7 years agoMerge "Restore @VisibleForTesting on NetworkScorerAppManager." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 21:48:06 +0000 (21:48 +0000)]
Merge "Restore @VisibleForTesting on NetworkScorerAppManager." into oc-dev

7 years agoMerge "Consolidate a11y unit tests and get them working" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 21:41:24 +0000 (21:41 +0000)]
Merge "Consolidate a11y unit tests and get them working" into oc-dev

7 years agoMerge "Revert "Use KB instead of kB."" into oc-dev
Roozbeh Pournader [Wed, 5 Apr 2017 21:39:10 +0000 (21:39 +0000)]
Merge "Revert "Use KB instead of kB."" into oc-dev

7 years agoMerge "don't log non-instant app resolutions" into oc-dev
Todd Kennedy [Wed, 5 Apr 2017 21:36:37 +0000 (21:36 +0000)]
Merge "don't log non-instant app resolutions" into oc-dev

7 years agoMerge "Check for null when updating header" into oc-dev
Jorim Jaggi [Wed, 5 Apr 2017 21:29:55 +0000 (21:29 +0000)]
Merge "Check for null when updating header" into oc-dev

7 years agoMerge "Create Espresso test for WifiSettings." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 21:27:36 +0000 (21:27 +0000)]
Merge "Create Espresso test for WifiSettings." into oc-dev

7 years agodon't honour domain verification for browsers
Todd Kennedy [Wed, 5 Apr 2017 21:15:00 +0000 (14:15 -0700)]
don't honour domain verification for browsers

When a default browser is set, we change its domain verification status
to "INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS". This change is
global and permanent; it affects all URLs and won't be cleared by
resetting the browser's domain handling in settings.

To properly handle this, we don't pay attention to the domain verification
status for "browser" applications when we determine whether or not to
offer an instant app.

Change-Id: I1e2766e9856b0c9d3276e33a8db10195c72ae6ea
Fixes: 36978307
Test: Install firefox, start a browser intent [from command line], select chrome and choose "use always", start another browser intent that resolves to an instant app, see that ephemeral apps still resolve

7 years agoRevert "Use KB instead of kB."
Roozbeh Pournader [Wed, 5 Apr 2017 21:13:22 +0000 (21:13 +0000)]
Revert "Use KB instead of kB."

This reverts commit 8ebf40498f00cdb789b92b9394e69844f5df4e3a.

Bug: 27672362
Bug: 36496960
Change-Id: Id04623a400c30f3c9b218806c118c5e4ffada020

7 years agoUse text input for various internationalized listeners
Roozbeh Pournader [Thu, 16 Feb 2017 02:19:09 +0000 (18:19 -0800)]
Use text input for various internationalized listeners

Since the characters that need to be entered for an internationalized
input type may not be available on the old non-internationalized
layouts, switch to the full text layout if there are any such
characters.

TextView is also modified to call the locale-aware listeners if
the target SDK is set to O or later.

Test: Manual
Bug: https://code.google.com/p/android/issues/detail?id=2626
Bug: https://code.google.com/p/android/issues/detail?id=82993
Bug: 8319249
Bug: 33276673
Bug: 34394455
Change-Id: I544bf0cc893a475ab5bf88cbad01cb981c6fef91

7 years agoChange getFragments() to return a List.
George Mount [Wed, 5 Apr 2017 20:56:37 +0000 (13:56 -0700)]
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

7 years agoWorkaround for input ANR, always finish PiP menu activity.
Winson Chung [Wed, 5 Apr 2017 18:49:38 +0000 (11:49 -0700)]
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

7 years agoMerge "Make sure we handle the matrix separately for non-invertable matrix" into...
Tenghui Zhu [Wed, 5 Apr 2017 20:44:28 +0000 (20:44 +0000)]
Merge "Make sure we handle the matrix separately for non-invertable matrix" into oc-dev

7 years agoMerge "Allow background default container service in a less crashy way" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:43:38 +0000 (20:43 +0000)]
Merge "Allow background default container service in a less crashy way" into oc-dev

7 years agoMerge "AAPT2: Fix pseudolocalization (again)" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:43:19 +0000 (20:43 +0000)]
Merge "AAPT2: Fix pseudolocalization (again)" into oc-dev

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 agoSerialize visibleToInstantApps
Chad Brubaker [Wed, 5 Apr 2017 20:08:21 +0000 (13:08 -0700)]
Serialize visibleToInstantApps

Bug: 36972663
Test: Webview continues working
Change-Id: I680797f0a7edc71917aaf2e0bc56972a39847f8f

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 agoSave FragmentManagerNonConfig during onSaveInstanceState()
George Mount [Wed, 5 Apr 2017 19:30:17 +0000 (12:30 -0700)]
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

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 agoFix Log Traces for IpSecService
Nathan Harold [Wed, 5 Apr 2017 17:15:04 +0000 (10:15 -0700)]
Fix Log Traces for IpSecService

Bug: 36920223
Test: boot and see full log
Change-Id: I1ac53f172094082c53b53a950058c862d257b7e5
(cherry picked from commit d3e3f1593a523d488c76be2494d94a399e52dc9d)

7 years agoSystemServer: fix StartIpSecService trace and log
Wei Wang [Wed, 5 Apr 2017 05:00:01 +0000 (22:00 -0700)]
SystemServer: fix StartIpSecService trace and log

Bug: 36920223
Test: boot and see log
Change-Id: I9b88564ac7eef6998af465b977fa66c7d0787cf2
(cherry picked from commit 90f4c0907e8f746f0f840e76057f84ec20adf46d)

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 agoMake sure we handle the matrix separately for non-invertable matrix
ztenghui [Wed, 5 Apr 2017 00:33:40 +0000 (17:33 -0700)]
Make sure we handle the matrix separately for non-invertable matrix

b/36895991
Test: added CTS tests and Run spotify

Change-Id: I2786e612494530405dad5c3edb2bc53915a1c2dc

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 agoAdd Initial IPsec APIs to IpSecService
Nathan Harold [Tue, 7 Mar 2017 21:23:36 +0000 (13:23 -0800)]
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)

7 years agoIpSecManager and IpSecTransform API Cleanup
Nathan Harold [Thu, 30 Mar 2017 18:01:37 +0000 (11:01 -0700)]
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)

7 years agoChange reserveSecurityParameterIndex() to take a remoteAddress
Nathan Harold [Wed, 29 Mar 2017 17:47:59 +0000 (10:47 -0700)]
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)

7 years agoAdd a Skeleton IpSecService
Nathan Harold [Thu, 2 Mar 2017 02:55:06 +0000 (18:55 -0800)]
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)

7 years agoConsolidate a11y unit tests and get them working
Phil Weaver [Tue, 28 Mar 2017 23:32:43 +0000 (16:32 -0700)]
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)

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 agoCall noteStateNotSaved on child fragment managers.
George Mount [Wed, 5 Apr 2017 00:25:15 +0000 (17:25 -0700)]
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

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 agoFix dex flags for secondary dex files
Calin Juravle [Wed, 5 Apr 2017 03:31:44 +0000 (20:31 -0700)]
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

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 agoChanged FillResponse.setAuthentication() to require field ids.
Felipe Leme [Mon, 3 Apr 2017 17:20:34 +0000 (10:20 -0700)]
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

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