@Implements(value=android.net.VpnService.class) public class ShadowVpnService extends ShadowService
Constructor and Description |
---|
ShadowVpnService() |
Modifier and Type | Method and Description |
---|---|
protected static android.content.Intent |
prepare(android.content.Context context) |
protected boolean |
protect(java.net.Socket socket)
No-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor.
|
static void |
reset() |
static void |
setPrepareResult(android.content.Intent intent)
Sets the return value of #prepare(Context).
|
getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getBroadcastIntents, getNextStartedActivity, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedService, removeSystemService
@Implementation protected static android.content.Intent prepare(android.content.Context context)
setPrepareResult(Intent).
public static void setPrepareResult(android.content.Intent intent)
Sets the return value of #prepare(Context).
@Implementation protected boolean protect(java.net.Socket socket)
No-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor.
@Resetter public static void reset()