OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Make sure theme attributes don't get lost" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 05:24:41 +0000 (05:24 +0000)]
Merge "Make sure theme attributes don't get lost" into oc-dev

7 years agoMerge "Fix issue where we weren't dismissing the pip menu activity." into oc-dev
Winson Chung [Fri, 14 Apr 2017 05:12:50 +0000 (05:12 +0000)]
Merge "Fix issue where we weren't dismissing the pip menu activity." into oc-dev

7 years agoMerge "Fix javadoc typos" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 05:06:39 +0000 (05:06 +0000)]
Merge "Fix javadoc typos" into oc-dev

7 years agoMerge "Hide flag SHOW_WITH_INSECURE_KEYGUARD" into oc-dev
Andrii Kulian [Fri, 14 Apr 2017 05:05:19 +0000 (05:05 +0000)]
Merge "Hide flag SHOW_WITH_INSECURE_KEYGUARD" into oc-dev

7 years agoMerge "Fix instant app filtering in ApplicationsState" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 04:49:39 +0000 (04:49 +0000)]
Merge "Fix instant app filtering in ApplicationsState" into oc-dev

7 years agoMerge changes I789945c1,I532b0928,I62c6df8b,Ib2bd81ad into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 04:38:55 +0000 (04:38 +0000)]
Merge changes I789945c1,I532b0928,I62c6df8b,Ib2bd81ad into oc-dev

* changes:
  Fixing missing movement bounds notification to SystemUI.
  Fixing animating bounds regression.
  Tightening up rotation behavior for PIP (2/3)
  Tightening up rotation behavior for PIP (1/3)

7 years agoMerge "Allow custom buttons in autofill UI" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 04:22:06 +0000 (04:22 +0000)]
Merge "Allow custom buttons in autofill UI" into oc-dev

7 years agoMerge "Add ACTION_ACCOUNT_REMOVED to Account Manager." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 03:53:48 +0000 (03:53 +0000)]
Merge "Add ACTION_ACCOUNT_REMOVED to Account Manager." into oc-dev

7 years agoMerge changes Id0d536ff,I4fcd0ad7 into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 03:42:56 +0000 (03:42 +0000)]
Merge changes Id0d536ff,I4fcd0ad7 into oc-dev

* changes:
  Connectivity metrics: add transports to connect stats
  Connectivity metrics: log DnsEvents in-band

7 years agoMerge "Relax enforcement of GET_USAGE_STATS permission." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 03:37:33 +0000 (03:37 +0000)]
Merge "Relax enforcement of GET_USAGE_STATS permission." into oc-dev

7 years agoMerge "Add more doc to ColorSpace.getName()" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 03:10:12 +0000 (03:10 +0000)]
Merge "Add more doc to ColorSpace.getName()" into oc-dev

7 years agoFix javadoc typos
Romain Guy [Fri, 14 Apr 2017 03:06:41 +0000 (20:06 -0700)]
Fix javadoc typos

Bug: 37328228
Test: compiles
Change-Id: I75323ef5afb30381aa473ebe7172ebb145eac8f3

7 years agoMerge "Turn down dynamic toggle for background restriction policy" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 03:00:19 +0000 (03:00 +0000)]
Merge "Turn down dynamic toggle for background restriction policy" into oc-dev

7 years agoFix instant app filtering in ApplicationsState
Jesse Evans [Thu, 13 Apr 2017 01:06:50 +0000 (18:06 -0700)]
Fix instant app filtering in ApplicationsState

This fixes instant apps showing up as installed apps in the settings
UI where they should not be (namely the opening links page).

Test: Added tests for the filter
      runtest -x packages/SettingsLib/tests/integ

Bug: 37108030
Change-Id: I0fc6cfd237d470a1f4dde7b2db38d8b3643ee6f7

7 years agoMerge "Visual changes to PIP drag to dismiss UI" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 02:39:56 +0000 (02:39 +0000)]
Merge "Visual changes to PIP drag to dismiss UI" into oc-dev

7 years agoCheck for non-null parent before delegating to it
Svet Ganov [Thu, 13 Apr 2017 23:03:34 +0000 (16:03 -0700)]
Check for non-null parent before delegating to it

Test: manual

bug:37289681

