Home
last modified time | relevance | path

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

123

/system/libvintf/test/
DAssembleVintfTest.cpp50 getInstance()->setFakeEnv("PRODUCT_ENFORCE_VINTF_MANIFEST", "true"); in SetUp()
54 const std::unique_ptr<AssembleVintf>& getInstance() { return mInstance; } in getInstance() function in android::vintf::AssembleVintfTest
63 getInstance()->setFakeEnv(pair.first, pair.second); in setFakeEnvs()
68 getInstance()->setFakeAidlMetadata(metadata); in setFakeAidlMetadata()
71 void setFakeAidlUseUnfrozen(bool use) { getInstance()->setFakeAidlUseUnfrozen(use); } in setFakeAidlUseUnfrozen()
74 getInstance()->addInputStream(name, makeStream(s)); in addInput()
102 getInstance()->addKernelConfigInputStream({3, 18, 0}, "android-base.config", in TEST_F()
104 getInstance()->addKernelConfigInputStream({3, 18, 0}, "android-base-arm64.config", in TEST_F()
106getInstance()->addKernelConfigInputStream({4, 4, 0}, "android-base.config", makeStream(kernel44)); in TEST_F()
107 getInstance()->addKernelConfigInputStream({4, 4, 0}, "android-base-arm64.config", in TEST_F()
[all …]
/system/nfc/src/adaptation/
Dnfc_config.cc83 NfcConfig& NfcConfig::getInstance() { in getInstance() function in NfcConfig
92 return getInstance().config_.hasKey(key); in hasKey()
96 return getInstance().config_.getString(key); in getString()
106 return getInstance().config_.getUnsigned(key); in getUnsigned()
116 return getInstance().config_.getBytes(key); in getBytes()
119 void NfcConfig::clear() { getInstance().config_.clear(); } in clear()
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test_server.cpp34 auto lazyRegistrar = android::hardware::LazyServiceRegistrar::getInstance(); in setCustomActiveServicesCallback()
64 CHECK(OK == LazyServiceRegistrar::getInstance().registerService(new Lazy, "default1")); in main()
65 CHECK(OK == LazyServiceRegistrar::getInstance().registerService(new Lazy, "default2")); in main()
Dhidl_lazy_cb_test_server.cpp44 auto lazyRegistrar = android::hardware::LazyServiceRegistrar::getInstance(); in setCustomActiveServicesCallback()
90 CHECK(OK == LazyServiceRegistrar::getInstance().registerService(service, "default")); in main()
/system/extras/verity/
DUtils.java150 SecretKeyFactory skFactory = SecretKeyFactory.getInstance(epkInfo.getAlgName()); in decryptPrivateKey()
154 Cipher cipher = Cipher.getInstance(epkInfo.getAlgName()); in decryptPrivateKey()
173 PrivateKeyInfo pki = PrivateKeyInfo.getInstance(bIn.readObject()); in loadDERPrivateKey()
176 return KeyFactory.getInstance(algOid).generatePrivate(spec); in loadDERPrivateKey()
194 KeyFactory factory = KeyFactory.getInstance("RSA"); in loadDERPublicKey()
201 KeyFactory factory = KeyFactory.getInstance("RSA"); in loadPEMPublicKey()
215 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in loadPEMCertificate()
223 KeyFactory factory = KeyFactory.getInstance("EC"); in getSignatureAlgorithm()
267 Signature verifier = Signature.getInstance(algName); in verify()
275 Signature signer = Signature.getInstance(getSignatureAlgorithm(privateKey)); in sign()
/system/extras/simpleperf/scripts/
Dsimpleperf_report_lib.py330 cond: bool = self._SetLogSeverityFunc(self.getInstance(), _char_pt(log_level))
335 cond: bool = self._SetSymfsFunc(self.getInstance(), _char_pt(symfs_dir))
340 cond: bool = self._SetRecordFileFunc(self.getInstance(), _char_pt(record_file))
344 self._ShowIpForUnknownSymbolFunc(self.getInstance())
348 self._ShowArtFramesFunc(self.getInstance(), show)
352 res = self._RemoveMethodFunc(self.getInstance(), _char_pt(method_name_regex))
364 self._MergeJavaMethodsFunc(self.getInstance(), merge)
368 if not self._AddProguardMappingFileFunc(self.getInstance(), _char_pt(str(mapping_file))):
373 cond: bool = self._SetKallsymsFileFunc(self.getInstance(), _char_pt(kallsym_file))
386 modes_str = self._GetSupportedTraceOffCpuModesFunc(self.getInstance())
[all …]
/system/core/libutils/
DSingleton_test2.cpp27 SingletonTestData::getInstance().contents = contents; in singletonSetInstanceContents()
31 return SingletonTestData::getInstance().contents; in singletonGetInstanceContents()
DSingleton_test1.cpp28 SingletonTestData::getInstance().contents = contents; in singletonSetInstanceContents()
32 return SingletonTestData::getInstance().contents; in singletonGetInstanceContents()
/system/libhidl/transport/allocator/1.0/utils/
DFrameworkUtils.cpp29 return HidlMemory::getInstance(hidl_memory()); in fromHeap()
35 return HidlMemory::getInstance("ashmem", fd, heap->getSize()); in fromHeap()
/system/libvintf/
DMatrixInstance.cpp76 interface() == provided.getInterface() && matchInstance(provided.getInstance()); in isSatisfiedBy()
92 return isRegex() ? mFqInstance.getInstance() : kEmptyString; in regexPattern()
97 return isRegex() ? kEmptyString : mFqInstance.getInstance(); in exactInstance()
DManifestHal.cpp152 it->instance() == e.getInstance()) { in insertInstance()
172 e.getInstance())) { in insertInstance()
176 e.getInterface() + "', instance='" + e.getInstance() + "'"; in insertInstance()
DManifestInstance.cpp71 return mFqInstance.getInstance(); in instance()
167 getFqInstance().getInterface(), getFqInstance().getInstance())); in withVersion()
/system/tools/aidl/tests/lazy_test/
Dserver.cpp45 auto lazyRegistrar = LazyServiceRegistrar::getInstance(); in setupDoubleLazyServer()
51 auto lazyRegistrar = LazyServiceRegistrar::getInstance(); in setupQuitterServer()
DLazyTestService.cpp24 auto lazyRegistrar = LazyServiceRegistrar::getInstance(); in forcePersist()
DServerCb.cpp39 auto lazyRegistrar = LazyServiceRegistrar::getInstance(); in main()
DLazyTestServiceCb.cpp26 auto lazyRegistrar = LazyServiceRegistrar::getInstance(); in setCustomActiveServicesCallback()
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/
DZoneInfoTest.java42 TimeZoneNames timeZoneNames = TimeZoneNames.getInstance(ULocale.ENGLISH); in testCreate()
77 TimeZoneNames timeZoneNames = TimeZoneNames.getInstance(ULocale.ENGLISH); in testCreateKey()
103 TimeZoneNames timeZoneNames = TimeZoneNames.getInstance(ULocale.ENGLISH); in testSplit()
DZoneOffsetPeriodTest.java35 TimeZoneNames timeZoneNames = TimeZoneNames.getInstance(ULocale.ENGLISH); in testEqualPeriods_withDstTransitions()
103 TimeZoneNames timeZoneNames = TimeZoneNames.getInstance(ULocale.ENGLISH); in testEqualPeriods_withoutDstTransitions()
142 TimeZoneNames timeZoneNames = TimeZoneNames.getInstance(ULocale.ENGLISH); in testSplitAtTime()
/system/core/libstats/bootstrap/
DStatsBootstrapAtomClient.cpp28 BootstrapClientInternal::getInstance()->getServiceNonBlocking(); in reportBootstrapAtom()
DBootstrapClientInternal.h27 static sp<BootstrapClientInternal> getInstance();
DBootstrapClientInternal.cpp25 sp<BootstrapClientInternal> BootstrapClientInternal::getInstance() { in getInstance() function in android::os::stats::BootstrapClientInternal
/system/tools/hidl/test/utils_test/
Dmain.cpp116 EXPECT_EQ("instance", e.getInstance()); in TEST()
129 EXPECT_EQ("instance", e.getInstance()); in TEST()
141 EXPECT_EQ("instance", e.getInstance()); in TEST()
/system/libhidl/transport/include/hidl/
DHidlLazyUtils.h43 static LazyServiceRegistrar& getInstance();
/system/libhidl/base/
DHidlSupport.cpp289 sp<HidlMemory> HidlMemory::getInstance(const hidl_memory& mem) { in getInstance() function in android::hardware::HidlMemory
295 sp<HidlMemory> HidlMemory::getInstance(hidl_memory&& mem) { in getInstance() function in android::hardware::HidlMemory
301 sp<HidlMemory> HidlMemory::getInstance(const hidl_string& name, int fd, uint64_t size) { in getInstance() function in android::hardware::HidlMemory
/system/security/identity/util/src/java/com/android/security/identity/internal/
DUtil.java277 DecimalFormatSymbols.getInstance(Locale.ENGLISH)); in cborPrettyPrintDataItem()
282 DecimalFormatSymbols.getInstance(Locale.ENGLISH)); in cborPrettyPrintDataItem()
448 Signature s = Signature.getInstance("SHA256withECDSA"); in coseSign1Sign()
541 Signature verifier = Signature.getInstance("SHA256withECDSA"); in coseSign1CheckSignature()
622 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in coseSign1GetX5Chain()
689 Mac m = Mac.getInstance("HmacSHA256"); in coseMac0()
841 ks = KeyStore.getInstance("AndroidKeyStore"); in signPublicKeyWithPrivateKey()
862 Signature s = Signature.getInstance("SHA256withECDSA"); in signPublicKeyWithPrivateKey()
922 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in signPublicKeyWithPrivateKey()
1011 KeyAgreement ka = KeyAgreement.getInstance("ECDH"); in calcEMacKeyForReader()
[all …]

123