
org.robolectric.shadows.PhoneCapabilityFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-framework Show documentation
Show all versions of shadows-framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import android.telephony.PhoneCapability;
import java.util.ArrayList;
/** Factory to create PhoneCapability. */
public final class PhoneCapabilityFactory {
/** Creates PhoneCapability. */
public static PhoneCapability create(
int maxActiveVoiceSubscriptions,
int maxActiveDataSubscriptions,
boolean networkValidationBeforeSwitchSupported,
int[] deviceNrCapabilities) {
return new PhoneCapability(
maxActiveVoiceSubscriptions,
maxActiveDataSubscriptions,
// Since ModemInfo is an @hide object, there is no reason for an external object to be able
// to declare it, using an empty ArrayList as the parameter here.
/* List */ new ArrayList<>(),
networkValidationBeforeSwitchSupported,
deviceNrCapabilities);
}
private PhoneCapabilityFactory() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy