OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Added title and button for Data Saver's 1st-time dialog." into nyc-dev
Felipe Leme [Fri, 22 Apr 2016 23:02:15 +0000 (23:02 +0000)]
Merge "Added title and button for Data Saver's 1st-time dialog." into nyc-dev

8 years agoAdded title and button for Data Saver's 1st-time dialog.
Felipe Leme [Fri, 22 Apr 2016 22:46:28 +0000 (15:46 -0700)]
Added title and button for Data Saver's 1st-time dialog.

BUG: 28098106
Change-Id: Icd3d2ee1b62abac738a7ff1c601bf91f6eedfd62

8 years agoMerge "Rename GET_PASSWORD_PRIVILEGED and make it signature." into nyc-dev
Carlos Valdivia [Fri, 22 Apr 2016 22:51:50 +0000 (22:51 +0000)]
Merge "Rename GET_PASSWORD_PRIVILEGED and make it signature." into nyc-dev

8 years agoMerge "Disable view recycling to avoid passing wrong type of view to Item.bindView...
Garfield Tan [Fri, 22 Apr 2016 22:47:37 +0000 (22:47 +0000)]
Merge "Disable view recycling to avoid passing wrong type of view to Item.bindView()." into nyc-dev

8 years agoMerge "Rename _BOOLEAN visual voicemail config keys to _BOOL" into nyc-dev
Ta-wei Yen [Fri, 22 Apr 2016 22:43:57 +0000 (22:43 +0000)]
Merge "Rename _BOOLEAN visual voicemail config keys to _BOOL" into nyc-dev

8 years agoFixing issue with swipe-dismiss animation clobbering home animation.
Winson [Thu, 21 Apr 2016 23:48:50 +0000 (16:48 -0700)]
Fixing issue with swipe-dismiss animation clobbering home animation.

- Finish all dismiss animations when a dismiss-to-home animation is
  started, and prevent lingering deferred layout animation requests
  from running as they will be overwritten anyways.

Bug: 28287904
Change-Id: Ie40c66c0f25705b56f6808607d2b7b8ae4e5a112

8 years agoMerge "Force a relayout when task is resized while not drag resizing." into nyc-dev
Chong Zhang [Fri, 22 Apr 2016 22:25:26 +0000 (22:25 +0000)]
Merge "Force a relayout when task is resized while not drag resizing." into nyc-dev

8 years agoMerge "BatteryStats: use the same timestamp for comparing intervals" into nyc-dev
Adam Lesinski [Fri, 22 Apr 2016 22:20:35 +0000 (22:20 +0000)]
Merge "BatteryStats: use the same timestamp for comparing intervals" into nyc-dev

8 years agoMerge "Cleanup of the PackageInstaller API - Frameworks" into nyc-dev
Svetoslav Ganov [Fri, 22 Apr 2016 22:18:27 +0000 (22:18 +0000)]
Merge "Cleanup of the PackageInstaller API - Frameworks" into nyc-dev

8 years agoMerge changes Ia8a90434,I35f484c7,I2e87e764 into nyc-dev
Winson Chung [Fri, 22 Apr 2016 22:15:45 +0000 (22:15 +0000)]
Merge changes Ia8a90434,I35f484c7,I2e87e764 into nyc-dev

* changes:
  Tweaks to make overview animations to match spec.
  Closing system windows when dismissing recents to app or home.
  Caching the display rect to reduce binder calls.

8 years agoForce a relayout when task is resized while not drag resizing.
Chong Zhang [Fri, 22 Apr 2016 22:04:31 +0000 (15:04 -0700)]
Force a relayout when task is resized while not drag resizing.

mResizedWhileNotDragResizing is set is task bounds is resized, however
individual window's size may not change (eg. a floating dialog). The
relayout window may not come and the mResizedWhileNotDragResizing
flag won't get cleared.

bug: 28111853
Change-Id: If8bb79cc07d9c67d6e5685b0adc24a9ce2623ec6

8 years agoMerge "Fix black flicker when closing IME" into nyc-dev
Jorim Jaggi [Fri, 22 Apr 2016 22:08:56 +0000 (22:08 +0000)]
Merge "Fix black flicker when closing IME" into nyc-dev

8 years agoRename GET_PASSWORD_PRIVILEGED and make it signature.
Carlos Valdivia [Fri, 22 Apr 2016 21:10:40 +0000 (14:10 -0700)]
Rename GET_PASSWORD_PRIVILEGED and make it signature.

Now named GET_PASSWORD. Now it is just a signature, not privileged.

