Expose ConnectionService Handler to remove flaky tests
Test: atest TelecomUnitTests Change-Id: Ibb80b5739083ad9f85ee06f4d9f0017f4cb605bd
This commit is contained in:
@@ -30,6 +30,7 @@ import android.os.ParcelFileDescriptor;
|
||||
import android.os.RemoteException;
|
||||
import android.telecom.Logging.Session;
|
||||
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
import com.android.internal.os.SomeArgs;
|
||||
import com.android.internal.telecom.IConnectionService;
|
||||
import com.android.internal.telecom.IConnectionServiceAdapter;
|
||||
@@ -2672,4 +2673,13 @@ public abstract class ConnectionService extends Service {
|
||||
return ++mId;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns this handler, ONLY FOR TESTING.
|
||||
* @hide
|
||||
*/
|
||||
@VisibleForTesting
|
||||
public Handler getHandler() {
|
||||
return mHandler;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user