Home
last modified time | relevance | path

Searched refs:getInstance (Results 1 – 25 of 93) sorted by relevance

1234

/tools/apksig/src/apksigner/java/com/android/apksigner/
DSignerParams.java201 ks = KeyStore.getInstance(ksType, keystoreProviderName); in loadPrivateKeyAndCertsFromKeyStore()
220 ks = KeyStore.getInstance(ksType, ksProvider); in loadPrivateKeyAndCertsFromKeyStore()
223 ks = KeyStore.getInstance(ksType); in loadPrivateKeyAndCertsFromKeyStore()
449 SecretKeyFactory.getInstance(encryptedPrivateKeyInfo.getAlgName()); in decryptPkcs8EncodedKey()
475 return KeyFactory.getInstance("RSA").generatePrivate(spec); in loadPkcs8EncodedPrivateKey()
479 return KeyFactory.getInstance("EC").generatePrivate(spec); in loadPkcs8EncodedPrivateKey()
483 return KeyFactory.getInstance("DSA").generatePrivate(spec); in loadPkcs8EncodedPrivateKey()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGoogleApiClientUtilTest.java74 GlobalConfiguration.getInstance(); in setUpBeforeClass()
87 GlobalConfiguration.getInstance() in setUp()
97 GlobalConfiguration.getInstance() in tearDown()
116 new OptionSetter(GlobalConfiguration.getInstance().getHostOptions()); in testCreateCredential_useHostOptions()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DDosUtils.java42 final Calendar cal = Calendar.getInstance(); in decodeDateTime()
63 Calendar cal = Calendar.getInstance(); in encodeTime()
76 Calendar cal = Calendar.getInstance(); in encodeDate()
/tools/tradefederation/core/src/com/android/tradefed/util/
DGoogleApiClientUtil.java49 private static GoogleApiClientUtil getInstance() { in getInstance() method in GoogleApiClientUtil
68 return getInstance().doCreateCredentialFromJsonKeyFile(file, scopes); in createCredentialFromJsonKeyFile()
103 return getInstance() in createCredential()
122 GlobalConfiguration.getInstance() in doCreateCredential()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestSuiteInfoTest.java38 TestSuiteInfo instance = TestSuiteInfo.getInstance(); in testDefaultValues()
67 TestSuiteInfo instance = TestSuiteInfo.getInstance(); in testLoadConfig()
93 TestSuiteInfo instance = TestSuiteInfo.getInstance(); in testLoadConfig_multiArch()
DITestSuiteIntegrationTest.java194 ConfigurationFactory.getInstance() in loadTests()
490 ConfigurationFactory.getInstance() in testRun_sharding_firstModuleRunsAll()
530 ConfigurationFactory.getInstance() in testRun_sharding_parallelRun()
576 ConfigurationFactory.getInstance() in testRun_sharding_withIndex()
655 ConfigurationFactory.getInstance() in helperTestShardIndex()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandRunner.java53 GlobalConfiguration.getInstance().setup(); in initGlobalConfig()
59 return GlobalConfiguration.getInstance().getCommandScheduler(); in getCommandScheduler()
117 GlobalConfiguration.getInstance().cleanup(); in run()
DConsole.java1040 GlobalConfiguration.getInstance().cleanup(); in run()
1065 return ConfigurationFactory.getInstance(); in getConfigurationFactory()
1153 GlobalConfiguration.getInstance().setup(); in startConsole()
1155 console.setCommandScheduler(GlobalConfiguration.getInstance().getCommandScheduler()); in startConsole()
1156 console.setKeyStoreFactory(GlobalConfiguration.getInstance().getKeyStoreFactory()); in startConsole()
1159 GlobalConfiguration.getInstance().getCommandScheduler().setClearcutClient(client); in startConsole()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiBasedCodebase.kt180 val psiPackage = JavaPsiFacade.getInstance(project).findPackage(pkgName) in <lambda>()
240 val psiPackage = JavaPsiFacade.getInstance(project).findPackage(pkgName) ?: continue in <lambda>()
291 val facade = JavaPsiFacade.getInstance(project) in <lambda>()
351 val psiPackage = JavaPsiFacade.getInstance(project).findPackage(pkgName) in <lambda>()
475 val psiPackage = JavaPsiFacade.getInstance(project).findPackage(pkgName) in <lambda>()
519 val finder = JavaPsiFacade.getInstance(project) in <lambda>()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DResources.java109 keyFactory = KeyFactory.getInstance("rsa"); in toPrivateKey()
112 keyFactory = KeyFactory.getInstance("dsa"); in toPrivateKey()
115 keyFactory = KeyFactory.getInstance("ec"); in toPrivateKey()
/tools/tradefederation/core/src/com/android/tradefed/config/
DGlobalConfiguration.java115 public static IGlobalConfiguration getInstance() { in getInstance() method in GlobalConfiguration
161 IConfigurationFactory configFactory = ConfigurationFactory.getInstance(); in createGlobalConfiguration()
170 GCSConfigurationFactory.getInstance(globalConfigServer); in createGlobalConfiguration()
248 IConfigurationFactory configFactory = ConfigurationFactory.getInstance(); in createGlobalConfigServer()
814 return ConfigurationFactory.getInstance(); in getConfigurationFactory()
DSandboxConfigurationFactory.java61 public static SandboxConfigurationFactory getInstance() { in getInstance() method in SandboxConfigurationFactory
163 IKeyStoreFactory f = GlobalConfiguration.getInstance().getKeyStoreFactory(); in getKeyStoreClient()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/
DMsDosDateTimeUtilsTest.java27 Calendar c = Calendar.getInstance(); in packDate()
50 Calendar c = Calendar.getInstance(); in packTime()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DMsDosDateTimeUtils.java40 Calendar c = Calendar.getInstance(); in packTime()
74 Calendar c = Calendar.getInstance(); in packDate()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/companion/
DCompanionRunCommandTargetPreparer.java38 ITestDevice companion = CompanionDeviceTracker.getInstance().getCompanionDevice(device); in setUp()
53 ITestDevice companion = CompanionDeviceTracker.getInstance().getCompanionDevice(device); in tearDown()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DSignatureTestUtils.java93 generator = KeyPairGenerator.getInstance(sign); in generateSignature()
114 publicKeyInfo = SubjectPublicKeyInfo.getInstance(keyPair.getPublic().getEncoded()); in generateSignature()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DRunConfigDeviceRecovery.java145 return GlobalConfiguration.getInstance().getDeviceManager(); in getDeviceManager()
151 return GlobalConfiguration.getInstance().getCommandScheduler(); in getCommandScheduler()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java200 certFactory = CertificateFactory.getInstance("X.509"); in parseSigners()
310 KeyFactory.getInstance(keyAlgorithm).generatePublic( in parseSigner()
317 Signature sig = Signature.getInstance(jcaSignatureAlgorithm); in parseSigner()
/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java186 Signature s = Signature.getInstance("SHA1withDSA"); in testV1OneSignerSHA1withDSAAcceptedWithKeysTooLongForDigest()
220 Signature s = Signature.getInstance("SHA224withDSA"); in testV1OneSignerSHA224withDSAAcceptedWithKeysTooLongForDigest()
675 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in testV1SchemeSignatureCertNotReencoded()
1199 return MessageDigest.getInstance("SHA-256").digest(msg); in sha256()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java89 return ConfigurationFactory.getInstance() in setUp()
323 ConfigurationFactory.getInstance() in testClone_withKeystore()
389 ConfigurationFactory.getInstance() in testClone_withKeystore_loadingFails()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DNoisyDryRunTest.java156 ConfigurationFactory.getInstance() in testCommandLines()
181 SandboxConfigurationFactory.getInstance() in testSandboxCommand()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java249 certFactory = CertificateFactory.getInstance("X.509"); in parseSigners()
357 KeyFactory.getInstance(keyAlgorithm).generatePublic( in parseSigner()
364 Signature sig = Signature.getInstance(jcaSignatureAlgorithm); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java475 mds[i] = MessageDigest.getInstance(jcaAlgorithm); in computeOneMbChunkContentDigests()
587 return MessageDigest.getInstance(algorithm.getJcaMessageDigestAlgorithm()); in createMessageDigest()
782 KeyFactory.getInstance(publicKey.getAlgorithm()) in encodePublicKey()
1147 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignaturesOverData()
1161 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignaturesOverData()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java173 return MessageDigest.getInstance(jcaAlgorithm); in getMessageDigestInstance()
514 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignatureBlock()
526 Signature signature = Signature.getInstance(jcaSignatureAlgorithm); in generateSignatureBlock()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardHelper.java193 return GlobalConfiguration.getInstance(); in getGlobalConfiguration()
217 ConfigurationFactory.getInstance() in cloneConfigObject()

1234