ITokenProvider
  public
  
  
  
  interface
  ITokenProvider
  
  
  
| com.android.tradefed.invoker.shard.token.ITokenProvider | 
Interface describing an object that can provide the tokens of a particular device. Each implementation can check one or several tokens.
A token is a special property present on the particular device.
Tokens are used during sharding to ensure tests requesting a particular tokens are run against the device providing the token.
Summary
Public methods | |
|---|---|
        abstract
        
        
        
        
        boolean
     | 
  
    
      
      hasToken(ITestDevice device, TokenProperty token)
      
      
        Query and return whether or not the device has a particular token.  | 
  
Public methods
hasToken
public abstract boolean hasToken (ITestDevice device, TokenProperty token)
Query and return whether or not the device has a particular token.
| Parameters | |
|---|---|
device | 
        
          ITestDevice: Device queried for its tokens. | 
      
token | 
        
          TokenProperty: The token to check | 
      
| Returns | |
|---|---|
boolean | 
        True if the device has the token, false otherwise. |