OSDN Git Service

android-x86/frameworks-base.git
8 years agoStop layout reset by setting empty locale list.
Seigo Nonaka [Thu, 17 Mar 2016 12:18:53 +0000 (21:18 +0900)]
Stop layout reset by setting empty locale list.

Do not call Configuration.setLocales(empty LocaleList) if the locale
list is empty since Configuration.setLocales calls setLayoutDirection
which resets the layout to LTR.

Bug: 27411138
Change-Id: I7fa9693cdb7ed90267f074812c26ea50314ad839

8 years agoMerge "Don't clear effects when the panel is fully collapsed." into nyc-dev
Daniel Sandler [Thu, 17 Mar 2016 03:26:15 +0000 (03:26 +0000)]
Merge "Don't clear effects when the panel is fully collapsed." into nyc-dev

8 years agoMerge "Oops, missed a default Bundle flag." into nyc-dev
Jeff Sharkey [Thu, 17 Mar 2016 03:24:28 +0000 (03:24 +0000)]
Merge "Oops, missed a default Bundle flag." into nyc-dev

8 years agoOops, missed a default Bundle flag.
Jeff Sharkey [Thu, 17 Mar 2016 03:23:29 +0000 (21:23 -0600)]
Oops, missed a default Bundle flag.

Bug: 27706598
Change-Id: Idde1c25ea1b5944657075cd5f0da65396280f757

8 years agoMerge changes I068f8821,Ibcf12746,I169ad495 into nyc-dev
Yohei Yukawa [Thu, 17 Mar 2016 02:02:59 +0000 (02:02 +0000)]
Merge changes I068f8821,Ibcf12746,I169ad495 into nyc-dev

* changes:
  Add more @NonNull/@Nullable to TextServicesSettings.
  Remove an unnecessary int to String conversion.
  Add more @NonNull/@Nullable to InputMethodSettings.

8 years agoMerge "Adding a default implementation for the new Window.Callback method" into nyc-dev
Sunny Goyal [Thu, 17 Mar 2016 01:50:07 +0000 (01:50 +0000)]
Merge "Adding a default implementation for the new Window.Callback method" into nyc-dev

8 years agoAdd more @NonNull/@Nullable to TextServicesSettings.
Yohei Yukawa [Thu, 17 Mar 2016 00:22:30 +0000 (17:22 -0700)]
Add more @NonNull/@Nullable to TextServicesSettings.

We need to fix TextServicesSettings as well as InputMethodSettings,
because regarding Bug 27687531 the same issue was copied from
InputMethodSettings to TextServicesSettings by my CL [1].

This is basically a mirror of the fix for InputMethodSettings [2].

  [1]: Ie3d61458648df469abe149b7aaad8087c531a675
       49ed14017697f8f19b8d49d55462713396a0588e
  [2]: I169ad4957e68b65c64251b0849056195b8ca4911

Bug: 27687531
Change-Id: I068f8821a32d2e199fbf6239bbe833da8c5a4e5e

8 years agoRemove an unnecessary int to String conversion.
Yohei Yukawa [Thu, 17 Mar 2016 00:22:27 +0000 (17:22 -0700)]
Remove an unnecessary int to String conversion.

This is a safe refactoring to remove an unnecessary int to String
conversion in TextServicesSettings.

Settings.Secure.SELECTED_SPELL_CHECKER_SUBTYPE is a integer value that
indicates subtype ID (or SpellCheckerSubtype#hashCode() if the subtype
ID is not specified), and we can just rely on
Settings.Secure#putIntForUser() rather than converting int to String
by ourselves then pass it to Settings.Secure#putStringForUser().

Note that this change is still OK for existing users because
Settings.Secure#putIntForUser() has been internally doing exactly the
same thing.

Bug: 27687531
Change-Id: Ibcf12746f1295c12bec095300ea7f6ced0a51d09

8 years agoAdd more @NonNull/@Nullable to InputMethodSettings.
Yohei Yukawa [Thu, 17 Mar 2016 00:22:22 +0000 (17:22 -0700)]
Add more @NonNull/@Nullable to InputMethodSettings.

This follows up to a previous CL [1] for Bug 26279466.

It turns out that we have not clearly defined how nonexistent key should
be handled in InputMethodSettings#getEnabledInputMethodsStr(), e.g. it
returns "" for when mCopyOnWrite is true but returns null when
mCopyOnWrite is false.

