Home
last modified time | relevance | path

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

1234

/frameworks/native/services/inputflinger/host/
DInputDriver.cpp297 auto driver = static_cast<InputDriverInterface*>(host); in create_device_identifier() local
298 return driver->createDeviceIdentifier(name, product_id, vendor_id, bus, unique_id); in create_device_identifier()
302 auto driver = static_cast<InputDriverInterface*>(host); in create_device_definition() local
303 return driver->createDeviceDefinition(); in create_device_definition()
307 auto driver = static_cast<InputDriverInterface*>(host); in create_input_report_definition() local
308 return driver->createInputReportDefinition(); in create_input_report_definition()
312 auto driver = static_cast<InputDriverInterface*>(host); in create_output_report_definition() local
313 return driver->createOutputReportDefinition(); in create_output_report_definition()
317 auto driver = static_cast<InputDriverInterface*>(host); in free_report_definition() local
318 driver->freeReportDefinition(report_def); in free_report_definition()
[all …]
DInputHost.cpp29 void InputHost::registerInputDriver(InputDriverInterface* driver) { in registerInputDriver() argument
30 LOG_ALWAYS_FATAL_IF(driver == nullptr, "Cannot register a nullptr as an InputDriver!"); in registerInputDriver()
31 driver->init(); in registerInputDriver()
32 mDrivers.push_back(driver); in registerInputDriver()
DInputHost.h40 virtual void registerInputDriver(InputDriverInterface* driver) = 0;
49 virtual void registerInputDriver(InputDriverInterface* driver) override;
/frameworks/rs/
DAndroid.bp28 "driver/rsdAllocation.cpp",
29 "driver/rsdBcc.cpp",
30 "driver/rsdCore.cpp",
31 "driver/rsdElement.cpp",
32 "driver/rsdFrameBuffer.cpp",
33 "driver/rsdFrameBufferObj.cpp",
34 "driver/rsdGL.cpp",
35 "driver/rsdMesh.cpp",
36 "driver/rsdMeshObj.cpp",
37 "driver/rsdProgram.cpp",
[all …]
Dsupport.bp79 "driver/rsdAllocation.cpp",
80 "driver/rsdBcc.cpp",
81 "driver/rsdCore.cpp",
82 "driver/rsdElement.cpp",
83 "driver/rsdRuntimeStubs.cpp",
84 "driver/rsdSampler.cpp",
85 "driver/rsdScriptGroup.cpp",
86 "driver/rsdType.cpp",
/frameworks/native/vulkan/libvulkan/
Dcode-generator.tmpl70 const std::bitset<driver::ProcHook::EXTENSION_COUNT> &extensions);
74 const std::bitset<driver::ProcHook::EXTENSION_COUNT> &extensions);
124 const std::bitset<driver::ProcHook::EXTENSION_COUNT> &extensions) {
142 const std::bitset<driver::ProcHook::EXTENSION_COUNT> &extensions) {
225 namespace driver
227 {{Macro "driver.C++.DefineProcHookType"}}
232 {{if (Macro "driver.IsInstanceDriverTableEntry" $f)}}
242 {{if (Macro "driver.IsDeviceDriverTableEntry" $f)}}
257 »} // namespace driver
280 #include "driver.h"
[all …]
Ddebug_report.cpp20 namespace driver { namespace
122 const auto& driver = GetData(instance).driver; in CreateDebugReportCallbackEXT() local
124 if (driver.CreateDebugReportCallbackEXT) { in CreateDebugReportCallbackEXT()
125 VkResult result = driver.CreateDebugReportCallbackEXT( in CreateDebugReportCallbackEXT()
137 driver.DestroyDebugReportCallbackEXT(instance, driver_handle, in CreateDebugReportCallbackEXT()
163 GetData(instance).driver.DestroyDebugReportCallbackEXT( in DestroyDebugReportCallbackEXT()
176 if (GetData(instance).driver.DebugReportMessageEXT) { in DebugReportMessageEXT()
177 GetData(instance).driver.DebugReportMessageEXT( in DebugReportMessageEXT()
Dapi.h40 return driver::GetData(instance).opaque_api_data; in GetData()
44 return driver::GetData(physical_dev).opaque_api_data; in GetData()
48 return driver::GetData(dev).opaque_api_data; in GetData()
52 return driver::GetData(queue).opaque_api_data; in GetData()
56 return driver::GetData(cmd).opaque_api_data; in GetData()
Ddriver.cpp70 namespace driver { namespace
459 const auto& driver = GetData(physical_dev_).driver; in QueryExtensionCount() local
460 return driver.EnumerateDeviceExtensionProperties(physical_dev_, nullptr, in QueryExtensionCount()
472 const auto& driver = GetData(physical_dev_).driver; in EnumerateExtensions() local
473 return driver.EnumerateDeviceExtensionProperties(physical_dev_, nullptr, in EnumerateExtensions()
797 return GetData(device).driver.GetDeviceProcAddr(device, pName); in GetDeviceProcAddr()
887 if (!data.driver.GetPhysicalDeviceProperties2KHR && in QueryPresentationProperties()
888 !data.driver.GetPhysicalDeviceProperties2) in QueryPresentationProperties()
906 if (data.driver.GetPhysicalDeviceProperties2KHR) { in QueryPresentationProperties()
907 data.driver.GetPhysicalDeviceProperties2KHR(physicalDevice, in QueryPresentationProperties()
[all …]
Dapi.cpp127 if (!is_instance_ || !driver::Debuggable()) in AddImplicitLayers()
373 return (is_instance_ && driver::Debuggable() && in EnableDebugCallback()
424 const driver::DebugReportLogger& logger,
486 const driver::DebugReportLogger& logger_;
505 std::bitset<driver::ProcHook::EXTENSION_COUNT> enabled_extensions_;
509 const driver::DebugReportLogger& logger, in LayerChain()
522 enabled_extensions_.set(driver::ProcHook::EXTENSION_CORE); in LayerChain()
549 get_instance_proc_addr_ = driver::GetInstanceProcAddr; in ActivateLayers()
610 get_instance_proc_addr_ = driver::GetInstanceProcAddr; in ActivateLayers()
611 get_device_proc_addr_ = driver::GetDeviceProcAddr; in ActivateLayers()
[all …]
Ddriver.h60 namespace driver {
69 driver(), in InstanceData()
80 InstanceDriverTable driver; member
92 driver() { in DeviceData()
104 DeviceDriverTable driver; member
/frameworks/ml/nn/runtime/test/
DTestCompilationCaching.cpp263 void compileModel(const sp<CachingDriver>& driver, bool withToken) { in compileModel() argument
264 DeviceManager::get()->forTest_registerDevice(kDeviceName, driver); in compileModel()
299 sp<CachingDriver> driver = new CachingDriver(kDeviceName, ErrorStatus::NONE, kNumModelCache, in createCache() local
301 compileModel(driver, /*withToken=*/true); in createCache()
319 sp<CachingDriver> driver = in TEST_P() local
322 compileModel(driver, /*withToken=*/true); in TEST_P()
325 EXPECT_EQ(driver->hasCalledPrepareModelFromCache(), false); in TEST_P()
328 EXPECT_EQ(driver->hasCalledPrepareModel(), mIsCachingSupportedAndNoError in TEST_P()
338 sp<CachingDriver> driver = in TEST_P() local
341 compileModel(driver, /*withToken=*/true); in TEST_P()
[all …]
/frameworks/native/services/gpuservice/gpustats/
DGpuStats.cpp30 static void addLoadingCount(GraphicsEnv::Driver driver, bool isDriverLoaded, in addLoadingCount() argument
32 switch (driver) { in addLoadingCount()
52 static void addLoadingTime(GraphicsEnv::Driver driver, int64_t driverLoadingTime, in addLoadingTime() argument
54 switch (driver) { in addLoadingTime()
80 GraphicsEnv::Driver driver, bool isDriverLoaded, int64_t driverLoadingTime) { in insert() argument
95 appPackageName.c_str(), vulkanVersion, static_cast<int32_t>(driver), isDriverLoaded, in insert()
100 addLoadingCount(driver, isDriverLoaded, &globalInfo); in insert()
108 addLoadingCount(driver, isDriverLoaded, &mGlobalStats[driverVersionCode]); in insert()
119 addLoadingTime(driver, driverLoadingTime, &appInfo); in insert()
126 addLoadingTime(driver, driverLoadingTime, &mAppStats[appStatsKey]); in insert()
/frameworks/native/libs/binder/
DProcessState.cpp84 sp<ProcessState> ProcessState::initWithDriver(const char* driver) in initWithDriver() argument
90 if (!strcmp(gProcess->getDriverName().c_str(), driver)) { in initWithDriver()
96 if (access(driver, R_OK) == -1) { in initWithDriver()
97 ALOGE("Binder driver %s is unavailable. Using /dev/binder instead.", driver); in initWithDriver()
98 driver = "/dev/binder"; in initWithDriver()
101 gProcess = new ProcessState(driver); in initWithDriver()
396 static int open_driver(const char *driver) in open_driver() argument
398 int fd = open(driver, O_RDWR | O_CLOEXEC); in open_driver()
419 ALOGW("Opening '%s' failed: %s\n", driver, strerror(errno)); in open_driver()
424 ProcessState::ProcessState(const char *driver) in ProcessState() argument
[all …]
/frameworks/ml/nn/driver/sample/
DSampleDriverAll.cpp27 sp<SampleDriverFull> driver( in main() local
29 return driver->run(); in main()
DSampleDriver.cpp136 Return<ErrorStatus> prepareModelBase(const T_Model& model, const SampleDriver* driver, in prepareModelBase() argument
153 sp<SamplePreparedModel> preparedModel = new SamplePreparedModel(convertToV1_2(model), driver); in prepareModelBase()
228 const Model& model, const SampleDriver& driver, in asyncExecute() argument
241 CpuExecutor executor = driver.getExecutor(); in asyncExecute()
266 const SampleDriver& driver, in executeBase() argument
286 std::thread([&model, &driver, &poolInfos, request, measure, driverStart, callback] { in executeBase()
287 asyncExecute(request, measure, driverStart, model, driver, poolInfos, callback); in executeBase()
355 BurstExecutorWithCache(const Model& model, const SampleDriver* driver, in BurstExecutorWithCache() argument
357 : mModel(model), mDriver(driver), mModelPoolInfos(poolInfos) {} in BurstExecutorWithCache()
DSampleDriverQuant.cpp83 sp<SampleDriverQuant> driver(new SampleDriverQuant()); in main() local
84 return driver->run(); in main()
/frameworks/native/libs/graphicsenv/
DGraphicsEnv.cpp208 void GraphicsEnv::setDriverToLoad(GraphicsEnv::Driver driver) { in setDriverToLoad() argument
212 switch (driver) { in setDriverToLoad()
218 mGpuStats.glDriverToLoad = driver; in setDriverToLoad()
223 mGpuStats.glDriverFallback = driver; in setDriverToLoad()
231 mGpuStats.vkDriverToLoad = driver; in setDriverToLoad()
236 mGpuStats.vkDriverFallback = driver; in setDriverToLoad()
304 GraphicsEnv::Driver driver = GraphicsEnv::Driver::NONE; in sendGpuStatsLocked() local
307 driver = mGpuStats.glDriverToLoad; in sendGpuStatsLocked()
311 driver = mGpuStats.vkDriverToLoad; in sendGpuStatsLocked()
320 mGpuStats.appPackageName, mGpuStats.vulkanVersion, driver, in sendGpuStatsLocked()
DIGpuService.cpp33 const int32_t vulkanVersion, GraphicsEnv::Driver driver, in setGpuStats() argument
44 data.writeInt32(static_cast<int32_t>(driver)); in setGpuStats()
138 int32_t driver; in onTransact() local
139 if ((status = data.readInt32(&driver)) != OK) return status; in onTransact()
148 appPackageName, vulkanVersion, static_cast<GraphicsEnv::Driver>(driver), in onTransact()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2.cpp253 void NuPlayer2::setDriver(const wp<NuPlayer2Driver> &driver) { in setDriver() argument
254 mDriver = driver; in setDriver()
671 sp<NuPlayer2Driver> driver = mDriver.promote(); in onMessageReceived() local
672 if (driver != NULL) { in onMessageReceived()
673 driver->notifySetDataSourceCompleted(mCurrentSourceInfo.mSrcId, err); in onMessageReceived()
936 sp<NuPlayer2Driver> driver = mDriver.promote(); in onMessageReceived() local
937 if (driver != NULL) { in onMessageReceived()
938 driver->notifyDuration(mCurrentSourceInfo.mSrcId, durationUs); in onMessageReceived()
1809 sp<NuPlayer2Driver> driver = mDriver.promote(); in stopPlaybackTimer() local
1810 if (driver != NULL) { in stopPlaybackTimer()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayer.cpp223 void NuPlayer::init(const wp<NuPlayerDriver> &driver) { in init() argument
224 mDriver = driver; in init()
567 sp<NuPlayerDriver> driver = mDriver.promote(); in onMessageReceived() local
568 if (driver != NULL) { in onMessageReceived()
569 driver->notifySetDataSourceCompleted(err); in onMessageReceived()
758 sp<NuPlayerDriver> driver = mDriver.promote(); in onMessageReceived() local
759 if (driver != NULL) { in onMessageReceived()
760 driver->notifyDuration(durationUs); in onMessageReceived()
1631 sp<NuPlayerDriver> driver = mDriver.promote(); in updatePlaybackTimer() local
1633 if (driver != NULL) { in updatePlaybackTimer()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java86 public SQLiteCursor(SQLiteDatabase db, SQLiteCursorDriver driver, in SQLiteCursor() argument
88 this(driver, editTable, query); in SQLiteCursor()
101 public SQLiteCursor(SQLiteCursorDriver driver, String editTable, SQLiteQuery query) { in SQLiteCursor() argument
110 mDriver = driver; in SQLiteCursor()
/frameworks/base/libs/hwui/debug/
DGlesDriver.cpp33 std::unique_ptr<GlesDriver> GlesDriver::replace(std::unique_ptr<GlesDriver>&& driver) { in replace() argument
35 sGlesDriver = std::move(driver); in replace()
/frameworks/ml/nn/extensions/
DREADME.md6 A driver can provide custom hardware-accelerated operations via NNAPI 1.2+
27 using the NNAPI driver HAL interface.
77 the driver must support those other extensions in order to support the
149 ## Adding extension support to an NNAPI driver
151 The driver reports supported extensions via the
173 When handling operation and operand types, the driver must check the
181 The driver must validate extension operations and data types, as the NNAPI
/frameworks/native/cmds/servicemanager/
Dservice_manager.c386 char *driver; in main() local
389 driver = argv[1]; in main()
391 driver = "/dev/binder"; in main()
394 bs = binder_open(driver, 128*1024); in main()
397 ALOGW("failed to open binder driver %s\n", driver); in main()
402 ALOGE("failed to open binder driver %s\n", driver); in main()

1234