Home
last modified time | relevance | path

Searched refs:TokenProperty (Results 1 – 12 of 12) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/token/
DTokenProviderHelper.java27 private static Map<TokenProperty, ITokenProvider> sHandlerMap = new HashMap<>();
30 sHandlerMap.put(TokenProperty.SIM_CARD, new TelephonyTokenProvider()); in sHandlerMap.put()
31 sHandlerMap.put(TokenProperty.UICC_SIM_CARD, new TelephonyTokenProvider()); in sHandlerMap.put()
32 sHandlerMap.put(TokenProperty.SECURE_ELEMENT_SIM_CARD, new TelephonyTokenProvider()); in sHandlerMap.put()
36 public static ITokenProvider getTokenProvider(TokenProperty param) { in getTokenProvider()
DTelephonyTokenProvider.java38 public boolean hasToken(ITestDevice device, TokenProperty token) { in hasToken()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/token/
DTelephonyTokenProviderTest.java57 assertTrue(provider.hasToken(mDevice, TokenProperty.SIM_CARD)); in testSimCard()
64 assertFalse(provider.hasToken(mDevice, TokenProperty.SIM_CARD)); in testSimCard_noSupport()
72 assertTrue(provider.hasToken(mDevice, TokenProperty.UICC_SIM_CARD)); in testSimCard_carrier()
84 assertTrue(provider.hasToken(mDevice, TokenProperty.SECURE_ELEMENT_SIM_CARD)); in testSimCard_securedElementOrange()
96 assertTrue(provider.hasToken(mDevice, TokenProperty.SECURE_ELEMENT_SIM_CARD)); in testSimCard_securedElementOrange_dualSim()
108 assertFalse(provider.hasToken(mDevice, TokenProperty.SECURE_ELEMENT_SIM_CARD)); in testSimCard_securedElement_anySim()
DTokenProviderHelperTest.java30 for (TokenProperty prop : TokenProperty.values()) { in testAllKeysHaveProvider()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DTokenTestClass.java21 import com.android.tradefed.invoker.shard.token.TokenProperty;
36 public Set<TokenProperty> getRequiredTokens() { in getRequiredTokens()
37 Set<TokenProperty> props = new HashSet<>(); in getRequiredTokens()
38 props.add(TokenProperty.SIM_CARD); in getRequiredTokens()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/shard/token/
DTokenProperty.java22 public enum TokenProperty { enum
DITokenProvider.java38 boolean hasToken(ITestDevice device, TokenProperty token); in hasToken()
DITokenRequest.java29 public Set<TokenProperty> getRequiredTokens(); in getRequiredTokens()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DTestsPoolPoller.java35 import com.android.tradefed.invoker.shard.token.TokenProperty;
134 Set<TokenProperty> tokens = test.getRequiredTokens(); in poll()
344 private boolean isSupported(Set<TokenProperty> requiredTokens) { in isSupported()
345 for (TokenProperty prop : requiredTokens) { in isSupported()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java43 import com.android.tradefed.invoker.shard.token.TokenProperty;
159 private Set<TokenProperty> mRequiredTokens = new HashSet<>();
212 mRequiredTokens.add(TokenProperty.valueOf(token.toUpperCase())); in ModuleDefinition()
943 public Set<TokenProperty> getRequiredTokens() { in getRequiredTokens()
DITestSuite.java45 import com.android.tradefed.invoker.shard.token.TokenProperty;
1172 public Set<TokenProperty> getRequiredTokens() { in getRequiredTokens()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleDefinitionTest.java45 import com.android.tradefed.invoker.shard.token.TokenProperty;
599 assertEquals(TokenProperty.SIM_CARD, mModule.getRequiredTokens().iterator().next()); in testParseTokens()