Bug: 28295831
Change-Id: Ice93b527edced9546639b6c7096aad933c517548

8 years agoMerge "Remove dependencies on Activity from common Fragment superclasses" into nyc-dev
Adam Powell [Fri, 22 Apr 2016 21:43:15 +0000 (21:43 +0000)]
Merge "Remove dependencies on Activity from common Fragment superclasses" into nyc-dev

8 years agoTweaks to make overview animations to match spec.
Winson [Thu, 21 Apr 2016 00:18:08 +0000 (17:18 -0700)]
Tweaks to make overview animations to match spec.

- Fixing incompatible app message text color
- Fixing drag target hover color
- Fixing final frame jank when animating home from overview
- Adding animation prop setter for initial play time

Bug: 27154882
Change-Id: Ia8a90434da2174d3c78a353b881509a8b1d525ba

8 years agoMerge "Fixed NPE during boot animation on fugu." into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 21:23:52 +0000 (21:23 +0000)]
Merge "Fixed NPE during boot animation on fugu." into nyc-dev

8 years agoCleanup of the PackageInstaller API - Frameworks
Svet Ganov [Fri, 26 Feb 2016 02:22:10 +0000 (18:22 -0800)]
Cleanup of the PackageInstaller API - Frameworks

The PackageInstaller app manages side-loading apps as well
as permission management. It should be updatable, hence
should rely on system APIs to talk to the platform. This
is the first step of defining an API boundary.

Change-Id: I9814eafd0b22ae03b4b847a7007cdbf14c9e5466

8 years agoFix black flicker when closing IME
Jorim Jaggi [Fri, 22 Apr 2016 21:13:49 +0000 (14:13 -0700)]
Fix black flicker when closing IME

When closing the IME in docked adjusted mode, we still need to pass
in the IME window so we can still execute the logic to delay starting
the animation, so we don't see a black hole before the animation is
started.

Bug: 28175599
Change-Id: I606d30bd63b5e909fdebd78b0aa4968bd9f26c24

8 years agoMerge "Disallow disable of the system shared libs." into nyc-dev
Svetoslav Ganov [Fri, 22 Apr 2016 21:03:28 +0000 (21:03 +0000)]
Merge "Disallow disable of the system shared libs." into nyc-dev

8 years agoMerge "Unbundle RemoteService on TV - part 3" into nyc-dev
Sujith Ramakrishnan [Fri, 22 Apr 2016 20:59:06 +0000 (20:59 +0000)]
Merge "Unbundle RemoteService on TV - part 3" into nyc-dev

8 years agoMerge "Remove debug flag for some important logs." into nyc-dev
Sudheer Shanka [Fri, 22 Apr 2016 20:56:44 +0000 (20:56 +0000)]
Merge "Remove debug flag for some important logs." into nyc-dev

8 years agoMerge "Fix IME for status bar in docked mode" into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 20:22:21 +0000 (20:22 +0000)]
Merge "Fix IME for status bar in docked mode" into nyc-dev

8 years agoMerge "Fixed BaseObj finalizer and destroy()" into nyc-dev
Yang Ni [Fri, 22 Apr 2016 19:48:32 +0000 (19:48 +0000)]
Merge "Fixed BaseObj finalizer and destroy()" into nyc-dev

8 years agoFixed NPE during boot animation on fugu.
Wale Ogunwale [Fri, 22 Apr 2016 19:11:51 +0000 (12:11 -0700)]
Fixed NPE during boot animation on fugu.

- Don't set a dim layer in the docked controller if we are not dimming.
- Check to make sure the docked divider window isn't null before trying
to use its layer for dimming.

Bug: 28339915
Change-Id: I33d49d26ffcaec63d135f82a6208e127ba0f0570

8 years agoMerge "Reconfigure display info. after configuration changes." into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 19:42:51 +0000 (19:42 +0000)]
Merge "Reconfigure display info. after configuration changes." into nyc-dev

8 years agoUnbundle RemoteService on TV - part 3
Sujith Ramakrishnan [Fri, 29 Jan 2016 00:53:16 +0000 (16:53 -0800)]
Unbundle RemoteService on TV - part 3

- New service TVRemoteService triggered by SystemServer
- Provider service proxy and watcher for maintaining connections to unbundled
  services which have the BIND_TV_REMOTE_SERVICE permission.
- Shared library to facilitate connections between unbundled service and
  TVRemoteService.
- Unbundled service needs TV_VIRTUAL_REMOTE_CONTROLLER
  permission to be fully functional.

b/23792608

Change-Id: Ief5c6995883d1f7268a73bdd0c920c4c3f42cddb

