Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 105) sorted by relevance

12345

/system/core/libutils/include/utils/
DSingleton.h53 TYPE* instance = sInstance; in getInstance() local
54 if (instance == nullptr) { in getInstance()
55 instance = new TYPE(); in getInstance()
56 sInstance = instance; in getInstance()
58 return *instance; in getInstance()
/system/tools/xsdc/tests/src/com/android/xsdc/tests/
DXmlParserTest.java49 Object instance; in testPurchaseSimple() local
52 instance = xmlParser.getMethod("read", InputStream.class).invoke(null, in); in testPurchaseSimple()
54 Object billTo = purchaseOrderType.getMethod("getBillTo").invoke(instance); in testPurchaseSimple()
55 List shipToList = (List) purchaseOrderType.getMethod("getShipTo").invoke(instance); in testPurchaseSimple()
62 "getOrderDate").invoke(instance); in testPurchaseSimple()
86 Object instance; in testNestedType() local
89 instance = xmlParser.getMethod("read", InputStream.class).invoke(null, in); in testNestedType()
92 String name = (String) employee.getMethod("getName").invoke(instance); in testNestedType()
93 Object addressInstance = employee.getMethod("getAddress").invoke(instance); in testNestedType()
116 Object instance; in testSimpleComplexContent() local
[all …]
/system/nvram/core/tests/
Dgtest_stubs.cpp29 TestInstanceBase* instance = decl->create_function(); in RunAllTests() local
32 instance->Run(); in RunAllTests()
36 delete instance; in RunAllTests()
53 testing::detail::TestRegistry::instance()->RunAllTests(); in main()
/system/libvintf/
DHalInterface.cpp33 for (const auto& instance : mInstances) { in forEachInstance() local
34 if (!func(mName, instance, false /* isRegex */)) { in forEachInstance()
38 for (const auto& instance : mRegexes) { in forEachInstance() local
39 if (!func(mName, instance, true /* isRegex */)) { in forEachInstance()
DMatrixHal.cpp59 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
62 if (fqInstance.setTo(getName(), vr.majorVer, vr.minMinor, interface, instance)) { in forEachInstance()
82 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
83 return func(this->versionRanges, interface, instance, isRegex); in forEachInstance()
147 void MatrixHal::insertInstance(const std::string& interface, const std::string& instance, in insertInstance() argument
152 it->second.insertInstance(instance, isRegex); in insertInstance()
164 bool MatrixHal::removeInstance(const std::string& interface, const std::string& instance, in removeInstance() argument
168 bool removed = it->second.removeInstance(instance, isRegex); in removeInstance()
Dparse_string.cpp484 const std::string& interface, const std::string& instance) { in toFQNameString() argument
489 if (!instance.empty()) { in toFQNameString()
490 ss << "/" << instance; in toFQNameString()
497 const std::string& interface, const std::string& instance) { in toFQNameString() argument
498 return toFQNameString(package, to_string(version), interface, instance); in toFQNameString()
502 const std::string& instance) { in toFQNameString() argument
503 return toFQNameString("", version, interface, instance); in toFQNameString()
509 const std::string& interface, const std::string& instance) { in toFQNameString() argument
510 return toFQNameString(package, to_string(range), interface, instance); in toFQNameString()
514 const std::string& instance) { in toFQNameString() argument
[all …]
DManifestHal.cpp54 bool cont = intf.forEachInstance([&](const auto& interface, const auto& instance, in forEachInstance()
58 if (fqInstance.setTo(getName(), v.majorVer, v.minorVer, interface, instance)) { in forEachInstance()
139 it->instance() == e.getInstance()) { in insertInstance()
/system/extras/perfprofd/scripts/
Dperf_config_proto.py62 instance = globals()[msg_descriptor.name]()
135 getattr(instance, field.name).extend([set_val])
137 setattr(instance, field.name, set_val)
141 return (instance, False)
152 getattr(instance, field.name).extend([sub_msg])
155 getattr(instance, field.name).CopyFrom(sub_msg)
159 return (instance, False)
161 return (instance, True)
/system/tools/hidl/utils/
DFqInstance.cpp99 const std::string& interface, const std::string& instance) { in setTo() argument
101 mInstance = instance; in setTo()
106 const std::string& instance) { in setTo() argument
107 return setTo("", majorVer, minorVer, interface, instance); in setTo()
110 bool FqInstance::setTo(const std::string& interface, const std::string& instance) { in setTo() argument
111 return setTo(0u, 0u, interface, instance); in setTo()
/system/bt/bta/hearing_aid/
Dhearing_aid.cc111 HearingAidImpl* instance; variable
274 instance->gatt_if = client_id; in HearingAidImpl()
890 if (instance) in OnReadOnlyPropertiesReadStatic()
891 instance->OnReadOnlyPropertiesRead(conn_id, status, handle, len, value, in OnReadOnlyPropertiesReadStatic()
897 if (instance) in OnAudioStatusStatic()
898 instance->OnAudioStatus(conn_id, status, handle, len, value, data); in OnAudioStatusStatic()
904 if (instance) in OnPsmReadStatic()
905 instance->OnPsmRead(conn_id, status, handle, len, value, data); in OnPsmReadStatic()
1366 if (instance) instance->GapCallback(gap_handle, event, data); in GapCallbackStatic()
1640 if ((instance) && (p_result->status == BTM_SUCCESS)) { in read_rssi_cb()
[all …]
/system/libhidl/transport/allocator/1.0/vts/functional/
DVtsHidlAllocatorV1_0TargetTest.cpp39 static AllocatorEnvironment* instance() { in instance() function in AllocatorEnvironment
40 static AllocatorEnvironment* instance = new AllocatorEnvironment(); in instance() local
41 return instance; in instance()
48 allocator = getService<IAllocator>(AllocatorEnvironment::instance()); in SetUp()
135 ::testing::AddGlobalTestEnvironment(AllocatorEnvironment::instance()); in main()
137 AllocatorEnvironment::instance()->init(&argc, argv); in main()
/system/libhidl/base/
DHidlSupport.cpp287 sp<HidlMemory> instance = new HidlMemory(); in getInstance() local
288 instance->hidl_memory::operator=(mem); in getInstance()
289 return instance; in getInstance()
293 sp<HidlMemory> instance = new HidlMemory(); in getInstance() local
294 instance->hidl_memory::operator=(std::move(mem)); in getInstance()
295 return instance; in getInstance()
310 sp<HidlMemory> instance = new HidlMemory(name, std::move(hidlHandle), size); in getInstance() local
311 return instance; in getInstance()
/system/bt/service/ipc/binder/
Dinterface_with_instances_base.cc51 std::unique_ptr<bluetooth::BluetoothInstance> instance) { in RegisterInstanceBase() argument
62 std::move(instance)); in RegisterInstanceBase()
114 std::unique_ptr<bluetooth::BluetoothInstance> instance) { in OnRegisterInstance() argument
137 int instance_id = instance->GetInstanceId(); in OnRegisterInstance()
147 std::shared_ptr<bluetooth::BluetoothInstance>(instance.release()); in OnRegisterInstance()
Dbluetooth_gatt_client_binder_server.cc77 bluetooth::BluetoothInstance* instance) { in OnRegisterInstanceImpl() argument
78 VLOG(1) << __func__ << " client ID: " << instance->GetInstanceId() in OnRegisterInstanceImpl()
84 ? instance->GetInstanceId() in OnRegisterInstanceImpl()
Dinterface_with_instances_base.h80 std::unique_ptr<bluetooth::BluetoothInstance> instance);
87 bluetooth::BluetoothInstance* instance) = 0;
Dbluetooth_le_scanner_binder_server.cc134 bluetooth::BluetoothInstance* instance) { in OnRegisterInstanceImpl() argument
137 static_cast<bluetooth::LowEnergyScanner*>(instance); in OnRegisterInstanceImpl()
143 ? instance->GetInstanceId() in OnRegisterInstanceImpl()
/system/tools/hidl/utils/include/hidl-util/
DFqInstance.h81 const std::string& instance = "");
87 const std::string& instance = "");
91 const std::string& instance);
/system/bt/common/
Daddress_obfuscator.h35 static auto instance = new AddressObfuscator(); in GetInstance() local
36 return instance; in GetInstance()
/system/netd/resolv/
DResolverEventReporter.cpp27 static ResolverEventReporter instance; in getInstance() local
32 instance.addDefaultListener(); in getInstance()
34 return instance; in getInstance()
DDnsResolver.cpp56 static DnsResolver instance; in getInstance() local
57 return &instance; in getInstance()
/system/core/libmeminfo/include/meminfo/
Dpageacct.h46 static PageAcct instance; in Instance() local
47 return instance; in Instance()
/system/libhidl/transport/manager/1.0/
DIServiceManager.hal36 * Fully-qualified instance name: "android.hidl.manager@1.0::IServiceManager/manager"
59 * Each interface must have its own namespace for instance names. If you
95 * @return fqInstanceNames List of fully-qualified instance names.
104 * @return instanceNames List of instance names running the particular service.
113 * version provided in the fqName. For instance, if a client registers for
150 * Similar to list, but contains more information for each instance.
152 * instance.
/system/keymaster/include/keymaster/
Dauthorization_set.h269 bool GetTagValue(TypedTag<KM_UINT_REP, Tag> tag, size_t instance, uint32_t* val) const { in GetTagValue() argument
270 return GetTagValueIntRep(tag, instance, val); in GetTagValue()
288 bool GetTagValue(TypedTag<KM_ULONG_REP, Tag> tag, size_t instance, uint64_t* val) const { in GetTagValue() argument
289 return GetTagValueLongRep(tag, instance, val); in GetTagValue()
307 bool GetTagValue(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, size_t instance, T* val) const { in GetTagValue() argument
308 return GetTagValueEnumRep(tag, instance, reinterpret_cast<uint32_t*>(val)); in GetTagValue()
328 bool GetTagValue(TypedTag<KM_UINT_REP, Tag> tag, size_t instance, in GetTagValue() argument
330 return GetTagValueIntRep(tag, instance, val); in GetTagValue()
456 bool GetTagValueEnumRep(keymaster_tag_t tag, size_t instance, uint32_t* val) const;
458 bool GetTagValueIntRep(keymaster_tag_t tag, size_t instance, uint32_t* val) const;
[all …]
/system/libvintf/include/vintf/
DMatrixHal.h74 void insertInstance(const std::string& interface, const std::string& instance, bool isRegex);
76 bool removeInstance(const std::string& interface, const std::string& instance, bool isRegex);
/system/tools/hidl/scripts/
Drun-tests.sh56 for instance in ${instances} ; do
57 … run adb shell ${test_file} --hal_service_instance="${interface}/${instance}" || status=$?

12345