Also, since InputMethodSettings now can revert changes made during
mCopyOnWrite is true, the caller may also start receiving null in the
following scenario.
  1. call mSettings.switchCurrentUser(userId, true).
  2. call mSettings.putEnabledInputMethodsStr(str) where str is non-null.
  3. call mSettings.switchCurrentUser(userId, false).
  4. call mSettings.getEnabledInputMethodsStr().
If the caller of getEnabledInputMethodsStr() has assumed that it would
never return null, then it would start crashing due to NPE.

With this CL, getEnabledInputMethodsStr() is marked to be @NonNull we
should no longer see such kind of NPE.

  [1]: I9c6f9bb3d51174198e5f73588637f87ea0d90e11
       68645a638ad1bfb734b2b0f56b17fe206bb891c5

Bug: 27687531
Change-Id: I169ad4957e68b65c64251b0849056195b8ca4911

8 years agoAdding a default implementation for the new Window.Callback method
Sunny Goyal [Thu, 17 Mar 2016 00:12:46 +0000 (17:12 -0700)]
Adding a default implementation for the new Window.Callback method

Bug: 27702972
Change-Id: I6b8c1766ecf871801006d4dc47796a819e49bb57

8 years agoMerge "Refinement for onVisibilityAggregated" into nyc-dev
Doris Liu [Wed, 16 Mar 2016 23:55:02 +0000 (23:55 +0000)]
Merge "Refinement for onVisibilityAggregated" into nyc-dev

8 years agoMerge "Flush package restriction changes for a user." into nyc-dev
Benjamin Franz [Wed, 16 Mar 2016 23:51:43 +0000 (23:51 +0000)]
Merge "Flush package restriction changes for a user." into nyc-dev

8 years agoMerge "Clean up BoringLayout#isBoring() a little" into nyc-dev
Roozbeh Pournader [Wed, 16 Mar 2016 23:46:52 +0000 (23:46 +0000)]
Merge "Clean up BoringLayout#isBoring() a little" into nyc-dev

8 years agoMerge "Apply temp inset bounds to child window if it's not empty" into nyc-dev
Chong Zhang [Wed, 16 Mar 2016 23:41:36 +0000 (23:41 +0000)]
Merge "Apply temp inset bounds to child window if it's not empty" into nyc-dev

8 years agoMerge "Chaser patch for AppOps restriction changes." into nyc-dev
Ruben Brunk [Wed, 16 Mar 2016 23:36:18 +0000 (23:36 +0000)]
Merge "Chaser patch for AppOps restriction changes." into nyc-dev

8 years agoApply temp inset bounds to child window if it's not empty
Chong Zhang [Wed, 16 Mar 2016 22:56:55 +0000 (15:56 -0700)]
Apply temp inset bounds to child window if it's not empty

bug: 27676101
bug: 27687126
Change-Id: Iab1129cc0224194e7a9d11d0454bc7af6897a6e8

8 years agoMerge "Disallow disabling of the package installer" into nyc-dev
Svetoslav Ganov [Wed, 16 Mar 2016 23:32:25 +0000 (23:32 +0000)]
Merge "Disallow disabling of the package installer" into nyc-dev

8 years agoMerge "Add emoji-related tests for the font chain" into nyc-dev
Roozbeh Pournader [Wed, 16 Mar 2016 23:31:15 +0000 (23:31 +0000)]
Merge "Add emoji-related tests for the font chain" into nyc-dev

8 years agoMerge "DocsUI: Don't animate selection changes on all bind events." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 23:26:50 +0000 (23:26 +0000)]
Merge "DocsUI: Don't animate selection changes on all bind events." into nyc-dev

8 years agoMerge "Add new key in CarrierConfigManager for ICCID display." into nyc-dev
Meng Wang [Wed, 16 Mar 2016 23:25:08 +0000 (23:25 +0000)]
Merge "Add new key in CarrierConfigManager for ICCID display." into nyc-dev

8 years agoMerge "Add delete key support." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 23:24:42 +0000 (23:24 +0000)]
Merge "Add delete key support." into nyc-dev

8 years agoMerge "Add "pm set-home-activity"" into nyc-dev
Makoto Onuki [Wed, 16 Mar 2016 23:14:03 +0000 (23:14 +0000)]
Merge "Add "pm set-home-activity"" into nyc-dev