8 years agoRemove debug flag for some important logs.
Sudheer Shanka [Fri, 22 Apr 2016 19:13:30 +0000 (12:13 -0700)]
Remove debug flag for some important logs.

Bug: 27689631
Change-Id: I23c1396f3b29093e6d23ec06f90a382b6ce458d3

8 years agoMerge "Force pinned windows to always be scaleable." into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 19:13:22 +0000 (19:13 +0000)]
Merge "Force pinned windows to always be scaleable." into nyc-dev

8 years agoRemove dependencies on Activity from common Fragment superclasses
Adam Powell [Fri, 22 Apr 2016 18:27:31 +0000 (11:27 -0700)]
Remove dependencies on Activity from common Fragment superclasses

Allow common Fragments to be used in non-Activity hosts.

Bug 28337394

Change-Id: Id3baa3ef19ea41ff43ca76be89ced7530fbadfab

8 years agoMerge "Add comments to apptype and authtype constants." into nyc-dev
Junda Liu [Fri, 22 Apr 2016 19:05:33 +0000 (19:05 +0000)]
Merge "Add comments to apptype and authtype constants." into nyc-dev

8 years agoMerge "Fix black frame in finishing transition" into nyc-dev
Chong Zhang [Fri, 22 Apr 2016 19:01:56 +0000 (19:01 +0000)]
Merge "Fix black frame in finishing transition" into nyc-dev

8 years agoMerge "Add ambient light ring buffer for initial data gathering period." into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 19:00:23 +0000 (19:00 +0000)]
Merge "Add ambient light ring buffer for initial data gathering period." into nyc-dev

8 years agoFix IME for status bar in docked mode
Adrian Roos [Fri, 22 Apr 2016 03:59:47 +0000 (20:59 -0700)]
Fix IME for status bar in docked mode

If the dock divider is visible, window manager raises the IME from the
app's layer on top of the divider. However if the IME was targeting the
status bar, it would also remove it from the status bar's layer and
move it atop the divider (but below the status bar).

To fix this, we now only perform the adjustment to the IME's layer if
that moves the IME up, but never down.

Change-Id: I1308f51b98fffee64a5075c49697f5bc177ea32e
Fixes: 28024606

8 years agoFix black frame in finishing transition
Chong Zhang [Fri, 22 Apr 2016 18:31:51 +0000 (11:31 -0700)]
Fix black frame in finishing transition

If either visible or nowVisible is true we need to wait for next
activity to become visible before we destroy the previous activity.

In some code path (eg. clear task top), when starting a new activity,
old activity is first paused and visible set to false with a dummy
transition set. Then finish activity is requested. At this point visible
is already false, but nowVisible is true. We still need to wait for
next app become visible to avoid a black frame shown in between.

bug: 27796252

Change-Id: Ief3d5fc8f11c51a729c424f996ab2597c815e4dd

8 years agoMerge "Changes Message from using parcels to bundles" into nyc-dev
Alexander Hills [Fri, 22 Apr 2016 18:32:48 +0000 (18:32 +0000)]
Merge "Changes Message from using parcels to bundles" into nyc-dev

8 years agoClosing system windows when dismissing recents to app or home.
Winson [Thu, 21 Apr 2016 22:20:21 +0000 (15:20 -0700)]
Closing system windows when dismissing recents to app or home.

Bug: 28314924
Change-Id: I35f484c7c594bb39d7983965e0f706175cf92253

8 years agoCaching the display rect to reduce binder calls.
Winson [Thu, 21 Apr 2016 18:20:11 +0000 (11:20 -0700)]
Caching the display rect to reduce binder calls.

- Only update the display rect and orientation on configuration change.

Bug: 28122871
Change-Id: I2e87e7643902d5f45ac4a311109f5e1870f48d3b

8 years agoMerge changes I222e50f6,I9832874d into nyc-dev
Winson Chung [Fri, 22 Apr 2016 18:22:00 +0000 (18:22 +0000)]
Merge changes I222e50f6,I9832874d into nyc-dev

* changes:
  Removing legacy calculation of Recents visibility.
  Adding additional dump logging to track down bugs.

8 years agoReconfigure display info. after configuration changes.
Wale Ogunwale [Fri, 22 Apr 2016 16:15:09 +0000 (09:15 -0700)]
Reconfigure display info. after configuration changes.

