Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
SandboxConfigurationFactory
public
class
SandboxConfigurationFactory
extends ConfigurationFactory
Special Configuration factory to handle creation of configurations for Sandboxing purpose.
TODO: Split the configuration dump part to another class
Summary
Fields
OPTION_IGNORED_ELEMENTS
public static final OPTION_IGNORED_ELEMENTS
Public constructors
SandboxConfigurationFactory
public SandboxConfigurationFactory ()
Public methods
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] args,
IKeyStoreClient keyStoreClient,
ISandbox sandbox,
IRunUtil runUtil)
Create a IConfiguration
based on the command line and sandbox provided.
Parameters |
args |
String : the command line for the run. |
keyStoreClient |
IKeyStoreClient : the IKeyStoreClient where to load the key from. |
sandbox |
ISandbox : the ISandbox used for the run. |
runUtil |
IRunUtil : the IRunUtil to run commands. |
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] args,
IKeyStoreClient keyStoreClient,
ISandbox sandbox,
IRunUtil runUtil,
File globalConfig,
boolean skipJavaCheck)
Create a IConfiguration
based on the command line and sandbox provided.
Parameters |
args |
String : the command line for the run. |
keyStoreClient |
IKeyStoreClient : the IKeyStoreClient where to load the key from. |
sandbox |
ISandbox : the ISandbox used for the run. |
runUtil |
IRunUtil : the IRunUtil to run commands. |
globalConfig |
File |
skipJavaCheck |
boolean |
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] arrayArgs,
SandboxConfigDump.DumpCmd command)
When running the dump for a command. Create a config with specific expectations.
Parameters |
arrayArgs |
String : the command line for the run. |
command |
SandboxConfigDump.DumpCmd : The dump command in progress |
Protected methods
getConfigurationDef
protected ConfigurationDef getConfigurationDef (String name,
boolean isGlobal,
templateMap)
Retrieve the ConfigurationDef
for the given name
Parameters |
name |
String : the name of a built-in configuration to load or a file path to configuration file
to load |
isGlobal |
boolean |
templateMap |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-06-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-06-06 UTC."],[],[]]