8 years agoMerge "DocsUI: Don't crash on invalid window sizes." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 22:52:34 +0000 (22:52 +0000)]
Merge "DocsUI: Don't crash on invalid window sizes." into nyc-dev

8 years agoDocsUI: Don't crash on invalid window sizes.
Ben Kwa [Wed, 16 Mar 2016 20:01:20 +0000 (13:01 -0700)]
DocsUI: Don't crash on invalid window sizes.

Our layout code asserts when passed an (invalid) width of 0.  The assert
is unnecessary as we already handle this situation by always laying out
the content pane with a column count of at least 1.

Also, per Steve, bump the minimum column count in grid mode to 2.

BUG=27150284

Change-Id: I8aa87beaaf4907ef5248999d0c590deef732589f

8 years agoMerge "Adjust graphics dataspace references to new standard" into nyc-dev
Eino-Ville Talvala [Wed, 16 Mar 2016 22:49:35 +0000 (22:49 +0000)]
Merge "Adjust graphics dataspace references to new standard" into nyc-dev

8 years agoAdd "pm set-home-activity"
Makoto Onuki [Wed, 16 Mar 2016 01:06:57 +0000 (18:06 -0700)]
Add "pm set-home-activity"

This is needed to change the default launcher on CTS for
ShortcutManager.

- When the default set with DPM.addPersistentPreferredActivity() is
still stronger.

- Ideally we should unify the code with HomeSettings, but I couldn't
find a good way to do this.

- I didn't make it to work to set the default for any intents
because building an intent filter from a command line would be
painful.

Bug 27548047

Change-Id: I66b153c20c7796147f77214b483112629f9d80c5

8 years agoAdd new key in CarrierConfigManager for ICCID display.
Meng Wang [Mon, 14 Mar 2016 17:08:41 +0000 (10:08 -0700)]
Add new key in CarrierConfigManager for ICCID display.

Bug: 27574058
Change-Id: I74445c68f58e64a5baa87cd05fea9e91e59b0201