Some of the information reported for a display is dependent on resources to do
the right calculations. For example, {@link DisplayInfo#smallestNominalAppWidth}
and company are dependent on the height and width of the status and nav bar
which change depending on the current configuration.

Bug: 28182307
Change-Id: I2ba5de4bcfb3fa3ad334e69eb192bd15f8f7ebb2

8 years agoMerge "Add strings for quick settings accessibility" into nyc-dev
Jason Monk [Fri, 22 Apr 2016 18:13:18 +0000 (18:13 +0000)]
Merge "Add strings for quick settings accessibility" into nyc-dev

8 years agoMerge "Adds a BigPicAmbient flag to WearableExtender" into nyc-dev
Alexander Hills [Fri, 22 Apr 2016 18:11:44 +0000 (18:11 +0000)]
Merge "Adds a BigPicAmbient flag to WearableExtender" into nyc-dev

8 years agoAdd strings for quick settings accessibility
Jason Monk [Fri, 22 Apr 2016 18:08:27 +0000 (14:08 -0400)]
Add strings for quick settings accessibility

Bug: 15696340
Change-Id: Ie775c90c9fed8078f4db4bde5752a2f2d7f94f25

8 years agoMerge "TIF: Address API review comments" into nyc-dev
Dongwon Kang [Fri, 22 Apr 2016 17:54:31 +0000 (17:54 +0000)]
Merge "TIF: Address API review comments" into nyc-dev

8 years agoMerge "Send update notifications when the status of a print job updates and make...
Philip P. Moltmann [Fri, 22 Apr 2016 17:32:36 +0000 (17:32 +0000)]
Merge "Send update notifications when the status of a print job updates and make sure to only access mPrintServicesChangeListenerRecords when locked." into nyc-dev

8 years agoFixed BaseObj finalizer and destroy()
Yang Ni [Thu, 21 Apr 2016 04:26:24 +0000 (21:26 -0700)]
Fixed BaseObj finalizer and destroy()

Bug: 28242626
Bug: 27972184
Bug: 27973681

This is resolving issues in ScriptGroup (V1) again.
In ScriptGroup.destroy(), we also need to consider the old API where
mClosures is not initialized.

Also cleaned up the finalizer for ScriptGroup and Allocation:
Since BaseObj.finalize() calls BaseObj.helpDestroy(), instead of
BaseObj.destroy(), there is no possibility that the finalizers of
child objects may race their parents finalizers. Note that
helpDestroy() does not try to recurse on child objects.

Change-Id: I9dbb2b60f8478f656f8a418c2b5fc8d6848aeef0

8 years agoAdd ambient light ring buffer for initial data gathering period.
Michael Wright [Fri, 22 Apr 2016 05:03:09 +0000 (01:03 -0400)]
Add ambient light ring buffer for initial data gathering period.

We're seeing reports of the display being too dim at initial wake up.
Saving the buffer for this initial period lets determine whether this
is a calculation error or something wrong with the sensor readings.

Bug: 27951906
Change-Id: I96b5dd0772de056c3c5e54d59c13d1a3d902d343

8 years agoMerge "DO NOT MERGE: Disable drag n' drop in DocumentsActivity." into nyc-dev
Garfield Tan [Fri, 22 Apr 2016 17:17:14 +0000 (17:17 +0000)]
Merge "DO NOT MERGE: Disable drag n' drop in DocumentsActivity." into nyc-dev

8 years agoMerge "Keyboard shortcuts: dismiss when activities start via shortcut" into nyc-dev
Andrei Stingaceanu [Fri, 22 Apr 2016 16:46:29 +0000 (16:46 +0000)]
Merge "Keyboard shortcuts: dismiss when activities start via shortcut" into nyc-dev

8 years agoMerge "FrameMetricsListener API council changes" into nyc-dev
Andres Morales [Fri, 22 Apr 2016 16:31:18 +0000 (16:31 +0000)]
Merge "FrameMetricsListener API council changes" into nyc-dev

8 years agoMerge "Show recents when task moves to docked stack" into nyc-dev
Andrii Kulian [Fri, 22 Apr 2016 16:15:07 +0000 (16:15 +0000)]
Merge "Show recents when task moves to docked stack" into nyc-dev

8 years agoShow recents when task moves to docked stack
Andrii Kulian [Thu, 21 Apr 2016 01:43:01 +0000 (18:43 -0700)]
Show recents when task moves to docked stack

When task was moved to docked stack using adb command,
recents didn't show and docked stack was minimized when
home task obtained focus.
This CL shows recents if needed when task is moved to
docked stack.

Bug: 28215216
Change-Id: If1cfb9d24bd77cc9c3c8fad3479f115d7aca1301

8 years agoKeyboard shortcuts: dismiss when activities start via shortcut
Andrei Stingaceanu [Thu, 14 Apr 2016 17:11:57 +0000 (18:11 +0100)]
Keyboard shortcuts: dismiss when activities start via shortcut

* introduced a new intent DISMISS_KEYBOARD_SHORTCUTS and
and new public API in Activity (which sends a broadcast
to KeyboardShortcutsReceiver) which applications can
use to dismiss the keyboard shortcuts.

* plumbing and implementation for a new call to dismiss
keyboard shortcuts from PhoneWindowManager and used it:
** when starting activities invoked via Search+key
** when starting activities invoked via META
** when starting activities via application launch keys

* removed unused variable in
Activity#onProvideKeyboardShortcuts

Note that for apps started via touch (aka non-shortcut)
like tapping the Settings gear icon from the notification
bar the menu is not automatically dismissed.

Bug: 28012198
Change-Id: I83a8d4f342bb8a08115a648648834d0d2bac19fd

8 years agoMerge "Add back elevation to quick settings" into nyc-dev
Jason Monk [Fri, 22 Apr 2016 15:47:30 +0000 (15:47 +0000)]
Merge "Add back elevation to quick settings" into nyc-dev

8 years agoMerge "webview: canInvokeDrawGlFunctor should always return true" into nyc-dev
Bo Liu [Fri, 22 Apr 2016 15:36:37 +0000 (15:36 +0000)]
Merge "webview: canInvokeDrawGlFunctor should always return true" into nyc-dev

8 years agoMerge "Fixed a bug where notifications could overlap" into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 15:16:05 +0000 (15:16 +0000)]
Merge "Fixed a bug where notifications could overlap" into nyc-dev