Change-Id: If3055747471d4b7771256d8adaaa08b73641c09d

7 years agoFixing missing movement bounds notification to SystemUI.
Winson Chung [Wed, 12 Apr 2017 01:31:21 +0000 (18:31 -0700)]
Fixing missing movement bounds notification to SystemUI.

- When WM updates from a configuration change, ensure that we update the
  pinned stack controller even if there is currently no pinned stack.
- Also finish the menu activity once an activity is unpinned.

Bug: 36879891
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I789945c1783693cf4b4e3d6663548c8669784001

7 years agoMerge "Changed the naming scheme for Treble java libraries (both static and dynamic...
TreeHugger Robot [Fri, 14 Apr 2017 02:13:21 +0000 (02:13 +0000)]
Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" into oc-dev

7 years agoMerge "Add Adlam font to fonts.xml" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 02:04:31 +0000 (02:04 +0000)]
Merge "Add Adlam font to fonts.xml" into oc-dev

7 years agoMerge "Add Java API for libvintf." into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 02:02:01 +0000 (02:02 +0000)]
Merge "Add Java API for libvintf." into oc-dev

7 years agoRelax enforcement of GET_USAGE_STATS permission.
Jeff Sharkey [Fri, 14 Apr 2017 01:43:34 +0000 (19:43 -0600)]
Relax enforcement of GET_USAGE_STATS permission.

This matches the logic used in all other places where we check for
this app-op.

Test: builds, boots
Bug: 37315351
Change-Id: I1fef7d30709d24c3f8978d33271a15b37b2ccc26

7 years agoConnectivity metrics: add transports to connect stats
Hugo Benichi [Thu, 23 Mar 2017 09:38:22 +0000 (18:38 +0900)]
Connectivity metrics: add transports to connect stats

This patch groups connect() events per netId. It adds netid and
transport information to serialized ConnectStatistics events.

Test: updated NetdEventListenerServiceTest
      updated IpConnectivityMetricsTest
      $ runtest frameworks-net passes
Bug: 34901696
Change-Id: Id0d536ff723ded5c26eafe0bb138ba75ba2856c5
Merged-In: I4769496383943e714a1d350c298e093c2ed57477

(cherry picked from commit dfc2cc5857199345e08f07977b79b20292f964a2)

7 years agoMerge "Deprecate setVisualVoicemailEnabled isVisualVoicemailEnabled" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 01:44:01 +0000 (01:44 +0000)]
Merge "Deprecate setVisualVoicemailEnabled isVisualVoicemailEnabled" into oc-dev

7 years agoConnectivity metrics: log DnsEvents in-band
Hugo Benichi [Wed, 22 Mar 2017 13:21:44 +0000 (22:21 +0900)]
Connectivity metrics: log DnsEvents in-band

This patch changes how DnsEvents are logged in IpConnectivityMetrics.
The following changes are made:
 - DnsEventBatch are not logged after 100 queries on the same network
    - this allows to merge DnsEvent and DnsEventBatch into one class
 - DnsEventBatch are not logged after a network disconnect
    - this allows to remove the NetworkCallback
 - DnsEvent are now logged similarly to ConnectStats when statistics are
   flushed, in a direct call from IpConnectivityMetrics into
   NetdEventListenerService, in a direct call from IpConnectivityMetrics
   into NetdEventListenerService.
    - this allows to remove the Parcelable implementation of DnsEvent
 - transports information is added to DnsEvent.

Test: - simplified NetdEventListenerServiceTest covering dns logging
      - updated IpConnectivityEventBuilderTest
      - updated IpConnectivityMetricsTest
      - $ runtest frameworks-net passes
      - manually verified $ adb shell dumpsys connmetrics list proto
Bug: 34901696
Change-Id: I4fcd0ad7a7b85d587647f471a90c1e53a18fc95a
Merged-In: Ia4b33fd4212741152662a2adbb0533bd1b4902ee

(cherry picked from commit 0699cf98042a64e41ee076c464eb115a6579be08)

7 years agoMerge "Connectivity metrics: add transports pretty printing" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 01:08:49 +0000 (01:08 +0000)]
Merge "Connectivity metrics: add transports pretty printing" into oc-dev

7 years agoFixing animating bounds regression.
Winson Chung [Thu, 13 Apr 2017 23:39:36 +0000 (16:39 -0700)]
Fixing animating bounds regression.