8 years ago[NAN] Refactor session lifecycle to clarify API & eliminate race conditions [DO NOT...
Etan Cohen [Wed, 16 Mar 2016 21:56:24 +0000 (21:56 +0000)]
[NAN] Refactor session lifecycle to clarify API & eliminate race conditions [DO NOT MERGE]
am: 2a73c7f  -s ours

* commit '2a73c7fb2a4aba4dd75341414f1583e5fb1f4613':
  [NAN] Refactor session lifecycle to clarify API & eliminate race conditions [DO NOT MERGE]

8 years agoMerge "Update ContextHubManager's System APIs." into nyc-dev
Daniel Estrada Alva [Wed, 16 Mar 2016 21:49:10 +0000 (21:49 +0000)]
Merge "Update ContextHubManager's System APIs." into nyc-dev

8 years agoClean up BoringLayout#isBoring() a little
Roozbeh Pournader [Wed, 16 Mar 2016 21:33:51 +0000 (14:33 -0700)]
Clean up BoringLayout#isBoring() a little

No functional change. Just some renames and clarifications.

Bug: 23641693
Bug: 27702584
Change-Id: I14efe290a27c695ab79bbb18f9f069c8a2d3ffd6

8 years agoMerge "Dynamic audio policies: device type and address" into nyc-dev
Jean-Michel Trivi [Wed, 16 Mar 2016 21:31:08 +0000 (21:31 +0000)]
Merge "Dynamic audio policies: device type and address" into nyc-dev

8 years agoMerge "Add fillType support to VectorDrawable" into nyc-dev
Tenghui Zhu [Wed, 16 Mar 2016 21:13:23 +0000 (21:13 +0000)]
Merge "Add fillType support to VectorDrawable" into nyc-dev

8 years agoMerge "AudioService: do not persist mic mute and master mute" into nyc-dev
Eric Laurent [Wed, 16 Mar 2016 21:09:29 +0000 (21:09 +0000)]
Merge "AudioService: do not persist mic mute and master mute" into nyc-dev

8 years agoUpdate ContextHubManager's System APIs.
destradaa [Tue, 15 Mar 2016 19:33:40 +0000 (12:33 -0700)]
Update ContextHubManager's System APIs.

- Consolidates the use of handles in context hub, and nano apps.
- Quick fixes to typos.
- Update the signature to find nano apps to use primitive types

Change-Id: Icffa6fa86e0e33a536516d98bc4674c0a39b2163

8 years agoAdd emoji-related tests for the font chain
Roozbeh Pournader [Wed, 16 Mar 2016 20:53:47 +0000 (13:53 -0700)]
Add emoji-related tests for the font chain

1. Check that all emoji characters are supported in emoji fonts.

2. Check that no default-emoji characters are included in any font
that can get a higher score then the color emoji font, either by
being before it or by having a language/script assigned.

Bug: 26187231

Change-Id: Ic76bf59f1c6f9d2d290b1b64128d725ae08dcb5c

8 years agoMerge "Remove references to Google packages." into nyc-dev
Jeff Sharkey [Wed, 16 Mar 2016 20:55:46 +0000 (20:55 +0000)]
Merge "Remove references to Google packages." into nyc-dev

8 years agoMerge "Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%...
Aga Wronska [Wed, 16 Mar 2016 20:54:40 +0000 (20:54 +0000)]
Merge "Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%." It ia causing tests failures and exception at the app start." into nyc-dev

8 years agoRemove references to Google packages.
Jeff Sharkey [Thu, 10 Mar 2016 20:24:18 +0000 (13:24 -0700)]
Remove references to Google packages.

Bug: 26441633
Change-Id: Iba6566215e2b6d224fd3b9c11d086f5c2db87dca

8 years agoAdd delete key support.
Ben Kwa [Mon, 14 Mar 2016 22:12:12 +0000 (15:12 -0700)]
Add delete key support.

- Pull the action mode up from the ActionMode listener into the
  DirectoryFragment.  There is no way to globally check on action mode,
  so fragment-level coordination on the action mode requires a
  fragment-level variable.

- Add a key handling clause for the delete key.  Unfortunately this
  can't be set up as a shortcut key, because shortcuts all have to be
  modified with the "Ctrl" key.

BUG=27409328

Change-Id: I48d1c87613ee7434728828e3b745fadb3bc915c1

8 years agoMerge "Defuse Bundles parsed by the system process." into nyc-dev
Jeff Sharkey [Wed, 16 Mar 2016 20:52:03 +0000 (20:52 +0000)]
Merge "Defuse Bundles parsed by the system process." into nyc-dev

8 years agoRevert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."
Aga Wronska [Wed, 16 Mar 2016 20:44:27 +0000 (13:44 -0700)]
Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."
It ia causing tests failures and exception at the app start.

This reverts commit d35a974b76cb0b3387aff7780d101e3f7de2ebd3.

Change-Id: I2577f723a7e25d4dcc12050791c65a900ac41f7d

8 years agoDefuse Bundles parsed by the system process.
Jeff Sharkey [Thu, 10 Mar 2016 05:30:56 +0000 (22:30 -0700)]
Defuse Bundles parsed by the system process.

It's easy for apps to throw custom Parcelables into Bundles, but
if the system tries peeking inside one of these Bundles, it triggers
a BadParcelableException.  If that Bundle was passed away from the
Binder thread that delivered it into the system, we end up with a
nasty runtime restart.

This change mitigates this trouble by "defusing" any Bundles parsed by
the system server.  That is, if it encounters BadParcelableException
while unpacking a Bundle, it logs and delivers an empty Bundle as
the result.

Simultaneously, to help catch the system process sticking its
fingers into Bundles that are destined for other processes, a Bundle
now tracks if it's "defusable."  For example, any Intents delivered
through ActivityThread are marked as being defusable, since they've
arrived at their final destination.  Any other Bundles are considered
to be "in transit" and we log if the system tries unparceling them.

Merges several Parcel boolean fields into a flags int.  Add better
docs to several classes.

Bug: 27581063
Change-Id: I28cf3e7439503b5dc9a429bafae5eb48f21f0d93

8 years agoMerge "Converting empty graphic to vector drawable." into nyc-dev
Winson Chung [Wed, 16 Mar 2016 20:35:20 +0000 (20:35 +0000)]
Merge "Converting empty graphic to vector drawable." into nyc-dev

8 years agoRefinement for onVisibilityAggregated
Adam Powell [Wed, 16 Mar 2016 00:35:00 +0000 (17:35 -0700)]
Refinement for onVisibilityAggregated

Change the args for onVisibilityAggregated to a single boolean for
visibility to the user. Also fix an ordering bug that could trigger a
view background drawable call to setVisible before the view would
respond true to verifyDrawable, which caused issues with some apps.

Bug 27461617
Bug 27689884

Change-Id: I58bdc7c4364264f7fa0863689ba2b76df904ef81

8 years agoMerge "DO NOT MERGE Fix conditional when checking for confirm key." into nyc-dev
Yigit Boyar [Wed, 16 Mar 2016 20:27:20 +0000 (20:27 +0000)]
Merge "DO NOT MERGE Fix conditional when checking for confirm key." into nyc-dev

8 years agoMerge "Add support for dpads." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 20:24:07 +0000 (20:24 +0000)]
Merge "Add support for dpads." into nyc-dev