8 years agoMerge "Add reasons to notifyPackageUse calls" into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 15:00:36 +0000 (15:00 +0000)]
Merge "Add reasons to notifyPackageUse calls" into nyc-dev

8 years agoMerge "Rename 'thousands of an inch' to 'thousandths of an inch'in the docs." into...
Philip P. Moltmann [Fri, 22 Apr 2016 14:08:07 +0000 (14:08 +0000)]
Merge "Rename 'thousands of an inch' to 'thousandths of an inch'in the docs." into nyc-dev

8 years agoAdd reasons to notifyPackageUse calls
Brian Carlstrom [Wed, 20 Apr 2016 06:16:08 +0000 (23:16 -0700)]
Add reasons to notifyPackageUse calls

This is so we can record more specific times in PackageUsage.
If file with only one timestamp per package is found, the value is
copied to all usage slots.

Bug: 27902702
Change-Id: I8affe43c735e54620a9204433aad367cfddfded7

8 years agoMerge "Deleting lock screen clears all CA approvals" into nyc-dev
Victor Chang [Fri, 22 Apr 2016 11:02:41 +0000 (11:02 +0000)]
Merge "Deleting lock screen clears all CA approvals" into nyc-dev

8 years agoMerge "Split network monitoring and portal probe events" into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 09:41:04 +0000 (09:41 +0000)]
Merge "Split network monitoring and portal probe events" into nyc-dev

8 years agoMerge "Remove MANAGED_PROFILE_AVAILABILITY_CHANGED broadcast" into nyc-dev
Rubin Xu [Fri, 22 Apr 2016 09:25:02 +0000 (09:25 +0000)]
Merge "Remove MANAGED_PROFILE_AVAILABILITY_CHANGED broadcast" into nyc-dev

8 years agoFixed a bug where notifications could overlap
Selim Cinek [Thu, 21 Apr 2016 23:14:46 +0000 (16:14 -0700)]
Fixed a bug where notifications could overlap

If the expanded child was smaller then the collapsed one
the UI could get very weird. We're now measuring the expanded
version at least as big as the collapsed one.

Change-Id: Ibb99c4926121b2affcc181071b5e439f23c8e4f2
Fixes: 28318145
Fixes: 28015447

8 years agoMerge changes from topic 'blockOnProcessingUnsolicited' into nyc-dev
Lorenzo Colitti [Fri, 22 Apr 2016 08:41:08 +0000 (08:41 +0000)]
Merge changes from topic 'blockOnProcessingUnsolicited' into nyc-dev

* changes:
  Tethering: interface updates can be handled again
  NativeDaemonConnector: add waitForCallbacks method

8 years agoTethering: interface updates can be handled again
Rebecca Silberstein [Thu, 21 Apr 2016 22:50:34 +0000 (15:50 -0700)]
Tethering: interface updates can be handled again

When reloading wifi firmware, unsolicited responses from netd were
processed after softap had started and caused wifi tethering to be torn
down.