- Prior to ag/1954388, we used getAnimatingBounds() to get the final target
  bounds if animating or the current otherwise, but since we needed the
  target bounds to calculate the window scale even after the animation
  completes, the clearing of mBoundsAnimationTarget was removed.

  This inadvertently broke the check in getAnimatingBounds() from ever
  returning the current bounds (as it's never empty)!  This CL fixes the
  issue, and renames the related methods to better reflect what they are
  doing going forward.

  This caused a regression when calculating and notifying SysUI of the
  movement bounds, which was never the current bounds, but the default
  bounds.  Leading the IME change to trigger the PIP to move down.

Bug: 37242422
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: Source hint rect animation still works

Change-Id: I532b0928ebfeaf95e9754a0254306af6fbb35833

7 years agoMerge "Don't consider app as top app if alpha = 0" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 01:06:47 +0000 (01:06 +0000)]
Merge "Don't consider app as top app if alpha = 0" into oc-dev

7 years agoAdd Java API for libvintf.
Yifan Hong [Wed, 5 Apr 2017 21:42:05 +0000 (14:42 -0700)]
Add Java API for libvintf.

android.os.VintfObject has two methods:

- report: return device info that can be reported to OTA server
- verify: verify that metadata for a given OTA package is
          compatible.

Test: pass
Test: adb shell am instrument -w -e class android.os.VintfObjectTest \
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Bug: 36814503

Change-Id: Iff8fae289eec8ae9cfc327d0d0d36a1cdd5e6800

7 years agoMerge "Allow disabling GL preload even if gfxdriver isn't updatable" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 01:00:41 +0000 (01:00 +0000)]
Merge "Allow disabling GL preload even if gfxdriver isn't updatable" into oc-dev

7 years agoMerge "AAPT2: Allow the ';' separator on Windows for split args" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 00:58:04 +0000 (00:58 +0000)]
Merge "AAPT2: Allow the ';' separator on Windows for split args" into oc-dev

7 years agoMerge "Add new extra for identifying an intent coming from storage UI." into oc-dev
Dianne Hackborn [Fri, 14 Apr 2017 00:56:34 +0000 (00:56 +0000)]
Merge "Add new extra for identifying an intent coming from storage UI." into oc-dev

7 years agoMerge "Don't crash in background after app uninstall." into oc-dev
Daniel Nishi [Fri, 14 Apr 2017 00:56:14 +0000 (00:56 +0000)]
Merge "Don't crash in background after app uninstall." into oc-dev

7 years agoTightening up rotation behavior for PIP (2/3)
Winson Chung [Tue, 11 Apr 2017 18:19:23 +0000 (11:19 -0700)]
Tightening up rotation behavior for PIP (2/3)

- Change BoundsAnimationController to be more consistent:
  1) Ensure that on animation end is always called even when cancelled to
     ensure animation start/end parity in the callbacks
  2) Ensure that setPinnedStackSize() is only called between start/end
  3) Prevent calling setPinnedStackSize() to the final bounds if the
     animation is cancelled
- With that, we add a flag to cancel the current bounds animation when a
  rotation happens while the bounds are animating.  In addition, we also
  add a check from AM to WM before applying the resize during the animation
  in the case where WM sends the bounds to AM, but AM lock is held while
  updating the exact stack bounds (once that finishes the old stale bounds
  would have been applied)
- In addition, we can then move the handling of the of the rotation to the
  config change update in WM, if we handle it before the other checks.

Bug: 36879891
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I62c6df8b349971cc82a7898ae8b26834723faec5

7 years agoTightening up rotation behavior for PIP (1/3)
Winson Chung [Mon, 10 Apr 2017 21:38:05 +0000 (14:38 -0700)]
Tightening up rotation behavior for PIP (1/3)

- Defer getting the default bounds until after the task has been reparented
  to the pinned stack
- Also move pinned stack-related methods into pinned stack window
  controller and listener

Bug: 36879891
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ib2bd81ad9e2a3829b556177010f39c7512ba35bf

7 years agoTurn down dynamic toggle for background restriction policy
Christopher Tate [Fri, 14 Apr 2017 00:34:15 +0000 (17:34 -0700)]
Turn down dynamic toggle for background restriction policy