8 years agoMerge "Remove unused include" into nyc-dev
Chris Craik [Wed, 16 Mar 2016 20:19:38 +0000 (20:19 +0000)]
Merge "Remove unused include" into nyc-dev

8 years agoMerge "Fix band selection problems." into nyc-dev
Ben Kwa [Wed, 16 Mar 2016 20:06:12 +0000 (20:06 +0000)]
Merge "Fix band selection problems." into nyc-dev

8 years agoMerge "Don't allow selection in copy dest picker." into nyc-dev
Steve McKay [Wed, 16 Mar 2016 20:05:47 +0000 (20:05 +0000)]
Merge "Don't allow selection in copy dest picker." into nyc-dev

8 years agoRemove unused include
Chris Craik [Wed, 16 Mar 2016 20:04:02 +0000 (13:04 -0700)]
Remove unused include

This include breaks compilation when HWUI_NEW_OPS=false

Change-Id: Ia3167f1550167f96de83af4b2f25abd6903c4723

8 years agoMerge "Fix NC caused by race condition in SystemSensorManager" into nyc-dev
Peng Xu [Wed, 16 Mar 2016 19:30:54 +0000 (19:30 +0000)]
Merge "Fix NC caused by race condition in SystemSensorManager" into nyc-dev

8 years agoDynamic audio policies: device type and address
Jean-Michel Trivi [Tue, 15 Mar 2016 01:46:41 +0000 (18:46 -0700)]
Dynamic audio policies: device type and address

Store device type and address in audio mixes regardless of the
  mix route type, no "registration" field.
For LOOP_BACK mixes, assign the REMOTE_SUBMIX device type.

Bug 25448664

Change-Id: I8d59b2fd3e05b1dcf1081ad826f985f5e3e74769

8 years agoDocsUI: Don't animate selection changes on all bind events.
Ben Kwa [Wed, 16 Mar 2016 19:13:21 +0000 (12:13 -0700)]
DocsUI: Don't animate selection changes on all bind events.

When directory contents update, this causes all items to be bound, which
can cause flickering even though item selection state hasn't changed.

Add a boolean var to trigger UI animations only when selection changes
are triggered by the selection manager.

BUG=27680153

Change-Id: I892d8111cf3ba7e1610d94af4a1a646f1cdb5546

8 years agoDon't clear effects when the panel is fully collapsed.
Dan Sandler [Tue, 1 Mar 2016 05:45:06 +0000 (00:45 -0500)]
Don't clear effects when the panel is fully collapsed.

Otherwise, a FLAG_SHOW_WHEN_LOCKED activity would be unable
to make noise (particularly in conjunction with a long
sound, or FLAG_INSISTENT) because the mere presence of the
status bar on screen would generate an updateVisibleToUser()
call, which would in turn use onPanelRevealed() to call
clearEffects().

Instead, we have to clear effects from deep in the stack
scroller; that's apparently the only place right now where
we know with 100% certainty that notifications are actually
visible to the user.

We also no longer clear effects just because the keyguard is
shown. That's silly.

Bug: 26863782
Change-Id: I9ec53024f4be060da203b835d31da81104e8c8e6

8 years agoDon't allow selection in copy dest picker.
Steve McKay [Wed, 16 Mar 2016 19:00:44 +0000 (12:00 -0700)]
Don't allow selection in copy dest picker.

Bug: 27490262
Change-Id: I1938a900cfd3693739c2ac10b5eea3176a4ca82c

