/system/nvram/core/tests/ |
H A D | gtest_stubs.cpp | 29 TestInstanceBase* instance = decl->create_function(); local 32 instance->Run(); 36 delete instance; 53 testing::detail::TestRegistry::instance()->RunAllTests();
|
H A D | gtest_stubs.h | 64 // Test-specific subclass that holds an instance of the test. 88 static TestRegistry* instance() { return &g_instance; } function in class:testing::detail::TestRegistry 103 TestRegistry::instance()->Register(this);
|
/system/libvintf/ |
H A D | HalInterface.cpp | 33 for (const auto& instance : mInstances) { 34 if (!func(mName, instance, false /* isRegex */)) { 38 for (const auto& instance : mRegexes) { 39 if (!func(mName, instance, true /* isRegex */)) {
|
H A D | MatrixHal.cpp | 59 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { 62 if (fqInstance.setTo(getName(), vr.majorVer, vr.minMinor, interface, instance)) { 82 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { 83 return func(this->versionRanges, interface, instance, isRegex); 105 // Look at each interface/instance, and ensure that they are in providedInstances. 115 return !versionUnsatisfied; // if any interface/instance is unsatisfied, break 147 void MatrixHal::insertInstance(const std::string& interface, const std::string& instance, argument 152 it->second.insertInstance(instance, isRegex); 164 bool MatrixHal::removeInstance(const std::string& interface, const std::string& instance, argument 168 bool removed = it->second.removeInstance(instance, isRege [all...] |
H A D | ManifestHal.cpp | 54 bool cont = intf.forEachInstance([&](const auto& interface, const auto& instance, 58 if (fqInstance.setTo(getName(), v.majorVer, v.minorVer, interface, instance)) { 86 return false; // has at least one instance, stop here. 114 if (error) *error = "Should specify instance: \"" + fqInstance.string() + "\""; 133 e.getInterface() + "', instance='" + e.getInstance() + "'"; 143 void ManifestHal::insertLegacyInstance(const std::string& interface, const std::string& instance) { argument 147 it->second.insertInstance(instance, false /* isRegex */);
|
H A D | ManifestInstance.cpp | 57 const std::string& ManifestInstance::instance() const { function in class:android::vintf::ManifestInstance 91 bool success = e.setTo(version().majorVer, version().minorVer, interface(), instance());
|
/system/core/include/utils/ |
H A D | Singleton.h | 42 // DO NOT USE: Please use scoped static initialization. For instance: 53 TYPE* instance = sInstance; local 54 if (instance == 0) { 55 instance = new TYPE(); 56 sInstance = instance; 58 return *instance; 83 * (eg: <TYPE>.cpp) to create the static instance of Singleton<>'s attributes,
|
/system/core/libutils/include/utils/ |
H A D | Singleton.h | 42 // DO NOT USE: Please use scoped static initialization. For instance: 53 TYPE* instance = sInstance; local 54 if (instance == 0) { 55 instance = new TYPE(); 56 sInstance = instance; 58 return *instance; 83 * (eg: <TYPE>.cpp) to create the static instance of Singleton<>'s attributes,
|
/system/tools/hidl/utils/ |
H A D | FqInstance.cpp | 90 // Other cases are covered by FQName::setTo, but instance name should be empty. 95 const std::string& interface, const std::string& instance) { 98 << instance; local 103 const std::string& instance) { 104 return setTo("", majorVer, minorVer, interface, instance); 107 bool FqInstance::setTo(const std::string& interface, const std::string& instance) { argument 108 return setTo(interface + INSTANCE_SEP + instance); 94 setTo(const std::string& package, size_t majorVer, size_t minorVer, const std::string& interface, const std::string& instance) argument 102 setTo(size_t majorVer, size_t minorVer, const std::string& interface, const std::string& instance) argument
|
/system/bt/service/ipc/binder/ |
H A D | bluetooth_gatt_client_binder_server.cc | 77 bluetooth::BluetoothInstance* instance) { 78 VLOG(1) << __func__ << " client ID: " << instance->GetInstanceId() 84 ? instance->GetInstanceId() 75 OnRegisterInstanceImpl( bluetooth::BLEStatus status, android::sp<IInterface> callback, bluetooth::BluetoothInstance* instance) argument
|
H A D | interface_with_instances_base.cc | 51 std::unique_ptr<bluetooth::BluetoothInstance> instance) { 56 VLOG(2) << "InterfaceWithInstancesBase was deleted while instance was" 62 std::move(instance)); 67 LOG(ERROR) << "Failed to register instance"; 104 std::unique_ptr<bluetooth::BluetoothInstance> instance) { 115 << "returned; unregistering instance"; 121 LOG(ERROR) << "Failed to register instance: " << status; 127 int instance_id = instance->GetInstanceId(); 137 std::shared_ptr<bluetooth::BluetoothInstance>(instance.release()); 102 OnRegisterInstance( bluetooth::BLEStatus status, const bluetooth::Uuid& uuid, std::unique_ptr<bluetooth::BluetoothInstance> instance) argument
|
H A D | interface_with_instances_base.h | 32 // servers that involve instance callback Binders registered with an integer 33 // instance ID over an asynchronous lower-level stack API. This class abstracts 46 // The initial entry point for registering a instance. Invoke this from the 47 // registration API to add a instance/Uuid pair to the pending list and set up 49 // given |factory| instance. Returns false, if there were any errors that 54 // Unregister the instance with the given ID, if it was registered before. 65 // instance ID |instance_id|. The returned pointer will contain NULL if an 69 // Returns the instance instance that is assigned to the given instance I [all...] |
H A D | bluetooth_le_scanner_binder_server.cc | 134 bluetooth::BluetoothInstance* instance) { 137 static_cast<bluetooth::LowEnergyScanner*>(instance); 143 ? instance->GetInstanceId() 132 OnRegisterInstanceImpl( bluetooth::BLEStatus status, android::sp<IInterface> callback, bluetooth::BluetoothInstance* instance) argument
|
H A D | bluetooth_low_energy_binder_server.cc | 167 bluetooth::BluetoothInstance* instance) { 170 static_cast<bluetooth::LowEnergyClient*>(instance); 176 ? instance->GetInstanceId() 165 OnRegisterInstanceImpl( bluetooth::BLEStatus status, android::sp<IInterface> callback, bluetooth::BluetoothInstance* instance) argument
|
/system/tools/hidl/utils/include/hidl-util/ |
H A D | FqInstance.h | 28 // A wrapper around FQName to include instance name as well. 52 // android.hardware.foo@1.0::IFoo/instance 53 // @1.0::IFoo/instance 54 // IFoo/instance 64 // If no "/instance", hasInstance() will return false afterwards. 74 const std::string& instance); 77 const std::string& instance); 79 const std::string& instance);
|
/system/bt/bta/hearing_aid/ |
H A D | hearing_aid.cc | 108 HearingAidImpl* instance; member in namespace:__anon148 266 instance->gatt_if = client_id; 611 if (instance) 612 instance->OnReadOnlyPropertiesRead(conn_id, status, handle, len, value, 618 if (instance) 619 instance->OnAudioStatus(conn_id, status, handle, len, value, data); 625 if (instance) 626 instance->OnPsmRead(conn_id, status, handle, len, value, data); 971 if (instance) instance [all...] |
/system/bt/service/ |
H A D | bluetooth_instance.h | 29 // A BluetoothInstance represents an application's handle to an instance 36 // Returns the app-specific unique ID used while registering this instance. 39 // Returns the HAL "interface ID" assigned to this instance by the stack. 52 // classes that handle asynchronously registering a per-application instance of 62 std::unique_ptr<BluetoothInstance> instance)>; 64 // Registers an instance for the given unique identifier |app_uuid|.
|
/system/libhidl/base/ |
H A D | HidlSupport.cpp | 277 sp<HidlMemory> instance = new HidlMemory(); local 278 instance->hidl_memory::operator=(mem); 279 return instance; 283 sp<HidlMemory> instance = new HidlMemory(); local 284 instance->hidl_memory::operator=(std::move(mem)); 285 return instance; 300 sp<HidlMemory> instance = new HidlMemory(name, std::move(hidlHandle), size); local 301 return instance;
|
/system/libvintf/include/vintf/ |
H A D | ManifestInstance.h | 45 const std::string& instance() const; 54 // return package@version::interface/instance 56 // return @version::interface/instance
|
H A D | MatrixHal.h | 57 // Loop over interface/instance for a specific VersionRange. 60 // Loop over interface/instance. VersionRange is supplied to the function as a vector. 72 // Return size of all interface/instance pairs. 74 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/bt/osi/include/ |
H A D | metrics.h | 113 static BluetoothMetricsLogger* instance = new BluetoothMetricsLogger(); local 114 return instance;
|
/system/core/libcutils/ |
H A D | qtaguid.cpp | 90 static netdHandler instance = initHandler(); local 91 return instance;
|
/system/hardware/interfaces/net/netd/1.0/vts/functional/ |
H A D | VtsHalNetNetdV1_0TargetTest.cpp | 34 static NetdHidlEnvironment* instance = new NetdHidlEnvironment; local 35 return instance; 49 ASSERT_NE(netd, nullptr) << "Could not get HIDL instance";
|
/system/tools/hidl/scripts/ |
H A D | run-tests.sh | 56 for instance in ${instances} ; do 57 run adb shell ${test_file} --hal_service_instance="${interface}/${instance}" || status=$?
|
/system/core/init/ |
H A D | action_manager.cpp | 27 static ActionManager instance; local 28 return instance;
|