Bug 35248677
Test: manual

Change-Id: Ib2a85df27a0de7f205783506bd3d2afe2da92baf

7 years agoVisual changes to PIP drag to dismiss UI
Mady Mellor [Fri, 14 Apr 2017 00:20:15 +0000 (17:20 -0700)]
Visual changes to PIP drag to dismiss UI

Updated gradient asset, spacing, and added shadow to text

Test: Manual: have a PIP, move it around, observe drag to dismiss UI
Bug: 35358628
Change-Id: I8614468edfc14d0337d69184a7bbab5419f22ec3

7 years agoMerge "Deprecate MediaDrm's EVENT_KEY_EXPIRED method" into oc-dev
TreeHugger Robot [Fri, 14 Apr 2017 00:09:38 +0000 (00:09 +0000)]
Merge "Deprecate MediaDrm's EVENT_KEY_EXPIRED method" into oc-dev

7 years agoMerge "Add TvProvider methods to block or unblock package, get blocked packages"...
TreeHugger Robot [Thu, 13 Apr 2017 23:39:03 +0000 (23:39 +0000)]
Merge "Add TvProvider methods to block or unblock package, get blocked packages" into oc-dev

7 years agoMerge "Range check transfer params in float domain" into oc-dev
Romain Guy [Thu, 13 Apr 2017 23:35:22 +0000 (23:35 +0000)]
Merge "Range check transfer params in float domain" into oc-dev

7 years agoMerge "Address review suggestions for sensor direct report related APIs" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 23:24:35 +0000 (23:24 +0000)]
Merge "Address review suggestions for sensor direct report related APIs" into oc-dev

7 years agoMerge "Actually remove the chooser APIs" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 23:08:49 +0000 (23:08 +0000)]
Merge "Actually remove the chooser APIs" into oc-dev

7 years agoAAPT2: Allow the ';' separator on Windows for split args
Adam Lesinski [Thu, 13 Apr 2017 19:48:56 +0000 (12:48 -0700)]
AAPT2: Allow the ';' separator on Windows for split args

Bug: 36870463
Test: manual (wine)
Change-Id: I8a38545a3cac9354b41858e1840b197b60925c03

7 years agoMerge "Improve rect-level focus ordering" into oc-dev
Evan Rosky [Thu, 13 Apr 2017 23:06:09 +0000 (23:06 +0000)]
Merge "Improve rect-level focus ordering" into oc-dev

7 years agoAdd Adlam font to fonts.xml
Roozbeh Pournader [Thu, 13 Apr 2017 23:04:47 +0000 (16:04 -0700)]
Add Adlam font to fonts.xml

Change-Id: If6b4b9138b9b761360cfdd3c1ba9659739af6402
Fixes: 37156487
Test: not needed

7 years agoMerge "AAPT2: Fix order-of-destruction crash" into oc-dev
Adam Lesinski [Thu, 13 Apr 2017 22:53:56 +0000 (22:53 +0000)]
Merge "AAPT2: Fix order-of-destruction crash" into oc-dev

7 years agoAllow disabling GL preload even if gfxdriver isn't updatable
Jesse Hall [Thu, 13 Apr 2017 22:44:24 +0000 (15:44 -0700)]
Allow disabling GL preload even if gfxdriver isn't updatable

Bug: 34611670
Test: set ro.zygote.disable_gl_preload=1, shell start,
      confirm GL driver isn't loaded in zygote process
      by checking /proc/<pid>/maps

Change-Id: Ieb739bd7eba365917684cf830d78c15fea06f8cf

7 years agoMerge changes Icc9c36f7,I723474e2 into oc-dev
Selim Cinek [Thu, 13 Apr 2017 22:52:10 +0000 (22:52 +0000)]
Merge changes Icc9c36f7,I723474e2 into oc-dev

* changes:
  Fixed a crash when expanding
  Fixed the visual appearance on heads-up notifications

7 years agoChanged the naming scheme for Treble java libraries (both static and dynamic)
Andreas Huber [Thu, 13 Apr 2017 17:45:47 +0000 (10:45 -0700)]
Changed the naming scheme for Treble java libraries (both static and dynamic)