The NetworkManagementServer.wifiFirmwareReload call has been changed to
not only block for the command to finish, but also until all unsolicited
messages (interface updates) have been handled.  We should now be able
to handle interface updates in tethering without suffering from the
softap bringup/interface down notification race condition.

BUG: 27857665
Change-Id: Ie57cb8f760781b3227df575b577b33667070d63e

8 years agoSplit network monitoring and portal probe events
Hugo Benichi [Thu, 21 Apr 2016 06:02:38 +0000 (15:02 +0900)]
Split network monitoring and portal probe events

This patches changes how captive portal tests and network lifecycle
events are logged as connectivity events:
  - it splits NetworkMonitorEvent into two event classes:
      - ValidationProbeEvent for logging individual probe events.
      - NetworkEvent for logging network connection, validation,
        lingering, and disconnection.
  - it removes the redundant CaptivePortalCheckResultEvent class.
    The information logged in CaptivePortalCheckResultEvent was already
    logged by NetworkMonitorEvent, but missing the evaluation durations.
    It is now logged by ValidationProbeEvent.
  - it removes the CaptivePortalStateChangeEvent class, which is now
    redundant with NetworkEvent, but missing evaluation durations.

In addition, it adds event logging when ConnectivityService puts a
network into lingering or removes a network from lingering.

Bug: 28204408
Change-Id: I8f9752e4d36175ecfcbd1545a01a41bad6e06ea4

8 years agoMerge "Fixed a bug where the icon of children could be colored" into nyc-dev
TreeHugger Robot [Fri, 22 Apr 2016 07:28:30 +0000 (07:28 +0000)]
Merge "Fixed a bug where the icon of children could be colored" into nyc-dev

8 years agoNativeDaemonConnector: add waitForCallbacks method
Rebecca Silberstein [Thu, 21 Apr 2016 19:14:41 +0000 (12:14 -0700)]
NativeDaemonConnector: add waitForCallbacks method

Add a method that allows callers to wait until all unsolicited
responses received from the native daemon during a command are
processed.

When commands are issued to a native daemon (such as netd) through the
NativeDaemonConnector we block until the command response is received.
Any responses or events that are a side-effect (considered
"unsolicited") of the command are placed in a Message and handled as
callbacks. The order of their processing is not guaranteed and, as we
have seen from bugreports, can be handled several seconds
later - causing the SoftAP that was just set up to be torn down
because a late interface down/removed is indistinguishable from a
new interface down/removed.

This CL adds a method that first checks to make sure callback thread
is not the same thread as used for the blocking call.  The new
waitForCallbacks method uses a CountDownLatch to force the calling
thread to wait until all unsolicited responses received from the
native daemon during the execution of the command are handled.

The wifiFirmwareReload method is also updated to use the new
waitForCallbacks method.

BUG: 27857665
Change-Id: I3e22978f720b1cbf57fbb64ad4fea73f8c2d408a

8 years agoMerge "Fixed a bug where notification header could become empty" into nyc-dev
Selim Cinek [Fri, 22 Apr 2016 05:33:31 +0000 (05:33 +0000)]
Merge "Fixed a bug where notification header could become empty" into nyc-dev

8 years agoMerge "Fix signal cluster animation leak" into nyc-dev
Jorim Jaggi [Fri, 22 Apr 2016 04:09:11 +0000 (04:09 +0000)]
Merge "Fix signal cluster animation leak" into nyc-dev

8 years agoFix signal cluster animation leak
Jorim Jaggi [Fri, 22 Apr 2016 03:33:44 +0000 (20:33 -0700)]
Fix signal cluster animation leak

When subscription id's change during the animation, make sure to
clear them out as well. This happens when doing a network switch
on Fi.

Bug: 27434767
Change-Id: I9cbd65888419ca630e884c51d41a0d785237f35b

8 years agoMerge "Fixed a crash when the heads up content view was null" into nyc-dev
Selim Cinek [Fri, 22 Apr 2016 03:22:12 +0000 (03:22 +0000)]
Merge "Fixed a crash when the heads up content view was null" into nyc-dev

8 years agoMerge "Changed the name of chronometer countdown" into nyc-dev
Selim Cinek [Fri, 22 Apr 2016 03:21:50 +0000 (03:21 +0000)]
Merge "Changed the name of chronometer countdown" into nyc-dev

8 years agoMerge "IpManager,DhcpClient: catch some errors and better logging" into nyc-dev
Erik Kline [Fri, 22 Apr 2016 03:14:04 +0000 (03:14 +0000)]
Merge "IpManager,DhcpClient: catch some errors and better logging" into nyc-dev

