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
am: 57e4a67be1
* commit '57e4a67be13eede636608f789d1b88d0889683ec':
Fixed a bug where notification header could become empty
Change-Id: Iab1ee2e9d7e8436e52697978a331889b103a7031
am: 841e4946bf
* commit '841e4946bf3f6cbbc4a84d849de675f1d6296a02':
Fixed a crash when the heads up content view was null
Change-Id: I7bfb0889584b971ff8fe0e7e2193fc146e0ebd9b
am: 8f32cd4306
* commit '8f32cd4306a201c2167c20fc636fe613f1fabd4c':
Changed the name of chronometer countdown
Change-Id: Id89cb8d2bf201752bab018d25068841714405c3b
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
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
am: 0a7ec886c3
* commit '0a7ec886c35107c1f8d2d1ff3977ac5dd91fddd1':
Don't worry about an extra weak indirection with callback alarms
Change-Id: I961f330a5af87881d2a05d0712096faa33c1272d
am: dca499fdad
* commit 'dca499fdadff67b954883f2260f79850d65d1b97':
leanback: Fix link to changed API setTitle()
Change-Id: Ic4f9fcd50d4cf14f21d11d3055c1684f08feefaa
am: b9c64cd2c0
* commit 'b9c64cd2c06933eda7ff1e691b80c53a74ff09d7':
Handle API review comments from the council.
Change-Id: If37e15af289c47660b28ad637d8f42a861e742a5
am: 037235d83e
* commit '037235d83edcc78aab8798a0b221b6f14d9e15f3':
Switched the notification time to relative time
Change-Id: I5d1ac3edbb140a2947c1e64916a2fe72b444ef4e
am: 60b688876d
* commit '60b688876de79392236524b950381927878fa34f':
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.
Change-Id: I6691a982e84fefbd537010417e3fee2580cbd1b9
am: a51388d653
* commit 'a51388d6536bd57c2bbcf18e84d87763d388dbf7':
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
Change-Id: Icccd53b5fbc4c3bde7723be261ba35ba73a99a1e
am: da3cd339e9
* commit 'da3cd339e968b8f54575f72823eb2e4cd826aa02':
Update divider controller's dim layer when the layer is changed
Change-Id: I2fded43912f168eada58da94ab20ec0b572a3154
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
* 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
Passing the "--dont-kill" argument to pm install-create can be used to
install a feature split without killing the contianing application.
Use with caution.
Bug: 27780548
Change-Id: I743ac4f640c9c4251d1b3bc70ddf428bd79e07bf
The divider's layer assignment could change after the initial adjust
animation has finished.
bug: 28255739
Change-Id: I5899fe22e4fec680c49c881437c7f85d8ee9ca74