android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: Ica91a6813956f4ea99001c5f427be94865e48fde
Merged-In: I2d8912dc752f904188457c3e6dac10da1afd287a

7 years agoConnectivity metrics: add transports pretty printing
Hugo Benichi [Wed, 22 Mar 2017 09:29:58 +0000 (18:29 +0900)]
Connectivity metrics: add transports pretty printing

This patch also
  - partially reverts commit f927f0c52e7df5b057e7d28888c3cfed164d241a
    that exposed a getTransports method on NetworkCapabilities.
  - moves enumerateBits to BitUtils (as unpackBits), and adds the
    reverse packBit method.

Bug: 34901696
Test: manually looked at $ adb shell dumpsys connmetrics list
Change-Id: I1650daf8fc9c1b6e0d986d2285f81e888be8847f
Merged-In: Id04f9080e7f75608deeb49306aec34941e71794c

(cherry picked from commit df456e13a1127e3c8594b1d22ea4a9b3dca67a4b)

7 years agoMerge "Refine BatteryInfo and battery drawable" into oc-dev
Lei Yu [Thu, 13 Apr 2017 21:43:32 +0000 (21:43 +0000)]
Merge "Refine BatteryInfo and battery drawable" into oc-dev

7 years agoMerge "Fix A11y volume persisting/restore" into oc-dev
Jean-Michel Trivi [Thu, 13 Apr 2017 21:32:03 +0000 (21:32 +0000)]
Merge "Fix A11y volume persisting/restore" into oc-dev

7 years agoMerge "TIF: add helper methods for making a channel browsable." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 21:23:45 +0000 (21:23 +0000)]
Merge "TIF: add helper methods for making a channel browsable." into oc-dev

7 years agoMerge "Collect background stats: syncs" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 21:20:10 +0000 (21:20 +0000)]
Merge "Collect background stats: syncs" into oc-dev

7 years agoAddress review suggestions for sensor direct report related APIs
Peng Xu [Fri, 7 Apr 2017 01:37:56 +0000 (18:37 -0700)]
Address review suggestions for sensor direct report related APIs

Changes inline with bug number

Some improvements about SensorDirectChannel class.
  * Complete the doc about creation of SensorDirectChannel object.
  * Make SensorDirectChannel implements java.nio.channels.Channel.
  * Change isValid() to isOpen().
  * Make close() thread safe.
Bug: 36550285

  * Throw exception on failure of SensorManager.createDirectChannel.
  * Change to use NullPointerException when unexpected null pointer
    is passed in.
Bug: 36555061

  * Move SensorManager.configureDirectChannel() to
    SensorDirectChannel.configure().
  * Format SensorDirectChannel.configure() function doc with
    <pre></pre> to maintain the table structure.
  * Reworded Sensor.isDirectChannelTypeSupported java doc.
Bug: 36555604

Test: pass updated cts SensorDirectReportTest
Change-Id: I447121eaf414cbc94292a109a9d93d2e3c89f8f4

7 years agoAdd ACTION_ACCOUNT_REMOVED to Account Manager.
Dmitry Dementyev [Wed, 12 Apr 2017 18:00:48 +0000 (11:00 -0700)]
Add ACTION_ACCOUNT_REMOVED to Account Manager.

AccountManagerService sends an intent with the action when account of any type is removed or renamed.

Test: manual, APCT.
Bug: 37280078

Change-Id: I53b1bb9d6cde1edba5c37ecf3e4e13d748b19005

7 years agoMerge "Add more NetworkRecommendationProvider documentation." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:55:49 +0000 (20:55 +0000)]
Merge "Add more NetworkRecommendationProvider documentation." into oc-dev

7 years agoMerge "Add example to TypedValue.changingConfigurations JavaDoc" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:54:24 +0000 (20:54 +0000)]
Merge "Add example to TypedValue.changingConfigurations JavaDoc" into oc-dev

7 years agoFix issue where we weren't dismissing the pip menu activity.
Winson Chung [Thu, 13 Apr 2017 20:52:04 +0000 (13:52 -0700)]
Fix issue where we weren't dismissing the pip menu activity.

- Also don't crash if we get a deferred call to resize the pinned stack
  that no longer exists.

Bug: 36049843
Test: Try to pinch and expand pip
Change-Id: I64c42e47c466c641464c4f22a20bded2209e29eb

7 years agoMerge "Fix location status bar icon" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:26:12 +0000 (20:26 +0000)]
Merge "Fix location status bar icon" into oc-dev

7 years agoMerge "Update docs for obtainStyledAttribute" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:15:47 +0000 (20:15 +0000)]
Merge "Update docs for obtainStyledAttribute" into oc-dev

7 years agoMerge "Remove window container from empty task when destroying." into oc-dev
Bryce Lee [Thu, 13 Apr 2017 20:10:39 +0000 (20:10 +0000)]
Merge "Remove window container from empty task when destroying." into oc-dev

7 years agoMerge "BatteryStats: Remove reading of cpu power" into oc-dev
Adam Lesinski [Thu, 13 Apr 2017 20:09:41 +0000 (20:09 +0000)]
Merge "BatteryStats: Remove reading of cpu power" into oc-dev

7 years agoMerge "Add uncached and perspective shadows to Skia renderer" into oc-dev
Jim Van Verth [Thu, 13 Apr 2017 20:01:43 +0000 (20:01 +0000)]
Merge "Add uncached and perspective shadows to Skia renderer" into oc-dev

7 years agoMerge "Add new facility to find out when a PendingIntent is canceled." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:01:28 +0000 (20:01 +0000)]
Merge "Add new facility to find out when a PendingIntent is canceled." into oc-dev

7 years agoRange check transfer params in float domain
Romain Guy [Thu, 13 Apr 2017 19:53:15 +0000 (12:53 -0700)]
Range check transfer params in float domain

Our native code uses floats for transfer parameters, the range
check was too small (using the next representable double instead
of the next representable float).

Bug: 37013532
Test: Manual run of broken app, CtsGraphicsTestCases
Change-Id: Id91a3e62068be0abf13ee75e39c758eb106a5f24

7 years agoAAPT2: Fix order-of-destruction crash
Adam Lesinski [Thu, 13 Apr 2017 19:55:19 +0000 (12:55 -0700)]
AAPT2: Fix order-of-destruction crash

Make sure that users of StringPool are destroyed before
the StringPool itself.

Test: valgrind aapt2 optimize -o opt.apk out/target/common/obj/APPS/framework-res_intermediates/package-export.apk
Change-Id: I140c2d32f8449028976795d5d6865d83e1409b53

7 years agoMerge "Fix leak in nav bar" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:55:47 +0000 (19:55 +0000)]
Merge "Fix leak in nav bar" into oc-dev

7 years agoMerge "ECBM SystemProperty cleanup" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:53:09 +0000 (19:53 +0000)]
Merge "ECBM SystemProperty cleanup" into oc-dev

7 years agoMerge "Ensure removeForegroundService checks both lists under lock" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:49:55 +0000 (19:49 +0000)]
Merge "Ensure removeForegroundService checks both lists under lock" into oc-dev

7 years agoMerge "Add developer setting and system API for inband ringing support" into oc-dev
Jack He [Thu, 13 Apr 2017 19:43:49 +0000 (19:43 +0000)]
Merge "Add developer setting and system API for inband ringing support" into oc-dev

7 years agoMerge "Filter instant app content providers" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:43:25 +0000 (19:43 +0000)]
Merge "Filter instant app content providers" into oc-dev

7 years agoMerge "Update mobile data icon" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:37:31 +0000 (19:37 +0000)]
Merge "Update mobile data icon" into oc-dev

7 years agoMerge "Introduce PACKAGE_FIRST_ADDED broadcast" into oc-dev
Chris Tate [Thu, 13 Apr 2017 19:24:08 +0000 (19:24 +0000)]
Merge "Introduce PACKAGE_FIRST_ADDED broadcast" into oc-dev

7 years agoMerge "Introduce setFallbackTypeface" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:21:21 +0000 (19:21 +0000)]
Merge "Introduce setFallbackTypeface" into oc-dev

7 years agoMerge "Fix some issues came up from the reviews of the newly added APIs Test: Existin...
Yu Liu [Thu, 13 Apr 2017 19:20:58 +0000 (19:20 +0000)]
Merge "Fix some issues came up from the reviews of the newly added APIs Test: Existing unit tests still pass. BUG: 36554361 Change-Id: I6c2dab2e0df7f8578f92c70907f45aa69909892c" into oc-dev