8 years agoMerge "Fix squished UI elements" into nyc-dev
Jorim Jaggi [Fri, 22 Apr 2016 03:09:58 +0000 (03:09 +0000)]
Merge "Fix squished UI elements" into nyc-dev

8 years agoMerge "Clear calling identity before calling mountService" into nyc-dev
Paul Crowley [Fri, 22 Apr 2016 03:00:10 +0000 (03:00 +0000)]
Merge "Clear calling identity before calling mountService" into nyc-dev

8 years agoFix squished UI elements
Jorim Jaggi [Fri, 22 Apr 2016 01:25:49 +0000 (18:25 -0700)]
Fix squished UI elements

Stack bounds were wrong after moving all tasks from docked stack to
fullscreen stack, if fullscreen stack was created while moving.
This lead to very wrong bounds when rotating the screen the next
time.

Bug: 27870534
Change-Id: I6d054922ffc7baa7cd1a86d0d3448050cbacd21f

8 years agoMerge "Don't worry about an extra weak indirection with callback alarms" into nyc-dev
Chris Tate [Fri, 22 Apr 2016 00:40:42 +0000 (00:40 +0000)]
Merge "Don't worry about an extra weak indirection with callback alarms" into nyc-dev

8 years agoMerge "leanback: Fix link to changed API setTitle()" into nyc-dev
Dake Gu [Fri, 22 Apr 2016 00:26:51 +0000 (00:26 +0000)]
Merge "leanback: Fix link to changed API setTitle()" into nyc-dev

8 years agoMerge "Add throws definition to MtpDevice#readEvent." into nyc-dev
Daichi Hirono [Fri, 22 Apr 2016 00:00:31 +0000 (00:00 +0000)]
Merge "Add throws definition to MtpDevice#readEvent." into nyc-dev

8 years agoMerge "Handle API review comments from the council." into nyc-dev
Daichi Hirono [Fri, 22 Apr 2016 00:00:31 +0000 (00:00 +0000)]
Merge "Handle API review comments from the council." into nyc-dev

8 years agoMerge "Switched the notification time to relative time" into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 23:47:22 +0000 (23:47 +0000)]
Merge "Switched the notification time to relative time" into nyc-dev

8 years agoDO NOT MERGE: Disable drag n' drop in DocumentsActivity.
Garfield, Tan [Thu, 21 Apr 2016 21:07:47 +0000 (14:07 -0700)]
DO NOT MERGE: Disable drag n' drop in DocumentsActivity.

Bug: 28318396
Change-Id: If27bc093b873af5395f69d9139d3fd96e50c0a7b

8 years agoRename 'thousands of an inch' to 'thousandths of an inch'in the docs.
Philip P. Moltmann [Thu, 21 Apr 2016 23:28:02 +0000 (16:28 -0700)]
Rename 'thousands of an inch' to 'thousandths of an inch'in the docs.

Fixes: 28268203
Change-Id: I4246bc7431d1e0ecb75a6d101ba6ccd548567704

8 years agoMerge "Move child FragmentManager shutdown for retained fragments" into nyc-dev
Adam Powell [Thu, 21 Apr 2016 23:05:01 +0000 (23:05 +0000)]
Merge "Move child FragmentManager shutdown for retained fragments" into nyc-dev

8 years agoMerge "Fix flag value collision" into nyc-dev
Tim Murray [Thu, 21 Apr 2016 22:59:40 +0000 (22:59 +0000)]
Merge "Fix flag value collision" into nyc-dev

8 years agoFix flag value collision
John Reck [Thu, 21 Apr 2016 22:40:45 +0000 (15:40 -0700)]
Fix flag value collision

Bug: 28314544
Change-Id: If73c1e8fd0e7b313bccbeffa172bdc3ab9496a43

8 years agoMerge changes I036fbc5f,I979f0107 into nyc-dev
Joe Onorato [Thu, 21 Apr 2016 22:36:21 +0000 (22:36 +0000)]
Merge changes I036fbc5f,I979f0107 into nyc-dev

* changes:
  If we can't call into an app process to deliver an intent, crash the process.
  If a crash dialog can't be shown, just kill the process.

8 years agoSend update notifications when the status of a print job updates and
Philip P. Moltmann [Thu, 21 Apr 2016 22:17:58 +0000 (15:17 -0700)]
Send update notifications when the status of a print job updates and
make sure to only access mPrintServicesChangeListenerRecords when
locked.

Bug: 28315242
Change-Id: Ie41ee695e6b1b0394e55538b9d9edaee0610f1e0

