TelephonyTokenProvider
public
class
TelephonyTokenProvider
extends Object
implements
ITokenProvider
| java.lang.Object | |
| ↳ | com.android.tradefed.invoker.shard.token.TelephonyTokenProvider |
Tokenanbieter für telefoniebezogene Tokens.
Zusammenfassung
Konstanten | |
|---|---|
String |
GSM_OPERATOR_PROP
|
String |
ORANGE_SIM_ID
|
String |
THALES_GEMALTO_SIM_ID
|
Öffentliche Konstruktoren | |
|---|---|
TelephonyTokenProvider()
|
|
Öffentliche Methoden | |
|---|---|
boolean
|
hasToken(ITestDevice device, TokenProperty token)
Fragen Sie ab und geben Sie zurück, ob das Gerät ein bestimmtes Token hat. |
Konstanten
GSM_OPERATOR_PROP
public static final String GSM_OPERATOR_PROP
Konstanter Wert: "gsm.sim.operator.numeric"
ORANGE_SIM_ID
public static final String ORANGE_SIM_ID
Konstanter Wert: "20801"
THALES_GEMALTO_SIM_ID
public static final String THALES_GEMALTO_SIM_ID
Konstanter Wert: "00101"
Öffentliche Konstruktoren
TelephonyTokenProvider
public TelephonyTokenProvider ()
Öffentliche Methoden
hasToken
public boolean hasToken (ITestDevice device, TokenProperty token)
Fragen Sie ab und geben Sie zurück, ob das Gerät ein bestimmtes Token hat.
| Parameter | |
|---|---|
device |
ITestDevice: Gerät, für das die Tokens angefordert wurden. |
token |
TokenProperty: Das zu prüfende Token |
| Returns | |
|---|---|
boolean |
„True“, wenn das Gerät das Token hat, andernfalls „false“. |