8 years agoConverting empty graphic to vector drawable.
Winson [Wed, 16 Mar 2016 18:33:03 +0000 (11:33 -0700)]
Converting empty graphic to vector drawable.

Bug: 27154293
Change-Id: I2ee46bf5aa9ab7ad05c054363d53fdda0a3069dc

8 years agoMerge "Document that Rect right/bottom are exclusive" into nyc-dev
Chet Haase [Wed, 16 Mar 2016 18:09:51 +0000 (18:09 +0000)]
Merge "Document that Rect right/bottom are exclusive" into nyc-dev

8 years agoMerge changes I3eba2cdb,Ie529f27e,I4f0290fa,I7fb1f704,I32b9dd59, ... into nyc-dev
Winson Chung [Wed, 16 Mar 2016 18:07:11 +0000 (18:07 +0000)]
Merge changes I3eba2cdb,Ie529f27e,I4f0290fa,I7fb1f704,I32b9dd59, ... into nyc-dev

* changes:
  Scroll to the launch-task when toggling overview.
  Ensure that recents toggles even in the empty state.
  Removing paging tuner setting.
  Updating empty state graphic.
  Fixing issue with the stack layout not being updated on config change.
  Ensuring that we evict ActivityInfos from the cache.

8 years agoAdd fillType support to VectorDrawable
Teng-Hui Zhu [Tue, 15 Mar 2016 21:32:16 +0000 (14:32 -0700)]
Add fillType support to VectorDrawable

Default as non-zero, which is the same as SVG.
b/27533958

Change-Id: Id20e6d3493bb4d2b4b65d7f6cdb13586631c40e4

8 years agoFix band selection problems.
Ben Kwa [Mon, 14 Mar 2016 18:56:47 +0000 (11:56 -0700)]
Fix band selection problems.

BUG=27364174
BUG=27645942

Change-Id: Ib14680db708f1ddf1f5dc9dff8b93b655fa3f123

8 years agoScroll to the launch-task when toggling overview.
Winson [Tue, 15 Mar 2016 23:47:19 +0000 (16:47 -0700)]
Scroll to the launch-task when toggling overview.

Bug: 27680710
Change-Id: I3eba2cdbe0a92ef05dd6882a5e41db2a5875c98a

8 years agoEnsure that recents toggles even in the empty state.
Winson [Tue, 15 Mar 2016 22:44:48 +0000 (15:44 -0700)]
Ensure that recents toggles even in the empty state.

Bug: 27604213
Change-Id: Ie529f27e7e8110be8e86224bbad7622300fa87a7

8 years agoRemoving paging tuner setting.
Winson [Tue, 15 Mar 2016 19:22:31 +0000 (12:22 -0700)]
Removing paging tuner setting.

Bug: 26962865
Change-Id: I4f0290fa334b6153cc160cb5dbe6e333a002334c

8 years agoUpdating empty state graphic.
Winson [Tue, 15 Mar 2016 22:20:17 +0000 (15:20 -0700)]
Updating empty state graphic.

Change-Id: I7fb1f704dfbf0a300e00805d75c08b2fdabf7260

8 years agoFixing issue with the stack layout not being updated on config change.
Winson [Tue, 15 Mar 2016 18:41:37 +0000 (11:41 -0700)]
Fixing issue with the stack layout not being updated on config change.

Bug: 27376567
Change-Id: I32b9dd59a6187c87387785335dd66cc4f28372b3

8 years agoEnsuring that we evict ActivityInfos from the cache.
Winson [Tue, 15 Mar 2016 01:58:43 +0000 (18:58 -0700)]
Ensuring that we evict ActivityInfos from the cache.

- Once the data that we depend on the ActivityInfos for are evicted,
  also remove them from the cache so that they are not stale the next
  time we might want to use them.

Bug: 27495264
Change-Id: I615842df4f48deb12a051ef241991a51a10cf383

8 years agoMerge "TIF: Unhide sendAppPrivateCommand/onAppPrivateCommand" into nyc-dev
Dongwon Kang [Wed, 16 Mar 2016 17:56:11 +0000 (17:56 +0000)]
Merge "TIF: Unhide sendAppPrivateCommand/onAppPrivateCommand" into nyc-dev

8 years agoTIF: Unhide sendAppPrivateCommand/onAppPrivateCommand
Dongwon Kang [Thu, 10 Mar 2016 23:09:29 +0000 (15:09 -0800)]
TIF: Unhide sendAppPrivateCommand/onAppPrivateCommand

