Home
last modified time | relevance | path

Searched refs:newInstance (Results 1 – 24 of 24) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSimplePerfUtilTest.java45 spu = SimplePerfUtil.newInstance(mockDevice, SimplePerfType.STAT); in testCommandStringPreparerWithoutParams()
52 spu = SimplePerfUtil.newInstance(mockDevice, SimplePerfType.RECORD); in testCommandStringPreparerWithParams()
66 spu = SimplePerfUtil.newInstance(mockDevice, SimplePerfType.LIST); in testCommandStringPreparerWithNullCommand()
73 spu = SimplePerfUtil.newInstance(null, SimplePerfType.STAT); in testConstructorWithNullParameter()
/tools/tradefederation/core/src/com/android/tradefed/util/xml/
DAndroidManifestWriter.java97 Transformer xformer = TransformerFactory.newInstance().newTransformer(); in saveXmlToFile()
119 DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); in parse()
DAbstractXmlParser.java56 SAXParserFactory parserFactory = SAXParserFactory.newInstance(); in parse()
/tools/tradefederation/core/src/com/android/tradefed/util/
DEmmaXmlReportParser.java64 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); in parseXmlFile()
68 XPathFactory xpFactory = XPathFactory.newInstance(); in parseXmlFile()
DSimplePerfUtil.java56 public static SimplePerfUtil newInstance(ITestDevice device, SimplePerfType type) in newInstance() method in SimplePerfUtil
DMetricsXmlParser.java152 SAXParserFactory parserFactory = SAXParserFactory.newInstance(); in parse()
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
DPackageManagerOTATestUtils.java164 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); in getNodeForXPath()
168 XPathFactory xpFactory = XPathFactory.newInstance(); in getNodeForXPath()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DScheduleMultipleDeviceMetricCollector.java93 klass.asSubclass(ScheduledDeviceMetricCollector.class).newInstance(); in initMetricCollectors()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleSplitter.java182 T clone = (T) prep.getClass().newInstance(); in clonePreparers()
DITestSuite.java255 return this.getClass().newInstance(); in createInstance()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java601 .newInstance(constructorParam); in installProvider()
604 provider = (Provider) providerClass.getConstructor().newInstance(); in installProvider()
697 .newInstance(keystoreProviderArg); in loadPrivateKeyAndCertsFromKeyStore()
700 ksProvider = (Provider) ksProviderClass.getConstructor().newInstance(); in loadPrivateKeyAndCertsFromKeyStore()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DGTestXmlResultParser.java90 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); in parseResult()
DHostTest.java738 URLClassLoader cl = URLClassLoader.newInstance(urls); in getClasses()
809 Object testObj = classObj.newInstance(); in loadObject()
1013 test = this.getClass().newInstance(); in createHostTest()
DAndroidJUnitTest.java442 shard = this.getClass().newInstance(); in getTestShard()
DCodeCoverageTestBase.java168 return clazz.asSubclass(ICompressionStrategy.class).newInstance(); in getCompressionStrategy()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java176 obj = containerClass.getConstructor().newInstance(); in parseChoice()
218 t = containerClass.getConstructor().newInstance(); in parseSequence()
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DGLBenchmarkTest.java216 DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); in parseResultXml()
DEmmcPerformanceTest.java367 mSpUtil = SimplePerfUtil.newInstance(mTestDevice, SimplePerfType.STAT); in setUp()
DMicroBenchTest.java375 mSpUtil = SimplePerfUtil.newInstance(mTestDevice, SimplePerfType.STAT); in run()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java177 serializer = XmlPullParserFactory.newInstance(TYPE, null).newSerializer(); in writeResults()
403 XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); in parseResults()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java269 XPath xpath = XPathFactory.newInstance().newXPath(); in getXmlNodes()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java346 SAXParserFactory parserFactory = SAXParserFactory.newInstance(); in parse()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java415 IMetricCollector clone = collector.getClass().newInstance(); in cloneCollectors()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraPerformanceTest.java441 XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); in parse()