7 years agoMerge "Quick fix to lockscreen text color." into oc-dev
Daniel Sandler [Thu, 13 Apr 2017 19:06:24 +0000 (19:06 +0000)]
Merge "Quick fix to lockscreen text color." into oc-dev

7 years agoFix A11y volume persisting/restore
Jean-Michel Trivi [Thu, 13 Apr 2017 01:27:01 +0000 (18:27 -0700)]
Fix A11y volume persisting/restore

When the accessibility volume is enabled, its value wasn't persisted
  when changed because it was still using the persisting name from
  its alias (music).
When enabled, notiify the volume controller that a11y volume has
  changed so the UI also reflects the new value, now updated from
  the persisted settings.
Do not persist volumes for streams that don't have a setting name.

Test: enable Talkback, set a11y volume at a different level than media \
  then disable Talkback. Reboot and enable Talkback, verify a11y is \
  restored.
Bug: 36286073

Change-Id: Ic6c30364e164b856fc10fbf6b22c09a7b5561be1

7 years agoCollect background stats: syncs
Bookatz [Thu, 13 Apr 2017 18:59:33 +0000 (11:59 -0700)]
Collect background stats: syncs

Added background times and counts for an app's sync usage.

Bug: 35669746
Test: runtest -x
frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java

Change-Id: I1c01c5044064277b97e8d330386454da3e8204da

7 years agoQuick fix to lockscreen text color.
Dan Sandler [Thu, 13 Apr 2017 18:38:40 +0000 (14:38 -0400)]
Quick fix to lockscreen text color.

Bug: 37299706
Test: visual
Change-Id: Ide48186f0f1cb4a50c77b45ae8b80a79781d7b0d

7 years agoMerge changes from topic 'cp-movies' into oc-dev
Daniel Nishi [Thu, 13 Apr 2017 18:39:53 +0000 (18:39 +0000)]
Merge changes from topic 'cp-movies' into oc-dev

* changes:
  Use the real filters when determining Other Apps.
  Add support for movies & tv apps querying.

7 years agoAdd example to TypedValue.changingConfigurations JavaDoc
Adam Lesinski [Wed, 12 Apr 2017 22:05:53 +0000 (15:05 -0700)]
Add example to TypedValue.changingConfigurations JavaDoc

Also includes a list of possible bits that can be set.

Bug: 36676115
Change-Id: I84fd374a00debb4647719e62cf5a1ef22bb6071c
Test: builds

7 years agoHide flag SHOW_WITH_INSECURE_KEYGUARD
Andrii Kulian [Thu, 13 Apr 2017 18:34:43 +0000 (11:34 -0700)]
Hide flag SHOW_WITH_INSECURE_KEYGUARD

Bug: 36555156
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I831ada0ffd35ab96af8ae821588c9f6e0ff30e5a

7 years agoAdd TvProvider methods to block or unblock package, get blocked packages
jiabin [Fri, 31 Mar 2017 20:56:36 +0000 (13:56 -0700)]
Add TvProvider methods to block or unblock package, get blocked packages

Test: gts-tradefed run gts -m GtsTvTestCases
Bug: 36697660
Change-Id: I6464542820a4b56e3145eecdf28ebd422a567040

7 years agoMerge "Switch i18n listeners to use IME hint locales" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:23:01 +0000 (18:23 +0000)]
Merge "Switch i18n listeners to use IME hint locales" into oc-dev

7 years agoMerge "don't interpret milliseconds as nanoseconds" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:18:23 +0000 (18:18 +0000)]
Merge "don't interpret milliseconds as nanoseconds" into oc-dev

7 years agoMerge "Remove support for auto-paging of cursors." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:12:08 +0000 (18:12 +0000)]
Merge "Remove support for auto-paging of cursors." into oc-dev

7 years agoMerge "Address API review for ProxyFileDescriptorCallback" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:11:45 +0000 (18:11 +0000)]
Merge "Address API review for ProxyFileDescriptorCallback" into oc-dev

7 years agoFix location status bar icon
Jason Monk [Thu, 13 Apr 2017 14:40:40 +0000 (10:40 -0400)]
Fix location status bar icon