Bug: 25726685
Change-Id: Iad6417b4da0543043a7fa17287487313a7670209

8 years agoFix NC caused by race condition in SystemSensorManager
Peng Xu [Wed, 16 Mar 2016 01:16:45 +0000 (18:16 -0700)]
Fix NC caused by race condition in SystemSensorManager

This change fixes a race condition when two SystemSensorManager
instances are initialized the same time.

Bug: 27334914
Change-Id: I7a886abcbff2ed6f8abf87556a78d1a4afb71f91

8 years agoMerge "Apply stack crop to docked stack during animation" into nyc-dev
Chong Zhang [Wed, 16 Mar 2016 17:41:36 +0000 (17:41 +0000)]
Merge "Apply stack crop to docked stack during animation" into nyc-dev

8 years agoApply stack crop to docked stack during animation
Chong Zhang [Wed, 16 Mar 2016 01:16:01 +0000 (18:16 -0700)]
Apply stack crop to docked stack during animation

If device goes to sleep with docked stack visible, the docked stack
will be minimized after unlock. Due to "force hide enter" animation
and the entering animation of the app itself, the app will be animating
for the initial few frames. Not applying the crop causes the app to
be seen in full briefly, then minimized.

Docked divider doesn't use a final stack bounds but changes stack
bounds continously during docked stack resize, so we can apply the
bounds even during animation.

bug: 27592767
Change-Id: I12f4eb46a95c9a7dd2147b68c362e17609a8b410

8 years agoMerge "Exposing Context Hub service." into nyc-dev
Ashutosh Joshi [Wed, 16 Mar 2016 17:21:32 +0000 (17:21 +0000)]
Merge "Exposing Context Hub service." into nyc-dev

8 years agoMerge "Remove Intent to start screen reader tutorial. Reverts ag/867242. Bug: 2721868...
Anna Galusza [Wed, 16 Mar 2016 17:07:48 +0000 (17:07 +0000)]
Merge "Remove Intent to start screen reader tutorial. Reverts ag/867242. Bug: 27218687" into nyc-dev

8 years agoMerge "Update PIP position on recents" into nyc-dev
Youngsang Cho [Wed, 16 Mar 2016 16:59:05 +0000 (16:59 +0000)]
Merge "Update PIP position on recents" into nyc-dev

8 years agoMerge "Prevent apps without DND access from toggling DND via AudioService." into...
Julia Reynolds [Wed, 16 Mar 2016 16:48:31 +0000 (16:48 +0000)]
Merge "Prevent apps without DND access from toggling DND via AudioService." into nyc-dev

8 years agoMerge "Synchronize on subscription list." into nyc-dev
Julia Reynolds [Wed, 16 Mar 2016 16:34:32 +0000 (16:34 +0000)]
Merge "Synchronize on subscription list." into nyc-dev

8 years agoMerge "Minor UI improvements and code cleanup:" into nyc-dev
Felipe Leme [Wed, 16 Mar 2016 16:29:55 +0000 (16:29 +0000)]
Merge "Minor UI improvements and code cleanup:" into nyc-dev

8 years agoMerge "Polished Scoped Directory Access UI." into nyc-dev
Felipe Leme [Wed, 16 Mar 2016 16:22:16 +0000 (16:22 +0000)]
Merge "Polished Scoped Directory Access UI." into nyc-dev

8 years agoMerge "Use proper ScriptCall size in nScriptForEach()" into nyc-dev
Yang Ni [Wed, 16 Mar 2016 15:46:37 +0000 (15:46 +0000)]
Merge "Use proper ScriptCall size in nScriptForEach()" into nyc-dev

8 years agoUse proper ScriptCall size in nScriptForEach()
Yang Ni [Tue, 15 Mar 2016 23:00:02 +0000 (16:00 -0700)]
Use proper ScriptCall size in nScriptForEach()

Bug: 26498479

Although the size of struct ScriptCall is not used underneath in the
runtime or drivers, assign the correct value here to avoid confusion.

Change-Id: I8db19538b9f70f3bf9ee849a8724da3d9ee04785
(cherry picked from commit e8f2e445fdb138416043a16659bbf86fbbd3fff8)

