History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcSwitchAsyncChannel.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bda761320929f714951c328bfec6a51a1978db97 23-Sep-2014 Wink Saville <wink@google.com> [DS] Data supports DSDS

Main modification:
1. Handle network requests for different subscriptions according
to the priority of the ApnContext
2. Handle data attach and detach procedures when switching the active
data subscription

Modifications in TelephonyNetworkFactory:
1. needNetworkFor; network request are dispatched to DctController for
determining the active data subscription.
2. releaseNetworkFor; DctController is notified that the network request is
going to be released and the active data subscription may be changed
after the release of network request.

DctController maintains all cellular network requests. When a new request
is sent to DctController the active data subscription would be determined
again. If active data subscription has not changed, the reference count of
corresponding ApnContext is increased. Otherwise, data detach procedure
will be triggered on previous data subscription and a data attach procedure
is triggered on the new active data subscription.

After data is attached, all network requests for the subscription will be
executed. That means reference count of corresponding ApnContext will be
increased.

When a network request is going to be released, the rererence count of the
ApnContext will be decreased. DctController will determine active data
subscription again after the request is released and data detach and attach
procedures will be triggered appropriately.

Change-Id: Ie991096a986e4580efd453f0d20e43971e3fa9a2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcSwitchAsyncChannel.java
a8467dd0c524787104b1ccdddc5e8af10ba729ed 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcSwitchAsyncChannel.java