Unhide constructors of DataService and NetworkService.

DataService and NetworkService are System level classes. We shouldn't
hide their constructors otherwise their System level sub-class
can't be instantiated properly.

Test: gts
Bug: 77531655
Change-Id: I1a58b4857dbcf939ac124e20eb0a801ad5a9b597
This commit is contained in:
Malcolm Chen
2018-04-03 11:48:56 -07:00
parent 2d3e4b7437
commit 83f59c61dd
3 changed files with 10 additions and 4 deletions

View File

@@ -5112,6 +5112,7 @@ package android.telephony {
}
public abstract class NetworkService extends android.app.Service {
ctor public NetworkService();
method protected abstract android.telephony.NetworkService.NetworkServiceProvider createNetworkServiceProvider(int);
field public static final java.lang.String NETWORK_SERVICE_EXTRA_SLOT_ID = "android.telephony.extra.SLOT_ID";
field public static final java.lang.String NETWORK_SERVICE_INTERFACE = "android.telephony.NetworkService";
@@ -5393,6 +5394,7 @@ package android.telephony.data {
}
public abstract class DataService extends android.app.Service {
ctor public DataService();
method public abstract android.telephony.data.DataService.DataServiceProvider createDataServiceProvider(int);
field public static final java.lang.String DATA_SERVICE_EXTRA_SLOT_ID = "android.telephony.data.extra.SLOT_ID";
field public static final java.lang.String DATA_SERVICE_INTERFACE = "android.telephony.data.DataService";

View File

@@ -206,8 +206,10 @@ public abstract class NetworkService extends Service {
}
}
/** @hide */
protected NetworkService() {
/**
* Default constructor.
*/
public NetworkService() {
mHandlerThread = new HandlerThread(TAG);
mHandlerThread.start();

View File

@@ -429,8 +429,10 @@ public abstract class DataService extends Service {
}
}
/** @hide */
protected DataService() {
/**
* Default constructor.
*/
public DataService() {
mHandlerThread = new HandlerThread(TAG);
mHandlerThread.start();