8 years agoMerge "Fix a bug in ControllerActivityCounter" into nyc-dev
Roshan Pius [Wed, 16 Mar 2016 15:05:12 +0000 (15:05 +0000)]
Merge "Fix a bug in ControllerActivityCounter" into nyc-dev

8 years agogetUserInfo fail when app trying to get self user info
Tony Mak [Wed, 16 Mar 2016 14:49:52 +0000 (14:49 +0000)]
getUserInfo fail when app trying to get self user info

isSameProfileGroupLP return false when user has no profile, we should
check callingUserId != userId explictly.
Please notice that isSameProfileGroup handles this case, but we would like
to avoid the permission checking of isSameProfileGroup.

Change-Id: Ibb2d09eaaf7e8f099445490aa9ec287e86945125

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 14:33:52 +0000 (14:33 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 14:33:29 +0000 (14:33 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 14:28:31 +0000 (07:28 -0700)]
Import translations. DO NOT MERGE

Change-Id: I94fd8779f7e2611373bfd09ca25ffef2e178c17d
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 14:27:26 +0000 (07:27 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iefbda82e967a365520cdf26df0728b8eb425c6a7
Auto-generated-cl: translation import

8 years agoMerge "Clarified documentation as requested by API review" into nyc-dev
Esteban Talavera [Wed, 16 Mar 2016 14:24:39 +0000 (14:24 +0000)]
Merge "Clarified documentation as requested by API review" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 14:22:03 +0000 (14:22 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 14:21:46 +0000 (14:21 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 14:21:07 +0000 (07:21 -0700)]
Import translations. DO NOT MERGE

Change-Id: I949b397af1475733943f0b3597c9ff4c050bba03
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 14:14:47 +0000 (07:14 -0700)]
Import translations. DO NOT MERGE

Change-Id: I33545a8fee9b65fa3e11fdb86c1b6c9d2bcdc7ec
Auto-generated-cl: translation import

8 years agoMerge "Rebind managed services more" into nyc-dev
Julia Reynolds [Wed, 16 Mar 2016 14:08:19 +0000 (14:08 +0000)]
Merge "Rebind managed services more" into nyc-dev

8 years agoPrevent apps without DND access from toggling DND via AudioService.
Julia Reynolds [Wed, 9 Mar 2016 15:15:16 +0000 (10:15 -0500)]
Prevent apps without DND access from toggling DND via AudioService.

Bug: 25395278
Change-Id: Id72830607b01a43848d1261292e5835315ef70d0

8 years agoTrack libcore change 5409226c71aa1e090291f391faeb4249f5447472
Przemyslaw Szczepaniak [Wed, 16 Mar 2016 13:20:16 +0000 (13:20 +0000)]
Track libcore change 5409226c71aa1e090291f391faeb4249f5447472

Bug: 27426599
Change-Id: I028bb4ac7a24d6121c8114aa58e0e53799d00945

8 years agoMerge "Reduce memory allocations and improve sorting in DocumentsUI by 8.42%." into...
Tomasz Mikolajewski [Wed, 16 Mar 2016 12:55:37 +0000 (12:55 +0000)]
Merge "Reduce memory allocations and improve sorting in DocumentsUI by 8.42%." into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 12:44:35 +0000 (12:44 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 12:30:51 +0000 (08:30 -0400)]
Import translations. DO NOT MERGE

Change-Id: I1349c9ce36d61c83ffe2305411f5843fc5b1fe89
Auto-generated-cl: translation import

8 years agoMerge "Remove all non-porterduff xfermodes from the public API" into nyc-dev
Derek Sollenberger [Wed, 16 Mar 2016 12:17:14 +0000 (12:17 +0000)]
Merge "Remove all non-porterduff xfermodes from the public API" into nyc-dev

8 years agoMerge "Update documentation of DevicePolicyManager.isProvisioningAllowed." into nyc-dev
Nicolas Prévot [Wed, 16 Mar 2016 12:05:34 +0000 (12:05 +0000)]
Merge "Update documentation of DevicePolicyManager.isProvisioningAllowed." into nyc-dev

8 years agoClarified documentation as requested by API review
Esteban Talavera [Wed, 16 Mar 2016 12:00:40 +0000 (12:00 +0000)]
Clarified documentation as requested by API review

Bug: 27532433
Change-Id: I5fada6c0a4636528393308d5ce098cd0398e5ff5