It should have been in PhoneStatusBarPolicy, since it wasn't it
wouldn't listen until something else touched the LocationController
like QS.

Test: Open app that uses location
Change-Id: I70d1aff2a1c9bf7be53aeb72ba285b49d98c5362
Fixes: 36747248

7 years agoAdd new facility to find out when a PendingIntent is canceled.
Dianne Hackborn [Thu, 13 Apr 2017 18:01:48 +0000 (11:01 -0700)]
Add new facility to find out when a PendingIntent is canceled.

This is just an internal API in the platform, not (yet?) available
in the SDK.  But it will be useful for system services that want to
clean up state if a pending intent that has been registered with them
is canceled (either explicitly by the app, through the app being
uninstalled, etc).

Also improve the activity manager's dump of pending intents to
organize them by package, making it much easier to read (now that
we have so many active pending intents these days).

Test: ran and booted.  no CTS, since no API.

Change-Id: Iad029cfedcd77e87357eca7da1b6ae94451dd981

7 years agoActually remove the chooser APIs
Makoto Onuki [Mon, 3 Apr 2017 20:59:39 +0000 (13:59 -0700)]
Actually remove the chooser APIs

Test: build
Bug: 36186790
Change-Id: Ib03bb482c266f4c4f1080ca776c738d11a175219

7 years agoMerge "doc: Add note to Context.bindService()" into oc-dev
Andrew Solovay [Thu, 13 Apr 2017 17:46:13 +0000 (17:46 +0000)]
Merge "doc: Add note to Context.bindService()" into oc-dev

7 years agoEnsure removeForegroundService checks both lists under lock
Geoffrey Pitsch [Thu, 13 Apr 2017 17:44:09 +0000 (13:44 -0400)]
Ensure removeForegroundService checks both lists under lock

Prior CL didn't lock properly and would still fail if a
notification was both enqueued and posted at the same time.

Test: runtest systemui-notification
Change-Id: I1bdd779ecb872f1a02ffc38b6007239eb522b521
Fixes: 36550043

7 years agoFix leak in nav bar
Jason Monk [Thu, 13 Apr 2017 17:41:23 +0000 (13:41 -0400)]
Fix leak in nav bar

Test: runtest systemui
Change-Id: Ib082ef216f1541911acbed84942ddfd5dd065a7f
Fixes: 37220220

7 years agoAdd more NetworkRecommendationProvider documentation.
Jeremy Joslin [Thu, 13 Apr 2017 17:33:26 +0000 (10:33 -0700)]
Add more NetworkRecommendationProvider documentation.

Documented the requirements for becoming a network recommendation
provider.

Test: Built
Bug: 33632378
Change-Id: I8ec037c8688b250514cbe25a13434c7b8bef8327

7 years agoMerge "Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8...
Android Build Merger (Role) [Thu, 13 Apr 2017 17:29:09 +0000 (17:29 +0000)]
Merge "Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb am: 2d642f9e2d am: f125662db1" into oc-dev

7 years agoMerge "Add SkiaCanvas::captureCanvasState()" into oc-dev
Matt Sarett [Thu, 13 Apr 2017 17:28:55 +0000 (17:28 +0000)]
Merge "Add SkiaCanvas::captureCanvasState()" into oc-dev

7 years agoMerge "Always call unbind." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 17:28:47 +0000 (17:28 +0000)]
Merge "Always call unbind." into oc-dev

7 years agoDocs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb...
Dave Friedman [Thu, 13 Apr 2017 17:28:18 +0000 (17:28 +0000)]
Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb am: 2d642f9e2d
am: f125662db1

Change-Id: Ic69e95f68255e5e0bea646cdce2c56881586d24d

7 years agoAdd more doc to ColorSpace.getName()
Romain Guy [Thu, 13 Apr 2017 17:10:20 +0000 (10:10 -0700)]
Add more doc to ColorSpace.getName()

Bug: 37084802
Test: make offline SDK docs
Change-Id: Ia2c3406951d615dcee1eafad8035c5c8aea4305b

7 years agoDocs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb
Dave Friedman [Thu, 13 Apr 2017 17:19:36 +0000 (17:19 +0000)]
Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb
am: 2d642f9e2d

Change-Id: I5257f51a37e6e45a928befea94b2ecdb0cf01f45