8 years agoIf we can't call into an app process to deliver an intent, crash the process.
Joe Onorato [Wed, 20 Apr 2016 22:38:07 +0000 (15:38 -0700)]
If we can't call into an app process to deliver an intent, crash the process.

Rather than hoping the process will crash for some other reason, it is
better to just get rid of it right away. The Intent was not delivered,
so there are no guarantees that the app will continue to function
correctly.

Bug: 28196243
Change-Id: I036fbc5ffd42dc7259437cc5a733976478a2dd3a

8 years agoMerge changes I7261cf87,Icabfcf47,I09e6b032,I252cf139,If85ade73, ... into nyc-dev
TreeHugger Robot [Thu, 21 Apr 2016 22:28:00 +0000 (22:28 +0000)]
Merge changes I7261cf87,Icabfcf47,I09e6b032,I252cf139,If85ade73, ... into nyc-dev

* changes:
  Revert "Death to synchronous transactions (2/2)"
  Fix a few weird state issues from race-conditions
  Fix lifecycle bug in when calling positionTask
  Animation fixes when task is not resumed
  Keep stack from mReuseTask
  Final fixes for growing recents transition

8 years agoMerge "Update divider controller's dim layer when the layer is changed" into nyc-dev
Chong Zhang [Thu, 21 Apr 2016 22:27:51 +0000 (22:27 +0000)]
Merge "Update divider controller's dim layer when the layer is changed" into nyc-dev

8 years agoFixed a bug where the icon of children could be colored
Selim Cinek [Thu, 21 Apr 2016 22:26:10 +0000 (15:26 -0700)]
Fixed a bug where the icon of children could be colored

Change-Id: I12e577de648f8b1734521ffe713f0168f714572a
Fixes: 28320187

8 years agoUpdate divider controller's dim layer when the layer is changed
Chong Zhang [Thu, 21 Apr 2016 22:17:47 +0000 (15:17 -0700)]
Update divider controller's dim layer when the layer is changed

The divider's layer assignment could change after the initial adjust
animation has finished.

bug: 28255739
Change-Id: I5899fe22e4fec680c49c881437c7f85d8ee9ca74

8 years agoRemoving legacy calculation of Recents visibility.
Winson [Wed, 20 Apr 2016 18:54:27 +0000 (11:54 -0700)]
Removing legacy calculation of Recents visibility.

- This was causing us to try and launch the Recents activity again after
  docking because the running task was the newly docked task and not
  Recents.

Bug: 28177001
Change-Id: I222e50f6de00a9d7881da2182eebc61564fd3266

8 years agoAdding additional dump logging to track down bugs.
Winson [Wed, 20 Apr 2016 17:50:40 +0000 (10:50 -0700)]
Adding additional dump logging to track down bugs.

Bug: 28177001
Change-Id: I9832874d3b9b1fceb28cfac6e899739b6dba0896

8 years agoFixed a bug where notification header could become empty
Selim Cinek [Thu, 21 Apr 2016 01:46:36 +0000 (18:46 -0700)]
Fixed a bug where notification header could become empty

Also fixed a few more issues with the header util that could
lead to wrong states.

Change-Id: I95c3479f5d9e5221ee9e91120271e7957b887607
Fixes: 28295743

8 years agoFixed a crash when the heads up content view was null
Selim Cinek [Thu, 21 Apr 2016 00:10:40 +0000 (17:10 -0700)]
Fixed a crash when the heads up content view was null

Change-Id: I02c47eb0f4bcc3620103882e34b079aa83790a44
Fixes: 28301534

8 years agoChanged the name of chronometer countdown
Selim Cinek [Wed, 20 Apr 2016 23:13:59 +0000 (16:13 -0700)]
Changed the name of chronometer countdown

Change-Id: Ie0339205b26f2dff40e0c19760750a0ce6aaf7da
Fixes: 28295825

8 years agoSwitched the notification time to relative time
Selim Cinek [Wed, 20 Apr 2016 01:31:47 +0000 (18:31 -0700)]
Switched the notification time to relative time

The time is now displayed in a relative manner instead
of absolute.

Change-Id: Idcc4411ed07991b6e176c4890a0d804394d8598a
Fixes: 27435284

8 years agoDon't worry about an extra weak indirection with callback alarms
Christopher Tate [Thu, 21 Apr 2016 22:05:34 +0000 (15:05 -0700)]
Don't worry about an extra weak indirection with callback alarms

Bug 27995384

Change-Id: Ie9cf3e05dca4af7085b479fb65d4cf45ee0239ba